/* ============ TOKENS ============ */
:root {
  --cream:     #F6F2E9;
  --cream-2:   #FBF9F3;
  --ink:       #17122E;   /* near-black navy */
  --ink-soft:  #423A5E;
  --purple:    #7C4DFF;
  --purple-d:  #341A6B;
  --magenta:   #E458C8;
  --pink-hi:   #F0A6E0;   /* marker highlight */
  --blue:      #4F9CF9;
  --line:      rgba(23,18,46,0.10);
  --radius:    22px;
  --shadow:    0 24px 60px -24px rgba(23,18,46,0.28);
  --shadow-sm: 0 8px 24px -12px rgba(23,18,46,0.25);
}

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

html { scroll-behavior: smooth; }

/* ============ ANIMATION SYSTEM ============ */
@media (prefers-reduced-motion: no-preference) {
  /* Scroll reveal (JS tags elements with [data-reveal]) */
  html.js [data-reveal] { opacity: 0; transform: translateY(26px); will-change: opacity, transform; }
  html.js [data-reveal].in {
    opacity: 1; transform: none;
    transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1);
  }
  html.js [data-reveal-scale] { opacity: 0; transform: translateY(26px) scale(.97); }
  html.js [data-reveal-scale].in {
    opacity: 1; transform: none;
    transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1);
  }

  /* Hero entrance on load */
  html.js .hero-anim { opacity: 0; animation: heroIn .9s cubic-bezier(.2,.7,.2,1) forwards; }
  html.js .hero-anim.d1 { animation-delay: .05s; }
  html.js .hero-anim.d2 { animation-delay: .18s; }
  html.js .hero-anim.d3 { animation-delay: .31s; }
  html.js .hero-anim.d4 { animation-delay: .44s; }
  html.js .hero-anim.d5 { animation-delay: .57s; }
  html.js .hero-anim.d6 { animation-delay: .72s; }

  /* Decorative asterisks: spin + grow/shrink + periodic fade out/in.
     Two animations run together — starDance owns transform (spin+scale),
     starTwinkle owns opacity — with staggered, mismatched durations so
     each star drifts out of sync for an organic, twinkly feel. */
  .hero .deco, .cta-band .deco, .split-visual .deco {
    animation: starDance var(--spin, 9s) linear infinite,
               starTwinkle var(--twinkle, 6s) ease-in-out infinite;
  }
  .deco-ast-1 { --spin: 9s;  --twinkle: 6.5s; animation-delay: 0s,      -0.5s; }
  .deco-ast-2 { --spin: 7s;  --twinkle: 5s;   animation-delay: -1.5s,   -2.5s; }
  .deco-ast-3 { --spin: 11s; --twinkle: 7.5s; animation-delay: -3s,     -1s; }
  .deco-ast-4 { --spin: 8s;  --twinkle: 6s;   animation-delay: -2s,     -4s; }
  .deco-ast-5 { --spin: 10s; --twinkle: 5.5s; animation-delay: -4s,     -2s; }
  .deco-ast-6 { --spin: 7.5s;--twinkle: 8s;   animation-delay: -1s,     -3.5s; }
  .deco-ast-7 { --spin: 12s; --twinkle: 6.8s; animation-delay: -2.5s,   -5s; }
}

@keyframes heroIn {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-14px) rotate(8deg); }
}
/* spin a full turn while easing between small and large */
@keyframes starDance {
  0%   { transform: rotate(0deg)   scale(0.7); }
  50%  { transform: rotate(180deg) scale(1.5); }
  100% { transform: rotate(360deg) scale(0.7); }
}
/* fade away and fade back in */
@keyframes starTwinkle {
  0%, 100% { opacity: 1; }
  45%      { opacity: 0.15; }
  50%      { opacity: 0; }
  55%      { opacity: 0.15; }
}
@keyframes drawIn { from { stroke-dashoffset: var(--len, 400); } to { stroke-dashoffset: 0; } }
@keyframes floatCard { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--cream);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
em { font-style: normal; font-weight: 700; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 15px; letter-spacing: -0.01em;
  padding: 12px 22px; border-radius: 999px;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  cursor: pointer; white-space: nowrap;
}
.btn-primary { background: var(--purple); color: #fff; box-shadow: 0 8px 20px -8px rgba(124,77,255,.7); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 26px -10px rgba(124,77,255,.75); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { background: rgba(23,18,46,.04); transform: translateY(-2px); }
.btn-lg { padding: 16px 30px; font-size: 17px; }

/* ============ NAV ============ */
.nav-wrap { position: sticky; top: 0; z-index: 50; padding: 18px 20px 0; transition: padding .3s ease; }
.nav-wrap.scrolled { padding-top: 10px; }
.nav {
  max-width: 1120px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(251,249,243,.82); backdrop-filter: blur(14px);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 12px 14px 12px 22px; box-shadow: var(--shadow-sm);
  transition: box-shadow .3s ease, background .3s ease, transform .3s ease;
}
.nav-wrap.scrolled .nav {
  background: rgba(251,249,243,.95);
  box-shadow: 0 14px 34px -16px rgba(23,18,46,.34);
}
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 21px; letter-spacing: -0.02em; }
.brand-mark { color: var(--magenta); font-size: 20px; }
.nav-links { display: flex; gap: 28px; font-weight: 600; font-size: 15px; }
.nav-links a { color: var(--ink-soft); transition: color .15s; }
.nav-links a:hover { color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.nav-login { font-weight: 600; font-size: 15px; color: var(--ink-soft); }
.nav-login:hover { color: var(--ink); }

/* ============ HERO ============ */
.hero {
  position: relative; max-width: 1000px; margin: 0 auto;
  padding: 70px 24px 40px; text-align: center;
}
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 800; letter-spacing: 0.06em;
  color: var(--blue); border: 1.5px solid var(--blue);
  padding: 7px 16px; border-radius: 999px; margin-bottom: 26px;
}
.badge-ast { font-size: 12px; }
.badge-pink { color: var(--magenta); border-color: var(--magenta); }
.badge-blue { color: var(--blue); border-color: var(--blue); }

.hero-title {
  font-size: clamp(44px, 8.5vw, 92px);
  font-weight: 900; letter-spacing: -0.045em; line-height: 0.98;
  position: relative; display: inline-block;
}
.title-highlight-wrap { position: relative; display: inline-block; }
.title-highlight { position: relative; z-index: 1; }
.title-highlight::before {
  content: ""; position: absolute; z-index: -1;
  left: -6px; bottom: 6%; height: 42%; width: 0;
  background: var(--pink-hi); border-radius: 4px;
  transform: rotate(-1.2deg);
}
html.js .title-highlight::before { animation: sweep .7s cubic-bezier(.2,.7,.2,1) .8s forwards; }
html:not(.js) .title-highlight::before { width: calc(100% + 12px); }
@keyframes sweep { to { width: calc(100% + 12px); } }
.hero-cloud { position: absolute; width: 190px; height: 56px; right: -30px; bottom: -34px; }

.hero-sub {
  max-width: 620px; margin: 40px auto 0;
  font-size: clamp(17px, 2.2vw, 21px); color: var(--ink-soft);
  font-weight: 500; letter-spacing: -0.01em;
}
.hero-cta { display: flex; gap: 14px; justify-content: center; margin-top: 34px; flex-wrap: wrap; }
.hero-note { margin-top: 20px; font-size: 14px; color: var(--ink-soft); font-weight: 500; }

/* ---- decorative asterisks ---- */
.deco { position: absolute; font-weight: 700; pointer-events: none; line-height: 1; z-index: 0; }
.deco-ast-1 { color: var(--purple);  font-size: 40px; top: 90px;  left: 6%;  transform: rotate(-8deg); }
.deco-ast-2 { color: var(--magenta); font-size: 30px; top: 150px; right: 9%; }
.deco-ast-3 { color: var(--blue);    font-size: 22px; top: 320px; left: 12%; }

/* ============ TERMINAL ============ */
.terminal-shell { position: relative; max-width: 760px; margin: 62px auto 0; }
.deco-arrow-hero { position: absolute; width: 116px; height: 88px; top: -66px; left: -18px; }
.terminal {
  background: #16121f; border-radius: 18px; overflow: hidden;
  box-shadow: var(--shadow); text-align: left;
  border: 1px solid rgba(255,255,255,.06);
}
.terminal-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 13px 16px; background: #211b2e; border-bottom: 1px solid rgba(255,255,255,.06);
}
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot-r { background: #ff5f57; } .dot-y { background: #febc2e; } .dot-g { background: #28c840; }
.terminal-title { margin-left: 10px; color: #a79fc0; font-size: 13px; font-family: 'JetBrains Mono', monospace; }
.terminal-title b { color: #cfc7e6; }
.terminal-live {
  margin-left: auto; display: inline-flex; align-items: center; gap: 6px;
  color: #7CF5A0; font-size: 11px; font-weight: 700; letter-spacing: .08em;
  font-family: 'JetBrains Mono', monospace;
}
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: #7CF5A0; box-shadow: 0 0 8px #7CF5A0; animation: pulse 1.4s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

.terminal-body { padding: 20px 20px 24px; font-family: 'JetBrains Mono', monospace; font-size: 14px; }
.line { display: flex; gap: 12px; padding: 8px 10px; border-radius: 10px; margin-bottom: 4px; align-items: baseline; }
.line-claude { background: rgba(255,255,255,.03); }
.who { flex-shrink: 0; font-weight: 700; font-size: 13px; }
.who-you    { color: var(--purple); }
.who-adam   { color: var(--magenta); }
.who-mia    { color: var(--blue); }
.who-claude { color: #EBE6F7; }
.msg { color: #c8c1dc; line-height: 1.55; }
.msg code { background: rgba(255,255,255,.09); color: #EBE6F7; padding: 1px 6px; border-radius: 5px; font-size: 12.5px; }
.cursor { display: inline-block; width: 9px; height: 17px; background: #7CF5A0; vertical-align: middle; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* reveal animation — only hide when JS is active (progressive enhancement) */
html.js .line { opacity: 0; transform: translateY(6px); }
html.js .line.show { opacity: 1; transform: none; transition: all .4s ease; }

/* ============ TRUST ============ */
.trust { max-width: 900px; margin: 20px auto 0; padding: 30px 24px 10px; text-align: center; }
.trust-label { font-size: 14px; color: var(--ink-soft); font-weight: 600; margin-bottom: 16px; }
.trust-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px; font-weight: 800; font-size: clamp(15px,2vw,19px); letter-spacing: -0.01em; }
.trust-dot { color: var(--magenta); font-size: 14px; }

/* ============ SECTIONS ============ */
.section { max-width: 1080px; margin: 0 auto; padding: 90px 24px; }
.section-head { max-width: 620px; margin-bottom: 52px; position: relative; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-title { font-size: clamp(32px, 5vw, 54px); font-weight: 900; letter-spacing: -0.04em; line-height: 1.02; margin-top: 18px; }
.section-lede { font-size: 18px; color: var(--ink-soft); font-weight: 500; margin-top: 20px; max-width: 520px; }
.ink-highlight { position: relative; z-index: 1; }
.ink-highlight::before {
  content: ""; position: absolute; z-index: -1; left: -4px; right: -4px; bottom: 4%; height: 40%;
  background: var(--pink-hi); border-radius: 4px; transform: rotate(-1deg);
}

/* ============ HOW / STEPS ============ */
.how .section-head { position: relative; }
.deco-arrow-how { position: absolute; width: 110px; height: 74px; top: -6px; right: 40px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step {
  background: var(--cream-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; box-shadow: var(--shadow-sm); position: relative;
  transition: transform .18s ease, box-shadow .18s ease;
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.step:hover .step-cmd { background: rgba(124,77,255,.18); }
.step-num { font-size: 13px; font-weight: 800; color: var(--magenta); letter-spacing: .1em; }
.step-cmd {
  display: inline-block; margin: 14px 0 18px; font-family: 'JetBrains Mono', monospace;
  font-size: 14px; font-weight: 500; color: var(--ink);
  background: rgba(124,77,255,.10); border: 1px solid rgba(124,77,255,.22);
  padding: 8px 12px; border-radius: 9px;
}
.step h3 { font-size: 21px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 8px; }
.step p { color: var(--ink-soft); font-size: 15px; font-weight: 500; }
.step b { color: var(--ink); }

/* ============ SPLIT ============ */
.split { display: grid; grid-template-columns: 1fr 0.85fr; gap: 60px; align-items: center; }
.check-list { list-style: none; margin-top: 26px; display: grid; gap: 14px; }
.check-list li { position: relative; padding-left: 32px; font-weight: 600; color: var(--ink); font-size: 16px; }
.check-list li::before {
  content: "✳"; position: absolute; left: 0; top: 0; color: var(--purple); font-weight: 800;
}
.split-visual { position: relative; display: flex; justify-content: center; }
.legend-card {
  background: var(--cream-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 30px; box-shadow: var(--shadow); width: 100%; max-width: 340px;
  display: grid; gap: 18px;
}
@media (prefers-reduced-motion: no-preference) {
  html.js .legend-card { animation: floatCard 5s ease-in-out infinite; }
}
.legend-row { transition: transform .15s ease; }
.legend-card:hover .legend-row:hover { transform: translateX(4px); }
.legend-row .chip { transition: box-shadow .2s ease, transform .2s ease; }
.legend-card:hover .legend-row:hover .chip { transform: scale(1.25); }
.legend-row { display: flex; align-items: center; gap: 14px; font-family: 'JetBrains Mono', monospace; font-weight: 700; font-size: 17px; }
.legend-note { margin-left: auto; font-family: 'Inter'; font-size: 13px; font-weight: 500; color: var(--ink-soft); }
.chip { width: 16px; height: 16px; border-radius: 5px; flex-shrink: 0; }
.chip-you { background: var(--purple); }
.chip-adam { background: var(--magenta); }
.chip-mia { background: var(--blue); }
.chip-claude { background: var(--ink); }
.deco-ast-4 { color: var(--purple);  font-size: 34px; top: -18px; right: 8px; }
.deco-ast-5 { color: var(--blue);    font-size: 24px; bottom: -14px; left: 10px; }

/* ============ FEATURES ============ */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--cream-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-icon { font-size: 30px; margin-bottom: 16px; }
.card h3 { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 8px; }
.card p { color: var(--ink-soft); font-size: 15px; font-weight: 500; }

/* ============ FAQ ============ */
.faq-list { display: grid; gap: 12px; max-width: 780px; }
.faq-item {
  background: var(--cream-2); border: 1px solid var(--line); border-radius: 16px;
  padding: 4px 24px; box-shadow: var(--shadow-sm);
}
.faq-item summary {
  cursor: pointer; list-style: none; padding: 20px 0; font-weight: 800; font-size: 18px;
  letter-spacing: -0.02em; display: flex; align-items: center; justify-content: space-between;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--purple); font-weight: 800; font-size: 24px; transition: transform .2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { color: var(--ink-soft); font-size: 16px; font-weight: 500; padding-bottom: 22px; max-width: 640px; }

/* ============ CTA BAND ============ */
.cta-band {
  position: relative; max-width: 1080px; margin: 40px auto 0; padding: 90px 24px;
  text-align: center; overflow: hidden;
}
.cta-title { font-size: clamp(38px, 6vw, 66px); font-weight: 900; letter-spacing: -0.045em; line-height: 1; }
.cta-sub { margin-top: 20px; font-size: 19px; color: var(--ink-soft); font-weight: 500; }
.cta-actions { margin-top: 34px; display: flex; gap: 16px; justify-content: center; align-items: center; flex-wrap: wrap; }
.cta-cmd {
  font-family: 'JetBrains Mono', monospace; font-size: 17px; font-weight: 500; color: var(--ink);
  background: rgba(124,77,255,.10); border: 1px solid rgba(124,77,255,.25);
  padding: 15px 22px; border-radius: 12px;
}
.deco-ast-6 { color: var(--magenta); font-size: 44px; top: 60px; left: 12%; transform: rotate(10deg); }
.deco-ast-7 { color: var(--purple);  font-size: 32px; bottom: 70px; right: 14%; }

/* ============ FOOTER ============ */
.footer { border-top: 1px solid var(--line); margin-top: 40px; padding: 50px 24px 40px; }
.footer-inner { max-width: 1080px; margin: 0 auto; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer-tag { color: var(--ink-soft); font-weight: 600; }
.footer-links { margin-left: auto; display: flex; gap: 26px; font-weight: 600; color: var(--ink-soft); }
.footer-links a:hover { color: var(--ink); }
.footer-fine { max-width: 1080px; margin: 26px auto 0; font-size: 13px; color: var(--ink-soft); font-weight: 500; }

/* ============ RESPONSIVE ============ */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .steps, .cards { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .deco-arrow-how { display: none; }
}
@media (max-width: 520px) {
  .hero { padding-top: 44px; }
  .terminal-body { font-size: 12.5px; }
  .deco { display: none; }
}
