/* ─── Reset & base ──────────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --bg-body: #120f17;
  --bg-card: #1b1722;
  --bg-elevated: #1b1722;
  --bg-hover: #373044;

  --border-primary: #2f293a;
  --border-secondary: #2f293a;
  --border-subtle: #2f293a;

  --color-primary: #a855f7;
  --color-accent: #b497cf;
  --color-accent-muted: #b497cf;

  --text-primary: #fff;
  --text-secondary: #f5f5f5;
  --text-muted: #aaaaaa;
  --text-dimmed: #a1a1aa;

  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 12px;
  --radius-lg: 14px;
  --radius-xl: 24px;
  --radius-full: 999px;

  --shadow-dropdown: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-primary: 0 2px 8px rgba(82, 39, 255, 0.4);

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --dur-press: 120ms;

  --transition-fast: 0.15s var(--ease-out);
  --transition-base: 0.2s var(--ease-out);
  --transition-slow: 0.3s var(--ease-out);

  --gradient-title: linear-gradient(135deg, #fff 0%, #8660fa 20%, #a855f7 40%, #8400ff 60%, #a855f7 80%, #fff 100%);

  --surface-ghost: rgba(255, 255, 255, 0.07);
  --surface-ghost-hover: rgba(255, 255, 255, 0.12);
  --surface-ghost-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.07);
  --surface-ghost-blur: blur(32px) saturate(1.3);
  --surface-ghost-track: rgba(255, 255, 255, 0.04);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 100%;
  font-family: 'Geist', sans-serif;
  background: var(--bg-body);
  color: rgba(255, 255, 255, 0.87);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  font-weight: 500;
  text-decoration: none;
  color: inherit;
}

/* ─── Navbar (Milchglas / frosted glass) ───────────────────────────────── */
.ln-navbar {
  position: fixed;
  top: 20px;
  left: 0;
  right: 0;
  z-index: 1500;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 24px;
  font-family: 'Geist Mono', monospace;
  pointer-events: none;
}

.ln-navbar-inner {
  width: 100%;
  max-width: 1680px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px 0 20px;
  border-radius: var(--radius-lg);
  border: 1px solid transparent;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition:
    max-width 0.5s ease,
    background 0.5s ease,
    border-color 0.5s ease,
    padding 0.5s ease;
  pointer-events: auto;
  position: relative;
}

.ln-navbar.ln-navbar-scrolled .ln-navbar-inner {
  max-width: calc(1300px - 24px);
  background: rgba(18, 15, 23, 0.45);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border-color: rgba(255, 255, 255, 0.04);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.28),
    inset 0 0.5px 0 rgba(255, 255, 255, 0.08);
}

.ln-navbar-left {
  display: flex;
  align-items: center;
}

.ln-navbar-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-word {
  font-family: 'Geist', sans-serif;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.02em;
  color: #fff;
}

.ln-navbar-divider {
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 300;
  user-select: none;
  margin: 0 8px 0 18px;
}

.ln-navbar-links {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ln-navbar-link-highlight {
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 12px;
  background: rgba(18, 15, 23, 0.45);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 2px 16px rgba(0, 0, 0, 0.2),
    inset 0 0.5px 0 rgba(255, 255, 255, 0.06);
  opacity: 0;
  pointer-events: none;
  transition:
    transform 0.3s ease,
    width 0.3s ease,
    height 0.3s ease,
    opacity 0.2s ease;
}

.ln-navbar-link {
  position: relative;
  z-index: 1;
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 6px 10px;
  border-radius: 12px;
  transition:
    color var(--transition-fast),
    transform var(--dur-press) var(--ease-out);
}

.ln-navbar-link:active {
  transform: scale(0.96);
}

.ln-navbar-link-active {
  color: #fff;
}

.ln-navbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ln-navbar-browse {
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  height: 36px;
  padding: 0 8px 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: var(--surface-ghost);
  backdrop-filter: var(--surface-ghost-blur);
  -webkit-backdrop-filter: var(--surface-ghost-blur);
  box-shadow: var(--surface-ghost-highlight);
  transition: background var(--transition-fast);
  user-select: none;
  -webkit-user-select: none;
}

.ln-navbar-browse:hover {
  background: var(--surface-ghost-hover);
}

.ln-navbar-soon {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
}

.ln-navbar-github {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  height: 36px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: var(--surface-ghost);
  backdrop-filter: var(--surface-ghost-blur);
  -webkit-backdrop-filter: var(--surface-ghost-blur);
  box-shadow: var(--surface-ghost-highlight);
  transition:
    background var(--transition-fast),
    transform var(--dur-press) var(--ease-out);
}

.ln-navbar-github:hover {
  background: var(--surface-ghost-hover);
}

.ln-navbar-github:active {
  transform: scale(0.97);
}

@media (max-width: 768px) {
  .ln-navbar {
    padding: 0 16px;
  }

  .ln-navbar-inner {
    padding: 0 5px 0 16px;
  }

  .ln-navbar-links {
    display: none;
  }

  .ln-navbar-divider {
    display: none;
  }

  .ln-navbar-browse {
    display: none;
  }

  .ln-navbar-github {
    display: none;
  }
}

.ln-navbar-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 36px;
  height: 36px;
  padding: 9px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: var(--surface-ghost);
  box-shadow: var(--surface-ghost-highlight);
  backdrop-filter: var(--surface-ghost-blur);
  -webkit-backdrop-filter: var(--surface-ghost-blur);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.ln-navbar-hamburger:hover {
  background: var(--surface-ghost-hover);
}

.ln-navbar-hamburger span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: #fff;
  border-radius: 1px;
  transition:
    transform 0.25s ease,
    opacity 0.25s ease;
}

.ln-navbar-hamburger.open span:nth-child(1) {
  transform: translateY(5.5px) rotate(45deg);
}
.ln-navbar-hamburger.open span:nth-child(2) {
  opacity: 0;
}
.ln-navbar-hamburger.open span:nth-child(3) {
  transform: translateY(-5.5px) rotate(-45deg);
}

.ln-navbar-mobile-menu {
  display: none;
  flex-direction: column;
  gap: 2px;
  position: absolute;
  top: calc(100% + 8px);
  right: 5px;
  min-width: 200px;
  padding: 8px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(18, 15, 23, 0.85);
  backdrop-filter: blur(32px) saturate(1.3);
  -webkit-backdrop-filter: blur(32px) saturate(1.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  pointer-events: auto;
  animation: ln-menu-slide-in 0.2s ease;
  z-index: 1001;
}

.ln-navbar-mobile-menu.open {
  display: flex;
}

@keyframes ln-menu-slide-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ln-navbar-mobile-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: 'Geist Mono', monospace;
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.7);
  padding: 12px 14px;
  border-radius: 10px;
  transition:
    background 0.15s ease,
    color 0.15s ease;
}

.ln-navbar-mobile-link:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

@media (max-width: 768px) {
  .ln-navbar-hamburger {
    display: flex;
  }
}

/* ─── Hero ──────────────────────────────────────────────────────────────── */
.ln-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--bg-body);
  padding: 140px 24px 80px;
}

.orb-container {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: auto;
}

.ln-hero-bottom-fade {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.ln-hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 760px;
  pointer-events: none;
}

.ln-hero-content > * {
  pointer-events: auto;
}

.ln-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.75);
  padding: 6px 14px 6px 6px;
  border-radius: var(--radius-full);
  background: var(--surface-ghost);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: var(--surface-ghost-blur);
  -webkit-backdrop-filter: var(--surface-ghost-blur);
  box-shadow: var(--surface-ghost-highlight);
  margin-bottom: 28px;
  transition: background var(--transition-fast);
}

.ln-hero-tag:hover {
  background: var(--surface-ghost-hover);
}

.ln-hero-tag-new {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(125deg, #7c3aed, #a855f7, #d946ef);
  padding: 4px 8px;
  border-radius: var(--radius-full);
}

.ln-hero-headline {
  font-family: 'Geist', sans-serif;
  font-size: clamp(36px, 6vw, 68px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 20px;
  color: #fff;
}

.ln-hero-headline-line {
  display: inline-block;
}

.ln-hero-headline-accent {
  background: var(--gradient-title);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradientShift 6s ease infinite;
  text-shadow: 0 0 40px rgba(168, 85, 247, 0.35);
}

@keyframes gradientShift {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.ln-hero-description {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-dimmed);
  max-width: 520px;
  margin: 0 0 32px;
}

.ln-hero-buttons {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  flex-wrap: wrap;
  justify-content: center;
}

.ln-hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Geist Mono', monospace;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  height: 44px;
  padding: 0 22px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    transform var(--dur-press) var(--ease-out),
    box-shadow 0.3s ease,
    background var(--transition-fast);
}

.ln-hero-btn-primary {
  background: linear-gradient(125deg, #7c3aed, #a855f7, #d946ef, #a855f7, #7c3aed);
  background-size: 400% 100%;
  animation: ln-pro-flow 3s ease infinite;
  color: #fff;
  box-shadow:
    0 0 16px rgba(168, 85, 247, 0.5),
    0 0 40px rgba(168, 85, 247, 0.2);
}

@keyframes ln-pro-flow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.ln-hero-btn-primary:hover {
  box-shadow:
    0 0 24px rgba(168, 85, 247, 0.7),
    0 0 56px rgba(168, 85, 247, 0.35);
}

.ln-hero-btn-primary:active {
  transform: scale(0.97);
}

.ln-hero-btn-secondary {
  background: var(--surface-ghost);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: var(--surface-ghost-blur);
  -webkit-backdrop-filter: var(--surface-ghost-blur);
  box-shadow: var(--surface-ghost-highlight);
}

.ln-hero-btn-secondary:hover {
  background: var(--surface-ghost-hover);
}

.ln-hero-btn-secondary:active {
  transform: scale(0.97);
}

.ln-hero-proof {
  display: flex;
  align-items: center;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 12px;
  font-family: 'Geist Mono', monospace;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ln-hero-proof-sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
}

/* ─── Hint toast (easter egg feedback) ─────────────────────────────────── */
.hint-toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  transform: translate(-50%, 16px);
  z-index: 2000;
  max-width: min(420px, calc(100vw - 32px));
  padding: 12px 18px;
  border-radius: var(--radius-md);
  background: rgba(18, 15, 23, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  font-family: 'Geist Mono', monospace;
  font-size: 13px;
  color: #fff;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.3s var(--ease-out),
    transform 0.3s var(--ease-out);
}

.hint-toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 600px) {
  .ln-hero {
    padding-top: 120px;
  }
}
