/* ============================================================
   YourAI — shared styles  (typography-led redesign)
   ============================================================ */

:root {
  --bg: #080810;
  --bg-2: #0e0e1a;
  --accent: #6B5FD8;
  --accent-2: #a78bfa;
  --accent-3: #c4b5fd;
  --text: #ffffff;
  --text-dim: #9a9aae;
  --text-faint: #5a5a72;
  --hairline: rgba(255, 255, 255, 0.07);
  --hairline-strong: rgba(255, 255, 255, 0.14);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --max-w: 1240px;
  --pad-x: clamp(24px, 6vw, 96px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
  font-feature-settings: 'ss01', 'cv11';
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 20% 0%, rgba(107, 95, 216, 0.10), transparent 60%),
    radial-gradient(ellipse 50% 40% at 100% 100%, rgba(107, 95, 216, 0.05), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

main, footer, nav { position: relative; z-index: 1; }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input { font-family: inherit; }

::selection { background: var(--accent); color: #fff; }

/* ============================================================
   NAVBAR
   ============================================================ */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  background: rgba(8, 8, 16, 0.55);
  border-bottom: 1px solid var(--hairline);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 16px var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
}

.logo-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(107, 95, 216, 0.6);
}

.logo-mark {
  display: block;
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(107, 95, 216, 0.3));
}
.footer-logo .logo-mark {
  width: 30px;
  height: 30px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 13px;
  color: var(--text-dim);
  transition: color 0.2s var(--ease);
}

.nav-links a:hover, .nav-links a.active { color: var(--text); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 11px;
  font-size: 12px;
  color: var(--text-dim);
  border-radius: 999px;
  transition: color 0.2s var(--ease);
}
.lang-toggle:hover { color: var(--text); }
.lang-toggle svg { display: block; }
.lang-current { font-weight: 500; color: var(--text); }
.lang-other { color: var(--text-faint); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s var(--ease);
  white-space: nowrap;
}
.btn-outline {
  border: 1px solid var(--hairline-strong);
  color: var(--text);
}
.btn-outline:hover { border-color: rgba(255, 255, 255, 0.32); }
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 18px -4px rgba(107, 95, 216, 0.5);
}
.btn-primary:hover {
  background: var(--accent-2);
  box-shadow: 0 6px 24px -4px rgba(107, 95, 216, 0.55);
  transform: translateY(-1px);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}
.hamburger span { width: 20px; height: 1.5px; background: var(--text); transition: all 0.25s var(--ease); }
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav-mobile {
  display: none;
  position: absolute;
  top: 100%;
  left: 0; right: 0;
  background: rgba(8, 8, 16, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--hairline);
  padding: 20px var(--pad-x) 28px;
  flex-direction: column;
  gap: 16px;
}
.nav-mobile a { font-size: 15px; color: var(--text-dim); padding: 6px 0; }
.nav-mobile .btn { width: 100%; padding: 13px 18px; }
.nav-mobile .lang-toggle { align-self: flex-start; padding-left: 0; }

@media (max-width: 800px) {
  .nav-links,
  .nav-right .btn,
  .nav-right .lang-toggle { display: none; }
  .hamburger { display: flex; }
  .nav-mobile.open { display: flex; }
}

/* ============================================================
   LAYOUT
   ============================================================ */

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.section { padding: clamp(80px, 14vh, 160px) 0; }
.section-sm { padding: clamp(60px, 9vh, 100px) 0; }
.section-lg { padding: clamp(120px, 22vh, 240px) 0; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */

/* Tiny meta label — used in place of badges */
.meta {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--text-faint);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.meta::before {
  content: '';
  width: 18px;
  height: 1px;
  background: currentColor;
  display: inline-block;
}
.meta.no-rule::before { display: none; }

.meta-accent {
  color: var(--accent-2);
}

/* Display headlines — mixed weights via inline spans */
.display {
  font-size: clamp(48px, 10.5vw, 152px);
  line-height: 0.94;
  letter-spacing: -0.045em;
  font-weight: 200;
  text-wrap: balance;
}
.display .b { font-weight: 700; }
.display .i { font-style: italic; font-weight: 300; }

.display-md {
  font-size: clamp(36px, 6.5vw, 88px);
  line-height: 0.98;
  letter-spacing: -0.04em;
  font-weight: 300;
  text-wrap: balance;
}
.display-md .b { font-weight: 700; }

.display-sm {
  font-size: clamp(28px, 4.5vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 300;
}
.display-sm .b { font-weight: 700; }

/* Body / sub */
.body {
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.6;
  color: var(--text-dim);
  max-width: 56ch;
  text-wrap: pretty;
}
.body.tight { max-width: 44ch; }

/* Text-link CTA — no filled rectangle */
.text-link {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  color: var(--accent-2);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: -0.005em;
  transition: gap 0.25s var(--ease), color 0.25s var(--ease);
  border-bottom: 1px solid transparent;
  padding-bottom: 3px;
  width: fit-content;
}
.text-link .arr {
  display: inline-block;
  transition: transform 0.25s var(--ease);
  font-weight: 400;
}
.text-link:hover { color: var(--accent-3); gap: 14px; }
.text-link:hover .arr { transform: translateX(4px); }
.text-link.lg { font-size: 19px; }

/* Ghost background text */
.ghost {
  position: absolute;
  pointer-events: none;
  user-select: none;
  font-weight: 800;
  letter-spacing: -0.05em;
  color: #fff;
  opacity: 0.035;
  line-height: 0.8;
  white-space: nowrap;
  z-index: 0;
}

/* Subtle hairline separator */
.hairline {
  height: 1px;
  background: var(--hairline);
  border: 0;
  width: 100%;
}

/* ============================================================
   HERO (index)
   ============================================================ */

.hero {
  min-height: calc(100vh - 64px);
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 80px 0 60px;
}

.hero-canvas, .hero-fallback {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero-canvas { display: block; }
.hero-fallback {
  display: none;
  background:
    radial-gradient(ellipse 70% 55% at 20% 40%, rgba(107, 95, 216, 0.28), transparent 60%),
    radial-gradient(ellipse 50% 40% at 80% 70%, rgba(167, 139, 250, 0.18), transparent 65%);
}

@media (max-width: 700px), (prefers-reduced-motion: reduce) {
  .hero-canvas { display: none; }
  .hero-fallback { display: block; }
}

.hero .ghost {
  font-size: clamp(220px, 38vw, 520px);
  right: -4vw;
  bottom: -8vh;
  opacity: 0.028;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(20px, 3vw, 36px);
}

.hero .meta-rotate {
  transform: rotate(-1deg);
  transform-origin: left center;
}

.hero h1 { max-width: 14ch; }

.hero .body { max-width: 36ch; font-size: clamp(16px, 1.4vw, 19px); color: var(--text); opacity: 0.85; }

/* ============================================================
   STATEMENTS — vertical lila line + indented text
   ============================================================ */

.statement {
  border-left: 1px solid rgba(107, 95, 216, 0.6);
  padding-left: clamp(20px, 2.6vw, 36px);
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 1.4vw, 22px);
}

.statement .meta { color: var(--accent-2); }
.statement .meta::before { background: var(--accent); }

.statements {
  display: flex;
  flex-direction: column;
  gap: clamp(60px, 10vh, 120px);
}

/* asymmetric row — content lives in col 1 OR col 2 of a 2-col grid */
.s-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
}
.s-row > * { grid-column: 1; }
.s-row.right > * { grid-column: 2; }

@media (max-width: 800px) {
  .s-row { grid-template-columns: 1fr; gap: 0; }
  .s-row.right > * { grid-column: 1; }
}

/* index features: single column statements with comfortable spacing */
.feature-stack {
  display: flex;
  flex-direction: column;
  gap: clamp(48px, 8vh, 96px);
  max-width: 880px;
}

/* ============================================================
   WAITLIST (inline underline form)
   ============================================================ */

.waitlist-block {
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 4vw, 48px);
  max-width: 880px;
}

.waitlist-heading {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.waitlist-form {
  display: grid;
  grid-template-columns: 1fr 1.2fr auto;
  gap: clamp(20px, 3vw, 40px);
  align-items: end;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-faint);
}

.input-underline {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--hairline-strong);
  padding: 10px 0 14px;
  color: var(--text);
  font-size: 17px;
  font-weight: 400;
  width: 100%;
  border-radius: 0;
  transition: border-color 0.25s var(--ease);
}
.input-underline:focus {
  outline: none;
  border-bottom-color: var(--accent);
}
.input-underline::placeholder { color: var(--text-faint); }

.submit-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--accent-2);
  font-weight: 500;
  font-size: 16px;
  padding: 10px 0 14px;
  border: none;
  border-bottom: 1px solid var(--hairline-strong);
  transition: gap 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
  cursor: pointer;
  background: transparent;
  white-space: nowrap;
}
.submit-link:hover {
  color: var(--accent-3);
  gap: 14px;
  border-bottom-color: var(--accent);
}
.submit-link .arr { transition: transform 0.25s var(--ease); }
.submit-link:hover .arr { transform: translateX(4px); }
.submit-link:disabled { opacity: 0.5; cursor: wait; }

@media (max-width: 700px) {
  .waitlist-form {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .submit-link {
    align-self: flex-start;
    border-bottom-color: transparent;
    padding-left: 0;
  }
}

.waitlist-message {
  font-size: 14px;
  display: none;
  padding-top: 4px;
}
.waitlist-message.success {
  display: block;
  color: var(--accent-2);
}
.waitlist-message.error {
  display: block;
  color: #ff8a9c;
}

/* ============================================================
   AIO inline list (what-is-yourai)
   ============================================================ */

.aio {
  font-size: clamp(18px, 2vw, 26px);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.5;
  color: var(--text);
  max-width: 1000px;
}
.aio .sep {
  color: var(--text-faint);
  margin: 0 14px;
  font-weight: 200;
}
.aio .item { white-space: nowrap; }

/* ============================================================
   PRICING
   ============================================================ */

.pricing-head {
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 3vw, 36px);
  max-width: 1100px;
}

.pricing-includes {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: clamp(32px, 5vw, 56px);
  max-width: 56ch;
}
.pricing-includes .line {
  font-size: clamp(15px, 1.2vw, 17px);
  color: var(--text);
  opacity: 0.85;
}
.pricing-includes .line.muted {
  color: var(--text-dim);
  opacity: 0.7;
}

/* Coming-soon rows */
.tier-list {
  display: flex;
  flex-direction: column;
  margin-top: clamp(36px, 6vw, 64px);
}
.tier-row {
  display: grid;
  grid-template-columns: 1.2fr 1.4fr 2fr auto;
  gap: clamp(16px, 3vw, 48px);
  padding: 28px 0;
  border-bottom: 1px solid var(--hairline);
  align-items: baseline;
  opacity: 0.7;
}
.tier-row:first-child { border-top: 1px solid var(--hairline); }
.tier-row .t-name {
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text);
}
.tier-row .t-price {
  font-size: clamp(18px, 1.8vw, 22px);
  color: var(--text);
  font-weight: 400;
  letter-spacing: -0.01em;
}
.tier-row .t-desc {
  font-size: 14px;
  color: var(--text-dim);
}
.tier-row .t-soon {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-faint);
}

@media (max-width: 800px) {
  .tier-row {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 20px 0;
  }
  .tier-row .t-soon { order: -1; }
}

.tier-note {
  margin-top: clamp(28px, 4vw, 48px);
  font-size: 13px;
  color: var(--text-faint);
  max-width: 56ch;
}

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
  border-top: 1px solid var(--hairline);
  margin-top: clamp(60px, 10vh, 120px);
  padding: clamp(40px, 6vw, 64px) 0 44px;
  font-size: 12px;
  color: var(--text-faint);
}
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: clamp(28px, 4vw, 44px);
}
.footer-logo {
  font-size: 18px;
  gap: 11px;
}
.footer-logo .logo-bolt {
  width: 24px;
  height: 24px;
}
.footer-slogan {
  font-size: 13px;
  color: var(--text-dim);
  letter-spacing: -0.005em;
  padding-left: 41px; /* aligns under wordmark, not mark */
  margin-top: -2px;
}
@media (max-width: 600px) {
  .footer-slogan { padding-left: 0; }
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
}
.footer a { color: var(--text-faint); transition: color 0.2s var(--ease); }
.footer a:hover { color: var(--text); }
.footer-links { display: flex; gap: 22px; }

/* ============================================================
   SCROLL REVEAL — subtle, no bounce
   ============================================================ */

.reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: translateY(0); }

.reveal-left {
  opacity: 0;
  transform: translateX(-14px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  will-change: opacity, transform;
}
.reveal-left.in { opacity: 1; transform: translateX(0); }

.reveal-right {
  opacity: 0;
  transform: translateX(14px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  will-change: opacity, transform;
}
.reveal-right.in { opacity: 1; transform: translateX(0); }

.reveal-fade {
  opacity: 0;
  transition: opacity 0.8s ease;
  will-change: opacity;
}
.reveal-fade.in { opacity: 1; }

/* Mobile: drop transforms — keeps scrolling smooth on slower devices */
@media (max-width: 700px) {
  .reveal,
  .reveal-left,
  .reveal-right {
    transform: none;
    transition: opacity 0.8s ease;
  }
  .reveal.in,
  .reveal-left.in,
  .reveal-right.in {
    transform: none;
  }
}

[data-delay="1"] { transition-delay: 0.08s; }
[data-delay="2"] { transition-delay: 0.16s; }
[data-delay="3"] { transition-delay: 0.24s; }
[data-delay="4"] { transition-delay: 0.32s; }
[data-delay="5"] { transition-delay: 0.40s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal, .reveal-left, .reveal-right, .reveal-fade {
    opacity: 1 !important;
    transform: none !important;
  }
}
