:root {
  --navy: #0E1F43;
  --navy-2: #13285A;
  --navy-deep: #0A1631;
  --blue: #2E69F9;
  --blue-600: #1F55DB;
  --blue-50: #EEF3FF;
  --blue-100: #DCE6FF;
  --ink: #0E1F43;
  --text: #33405C;
  --muted: #6A7591;
  --line: #E3E8F2;
  --bg: #FFFFFF;
  --bg-soft: #F6F8FC;
  --success: #12A36D;
  --warn: #E59A16;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(14,31,67,.06), 0 2px 8px rgba(14,31,67,.05);
  --shadow: 0 2px 6px rgba(14,31,67,.06), 0 18px 40px -12px rgba(14,31,67,.18);
  --shadow-lg: 0 30px 80px -20px rgba(14,31,67,.35);
  --font-display: 'General Sans', 'Satoshi', system-ui, sans-serif;
  --font-body: 'Satoshi', 'General Sans', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --wrap: 1200px;
  --ease: cubic-bezier(.2,.7,.2,1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; font-family: var(--font-body); color: var(--text); background: var(--bg); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); margin: 0; letter-spacing: -0.02em; line-height: 1.1; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.accent { color: var(--blue); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; font: 600 15px/1 var(--font-body); padding: 15px 22px; border-radius: 12px; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s, border-color .25s; white-space: nowrap; }
.btn svg { transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 8px 22px -8px rgba(46,105,249,.7); }
.btn-primary:hover { background: var(--blue-600); transform: translateY(-2px); box-shadow: 0 14px 28px -10px rgba(46,105,249,.8); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -12px rgba(0,0,0,.5); }
.btn-outline-light { color: #fff; border-color: rgba(255,255,255,.3); background: transparent; }
.btn-outline-light:hover { border-color: #fff; transform: translateY(-2px); }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid rgba(46,105,249,.45); outline-offset: 2px; }


/* Nav */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.82); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.nav.scrolled { border-color: var(--line); box-shadow: 0 6px 24px -18px rgba(14,31,67,.4); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 74px; gap: 24px; }
.nav-logo img { height: 34px; width: auto; }
.nav-links { display: flex; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; font-weight: 500; font-size: 15px; color: var(--text); position: relative; }
.nav-links a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-cta { display: flex; gap: 10px; align-items: center; }
.nav-cta .btn { padding: 12px 18px; }
.nav-signin { font-weight: 600; font-size: 15px; text-decoration: none; color: var(--ink); padding: 0 8px; }
.menu-btn { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; width: 44px; height: 44px; cursor: pointer; color: var(--ink); }

/* Hero */
.hero { position: relative; padding: 76px 0 40px; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background:
  radial-gradient(900px 500px at 85% -10%, rgba(46,105,249,.14), transparent 60%),
  radial-gradient(700px 400px at -10% 30%, rgba(46,105,249,.07), transparent 60%);
  pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.02fr 1fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 600 13px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--blue); }
.eyebrow::before { content: ''; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }
.pill-badge { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 14px; font-weight: 500; color: var(--ink); box-shadow: var(--shadow-sm); }
.pill-badge b { background: var(--blue-50); color: var(--blue); font-size: 12px; padding: 4px 9px; border-radius: 999px; font-weight: 700; }
.hero h1 { font-size: clamp(44px, 6.1vw, 78px); font-weight: 600; letter-spacing: -0.035em; line-height: 1.04; margin: 26px 0 22px; }
.hero h1 .accent { display: inline-block; position: relative; }
.hero-sub { font-size: 19px; max-width: 540px; color: var(--text); }
.hero-ctas { display: flex; gap: 12px; margin-top: 34px; flex-wrap: wrap; }
.trust-row { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 30px; list-style: none; padding: 0; font-size: 15px; color: var(--muted); }
.trust-row li { display: flex; align-items: center; gap: 8px; }
.trust-row svg { color: var(--blue); flex: none; }

/* Hero stage */
.stage { position: relative; min-height: 560px; }
.doc { position: absolute; right: 0; top: 10px; width: 380px; background: #fff; border-radius: 16px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); padding: 30px 30px 26px; transform: rotate(1.2deg); }
.doc-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.doc-title { font: 600 16px/1.2 var(--font-display); color: var(--ink); }
.doc-meta { font: 500 11px/1 var(--font-mono); color: var(--muted); letter-spacing: .04em; }
.sk { height: 8px; border-radius: 4px; background: #EDF1F8; margin: 9px 0; }
.sk.w90{width:90%}.sk.w80{width:80%}.sk.w70{width:70%}.sk.w60{width:60%}.sk.w40{width:40%}
.field { position: relative; margin-top: 14px; border: 1.5px dashed var(--blue); background: rgba(46,105,249,.06); border-radius: 8px; padding: 10px 12px; font-size: 13px; color: var(--ink); display: flex; justify-content: space-between; align-items: center; }
.field small { font: 600 10px/1 var(--font-mono); color: var(--blue); letter-spacing: .06em; text-transform: uppercase; }
.field.filled { border-style: solid; border-color: #CFE0FF; background: #F5F8FF; }
.sig-box { margin-top: 18px; border-radius: 10px; border: 1.5px dashed var(--blue); background: rgba(46,105,249,.05); height: 96px; position: relative; overflow: hidden; }
.sig-box .lbl { position: absolute; left: 12px; top: 10px; font: 600 10px/1 var(--font-mono); color: var(--blue); letter-spacing: .06em; text-transform: uppercase; }
.sig-box .base { position: absolute; left: 12px; right: 12px; bottom: 22px; height: 1px; background: #C5D3EE; }
.sig-box svg { position: absolute; left: 10px; top: 14px; width: calc(100% - 20px); height: 76px; }
.sig-path { fill: none; stroke: var(--navy); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 900; stroke-dashoffset: 900; }
.sig-box.signed { border-style: solid; border-color: #BFE6D5; background: #F3FBF7; }
.sig-box.signed .lbl { color: var(--success); }

.float-card { position: absolute; background: #fff; border-radius: 14px; box-shadow: var(--shadow); border: 1px solid var(--line); padding: 14px 16px; font-size: 14px; }
.ai-card { left: -44px; top: 96px; width: 226px; }
.ai-card .t { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink); font-size: 14px; margin-bottom: 10px; }
.ai-card .spark { width: 26px; height: 26px; border-radius: 8px; background: linear-gradient(135deg, var(--blue), #6E9BFF); display: grid; place-items: center; color: #fff; }
.ai-card ul { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 7px; }
.ai-card li { display: flex; align-items: center; gap: 8px; color: var(--text); font-size: 13px; }
.ai-card li i { width: 16px; height: 16px; border-radius: 5px; background: var(--blue-50); color: var(--blue); display: grid; place-items: center; font-style: normal; font-size: 10px; font-weight: 800; }
.ai-card .acts { display: flex; gap: 6px; }
.ai-card .acts span { flex: 1; text-align: center; padding: 7px 0; border-radius: 8px; font-weight: 600; font-size: 12px; background: var(--blue); color: #fff; }
.ai-card .acts span.alt { background: var(--bg-soft); color: var(--ink); }
.status-card { left: 0; bottom: 24px; width: 270px; }
.status-card .row { display: flex; align-items: center; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.status-card .row:last-child { border: 0; }
.status-card .who { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 600; }
.avatar { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; color: #fff; }
.chip { font: 600 11px/1 var(--font-body); padding: 5px 9px; border-radius: 999px; background: var(--bg-soft); color: var(--muted); transition: background .4s, color .4s; }
.chip.viewed { background: #FFF5E1; color: #A76A00; }
.chip.signed { background: #E3F7EE; color: #0B7D52; }
.chip.sent { background: var(--blue-50); color: var(--blue); }
.token-card { right: -14px; bottom: 54px; display: flex; align-items: center; gap: 12px; padding: 12px 16px; }
.token-card .num { font: 700 22px/1 var(--font-display); color: var(--ink); }
.token-card .sub { font-size: 12px; color: var(--muted); line-height: 1.3; }
.ph-tag { position: absolute; top: -12px; right: 18px; z-index: 3; font: 600 10px/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: #fff; border: 1px dashed #B9C4DA; padding: 6px 9px; border-radius: 6px; }

/* Marquee */
.marquee { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-soft); overflow: hidden; padding: 20px 0; margin-top: 30px; }
.marquee-track { display: flex; gap: 48px; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span { font: 600 18px/1 var(--font-display); color: var(--ink); white-space: nowrap; display: flex; align-items: center; gap: 48px; }
.marquee span::after { content: ''; width: 22px; height: 8px; border-bottom: 2.5px solid var(--blue); border-radius: 0 0 50% 50%; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Sections */
section { position: relative; }
.section { padding: 120px 0; }
.section-head { max-width: 760px; margin-bottom: 60px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head h2 { font-size: clamp(34px, 4.2vw, 54px); font-weight: 600; letter-spacing: -0.03em; margin: 18px 0 18px; }
.section-head p { font-size: 19px; color: var(--text); }

/* Value cards */
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.value-card { padding: 34px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: #fff; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; }
.value-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: #CBD6EC; }
.value-card .ic { width: 52px; height: 52px; border-radius: 14px; background: var(--blue-50); color: var(--blue); display: grid; place-items: center; margin-bottom: 24px; }
.value-card h3 { font-size: 24px; font-weight: 600; margin-bottom: 12px; }
.value-card p { color: var(--text); font-size: 16px; }

/* Workflow (sticky) */
.workflow { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.wf-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 70px; align-items: start; }
.wf-steps { list-style: none; margin: 0; padding: 0; }
.wf-step { padding: 28px 0 28px 30px; border-left: 2px solid var(--line); position: relative; min-height: 46vh; display: flex; flex-direction: column; justify-content: center; transition: opacity .4s; opacity: .38; }
.wf-step::before { content: ''; position: absolute; left: -2px; top: 0; bottom: 0; width: 2px; background: var(--blue); transform: scaleY(0); transform-origin: top; transition: transform .6s var(--ease); }
.wf-step.active { opacity: 1; }
.wf-step.active::before { transform: scaleY(1); }
.wf-num { font: 600 13px/1 var(--font-mono); color: var(--blue); letter-spacing: .08em; }
.wf-step h3 { font-size: 30px; font-weight: 600; margin: 12px 0 12px; }
.wf-step p { font-size: 17px; max-width: 440px; }
.wf-step ul { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 8px; font-size: 15px; }
.wf-step li { display: flex; gap: 10px; align-items: flex-start; }
.wf-step li svg { color: var(--blue); margin-top: 4px; flex: none; }
.wf-visual { position: sticky; top: 120px; }
.wf-progress { display: flex; gap: 6px; margin-bottom: 18px; }
.wf-progress span { flex: 1; height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; position: relative; }
.wf-progress span::after { content: ''; position: absolute; inset: 0; background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.wf-progress span.on::after { transform: scaleX(1); }
.wf-labels { display: flex; justify-content: space-between; font: 600 11px/1 var(--font-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 22px; }
.wf-labels b { font-weight: 600; transition: color .3s; }
.wf-labels b.on { color: var(--ink); }

/* Screenshot placeholder */
.shot { position: relative; border-radius: 16px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; }
.shot-bar { height: 42px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 7px; padding: 0 16px; background: #FBFCFE; }
.shot-bar i { width: 11px; height: 11px; border-radius: 50%; background: #E1E6F0; }
.shot-bar .url { margin-left: 14px; flex: 1; max-width: 300px; height: 24px; border-radius: 7px; background: #EEF1F7; font: 500 11px/24px var(--font-mono); color: var(--muted); padding: 0 10px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.shot-body { position: relative; aspect-ratio: 16 / 10; display: grid; grid-template-columns: 180px 1fr; background:
  linear-gradient(#fff, #fff) padding-box; }
.shot-side { border-right: 1px solid var(--line); padding: 18px 14px; display: grid; align-content: start; gap: 10px; background: #FBFCFE; }
.shot-side .sk { height: 9px; margin: 0; }
.shot-side .sk.on { background: var(--blue-100); }
.shot-main { padding: 22px; position: relative; overflow: hidden; }
.shot-main .tile-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 18px; }
.shot-main .tile { height: 64px; border-radius: 10px; background: var(--bg-soft); border: 1px solid var(--line); }
.shot-main .panel { height: 58%; border-radius: 12px; border: 1px solid var(--line); background:
  repeating-linear-gradient(0deg, transparent 0 27px, #F1F4F9 27px 28px); }
.shot-overlay { position: absolute; inset: 0; display: grid; place-items: center; background: radial-gradient(closest-side, rgba(255,255,255,.96), rgba(255,255,255,.75) 70%, rgba(255,255,255,0)); pointer-events: none; }
.shot-label { text-align: center; padding: 18px 22px; max-width: 340px; }
.shot-label .ic { width: 46px; height: 46px; margin: 0 auto 12px; border-radius: 12px; border: 1.5px dashed #AFC0E0; display: grid; place-items: center; color: var(--blue); }
.shot-label b { display: block; font: 600 17px/1.3 var(--font-display); color: var(--ink); }
.shot-label span { display: block; font-size: 13px; color: var(--muted); margin-top: 6px; }
.shot-label code { display: inline-block; margin-top: 10px; font: 600 10px/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); border: 1px dashed #B9C4DA; padding: 6px 9px; border-radius: 6px; }
.wf-shots { position: relative; }
.wf-shots .shot { transition: opacity .5s var(--ease), transform .5s var(--ease); }
.wf-shots .shot:not(:first-child) { position: absolute; inset: 0; }
.wf-shots .shot { opacity: 0; transform: translateY(14px) scale(.985); }
.wf-shots .shot.on { opacity: 1; transform: none; }

/* AI (dark) */
.dark { background: var(--navy); color: #B8C6E6; overflow: hidden; }
.dark::before { content: ''; position: absolute; inset: 0; background: radial-gradient(800px 500px at 90% 10%, rgba(46,105,249,.35), transparent 60%), radial-gradient(600px 400px at 0% 100%, rgba(46,105,249,.18), transparent 60%); pointer-events: none; }
.dark h2, .dark h3 { color: #fff; }
.dark .eyebrow { color: #8FB0FF; }
.dark .section-head p { color: #B8C6E6; }
.ai-grid { position: relative; display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; }
.ai-list { display: grid; gap: 14px; margin-top: 10px; }
.ai-item { display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 20px; border-radius: 16px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); transition: background .3s, border-color .3s, transform .3s var(--ease); }
.ai-item:hover { background: rgba(255,255,255,.07); border-color: rgba(143,176,255,.35); transform: translateX(4px); }
.ai-item .ic { width: 44px; height: 44px; border-radius: 12px; background: rgba(46,105,249,.2); color: #A9C2FF; display: grid; place-items: center; }
.ai-item h3 { font-size: 19px; font-weight: 600; margin-bottom: 4px; }
.ai-item p { font-size: 15px; }
.ai-note { margin-top: 24px; display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: #C9D5F2; padding: 16px 18px; border-radius: 14px; border: 1px dashed rgba(255,255,255,.2); }
.ai-note svg { flex: none; color: #8FB0FF; margin-top: 3px; }
.dark .shot { background: #fff; border-color: rgba(255,255,255,.1); box-shadow: 0 40px 100px -30px rgba(0,0,0,.6); }
.soon { display: inline-block; font: 600 10px/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; padding: 4px 7px; border-radius: 5px; background: rgba(143,176,255,.15); color: #A9C2FF; margin-left: 8px; vertical-align: 2px; }

/* Features bento */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.bento > * { border-radius: var(--radius-lg); border: 1px solid var(--line); background: #fff; padding: 30px; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.bento > *:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.b-wide { grid-column: span 3; }
.b-third { grid-column: span 2; }
.bento h3 { font-size: 21px; font-weight: 600; margin: 18px 0 8px; }
.bento p { font-size: 15px; }
.bento .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--blue-50); color: var(--blue); display: grid; place-items: center; }
.status-flow { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.status-flow .chip { font-size: 12px; padding: 7px 11px; }
.order-demo { margin-top: 22px; display: grid; gap: 10px; }
.order-demo .lane { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; color: var(--ink); }
.order-demo .lane .bar { flex: 1; height: 8px; border-radius: 6px; background: var(--bg-soft); position: relative; overflow: hidden; }
.order-demo .lane .bar::after { content: ''; position: absolute; inset: 0; background: var(--blue); transform-origin: left; transform: scaleX(0); }
.in .order-demo .lane .bar::after { animation: fillbar 3.6s var(--ease) infinite; }
.in .order-demo .lane:nth-child(2) .bar::after { animation-delay: .9s; }
.in .order-demo .lane:nth-child(3) .bar::after { animation-delay: 1.8s; }
@keyframes fillbar { 0% { transform: scaleX(0); } 40%, 85% { transform: scaleX(1); } 100% { transform: scaleX(1); opacity: 0; } }
.sig-styles { display: flex; gap: 10px; margin-top: 20px; }
.sig-styles div { flex: 1; border: 1px solid var(--line); border-radius: 10px; padding: 12px; text-align: center; font-size: 12px; color: var(--muted); }
.sig-styles .typed { font: italic 600 22px/1.2 'Satoshi', serif; color: var(--navy); }
.sig-styles svg { height: 30px; margin: 0 auto; }

/* Security */
.sec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.sec-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.sec-item { padding: 20px; border-radius: 14px; border: 1px solid var(--line); background: #fff; }
.sec-item svg { color: var(--blue); }
.sec-item h3 { font-size: 16px; font-weight: 600; margin: 12px 0 4px; font-family: var(--font-body); letter-spacing: 0; }
.sec-item p { font-size: 14px; color: var(--muted); line-height: 1.5; }
.cert { position: sticky; top: 120px; background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); padding: 30px; }
.cert-head { display: flex; justify-content: space-between; align-items: flex-start; border-bottom: 1px solid var(--line); padding-bottom: 18px; margin-bottom: 14px; }
.cert-head h3 { font-size: 20px; font-weight: 600; }
.cert-head .id { font: 500 11px/1.4 var(--font-mono); color: var(--muted); margin-top: 6px; }
.seal { width: 56px; height: 56px; border-radius: 50%; border: 2px solid var(--success); color: var(--success); display: grid; place-items: center; }
.events { list-style: none; padding: 0; margin: 0; }
.events li { display: grid; grid-template-columns: 14px 1fr auto; gap: 14px; align-items: start; padding: 11px 0; font-size: 14px; color: var(--ink); position: relative; }
.events li::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--blue); margin-top: 6px; box-shadow: 0 0 0 4px var(--blue-50); }
.events li:not(:last-child)::after { content: ''; position: absolute; left: 4.5px; top: 26px; bottom: -6px; width: 1px; background: var(--line); }
.events li small { display: block; color: var(--muted); font-size: 12px; }
.events li time { font: 500 11px/1.8 var(--font-mono); color: var(--muted); }
.events li.done::before { background: var(--success); box-shadow: 0 0 0 4px #E3F7EE; }
.cert-foot { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; font: 500 11px/1.4 var(--font-mono); color: var(--muted); gap: 12px; }
.cert-foot .hash { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.disclaimer { margin-top: 20px; font-size: 13px; color: var(--muted); }

/* Pricing */
.pricing { background: var(--bg-soft); border-top: 1px solid var(--line); }
.token-explain { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-bottom: 56px; }
.tx { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.tx .people { display: flex; gap: 4px; margin-bottom: 14px; height: 26px; align-items: center; }
.tx .people i { width: 22px; height: 22px; border-radius: 50%; background: var(--blue); display: block; }
.tx .people i.copy { background: transparent; border: 2px dashed #AFC0E0; }
.tx .people em { font-style: normal; font: 600 12px/1 var(--font-mono); color: var(--muted); margin-left: 4px; }
.tx p { font-size: 14px; color: var(--text); line-height: 1.45; min-height: 42px; }
.tx b { display: block; margin-top: 12px; font: 600 20px/1 var(--font-display); color: var(--ink); }
.tx b.free { color: var(--success); }

.price-cols { display: grid; grid-template-columns: 1.35fr 1fr; gap: 24px; align-items: stretch; }
.plan { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 36px; display: flex; flex-direction: column; }
.plan-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 8px; }
.plan h3 { font-size: 28px; font-weight: 600; }
.plan .tag { font: 600 11px/1 var(--font-mono); text-transform: uppercase; letter-spacing: .06em; padding: 7px 10px; border-radius: 6px; background: var(--blue-50); color: var(--blue); }
.plan .desc { color: var(--muted); font-size: 16px; margin-bottom: 26px; }
.packs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.pack { position: relative; text-align: left; border: 1.5px solid var(--line); border-radius: 16px; padding: 18px; background: #fff; cursor: pointer; font: inherit; color: inherit; transition: border-color .25s, box-shadow .25s, transform .25s var(--ease); }
.pack:hover { border-color: #B5C6EA; transform: translateY(-2px); }
.pack.on { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(46,105,249,.12); }
.pack .n { font: 600 13px/1 var(--font-body); color: var(--muted); }
.pack .p { font: 600 34px/1 var(--font-display); color: var(--ink); margin: 10px 0 6px; letter-spacing: -0.02em; }
.pack .t { font-size: 14px; color: var(--text); }
.pack .per { position: absolute; top: 16px; right: 16px; font: 600 12px/1 var(--font-mono); color: var(--blue); background: var(--blue-50); padding: 5px 7px; border-radius: 6px; }
.pack .best { position: absolute; top: -10px; left: 16px; font: 700 10px/1 var(--font-mono); text-transform: uppercase; letter-spacing: .06em; background: var(--navy); color: #fff; padding: 5px 8px; border-radius: 5px; }
.plan-list { list-style: none; padding: 0; margin: 26px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; font-size: 15px; }
.plan-list li { display: flex; gap: 10px; align-items: flex-start; }
.plan-list svg { color: var(--blue); flex: none; margin-top: 4px; }
.plan-cta { margin-top: auto; padding-top: 28px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.plan-cta small { color: var(--muted); font-size: 14px; }

.plan.team { background: var(--navy); color: #B8C6E6; border-color: var(--navy); position: relative; overflow: hidden; }
.plan.team::before { content: ''; position: absolute; inset: 0; background: radial-gradient(500px 300px at 100% 0%, rgba(46,105,249,.4), transparent 60%); pointer-events: none; }
.plan.team > * { position: relative; }
.plan.team h3 { color: #fff; }
.plan.team .tag { background: rgba(143,176,255,.16); color: #A9C2FF; }
.plan.team .desc { color: #9FB0D6; }
.team-price { display: flex; align-items: baseline; gap: 8px; color: #fff; }
.team-price .big { font: 600 64px/1 var(--font-display); letter-spacing: -0.03em; }
.team-price span { font-size: 16px; color: #9FB0D6; }
.seat-ctl { margin: 24px 0 10px; padding: 18px; border-radius: 16px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); }
.seat-ctl .row { display: flex; justify-content: space-between; align-items: center; font-size: 14px; color: #C9D5F2; }
.seat-ctl output { font: 600 15px/1 var(--font-display); color: #fff; }
.seat-ctl input[type=range] { width: 100%; margin: 14px 0 6px; accent-color: var(--blue); }
.seat-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; }
.seat-stats div { background: rgba(255,255,255,.05); border-radius: 12px; padding: 12px 14px; }
.seat-stats b { display: block; font: 600 24px/1 var(--font-display); color: #fff; }
.seat-stats small { font-size: 12px; color: #9FB0D6; }
.plan.team .plan-list { grid-template-columns: 1fr; color: #C9D5F2; }
.plan.team .plan-list svg { color: #8FB0FF; }

.balances { margin-top: 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.bal { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 24px; }
.bal h4 { font-size: 18px; font-weight: 600; display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.bal h4 i { width: 10px; height: 10px; border-radius: 3px; background: var(--blue); display: block; }
.bal.monthly h4 i { background: #8FB0FF; }
.bal ul { margin: 0; padding-left: 18px; font-size: 15px; display: grid; gap: 4px; }

/* Calculator */
.calc { margin-top: 24px; background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.calc h3 { font-size: 24px; font-weight: 600; margin-bottom: 8px; }
.calc p.hint { color: var(--muted); font-size: 15px; margin-bottom: 22px; }
.calc label { display: block; font-size: 14px; font-weight: 600; color: var(--ink); margin-top: 16px; }
.calc .rng { display: flex; align-items: center; gap: 14px; margin-top: 8px; }
.calc input[type=range] { flex: 1; accent-color: var(--blue); }
.calc output { min-width: 48px; text-align: right; font: 600 18px/1 var(--font-display); color: var(--ink); }
.calc-result { background: var(--bg-soft); border-radius: 18px; padding: 26px; }
.calc-result .big { font: 600 48px/1 var(--font-display); color: var(--ink); letter-spacing: -0.03em; }
.calc-result .big small { font-size: 18px; color: var(--muted); font-weight: 500; letter-spacing: 0; }
.calc-result .line { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.calc-result .line:last-of-type { border: 0; }
.calc-result .line b { color: var(--ink); }
.calc-result .rec { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: var(--blue-50); color: var(--navy); font-size: 14px; }
.fine { margin-top: 20px; font-size: 14px; color: var(--muted); text-align: center; }
.free-list { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.free-list span { font-size: 14px; padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink); display: inline-flex; gap: 8px; align-items: center; }
.free-list svg { color: var(--success); }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 64px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 24px 0; display: flex; justify-content: space-between; gap: 20px; font: 600 19px/1.35 var(--font-display); color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); position: relative; transition: transform .35s var(--ease), background .3s, border-color .3s; }
.faq summary .pm::before, .faq summary .pm::after { content: ''; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.5px; background: var(--ink); transform: translate(-50%, -50%); transition: transform .35s var(--ease); }
.faq summary .pm::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq details[open] summary .pm { background: var(--blue); border-color: var(--blue); }
.faq details[open] summary .pm::before, .faq details[open] summary .pm::after { background: #fff; }
.faq details[open] summary .pm::after { transform: translate(-50%, -50%) rotate(0); }
.faq .ans { overflow: hidden; }
.faq .ans p { padding: 0 48px 24px 0; font-size: 16px; }

/* Closing */
.closing { padding: 0 0 120px; }
.close-card { position: relative; overflow: hidden; border-radius: 32px; background: var(--navy); padding: 90px 60px 80px; text-align: center; color: #B8C6E6; }
.close-card::before { content: ''; position: absolute; inset: 0; background: radial-gradient(700px 400px at 50% 120%, rgba(46,105,249,.55), transparent 70%); }
.close-card > * { position: relative; }
.close-card h2 { color: #fff; font-size: clamp(38px, 5.4vw, 72px); font-weight: 600; letter-spacing: -0.035em; }
.close-card p { font-size: 19px; max-width: 560px; margin: 18px auto 0; }
.close-swoosh { width: min(520px, 80%); height: 70px; margin: 6px auto 0; display: block; }
.close-swoosh path { fill: none; stroke: var(--blue); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 800; stroke-dashoffset: 800; transition: stroke-dashoffset 2.2s var(--ease); }
.close-card.in .close-swoosh path { stroke-dashoffset: 0; }
.close-swoosh circle { fill: var(--blue); opacity: 0; transition: opacity .4s 2s; }
.close-card.in .close-swoosh circle { opacity: 1; }
.wl-form { margin: 36px auto 0; max-width: 520px; display: flex; gap: 10px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); padding: 8px; border-radius: 16px; }
.wl-form input { flex: 1; min-width: 0; background: transparent; border: 0; color: #fff; font: 500 16px var(--font-body); padding: 0 14px; }
.wl-form input::placeholder { color: #8FA0C8; }
.wl-form input:focus { outline: none; }
.wl-form:focus-within { border-color: rgba(143,176,255,.6); }
.wl-msg { margin-top: 14px; font-size: 14px; min-height: 22px; color: #A9C2FF; }
.hero-form { margin-top: 34px; max-width: 520px; display: flex; gap: 8px; padding: 7px; border-radius: 16px; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow-sm); }
.hero-form input { flex: 1; min-width: 0; border: 0; font: 500 16px var(--font-body); padding: 0 12px; color: var(--ink); background: transparent; }
.hero-form input:focus { outline: none; }
.hero-form:focus-within { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(46,105,249,.12); }
.hero-msg { margin-top: 10px; font-size: 14px; color: var(--blue); min-height: 20px; }
.hero-alt { margin-top: 4px; font-size: 15px; }
.hero-alt a { color: var(--ink); font-weight: 600; text-decoration: none; border-bottom: 1.5px solid var(--blue); }

/* Footer */
footer { background: var(--navy-deep); color: #8FA0C8; padding: 72px 0 36px; font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 40px; }
.foot-grid img { height: 32px; width: auto; margin-bottom: 18px; }
.foot-grid h4 { font: 600 13px/1 var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: #fff; margin-bottom: 18px; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.foot-grid a { text-decoration: none; transition: color .2s; }
.foot-grid a:hover { color: #fff; }
.foot-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.08); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 13px; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.stagger > * { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.stagger.in > * { opacity: 1; transform: none; }
.stagger.in > *:nth-child(2) { transition-delay: .08s; }
.stagger.in > *:nth-child(3) { transition-delay: .16s; }
.stagger.in > *:nth-child(4) { transition-delay: .24s; }
.stagger.in > *:nth-child(5) { transition-delay: .32s; }
.stagger.in > *:nth-child(6) { transition-delay: .40s; }
.stagger.in > *:nth-child(7) { transition-delay: .48s; }
.stagger.in > *:nth-child(8) { transition-delay: .56s; }
.no-js .reveal, .no-js .stagger > * { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .stagger > * { opacity: 1; transform: none; }
  .sig-path { stroke-dashoffset: 0; }
  .close-swoosh path { stroke-dashoffset: 0; }
}

/* Responsive */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .stage { min-height: 540px; max-width: 620px; margin: 0 auto; width: 100%; }
  .wf-grid, .ai-grid, .sec-grid, .faq-grid, .calc { grid-template-columns: 1fr; gap: 40px; }
  .wf-visual { display: none; }
  .wf-step { min-height: 0; opacity: 1; }
  .wf-step::before { transform: scaleY(1); }
  .wf-step .shot { display: block; margin-top: 22px; }
  .price-cols { grid-template-columns: 1fr; }
  .token-explain { grid-template-columns: repeat(3, 1fr); }
  .cert { position: relative; top: 0; }
  .bento .b-wide, .bento .b-third { grid-column: span 3; }
}
.wf-step .shot { display: none; }
@media (max-width: 1080px) { .wf-step .shot { display: block; } }
@media (max-width: 860px) {
  .nav-links, .nav-signin { display: none; }
  .menu-btn { display: grid; place-items: center; }
  .nav.open .nav-links { display: grid; position: absolute; top: 74px; left: 0; right: 0; background: #fff; padding: 20px 28px 28px; gap: 18px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav.open .nav-links a { font-size: 18px; }
  .value-grid { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr; }
  .bento .b-wide, .bento .b-third { grid-column: auto; }
  .sec-list { grid-template-columns: 1fr; }
  .balances, .plan-list { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 84px 0; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding: 0 20px; }
  .nav-cta .btn { padding: 11px 14px; font-size: 14px; }
  .nav-logo img { height: 28px; }
  .hero { padding-top: 48px; }
  .hero-sub { font-size: 17px; }
  .hero-form, .wl-form { flex-direction: column; padding: 8px; }
  .hero-form input, .wl-form input { padding: 14px 12px; }
  .hero-form .btn, .wl-form .btn { justify-content: center; }
  .stage { min-height: 0; display: flex; flex-direction: column; padding-top: 14px; }
  .doc { position: relative; width: 100%; right: auto; top: auto; transform: none; padding: 24px 20px 20px; }
  .field { flex-wrap: wrap; gap: 4px 10px; }
  .ai-card, .token-card { display: none; }
  .status-card { position: relative; left: auto; bottom: auto; width: 88%; margin: -34px 0 0 auto; z-index: 2; }
  .ph-tag { right: 12px; }
  .packs { grid-template-columns: 1fr 1fr; }
  .pack .p { font-size: 28px; }
  .pack .per { position: static; display: inline-block; margin-top: 10px; }
  .plan { padding: 26px 22px; }
  .token-explain { grid-template-columns: 1fr 1fr; }
  .tx:last-child { grid-column: span 2; }
  .shot-body { grid-template-columns: 70px 1fr; }
  .shot-main { padding: 14px; }
  .shot-label { padding: 10px; }
  .shot-label b { font-size: 15px; }
  .shot-label span { display: none; }
  .close-card { padding: 64px 22px 56px; border-radius: 24px; }
  .calc { padding: 22px; }
  .foot-grid { grid-template-columns: 1fr; }
  .faq .ans p { padding-right: 0; }
}

/* MCP section */
.mcp { background: var(--bg-soft); }
.mcp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.mcp-works { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.mcp-chip { font-family: 'JetBrains Mono', monospace; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--navy); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; }
.mcp-list { display: grid; gap: 12px; }
.mcp-item { display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 18px 20px; border-radius: 16px; background: #fff; border: 1px solid var(--line); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.mcp-item:hover { transform: translateX(4px); box-shadow: var(--shadow); }
.mcp-item .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--blue-50); color: var(--blue); display: grid; place-items: center; }
.mcp-item h3 { font-size: 18px; font-weight: 600; margin-bottom: 4px; }
.mcp-item p { font-size: 15px; }
.chat-mock { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 40px 90px -40px rgba(14,31,67,.35); overflow: hidden; }
.chat-top { display: flex; align-items: center; gap: 6px; padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 14px; }
.chat-top span { width: 10px; height: 10px; border-radius: 50%; background: #E3E8F2; }
.chat-top b { margin-left: 10px; color: var(--ink); font-weight: 600; }
.chat-top em { margin-left: auto; font-style: normal; font-size: 12px; font-weight: 600; color: #127A4B; background: #E6F6EE; border-radius: 999px; padding: 4px 10px; }
.chat-body { padding: 22px; display: grid; gap: 12px; }
.msg { max-width: 88%; font-size: 15px; line-height: 1.5; border-radius: 16px; padding: 12px 15px; }
.msg.me { justify-self: end; background: var(--navy); color: #fff; border-bottom-right-radius: 5px; }
.msg.bot { justify-self: start; background: var(--bg-soft); color: var(--text); border-bottom-left-radius: 5px; }
.msg.bot p { margin: 0; }
.tool { justify-self: start; display: inline-flex; align-items: center; gap: 7px; font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--blue); background: var(--blue-50); border-radius: 8px; padding: 6px 10px; }
.req { margin-top: 12px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: grid; gap: 8px; }
.req-h { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink); font-size: 14px; }
.req-h svg { color: var(--blue); }
.req-r { display: flex; justify-content: space-between; align-items: center; font-size: 14px; color: var(--text); }
.req-r.muted { color: var(--muted, #6B7896); border-top: 1px dashed var(--line); padding-top: 8px; }
.req-r b { color: var(--ink); }
.pill { font-size: 11px; font-weight: 600; color: var(--blue); background: var(--blue-50); border-radius: 999px; padding: 3px 9px; }
.req-a { display: flex; gap: 8px; margin-top: 2px; }
.req-a span { flex: 1; text-align: center; padding: 8px 0; border-radius: 9px; font-size: 13px; font-weight: 600; background: var(--bg-soft); color: var(--ink); }
.req-a span.go { background: var(--blue); color: #fff; flex: 1.6; }
.chat-cap { position: absolute; right: 14px; bottom: 12px; font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: #9AA6C0; }
@media (max-width: 860px) { .mcp-grid { grid-template-columns: 1fr; gap: 40px; } .msg { max-width: 94%; } .chat-body { padding: 16px; padding-bottom: 32px; } }

/* API section */
.api-grid { position: relative; display: grid; grid-template-columns: 1fr 1.15fr; gap: 64px; align-items: center; }
.api-points { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 12px; }
.api-points li { display: flex; gap: 10px; align-items: flex-start; color: #DCE5F8; font-size: 16px; }
.api-points svg { flex: none; color: #8FB0FF; margin-top: 4px; }
.code-win { background: #071026; border: 1px solid rgba(255,255,255,.1); border-radius: 18px; overflow: hidden; box-shadow: 0 40px 100px -30px rgba(0,0,0,.6); }
.code-top { display: flex; align-items: center; gap: 4px; padding: 10px 12px; border-bottom: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.03); flex-wrap: wrap; }
.code-tab { font: 600 13px/1 var(--font-mono); color: #8C9BBD; background: none; border: 0; padding: 8px 12px; border-radius: 8px; cursor: pointer; }
.code-tab:hover { color: #fff; }
.code-tab.active { color: #fff; background: rgba(46,105,249,.28); }
.code-tab:focus-visible { outline: 2px solid #8FB0FF; outline-offset: 2px; }
.code-label { margin-left: auto; font: 500 11px/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: #6F7FA3; padding-right: 6px; }
.code-win pre { margin: 0; padding: 20px 22px; overflow-x: auto; font: 500 13px/1.65 var(--font-mono); color: #DCE5F8; }
.code-pane { display: none; }
.code-pane.active { display: block; }
.code-win .s { color: #9FE3B8; }
.code-win .c { color: #6F7FA3; }
.code-resp { border-top: 1px dashed rgba(255,255,255,.12); padding-top: 12px; }
.code-resp .code-label { display: block; margin: 0; padding: 0 22px; }
.code-resp pre { padding-top: 10px; }
.api-caps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 72px; }
.api-cap { padding: 22px; border-radius: 16px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); transition: background .3s, border-color .3s, transform .3s var(--ease); }
.api-cap:hover { background: rgba(255,255,255,.07); border-color: rgba(143,176,255,.35); transform: translateY(-3px); }
.api-cap .ic { width: 40px; height: 40px; border-radius: 11px; background: rgba(46,105,249,.2); color: #A9C2FF; display: grid; place-items: center; }
.api-cap h3 { font-size: 17px; font-weight: 600; margin: 14px 0 6px; }
.api-cap p { font-size: 14.5px; line-height: 1.5; }
@media (max-width: 1080px) { .api-caps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px) { .api-grid { grid-template-columns: 1fr; gap: 40px; } .api-caps { margin-top: 48px; } }
@media (max-width: 560px) { .api-caps { grid-template-columns: 1fr; } .code-win pre { font-size: 12px; padding: 16px; } .code-label { display: none; } .code-resp .code-label { display: block; padding: 0 16px; } }
.api-grid > * { min-width: 0; }
@media (max-width: 560px) { .api-cap { display: grid; grid-template-columns: 40px 1fr; column-gap: 14px; padding: 16px; } .api-cap .ic { grid-row: span 2; } .api-cap h3 { margin: 0 0 4px; font-size: 16px; } .api-caps { gap: 10px; } }

/* Subpages */
.page-hero { position: relative; padding: 150px 0 50px; background: radial-gradient(900px 420px at 85% 0%, rgba(46,105,249,.12), transparent 60%), linear-gradient(180deg, #F6F8FC, #fff); }
.page-hero-in { max-width: 860px; }
.page-hero h1 { font-family: var(--font-display); font-size: clamp(38px, 5.4vw, 66px); line-height: 1.04; letter-spacing: -.03em; color: var(--ink); margin: 18px 0 22px; font-weight: 600; }
.page-hero .lead { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.6; max-width: 720px; }
.soft { background: var(--bg-soft); }
.story-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; }
.story-grid h2 { margin-top: 16px; }
.story-text p { font-size: 18px; line-height: 1.7; margin: 0 0 18px; }
.timeline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; position: relative; }
.tl-item { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; }
.tl-item.now { background: var(--navy); border-color: var(--navy); }
.tl-item.now h3 { color: #fff; } .tl-item.now p { color: #B8C6E6; } .tl-item.now .tl-k { color: #8FB0FF; }
.tl-k { font: 600 13px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--blue); }
.tl-item h3 { font-size: 21px; font-weight: 600; margin: 16px 0 8px; }
.tl-item p { font-size: 15px; }
.lessons { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.lesson { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; background: #fff; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.lesson:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.lesson .ic, .cs-card .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--blue-50); color: var(--blue); display: grid; place-items: center; }
.lesson h3 { font-size: 19px; font-weight: 600; margin: 18px 0 8px; }
.lesson p { font-size: 15px; }
.principles { position: relative; display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; }
.principles h2 { margin-top: 16px; }
.principle-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.principle-list li { display: flex; gap: 14px; padding: 20px; border-radius: 16px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); font-size: 16px; color: #C9D5F2; }
.principle-list svg { flex: none; color: #8FB0FF; margin-top: 3px; }
.principle-list b { color: #fff; font-weight: 600; }
.close-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }
.contact-grid { display: grid; grid-template-columns: 1.4fr .9fr; gap: 48px; align-items: start; }
.cf { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 34px; box-shadow: var(--shadow); display: grid; gap: 18px; }
.cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.cf-field { display: grid; gap: 8px; }
.cf-field label { font-weight: 600; font-size: 14px; color: var(--ink); }
.cf-field .opt { font-weight: 400; color: var(--muted); }
.cf input, .cf select, .cf textarea { font: 400 16px/1.4 var(--font-body); color: var(--ink); background: var(--bg-soft); border: 1px solid var(--line); border-radius: 12px; padding: 13px 14px; width: 100%; transition: border-color .2s, box-shadow .2s, background .2s; }
.cf textarea { resize: vertical; min-height: 140px; }
.cf input:focus, .cf select:focus, .cf textarea:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(46,105,249,.15); }
.cf .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.cf-foot { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.cf-foot .btn[disabled] { opacity: .6; pointer-events: none; }
.cf-status { margin: 0; font-size: 15px; }
.cf-status.ok { color: #127A4B; font-weight: 600; }
.cf-status.err { color: #B42318; }
.contact-side { display: grid; gap: 16px; }
.cs-card { border: 1px solid var(--line); border-radius: 18px; padding: 22px; background: #fff; display: grid; grid-template-columns: 44px 1fr; column-gap: 16px; }
.cs-card .ic { grid-row: span 2; }
.cs-card h3 { font-size: 17px; font-weight: 600; margin: 0 0 4px; }
.cs-card p { font-size: 15px; margin: 0; }
.cs-card a, .cs-faq a { color: var(--blue); font-weight: 600; }
.cs-faq { font-size: 15px; padding: 0 4px; }
@media (max-width: 1080px) { .lessons { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px) {
  .page-hero { padding: 120px 0 30px; }
  .story-grid, .principles, .contact-grid { grid-template-columns: 1fr; gap: 28px; }
  .timeline { grid-template-columns: 1fr; }
}
@media (max-width: 560px) { .lessons, .cf-row { grid-template-columns: 1fr; } .cf { padding: 22px; } }
.story-grid h2, .principles h2 { font-size: clamp(32px, 3.8vw, 48px); font-weight: 600; letter-spacing: -0.03em; }
.principles h2 { color: #fff; }
.subpage .closing { padding-top: 110px; }

/* Blog */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.post-grid.two { grid-template-columns: repeat(2, 1fr); }
.post-card { display: flex; flex-direction: column; gap: 12px; text-decoration: none; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; background: #fff; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; }
.post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: #C9D6F2; }
.post-card h3 { font-size: 21px; font-weight: 600; line-height: 1.25; }
.post-card p { font-size: 15px; margin: 0; flex: 1; }
.post-cat { align-self: flex-start; font: 600 11px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--blue); background: var(--blue-50); padding: 6px 10px; border-radius: 999px; }
.post-meta { font-size: 13px; color: var(--muted); }
.post-hero { padding: 140px 0 40px; background: radial-gradient(900px 420px at 85% 0%, rgba(46,105,249,.12), transparent 60%), linear-gradient(180deg, #F6F8FC, #fff); }
.post-wrap { max-width: 800px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--muted); margin-bottom: 22px; }
.crumbs a { color: var(--muted); text-decoration: none; } .crumbs a:hover { color: var(--blue); }
.post-hero h1 { font-family: var(--font-display); font-size: clamp(34px, 4.6vw, 54px); line-height: 1.08; letter-spacing: -.03em; font-weight: 600; margin: 18px 0 18px; }
.post-hero .lead { font-size: 19px; line-height: 1.6; }
.post-byline { display: flex; align-items: center; gap: 12px; margin-top: 26px; font-size: 14px; }
.post-byline .avatar img { width: 40px; height: 40px; border-radius: 10px; display: block; }
.post-byline b { display: block; color: var(--ink); font-weight: 600; }
.post-byline span { color: var(--muted); }
.prose { font-size: 18px; line-height: 1.75; color: var(--text); padding: 20px 0 10px; }
.prose h2 { font-size: clamp(26px, 2.6vw, 32px); font-weight: 600; letter-spacing: -.02em; margin: 48px 0 14px; scroll-margin-top: 90px; }
.prose p { margin: 0 0 20px; }
.prose ul, .prose ol { margin: 0 0 22px; padding-left: 24px; }
.prose li { margin-bottom: 8px; }
.prose strong { color: var(--ink); }
.prose a { color: var(--blue); font-weight: 600; }
.post-cta { margin: 40px 0 20px; background: var(--navy); border-radius: var(--radius-lg); padding: 36px; color: #B8C6E6; }
.post-cta h2 { color: #fff; font-size: 26px; font-weight: 600; margin-bottom: 10px; }
.post-cta p { margin: 0 0 22px; }
.related { background: var(--bg-soft); padding: 90px 0; }
.related-h { font-size: 32px; font-weight: 600; margin-bottom: 30px; }
.nf { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 140px 0 80px; }
.nf h1 { font-size: clamp(40px, 6vw, 72px); font-weight: 600; letter-spacing: -.03em; margin: 16px 0; }
.nf .btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }
@media (max-width: 1080px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) { .post-grid, .post-grid.two { grid-template-columns: 1fr; } .post-hero { padding: 110px 0 24px; } .prose { font-size: 17px; } .post-cta { padding: 26px; } }
.blog-head { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.blog-head h2 { margin-bottom: 0; }
.legal-hero h1 { font-size: clamp(40px, 5vw, 60px); }
.legal-wrap { max-width: 820px; }
.prose.legal { font-size: 17px; }
.prose.legal h3 { font-size: 20px; font-weight: 600; margin: 30px 0 10px; color: var(--ink); }
.prose.legal table { width: 100%; max-width: 420px; border-collapse: collapse; margin: 0 0 22px; font-size: 16px; }
.prose.legal th, .prose.legal td { padding: 10px 14px; border-bottom: 1px solid var(--line, #e3e8f2); text-align: left; }
.prose.legal th:last-child, .prose.legal td:last-child { text-align: right; }
.prose.legal th { font-weight: 600; color: var(--ink); }
mark.todo { background: #FFF4CC; color: #6B4E00; padding: 1px 4px; border-radius: 4px; font-size: .92em; }
.cs-card address { font-style: normal; line-height: 1.6; color: var(--muted, #5a6478); }
.legal-hero .wrap { max-width: 820px; }
