/* ============================================================
   Echo — landing page. Light, Claude-purple, mockup-faithful.
   ============================================================ */

:root {
  --bg: #ffffff;
  --bg-2: #f6f5fd;
  --bg-3: #efedfb;
  --surface: #ffffff;
  --surface-2: #f4f3fb;
  --border: rgba(36, 27, 84, 0.10);
  --border-strong: rgba(36, 27, 84, 0.17);

  --text: #1a1730;
  --text-2: #5a5570;
  --text-3: #8e89a6;

  --accent: #6c5ce7;
  --accent-2: #8b7ff5;
  --accent-deep: #5544d4;
  --accent-soft: rgba(108, 92, 231, 0.10);
  --violet: #9b6cf2;
  --green: #22c55e;

  --code-bg: #14132a;
  --ink: #161427;

  --shadow-sm: 0 1px 2px rgba(36, 27, 84, 0.05), 0 1px 3px rgba(36, 27, 84, 0.06);
  --shadow-md: 0 10px 30px rgba(76, 60, 160, 0.10);
  --shadow-lg: 0 30px 70px rgba(76, 60, 160, 0.16);

  --radius: 18px;
  --radius-lg: 24px;
  --maxw: 1140px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "SF Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  background: var(--bg); color: var(--text); font-family: var(--font);
  line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip;
}
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1;
  background:
    radial-gradient(1100px 560px at 75% -8%, rgba(108, 92, 231, 0.12), transparent 60%),
    radial-gradient(820px 480px at 8% 2%, rgba(155, 108, 242, 0.08), transparent 55%),
    var(--bg);
}
a { color: inherit; text-decoration: none; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ===== Typography ===== */
.section__title { font-size: clamp(1.9rem, 4vw, 2.9rem); line-height: 1.1; letter-spacing: -0.025em; font-weight: 700; margin-bottom: 14px; color: var(--text); }
.section__lead { font-size: clamp(1.02rem, 1.6vw, 1.18rem); color: var(--text-2); max-width: 560px; }
.grad { background: linear-gradient(110deg, var(--accent) 10%, var(--violet)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

.pill { display: inline-flex; align-items: center; gap: 8px; font-size: 0.8rem; font-weight: 600; color: var(--accent); background: var(--accent-soft); border: 1px solid rgba(108,92,231,.18); padding: 6px 13px; border-radius: 999px; margin-bottom: 18px; }
.pill__sq { width: 12px; height: 12px; border-radius: 4px; background: linear-gradient(150deg, var(--accent-2), var(--accent)); }
.pill--onlt { background: rgba(255,255,255,.7); }

.sec-head { max-width: 680px; margin-bottom: 8px; position: relative; }
.sec-head--center { margin: 0 auto 8px; text-align: center; }
.sec-head--center .section__lead { margin: 0 auto; }
.sec-foot { margin-top: 40px; text-align: center; }
.sec-foot__pill { display: inline-flex; align-items: center; gap: 9px; color: var(--text-2); font-size: 0.88rem; font-weight: 500; background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow-sm); padding: 9px 18px; border-radius: 999px; }
.sec-foot__pill svg { color: var(--accent); }
.sec-foot strong { color: var(--text); }

/* ===== Brand ===== */
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 700; font-size: 1.14rem; letter-spacing: -0.01em; color: var(--text); }
.brand__mark { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; color: #fff; background: linear-gradient(150deg, var(--accent-2), var(--accent)); box-shadow: 0 6px 16px rgba(108, 92, 231, 0.34); }
.brand__mark svg { width: 21px; height: 21px; }

/* ===== Buttons ===== */
.btn { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; font-size: 0.96rem; border-radius: 999px; padding: 11px 20px; border: 1px solid transparent; cursor: pointer; white-space: nowrap; transition: transform 0.18s var(--ease), background 0.2s, border-color 0.2s, box-shadow 0.2s; }
.btn--lg { padding: 14px 26px; font-size: 1.02rem; }
.btn--sm { padding: 9px 17px; font-size: 0.9rem; }
.btn--full { width: 100%; justify-content: center; }
.btn--primary { background: linear-gradient(150deg, var(--accent-2), var(--accent)); color: #fff; box-shadow: 0 8px 22px rgba(108, 92, 231, 0.32); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(108, 92, 231, 0.42); }
.btn--ghost { background: #fff; border-color: var(--border-strong); color: var(--text); box-shadow: var(--shadow-sm); }
.btn--ghost:hover { background: var(--bg-2); transform: translateY(-2px); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* ===== Nav ===== */
.nav { position: sticky; top: 0; z-index: 50; backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px); background: rgba(255, 255, 255, 0.72); border-bottom: 1px solid transparent; transition: border-color 0.25s, background 0.25s, box-shadow 0.25s; }
.nav.is-scrolled { border-bottom-color: var(--border); background: rgba(255, 255, 255, 0.86); box-shadow: var(--shadow-sm); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 66px; gap: 20px; }
.nav .brand__mark { width: 30px; height: 30px; border-radius: 9px; }
.nav .brand__mark svg { width: 19px; height: 19px; }
.nav__links { display: flex; gap: 28px; margin-left: auto; }
.nav__links a { color: var(--text-2); font-size: 0.95rem; font-weight: 500; transition: color 0.18s; }
.nav__links a:hover { color: var(--text); }
.nav__actions { display: flex; align-items: center; gap: 14px; }
.ghlink { display: inline-flex; align-items: center; gap: 7px; color: var(--text-2); font-size: 0.92rem; font-weight: 500; transition: color 0.18s; }
.ghlink:hover { color: var(--accent); }
.nav__toggle { display: none; flex-direction: column; align-items: center; justify-content: center; gap: 5px; background: none; border: 0; cursor: pointer; min-width: 44px; min-height: 44px; }
.nav__toggle span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; }

/* ===== Hero ===== */
.hero { position: relative; padding: clamp(48px, 8vw, 92px) 0 clamp(56px, 8vw, 90px); overflow: hidden; }
.hero__glow { position: absolute; top: -160px; right: -60px; width: 720px; height: 560px; background: radial-gradient(closest-side, rgba(108, 92, 231, 0.16), transparent 70%); filter: blur(20px); pointer-events: none; animation: glowDrift 9s ease-in-out infinite alternate; }
@keyframes glowDrift { from { transform: translateY(0) scale(1); opacity: .85; } to { transform: translateY(16px) scale(1.06); opacity: 1; } }
.hero__inner { position: relative; display: grid; grid-template-columns: 1.02fr 1.05fr; gap: clamp(28px, 5vw, 56px); align-items: center; }
.hero__copy { max-width: 540px; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; font-size: 0.86rem; font-weight: 600; color: var(--text-2); background: #fff; border: 1px solid var(--border); padding: 7px 15px; border-radius: 999px; margin-bottom: 22px; box-shadow: var(--shadow-sm); }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(108, 92, 231, 0.16); }
.hero__title { font-size: clamp(2.3rem, 5vw, 3.7rem); line-height: 1.06; letter-spacing: -0.035em; font-weight: 700; margin-bottom: 18px; }
.hero__sub { font-size: clamp(1.02rem, 1.5vw, 1.18rem); color: var(--text-2); margin-bottom: 28px; max-width: 500px; }
.hero__actions { width: fit-content; max-width: 100%; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__run { display: flex; flex-direction: column; align-items: center; gap: 9px; margin-top: 18px; }
.hero__run-label { font-size: 0.82rem; font-weight: 500; color: var(--text-2); }
.cmd { position: relative; display: inline-flex; align-items: center; gap: 11px; padding: 12px 15px; font-family: var(--mono); font-size: 0.9rem; line-height: 1; background: linear-gradient(180deg, #221f42, var(--code-bg)); border: 1px solid rgba(255,255,255,.09); border-radius: 12px; box-shadow: 0 12px 26px -14px rgba(24,20,60,.7), inset 0 1px 0 rgba(255,255,255,.05); cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease); }
.cmd:hover { transform: translateY(-2px); border-color: rgba(139,127,245,.5); box-shadow: 0 18px 34px -14px rgba(76,60,160,.55), inset 0 1px 0 rgba(255,255,255,.07); }
.cmd:active { transform: translateY(0); transition-duration: .05s; }
.cmd:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; }
.cmd__prompt { color: var(--accent-2); font-weight: 700; user-select: none; }
.cmd__text { color: #eceafb; letter-spacing: .01em; user-select: none; }
.cmd__copy { position: relative; width: 17px; height: 17px; margin-left: 3px; color: #a09ac9; flex: none; transition: color .2s var(--ease); }
.cmd:hover .cmd__copy { color: #d6d2f2; }
.cmd__i { position: absolute; inset: 0; width: 17px; height: 17px; transition: opacity .2s var(--ease), transform .2s var(--ease); }
.cmd__i--done { color: var(--green); opacity: 0; transform: scale(.5); }
.cmd.is-copied .cmd__i--copy { opacity: 0; transform: scale(.5); }
.cmd.is-copied .cmd__i--done { opacity: 1; transform: scale(1); }
.cmd__toast { position: absolute; top: 0; right: 12px; font-family: var(--font); font-size: .66rem; font-weight: 700; letter-spacing: .03em; color: #05230f; background: var(--green); padding: 3px 8px; border-radius: 999px; opacity: 0; transform: translateY(2px) scale(.85); transform-origin: bottom right; pointer-events: none; transition: opacity .22s var(--ease), transform .22s var(--ease); }
.cmd.is-copied .cmd__toast { opacity: 1; transform: translateY(-16px) scale(1); }
@media (prefers-reduced-motion: reduce) {
  .cmd:hover { transform: none; }
  .cmd.is-copied .cmd__toast { transform: translateY(-16px); }
}
.hero__trust { list-style: none; display: flex; flex-wrap: wrap; gap: 18px; margin-top: 24px; }
.hero__trust li { display: inline-flex; align-items: center; gap: 8px; color: var(--text-2); font-size: 0.92rem; font-weight: 500; }
.tick { width: 18px; height: 18px; border-radius: 50%; flex-shrink: 0; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236c5ce7' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 11px no-repeat; }

/* ===== Hero visual ===== */
.hero__visual { position: relative; display: flex; justify-content: center; }

/* App / transcript card */
.appcard { position: relative; z-index: 2; width: 100%; max-width: 460px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; }
.appcard__tabs { display: flex; align-items: center; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.apptab { font-size: 0.82rem; font-weight: 600; color: var(--text-3); padding: 6px 11px; border-radius: 8px; white-space: nowrap; }
.apptab.is-active { color: var(--accent); background: var(--accent-soft); }
.appcard__mic { margin-left: auto; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; color: var(--accent); background: var(--accent-soft); }
.appcard__head { display: flex; align-items: center; gap: 11px; padding: 14px 16px 10px; }
.appcard__doc { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; color: var(--accent); background: var(--accent-soft); flex-shrink: 0; }
.appcard__head strong { font-size: 0.92rem; display: block; }
.appcard__head small { font-size: 0.76rem; color: var(--text-3); }
.appcard__copy { margin-left: auto; font-size: 0.76rem; font-weight: 600; color: var(--text-2); background: var(--bg-2); border: 1px solid var(--border); padding: 5px 11px; border-radius: 7px; }
.appcard__search { margin: 0 16px 4px; display: flex; align-items: center; gap: 8px; padding: 9px 12px; background: var(--bg-2); border: 1px solid var(--border); border-radius: 10px; color: var(--text-3); font-size: 0.82rem; }
.msglist { padding: 12px 16px; display: flex; flex-direction: column; gap: 12px; }
.msg { display: flex; gap: 10px; }
.msg__av { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; font-weight: 700; font-size: 0.74rem; color: #fff; flex-shrink: 0; }
.msg__av--you { background: linear-gradient(150deg, #9aa1b3, #6b7180); }
.msg__av--echo { background: linear-gradient(150deg, var(--accent-2), var(--accent)); color: #fff; }
.msg__av--echo svg { width: 18px; height: 18px; }
.msg__body { flex: 1; min-width: 0; }
.msg__tag { display: inline-block; font-size: 0.64rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); margin-bottom: 4px; }
.msg__tag--accent { color: var(--accent); }
.msg__body p { font-size: 0.9rem; line-height: 1.5; }
.msg--raw p { color: var(--text-3); }
.msg--clean p { color: var(--text); }
.appcard__player { display: flex; align-items: center; gap: 10px; padding: 13px 16px; border-top: 1px solid var(--border); }
.appcard__time { margin-left: auto; font-size: 0.76rem; color: var(--text-3); font-variant-numeric: tabular-nums; }
.demo__rec { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; box-shadow: 0 0 0 0 rgba(255, 95, 87, 0.5); animation: pulse 1.8s infinite; flex-shrink: 0; }
.demo__rec--static { animation: none; background: var(--accent); }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(255,95,87,.5)} 70%{box-shadow:0 0 0 8px rgba(255,95,87,0)} 100%{box-shadow:0 0 0 0 rgba(255,95,87,0)} }
.wave { display: inline-flex; align-items: center; gap: 3px; height: 20px; }
.wave i { width: 3px; height: 7px; border-radius: 2px; background: var(--accent); animation: wave 1s ease-in-out infinite; }
.wave i:nth-child(2n){animation-delay:.12s} .wave i:nth-child(3n){animation-delay:.24s} .wave i:nth-child(4n){animation-delay:.06s} .wave i:nth-child(5n){animation-delay:.18s}
@keyframes wave { 0%,100%{height:6px;opacity:.5} 50%{height:18px;opacity:1} }

/* typing caret state */
.msg.is-typing p::after { content: ""; display: inline-block; width: 2px; height: 1.05em; margin-left: 1px; vertical-align: -0.18em; background: var(--accent); border-radius: 1px; animation: caretBlink 0.9s steps(1) infinite; }
@keyframes caretBlink { 0%,49%{opacity:1} 50%,100%{opacity:0} }

/* floating private note */
.floatnote { position: absolute; left: -18px; bottom: -22px; z-index: 3; display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 11px 14px; box-shadow: var(--shadow-md); max-width: 230px; font-size: 0.8rem; color: var(--text-2); }
.floatnote strong { color: var(--text); }
.floatnote__lock { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; color: var(--green); background: rgba(34,197,94,.12); flex-shrink: 0; }

/* ===== Hero visual: live dictation (voice → text) ===== */
.dictate { position: relative; z-index: 2; width: 100%; max-width: 482px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; }
.dictate__top { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.dictate__rec { display: inline-flex; align-items: center; gap: 8px; font-size: 0.82rem; font-weight: 600; color: var(--text); }
.dictate__recdot { width: 9px; height: 9px; border-radius: 50%; background: #ff5f57; box-shadow: 0 0 0 0 rgba(255, 95, 87, 0.5); animation: pulse 1.8s infinite; flex-shrink: 0; }
.dictate__engine { font-size: 0.76rem; color: var(--text-3); }
.dictate__time { margin-left: auto; font-size: 0.78rem; color: var(--text-3); font-variant-numeric: tabular-nums; }

.dictate__stage { position: relative; padding: 4px 0 2px; background:
  radial-gradient(120% 80% at 50% 40%, rgba(108, 92, 231, 0.06), transparent 70%); }
.dictate__flow { display: block; width: 100%; height: auto; }
.dictate__flowtext { font-family: var(--font); font-size: 21px; font-weight: 650; letter-spacing: -0.012em; }
.dictate__spark { filter: drop-shadow(0 0 5px rgba(155, 108, 242, 0.8)); }

.dictate__capsule { position: absolute; top: 47%; left: 50%; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 13px; padding: 11px 16px; background: rgba(255, 255, 255, 0.96); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); border: 1px solid var(--border); border-radius: 999px; box-shadow: var(--shadow-md); }
.dictate__mic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: #fff; background: linear-gradient(150deg, var(--accent-2), var(--accent)); box-shadow: 0 6px 16px rgba(108, 92, 231, 0.42); flex-shrink: 0; }
.wave--lg { height: 30px; }
.wave--lg i { width: 3.5px; animation-name: waveLg; }
@keyframes waveLg { 0%, 100% { height: 7px; opacity: .55; } 50% { height: 26px; opacity: 1; } }

.dictate__out { padding: 13px 18px 10px; border-top: 1px solid var(--border); }
.dictate__outtag { display: inline-flex; align-items: center; gap: 6px; font-size: 0.64rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.dictate__outtag svg { width: 13px; height: 13px; }
.dictate__refined { font-size: 0.96rem; line-height: 1.55; color: var(--text); min-height: 2.97em; }
.dictate__out.is-typing .dictate__refined::after { content: ""; display: inline-block; width: 2px; height: 1.05em; margin-left: 1px; vertical-align: -0.18em; background: var(--accent); border-radius: 1px; animation: caretBlink 0.9s steps(1) infinite; }

.dictate__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px; border-top: 1px solid var(--border); background: var(--bg-2); }
.dictate__hint { display: inline-flex; align-items: center; gap: 8px; font-size: 0.8rem; color: var(--text-2); }
.dictate__dest { display: inline-flex; align-items: center; gap: 7px; font-size: 0.78rem; font-weight: 600; color: var(--accent); }
.dictate__dest svg { width: 14px; height: 14px; }

/* ===== Mascot ===== */
.mascot { background-image: url("img/mascots.png"); background-repeat: no-repeat; background-size: 420% auto; pointer-events: none; -webkit-mask-image: radial-gradient(ellipse 62% 64% at 52% 46%, #000 70%, transparent 90%); mask-image: radial-gradient(ellipse 62% 64% at 52% 46%, #000 70%, transparent 90%); filter: drop-shadow(0 18px 26px rgba(76,60,160,.18)); }
.mascot--wave { position: absolute; z-index: 1; right: -34px; bottom: -52px; width: 168px; height: 178px; background-position: 1% 42%; }
.mascot--peek { position: absolute; z-index: 1; right: 0; top: -10px; width: 120px; height: 128px; background-position: 66% 42%; }

/* ===== Section frames ===== */
.features, .how, .workflows, .oss { padding: clamp(64px, 9vw, 110px) 0; }
.features .container { position: relative; }
.how { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.oss { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* ===== Features ===== */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 44px; }
.feature { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); transition: transform 0.22s var(--ease), border-color 0.22s, box-shadow 0.22s; }
.feature:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: var(--shadow-md); }
.feature__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 13px; color: var(--accent); background: var(--accent-soft); border: 1px solid rgba(108,92,231,.16); margin-bottom: 16px; }
.feature__icon svg { width: 24px; height: 24px; }
.feature h3 { font-size: 1.1rem; letter-spacing: -0.01em; margin-bottom: 7px; }
.feature p { color: var(--text-2); font-size: 0.95rem; margin-bottom: 16px; }
.feature__preview { margin-top: auto; background: var(--bg-2); border: 1px solid var(--border); border-radius: 11px; padding: 11px 12px; display: flex; align-items: center; gap: 9px; min-height: 46px; font-size: 0.8rem; color: var(--text-3); }
.fp-play { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: #fff; flex-shrink: 0; }
.fp-wave { display: inline-flex; align-items: center; gap: 3px; height: 20px; }
.fp-wave i { width: 3px; border-radius: 2px; background: linear-gradient(var(--accent-2), var(--accent)); height: 8px; }
.fp-wave i:nth-child(odd){ height: 15px; } .fp-wave i:nth-child(3n){ height: 19px; } .fp-wave i:nth-child(4n){ height: 6px; }
.fp-lines { flex-direction: column; align-items: stretch; gap: 7px; }
.fpl { height: 7px; border-radius: 4px; background: var(--border-strong); width: 100%; }
.fpl:nth-child(2){ width: 80%; }
.fpl--ok { height: auto; background: none; display: inline-flex; align-items: center; gap: 6px; color: var(--green); font-weight: 600; width: auto; }
.fp-chips { flex-wrap: wrap; }
.fp-chips span { font-family: var(--mono); font-size: 0.72rem; color: var(--accent-deep); background: var(--accent-soft); border: 1px solid rgba(108,92,231,.16); padding: 3px 8px; border-radius: 6px; }
.fp-export { justify-content: space-between; color: var(--text-2); font-weight: 500; }
.fp-ready { font-size: 0.72rem; font-weight: 700; color: var(--accent); background: var(--accent-soft); padding: 3px 9px; border-radius: 999px; }
.fp-private .fp-ready { color: var(--green); background: rgba(34,197,94,.12); margin-right: 4px; }
.fp-search svg { color: var(--text-3); }

/* ===== How / steps + flow ===== */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 44px; }
.step { position: relative; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 22px; box-shadow: var(--shadow-sm); }
.step__num { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; font-weight: 700; color: #fff; background: linear-gradient(150deg, var(--accent-2), var(--accent)); margin-bottom: 14px; box-shadow: 0 6px 16px rgba(108,92,231,.32); }
.step h3 { font-size: 1.08rem; margin-bottom: 6px; }
.step p { color: var(--text-2); font-size: 0.93rem; }

.flow { display: flex; align-items: stretch; gap: 8px; margin-top: 28px; }
.flow__node { flex: 1; display: flex; align-items: center; gap: 11px; background: #fff; border: 1px solid var(--border); border-radius: 13px; padding: 13px 15px; box-shadow: var(--shadow-sm); }
.flow__ic { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; color: var(--accent); background: var(--accent-soft); flex-shrink: 0; }
.flow__ic--accent { color: #fff; background: linear-gradient(150deg, var(--accent-2), var(--accent)); }
.flow__node strong { display: block; font-size: 0.9rem; }
.flow__node small { font-size: 0.74rem; color: var(--text-3); }
.flow__node--accent { background: linear-gradient(150deg, rgba(108,92,231,.1), rgba(155,108,242,.06)); border-color: rgba(108,92,231,.28); }
.flow__node--accent strong { color: var(--accent-deep); }
.flow__arrow { display: grid; place-items: center; color: var(--accent); flex-shrink: 0; }

/* ===== Built for workflows ===== */
.workflows__inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 5vw, 60px); align-items: center; }
.appcard--wide { max-width: none; }
.appcard__split { display: grid; grid-template-columns: 1.25fr 0.85fr; }
.appcard__main { min-width: 0; }
.appcard__side { border-left: 1px solid var(--border); background: var(--bg-2); padding: 18px 18px 20px; }
.appcard__side h4 { font-size: 0.7rem; text-transform: uppercase; letter-spacing: .07em; color: var(--text-3); margin-bottom: 12px; }
.sidelist { list-style: none; display: grid; gap: 10px; margin-bottom: 18px; }
.sidelist li { display: flex; align-items: flex-start; gap: 9px; font-size: 0.82rem; color: var(--text-2); }
.sl-check { margin-top: 2px; width: 16px; height: 16px; border-radius: 5px; flex-shrink: 0; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='11' viewBox='0 0 24 24' fill='none' stroke='%236c5ce7' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 10px no-repeat; }
.benefits { list-style: none; display: grid; gap: 18px; margin: 26px 0 22px; }
.benefits li { display: flex; gap: 14px; }
.benefit__ic { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; color: var(--accent); background: var(--accent-soft); border: 1px solid rgba(108,92,231,.16); flex-shrink: 0; }
.benefit__ic svg { width: 21px; height: 21px; }
.benefits strong { display: block; font-size: 1rem; margin-bottom: 2px; }
.benefits span { color: var(--text-2); font-size: 0.92rem; }
.link-arrow { color: var(--accent); font-weight: 600; }
.link-arrow:hover { text-decoration: underline; }

/* ===== Open source ===== */
.oss__inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.oss__text { position: relative; }
.oss__stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 26px 0; }
.oss__stats div { text-align: left; }
.oss__stats strong { display: block; font-size: 1.7rem; font-weight: 700; letter-spacing: -0.03em; background: linear-gradient(140deg, var(--accent), var(--violet)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.oss__stats span { font-size: 0.82rem; color: var(--text-3); }
.oss__cta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.oss__cta-note { font-size: 0.86rem; color: var(--text-3); max-width: 220px; }

.codecard { position: relative; background: var(--code-bg); border: 1px solid rgba(36,27,84,.25); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.codecard__bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,.07); }
.cc-dot { width: 11px; height: 11px; border-radius: 50%; background: #3a3658; }
.cc-dot:nth-child(1){ background: #ff5f57; } .cc-dot:nth-child(2){ background: #febc2e; } .cc-dot:nth-child(3){ background: #28c840; }
.codecard__title { margin-left: auto; font-family: var(--mono); font-size: 0.76rem; color: #6f6a93; }
.codecard pre { padding: 20px; overflow-x: auto; }
.codecard code { font-family: var(--mono); font-size: 0.86rem; line-height: 1.85; color: #e8e6f5; white-space: pre; }
.c-muted { color: #6f6a93; } .c-ok { color: #5fd38a; }
.copy { position: absolute; top: 48px; right: 14px; z-index: 2; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); color: #cdc9e6; font-size: 0.78rem; font-weight: 600; padding: 6px 12px; border-radius: 8px; cursor: pointer; transition: color 0.18s, background 0.18s; }
.copy:hover { color: #fff; background: rgba(255,255,255,.16); }
.copy.is-copied { color: #5fd38a; border-color: rgba(95,211,138,.4); }

.oss__list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 22px; }
.oss__list li { display: flex; gap: 12px; }
.oss__ic { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; color: var(--accent); background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow-sm); flex-shrink: 0; }
.oss__ic svg { width: 19px; height: 19px; }
.oss__list strong { display: block; font-size: 0.92rem; }
.oss__list span { font-size: 0.82rem; color: var(--text-3); }

/* ===== Final CTA ===== */
.cta { padding: clamp(40px, 7vw, 80px) 0; }
.cta__card { position: relative; overflow: hidden; text-align: center; background: linear-gradient(160deg, var(--bg-3), var(--bg-2)); border: 1px solid var(--border); border-radius: 30px; padding: clamp(48px, 7vw, 84px) 24px; box-shadow: var(--shadow-md); }
.cta__glow { position: absolute; z-index: 0; bottom: -240px; left: 50%; transform: translateX(-50%); width: 760px; height: 560px; background: radial-gradient(closest-side, rgba(108,92,231,.16), transparent 70%); pointer-events: none; }
.cta__card > *:not(.cta__glow) { position: relative; z-index: 1; }
.cta__title { font-size: clamp(2rem, 4.4vw, 3rem); letter-spacing: -0.03em; font-weight: 700; margin-bottom: 14px; }
.cta__lead { color: var(--text-2); font-size: 1.08rem; max-width: 500px; margin: 0 auto 28px; }
.cta__card .hero__cta { justify-content: center; }

/* ===== Footer ===== */
.footer { border-top: 1px solid var(--border); padding: 60px 0 34px; background: #fff; }
.footer__inner { display: grid; grid-template-columns: 1.5fr 2.6fr; gap: 48px; }
.footer__brand p { color: var(--text-3); font-size: 0.92rem; margin: 14px 0 16px; max-width: 260px; }
.footer__badges { display: flex; gap: 8px; flex-wrap: wrap; }
.footer__badges span { font-size: 0.74rem; font-weight: 600; color: var(--text-2); background: var(--bg-2); border: 1px solid var(--border); padding: 4px 10px; border-radius: 999px; }
.footer__cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.footer__cols h4 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-3); margin-bottom: 14px; }
.footer__cols a { display: block; color: var(--text-2); font-size: 0.92rem; margin-bottom: 10px; transition: color 0.18s; }
.footer__cols a:hover { color: var(--accent); }
.footer__loop p { color: var(--text-3); font-size: 0.86rem; margin-bottom: 12px; }
.footer__watch { display: inline-flex !important; align-items: center; gap: 8px; font-weight: 600; color: var(--accent) !important; background: var(--accent-soft); border: 1px solid rgba(108,92,231,.2); padding: 8px 14px; border-radius: 10px; margin-bottom: 0 !important; }
.footer__watch:hover { background: rgba(108,92,231,.16); }
.footer__social { display: flex; gap: 10px; margin-top: 14px; }
.footer__social a { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; color: var(--text-2); background: var(--bg-2); border: 1px solid var(--border); margin: 0; }
.footer__social a:hover { color: var(--accent); }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--border); color: var(--text-3); font-size: 0.86rem; }

kbd { font-family: var(--mono); font-size: 0.84em; background: #fff; border: 1px solid var(--border-strong); border-bottom-width: 2px; border-radius: 6px; padding: 2px 7px; color: var(--text); box-shadow: var(--shadow-sm); }

/* ===== Reveal + entrance ===== */
.reveal { opacity: 0; }
.reveal.is-in { animation: revealIn 0.7s var(--ease) both; }
@keyframes revealIn { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.grid .feature:nth-child(2).is-in { animation-delay: .07s; } .grid .feature:nth-child(3).is-in { animation-delay: .14s; }
.grid .feature:nth-child(4).is-in { animation-delay: .21s; } .grid .feature:nth-child(5).is-in { animation-delay: .28s; } .grid .feature:nth-child(6).is-in { animation-delay: .35s; }
.steps .step:nth-child(2).is-in { animation-delay: .08s; } .steps .step:nth-child(3).is-in { animation-delay: .16s; } .steps .step:nth-child(4).is-in { animation-delay: .24s; }
.hero__copy .eyebrow { animation: heroIn .7s var(--ease) both; }
.hero__title { animation: heroIn .7s var(--ease) .08s both; }
.hero__sub { animation: heroIn .7s var(--ease) .16s both; }
.hero__copy .hero__cta { animation: heroIn .7s var(--ease) .24s both; }
.hero__trust { animation: heroIn .7s var(--ease) .32s both; }
@keyframes heroIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__copy { max-width: 620px; }
  .hero__visual { margin-top: 24px; justify-content: flex-start; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .workflows__inner, .oss__inner { grid-template-columns: 1fr; }
  .flow { flex-wrap: wrap; }
  .flow__arrow { transform: rotate(90deg); }
  .footer__inner { grid-template-columns: 1fr; }
  /* The features mascot only has clean whitespace in the desktop two-column layout. */
  .mascot--peek { display: none; }
}
@media (max-width: 680px) {
  .nav__links, .nav__actions .ghlink span { display: none; }
  .nav__toggle { display: flex; }
  .nav__links.is-open { display: flex; position: absolute; top: 66px; left: 0; right: 0; flex-direction: column; gap: 0; background: rgba(255,255,255,.97); backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); padding: 8px 24px 16px; box-shadow: var(--shadow-md); }
  .nav__links.is-open a { padding: 12px 0; border-bottom: 1px solid var(--border); }
  .grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .appcard__split { grid-template-columns: 1fr; }
  .appcard__side { border-left: none; border-top: 1px solid var(--border); }
  .oss__stats { grid-template-columns: repeat(2, 1fr); }
  .oss__list { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
