:root {
  --bg: #faf6f0;
  --bg-2: #f3ebe0;
  --bg-3: #eae0d2;
  --text: #1c1712;
  --cream: #f3ece3;
  --muted: #6b6156;
  --gold: #c4893f;
  --gold-2: #9a6324;
  --ember: #d44e22;
  --green: #2a9d5c;
  --red: #d43c3c;
  --line: rgba(28, 23, 18, 0.1);
  --shadow: 0 32px 64px rgba(28, 23, 18, 0.1);
  --font: "IBM Plex Sans", system-ui, sans-serif;
  --radius: 28px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: var(--bg);
  font-family: var(--font);
  line-height: 1.5;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  opacity: 0.035;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.orb {
  pointer-events: none;
  position: fixed;
  z-index: 0;
  width: 42vw;
  height: 42vw;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.45;
}

.orb-a {
  top: -12vw;
  right: -8vw;
  background: radial-gradient(circle, #f0c878 0%, transparent 70%);
}

.orb-b {
  bottom: 10vh;
  left: -12vw;
  background: radial-gradient(circle, #f5b896 0%, transparent 70%);
}

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

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 7vw;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.nav.is-scrolled {
  border-bottom-color: var(--line);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.logo-mark {
  color: var(--gold);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.95rem;
  color: var(--muted);
}

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

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 16px;
  height: 1.5px;
  margin: 5px auto;
  background: currentColor;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border: 0;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
  background: #2e2720;
}

.btn:focus-visible,
.waitlist-form input:focus-visible,
.interrupt-btn:focus-visible,
.nav-links a:focus-visible,
.nav-toggle:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.btn-sm {
  padding: 10px 16px;
  font-size: 0.9rem;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}

.btn-ghost:hover {
  background: var(--bg-3);
}

.hero {
  padding: 9vh 7vw 12vh;
  max-width: 1100px;
}

.eyebrow,
.kicker {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: -0.045em;
  line-height: 1.05;
}

h1,
h2 {
  font-weight: 600;
  letter-spacing: -0.03em;
}

h1 {
  font-size: clamp(2.8rem, 8vw, 6.4rem);
  max-width: 16ch;
}

h1 em {
  display: block;
  font-style: normal;
  font-weight: 600;
  color: var(--gold-2);
}

.lede {
  max-width: 42rem;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
}

.hero-pills li {
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.88rem;
}

.stage,
.interrupt,
.steps,
.library,
.native,
.waitlist {
  padding: 10vh 7vw;
}

.stage {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 380px);
  gap: 8vw;
  align-items: center;
  background: linear-gradient(180deg, transparent, var(--bg-2) 18%, var(--bg-2));
}

.stage-copy p,
.interrupt-head p,
.library-head p,
.native p,
.waitlist p {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 40rem;
}

h2 {
  font-size: clamp(2rem, 5vw, 3.6rem);
  max-width: 16ch;
  margin-bottom: 18px;
}

.checklist {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.checklist li {
  position: relative;
  padding: 10px 0 10px 28px;
  color: var(--text);
  border-top: 1px solid var(--line);
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
}

.phone-wrap {
  display: flex;
  justify-content: center;
}

.phone {
  width: min(100%, 340px);
  aspect-ratio: 9 / 19;
  padding: 12px;
  border-radius: 42px;
  background: linear-gradient(160deg, #2a2622, #0a0908 40%);
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  color: var(--cream);
  --muted: #b4a89a;
}

.phone-notch {
  width: 108px;
  height: 18px;
  margin: 8px auto 0;
  border-radius: 20px;
  background: #050403;
}

.call-screen {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: calc(100% - 26px);
  padding: 28px 18px 22px;
  overflow: hidden;
  text-align: center;
}

.call-rings {
  position: absolute;
  inset: 18% 0 auto;
  height: 220px;
  pointer-events: none;
}

.call-rings span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 110px;
  height: 110px;
  border: 1px solid rgba(232, 184, 109, 0.35);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: ring 3.6s ease-out infinite;
}

.call-rings span:nth-child(2) {
  animation-delay: 1.2s;
}

.call-rings span:nth-child(3) {
  animation-delay: 2.4s;
}

@keyframes ring {
  from {
    width: 110px;
    height: 110px;
    opacity: 0.7;
  }
  to {
    width: 260px;
    height: 260px;
    opacity: 0;
  }
}

.call-kicker {
  margin: 8px 0 28px;
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.call-avatar {
  position: relative;
  z-index: 1;
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, #f0d4a4, var(--gold-2));
  color: #fff;
  font-size: 2rem;
  font-weight: 800;
}

.call-screen h3 {
  position: relative;
  z-index: 1;
  margin-top: 18px;
  font-size: 1.8rem;
}

.call-sub,
.call-meta {
  position: relative;
  z-index: 1;
  margin: 8px 0 0;
  color: var(--muted);
}

.call-meta {
  font-size: 0.85rem;
}

.call-actions {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  width: 100%;
  padding: 0 8px 8px;
}

.call-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  color: var(--cream);
  font-size: 0.78rem;
}

.call-btn svg {
  width: 54px;
  height: 54px;
  padding: 16px;
  border-radius: 50%;
}

.call-btn.decline svg {
  background: var(--red);
  transform: rotate(135deg);
}

.call-btn.answer svg {
  background: var(--green);
}

.interrupt {
  background: var(--bg);
}

.interrupt-head {
  max-width: 720px;
  margin-bottom: 48px;
}

.demo {
  display: flex;
  justify-content: center;
}

.demo-phone {
  width: min(100%, 420px);
  padding: 28px 24px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-2);
  box-shadow: var(--shadow);
}

.demo-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.85rem;
}

.demo-live {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 6px rgba(61, 207, 122, 0.12);
}

.demo-lesson {
  min-height: 6.4em;
  margin: 0;
  font-family: var(--font);
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.5;
}

.wave {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 42px;
  margin: 22px 0;
}

.wave span {
  flex: 1;
  height: 30%;
  border-radius: 99px;
  background: var(--gold);
  animation: eq 1.1s ease-in-out infinite;
}

.wave span:nth-child(odd) {
  animation-duration: 0.85s;
}

.wave span:nth-child(3n) {
  height: 70%;
  animation-delay: 0.15s;
}

.wave span:nth-child(4n) {
  height: 45%;
}

@keyframes eq {
  0%,
  100% {
    transform: scaleY(0.45);
  }
  50% {
    transform: scaleY(1);
  }
}

.demo.is-paused .wave span {
  animation-play-state: paused;
  opacity: 0.35;
}

.demo-chat {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.bubble {
  max-width: 92%;
  padding: 12px 14px;
  border-radius: 16px;
  font-size: 0.95rem;
}

.bubble.user {
  justify-self: end;
  background: var(--bg-3);
}

.bubble.ai {
  background: color-mix(in srgb, var(--gold) 16%, var(--bg-3));
}

.interrupt-btn {
  width: 100%;
  padding: 18px;
  border: 0;
  border-radius: 999px;
  background: var(--ember);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.interrupt-btn:hover {
  filter: brightness(1.05);
}

.interrupt-btn:disabled {
  cursor: default;
  opacity: 0.7;
}

.demo-hint {
  margin: 12px 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.82rem;
}

.step-grid,
.cats,
.native ul {
  display: grid;
  gap: 18px;
  padding: 0;
  margin: 40px 0 0;
  list-style: none;
}

.step-grid {
  grid-template-columns: repeat(4, 1fr);
}

.step-grid li,
.cats article,
.native li {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--bg-2);
}

.step-grid span {
  color: var(--gold);
  font-weight: 700;
}

.step-grid h3,
.cats h3,
.native strong {
  margin: 12px 0 10px;
  font-size: 1.2rem;
}

.step-grid p,
.cats p,
.native li {
  color: var(--muted);
}

.cats {
  grid-template-columns: repeat(5, 1fr);
}

.cats h3 {
  color: var(--gold);
  margin-top: 0;
}

.cats p {
  margin: 0 0 8px;
  color: var(--text);
}

.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee-track {
  display: flex;
  gap: 48px;
  width: max-content;
  padding: 18px 0;
  color: var(--muted);
  animation: ticker 32s linear infinite;
}

.marquee-track span {
  font-size: 1.1rem;
  letter-spacing: -0.03em;
}

@keyframes ticker {
  to {
    transform: translateX(-50%);
  }
}

.native {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.native ul {
  margin: 0;
}

.waitlist {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.waitlist h2 {
  max-width: 14ch;
}

.waitlist-form {
  display: flex;
  gap: 10px;
  width: min(100%, 520px);
  margin-top: 28px;
}

.waitlist-form input {
  flex: 1;
  min-width: 0;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-2);
  color: var(--text);
  outline: none;
}

.waitlist-form input:focus {
  border-color: var(--gold);
}

.form-note {
  margin-top: 14px;
  font-size: 0.9rem;
}

.form-note.is-ok {
  color: var(--green);
}

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 32px 7vw 48px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer-meta {
  text-align: right;
}

.footer-meta p {
  margin: 0;
}

.footer-credit {
  margin-top: 6px;
  font-size: 0.85rem;
}

.footer-links {
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.footer-links a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-links a:hover,
.footer-credit a:hover {
  color: var(--text);
}

.footer-credit a {
  color: inherit;
}

.legal {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 7vw 64px;
}

.legal h1 {
  margin: 8px 0 12px;
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.legal h2 {
  margin: 32px 0 12px;
  font-size: 1.25rem;
}

.legal p,
.legal li {
  color: var(--muted);
}

.legal strong,
.legal code {
  color: var(--text);
}

.legal a {
  color: var(--gold-2);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal ul {
  padding-left: 1.2em;
}

.legal li + li {
  margin-top: 8px;
}

.legal-meta {
  margin: 0 0 16px;
  font-size: 0.9rem;
}

.legal-note {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.45);
}

.reveal {
  animation: rise 0.8s ease both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1080px) {
  .step-grid,
  .cats {
    grid-template-columns: repeat(2, 1fr);
  }

  .native,
  .stage {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 16px 7vw 24px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
  }

  .nav.is-open .nav-links {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  .hero {
    padding-top: 6vh;
  }

  .step-grid,
  .cats,
  .native {
    grid-template-columns: 1fr;
  }

  .waitlist-form {
    flex-direction: column;
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-meta {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .call-rings span,
  .wave span,
  .marquee-track,
  .orb {
    animation: none !important;
  }
}
