:root {
  --bg: #050505;
  --bg-2: #0b0b0c;
  --surface: #111113;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --text: #f4f4f2;
  --muted: #9a9a96;
  --yellow: #ffc400;
  --yellow-2: #ffd84d;
  --cyan: #38d6f5;
  --radius: 22px;
  --max: 1200px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--yellow); color: #000; }

h1, h2, h3, h4 { font-family: "Space Grotesk", Inter, sans-serif; letter-spacing: -.03em; line-height: 1.05; font-weight: 600; }
h2 { font-size: clamp(2rem, 4.6vw, 3.6rem); }
h3 { font-size: 1.6rem; margin: .4rem 0 .8rem; }
h4 { font-size: 1.1rem; letter-spacing: -.01em; margin-bottom: .4rem; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.text-yellow { color: var(--yellow); }
.muted { color: var(--muted); }
.lead { font-size: 1.15rem; color: #c9c9c5; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.noise {
  position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  height: 48px; padding: 0 24px; border-radius: 999px;
  font-weight: 600; font-size: .95rem; border: 1px solid transparent; cursor: pointer;
  transition: transform .3s var(--ease), background .3s, box-shadow .3s, border-color .3s;
  font-family: inherit;
}
.btn:hover { transform: translateY(-2px); }
.btn--yellow { background: var(--yellow); color: #000; }
.btn--yellow:hover { background: var(--yellow-2); box-shadow: 0 10px 40px -10px rgba(255, 196, 0, .6); }
.btn--ghost { background: rgba(255,255,255,.04); border-color: var(--line-2); color: var(--text); }
.btn--ghost:hover { border-color: rgba(255,255,255,.35); background: rgba(255,255,255,.08); }
.btn--sm { height: 38px; padding: 0 18px; font-size: .88rem; }

/* Nav */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background .4s, border-color .4s, backdrop-filter .4s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled { background: rgba(5,5,5,.7); backdrop-filter: blur(16px) saturate(1.4); border-color: var(--line); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav__logo img { height: 22px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 32px; font-size: .93rem; }
.nav__links a:not(.btn) { color: #bdbdb8; transition: color .2s; }
.nav__links a:not(.btn):hover { color: #fff; }
.nav__toggle { display: none; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; position: relative; }
.nav__toggle span { position: absolute; left: 9px; right: 9px; height: 2px; background: #fff; border-radius: 2px; transition: transform .3s var(--ease), top .3s; }
.nav__toggle span:first-child { top: 15px; }
.nav__toggle span:last-child { top: 23px; }
.nav__toggle[aria-expanded="true"] span:first-child { top: 19px; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { top: 19px; transform: rotate(-45deg); }

/* Hero */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: 130px 0 90px; overflow: hidden; }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .9; }
.hero__glow {
  position: absolute; width: 900px; height: 900px; left: 50%; top: -340px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(255,196,0,.22), rgba(255,196,0,.06) 50%, transparent 72%);
  filter: blur(20px); pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 200px;
  background: linear-gradient(transparent, var(--bg)); pointer-events: none;
}
.hero__content { position: relative; z-index: 2; text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero__title { font-size: clamp(2.7rem, 8vw, 6.4rem); margin: 28px 0 24px; font-weight: 700; letter-spacing: -.045em; }
.hero__sub { max-width: 640px; color: #b9b9b4; font-size: clamp(1rem, 1.6vw, 1.2rem); }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 36px; }
.hero__stats { display: flex; gap: 0; margin-top: 72px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.02); backdrop-filter: blur(8px); }
.hero__stats > div { padding: 18px 34px; display: flex; flex-direction: column; align-items: center; }
.hero__stats > div + div { border-left: 1px solid var(--line); }
.hero__stats strong { font-family: "Space Grotesk", sans-serif; font-size: 1.7rem; color: #fff; letter-spacing: -.02em; }
.hero__stats span { font-size: .8rem; color: var(--muted); }

.pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px 7px 12px;
  border: 1px solid var(--line-2); border-radius: 999px; font-size: .85rem; color: #d8d8d4;
  background: rgba(255,255,255,.03); backdrop-filter: blur(8px); transition: border-color .3s;
}
.pill:hover { border-color: rgba(255,196,0,.5); }
.pill__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); animation: pulse 2s infinite; }
.pill__arrow { color: var(--yellow); transition: transform .3s var(--ease); }
.pill:hover .pill__arrow { transform: translateX(3px); }
@keyframes pulse { 50% { opacity: .35; } }

/* Marquee */
.marquee { border-block: 1px solid var(--line); overflow: hidden; padding: 22px 0; background: var(--bg-2); }
.marquee__track { display: flex; gap: 40px; width: max-content; animation: marquee 30s linear infinite; font-family: "Space Grotesk", sans-serif; font-size: 1.4rem; color: #6d6d69; white-space: nowrap; }
.marquee__track i { color: var(--yellow); font-style: normal; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Sections */
.section { padding: 140px 0; position: relative; }
.section__head { margin-bottom: 64px; max-width: 760px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; font-size: .78rem; text-transform: uppercase;
  letter-spacing: .16em; color: var(--yellow); font-weight: 600; margin-bottom: 20px;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; }
.eyebrow--cyan { color: var(--cyan); }

/* Cards */
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.card {
  position: relative; border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, #121214, #0b0b0c); overflow: hidden;
  transition: border-color .4s, transform .5s var(--ease);
  transform-style: preserve-3d;
}
.card:hover { border-color: rgba(255,196,0,.35); }
.card--wide { grid-column: span 2; display: grid; grid-template-columns: 1.1fr .9fr; }
.card__body { padding: 44px; position: relative; z-index: 1; }
.card__body p { color: #b3b3ae; max-width: 520px; }
.card__glow {
  position: absolute; width: 420px; height: 420px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255,196,0,.14), transparent);
  left: var(--mx, 50%); top: var(--my, 0%); transform: translate(-50%, -50%);
  opacity: 0; transition: opacity .4s;
}
.card:hover .card__glow { opacity: 1; }
.tag { display: inline-block; font-size: .75rem; color: var(--muted); border: 1px solid var(--line-2); padding: 4px 12px; border-radius: 999px; }
.icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: rgba(255,196,0,.1); color: var(--yellow); border: 1px solid rgba(255,196,0,.2); margin-bottom: 22px; }
.icon svg { width: 26px; height: 26px; }
.checks { list-style: none; margin: 22px 0 28px; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 28px; color: #d6d6d2; font-size: .95rem; }
.checks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: rgba(255,196,0,.15); }
.checks li::after { content: ""; position: absolute; left: 5px; top: 8px; width: 6px; height: 3px; border-left: 2px solid var(--yellow); border-bottom: 2px solid var(--yellow); transform: rotate(-45deg); }
.link { color: var(--yellow); font-weight: 600; display: inline-flex; gap: 6px; }
.link span { transition: transform .3s var(--ease); }
.link:hover span { transform: translate(3px, -1px); }

/* Autonube phone mock */
.card__visual--app { position: relative; display: grid; place-items: center; padding: 40px; background: radial-gradient(circle at 50% 60%, rgba(255,196,0,.16), transparent 60%); }
.phone {
  width: 230px; border-radius: 34px; padding: 18px 14px 20px; background: #0a0a0a;
  border: 1px solid var(--line-2); box-shadow: 0 40px 80px -30px rgba(0,0,0,.9), inset 0 0 0 6px #141414;
  transform: rotate(-6deg); transition: transform .6s var(--ease);
}
.card--wide:hover .phone { transform: rotate(0deg) translateY(-6px); }
.phone__bar { width: 70px; height: 6px; border-radius: 6px; background: #222; margin: 0 auto 16px; }
.phone__search { font-size: .75rem; color: #777; background: #161616; border: 1px solid #222; border-radius: 10px; padding: 9px 12px; margin-bottom: 12px; }
.phone__item { display: flex; gap: 10px; align-items: center; padding: 9px; border-radius: 12px; background: #131313; margin-bottom: 8px; }
.phone__item i { width: 38px; height: 38px; border-radius: 9px; background: linear-gradient(135deg, #2a2a2a, #1a1a1a); }
.phone__item b { flex: 1; height: 8px; border-radius: 4px; background: linear-gradient(90deg, #2c2c2c 60%, transparent 60%); }
.phone__item:nth-child(4) i { background: linear-gradient(135deg, var(--yellow), #b38900); }
.phone__btn { margin-top: 14px; text-align: center; background: var(--yellow); color: #000; font-weight: 700; font-size: .8rem; padding: 10px; border-radius: 12px; }

/* IA */
.ia { overflow: hidden; background: linear-gradient(180deg, var(--bg), #07090b 50%, var(--bg)); border-block: 1px solid var(--line); }
.ia__orb {
  position: absolute; width: 760px; height: 760px; right: -200px; top: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(56,214,245,.25), rgba(255,196,0,.22), rgba(56,214,245,.05), rgba(56,214,245,.25));
  filter: blur(90px); opacity: .55; animation: spin 18s linear infinite; pointer-events: none;
}
@keyframes spin { to { transform: rotate(360deg); } }
.ia__inner { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.ia h2 { font-size: clamp(2.8rem, 6.5vw, 5.4rem); margin-bottom: 24px; }
.grad { background: linear-gradient(100deg, var(--yellow) 10%, var(--cyan) 90%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.waitlist { display: flex; gap: 8px; margin-top: 34px; padding: 6px; border: 1px solid var(--line-2); border-radius: 999px; background: rgba(255,255,255,.03); max-width: 480px; }
.waitlist input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; color: #fff; font: inherit; padding: 0 16px; }
.waitlist input::placeholder { color: #6f6f6b; }
.waitlist__msg { margin-top: 12px; font-size: .9rem; color: var(--cyan); min-height: 1.4em; }

.chat { border: 1px solid var(--line-2); border-radius: var(--radius); background: rgba(12,12,14,.75); backdrop-filter: blur(20px); box-shadow: 0 50px 100px -40px rgba(0,0,0,.9); overflow: hidden; }
.chat__top { display: flex; gap: 7px; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.chat__top span { width: 10px; height: 10px; border-radius: 50%; background: #2a2a2a; }
.chat__top b { margin-left: auto; font-size: .8rem; color: var(--muted); font-weight: 500; }
.chat__body { padding: 26px 22px; display: flex; flex-direction: column; gap: 14px; min-height: 260px; }
.msg { max-width: 85%; padding: 12px 16px; border-radius: 16px; font-size: .95rem; }
.msg--user { align-self: flex-end; background: var(--yellow); color: #000; border-bottom-right-radius: 4px; font-weight: 500; }
.msg--ai { align-self: flex-start; background: #17181b; border: 1px solid var(--line); border-bottom-left-radius: 4px; color: #e6e6e2; min-height: 46px; }
.msg--ai.typing::after { content: "▍"; color: var(--cyan); animation: pulse 1s infinite; }

.features { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 96px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.feature { background: var(--bg-2); padding: 32px 28px; transition: background .3s; }
.feature:hover { background: #101114; }
.feature__n { display: block; font-family: "Space Grotesk", sans-serif; color: var(--cyan); font-size: .85rem; margin-bottom: 30px; }
.feature p { color: var(--muted); font-size: .93rem; }

/* About */
.about { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 44px; padding-top: 36px; border-top: 1px solid var(--line); }
.values p { color: var(--muted); font-size: .92rem; }
.values h4 { color: var(--yellow); }

/* CTA */
.cta { position: relative; overflow: hidden; text-align: center; padding: 96px 32px; border-radius: 32px; border: 1px solid rgba(255,196,0,.25); background: #0b0b0c; display: flex; flex-direction: column; align-items: center; }
.cta__glow { position: absolute; inset: auto -20% -70% -20%; height: 120%; background: radial-gradient(closest-side, rgba(255,196,0,.3), transparent); pointer-events: none; }
.cta h2, .cta p, .cta .hero__cta { position: relative; }
.cta p { color: #bcbcb7; margin-top: 18px; font-size: 1.1rem; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 48px 0; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer__logo { height: 18px; width: auto; }
.footer nav { display: flex; gap: 24px; flex-wrap: wrap; font-size: .9rem; color: var(--muted); }
.footer nav a:hover { color: #fff; }
.footer p { font-size: .85rem; color: #66665f; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 960px) {
  .card--wide { grid-template-columns: 1fr; }
  .card__visual--app { padding: 0 40px 44px; }
  .ia__inner, .about { grid-template-columns: 1fr; gap: 48px; }
  .features { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .container { padding: 0 16px; }
  .nav__toggle { display: block; }
  .nav__links {
    position: fixed; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(5,5,5,.97); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line);
    padding: 8px 16px 20px; transform: translateY(-12px); opacity: 0; pointer-events: none; transition: .3s var(--ease);
  }
  .nav__links.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav__links a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav__links .btn { margin-top: 16px; height: 46px; }
  .nav__logo img { height: 18px; }
  .section { padding: 96px 0; }
  .grid { grid-template-columns: 1fr; }
  .card--wide { grid-column: auto; }
  .card__body { padding: 30px 24px; }
  .hero__stats { width: 100%; margin-top: 56px; }
  .hero__stats > div { flex: 1; padding: 14px 6px; text-align: center; }
  .hero__stats strong { font-size: 1.35rem; }
  .hero__stats span { font-size: .7rem; line-height: 1.3; }
  .features, .values { grid-template-columns: 1fr; }
  .waitlist { flex-direction: column; border-radius: 20px; }
  .waitlist input { height: 46px; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
