:root { --acc2: #7CC4FF; --acc3: #FFB86B; --err: #FF7A7A; }
/* Ariva SaaS layout: shared by Kestrel and its variations. Colors come from the theme file's variables. */
::selection { background: var(--acc); color: var(--acc-ink); }
.a-head h2 { font-weight: 500; }
.a-frame { background: color-mix(in srgb, var(--ink) 2.5%, transparent); }

/* Nav */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .3s, border-color .3s, backdrop-filter .3s; border-bottom: 1px solid transparent; }
.nav.scrolled { background: color-mix(in srgb, var(--bg) 72%, transparent); backdrop-filter: blur(16px) saturate(1.4); border-bottom-color: var(--line); }
.nav-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 76px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font: 600 22px/1 var(--f-head); letter-spacing: -0.04em; text-decoration: none; }
.nav-links { display: flex; gap: 4px; padding: 5px; border: 1px solid var(--line); border-radius: 999px; background: color-mix(in srgb, var(--ink) 2%, transparent); }
.nav-links a { padding: 9px 16px; border-radius: 999px; font-size: 14px; color: var(--ink2); text-decoration: none; transition: color .2s, background .2s; }
.nav-links a:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 6%, transparent); }
.nav-cta { display: flex; align-items: center; gap: 18px; }
.nav-login { font-size: 15px; text-decoration: none; color: var(--ink2); transition: color .2s; }
.nav-login:hover { color: var(--ink); }
.a-btn.sm { height: 44px; padding-left: 18px; font-size: 15px; }
.a-btn.sm .chip { width: 30px; height: 30px; }
.nav-burger { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: none; cursor: pointer; position: relative; }
.nav-burger span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--ink); transition: transform .35s var(--ease); }
.nav-burger span:first-child { top: 18px; } .nav-burger span:last-child { top: 24px; }
.nav.open .nav-burger span:first-child { transform: translateY(3px) rotate(45deg); }
.nav.open .nav-burger span:last-child { transform: translateY(-3px) rotate(-45deg); }
.nav-mob { display: none; }

/* Hero */
.hero { position: relative; padding: 168px 0 0; overflow: hidden; isolation: isolate; }
.hero::before { content: ''; position: absolute; z-index: -1; left: var(--mx, 50%); top: var(--my, 30%); width: 720px; height: 720px; border-radius: 50%; transform: translate(-50%, -50%); background: radial-gradient(circle, color-mix(in srgb, var(--acc) 16%, transparent), color-mix(in srgb, var(--acc) 0%, transparent) 62%); transition: left .6s var(--ease), top .6s var(--ease); pointer-events: none; }
.hero-grid { position: absolute; inset: 0; z-index: -2; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 72px 72px; mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%); opacity: .6; }
.hero-in { text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero-pill { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 999px; border: 1px solid var(--line); background: color-mix(in srgb, var(--ink) 3%, transparent); font-size: 14px; color: var(--ink2); text-decoration: none; transition: border-color .25s, color .25s; }
.hero-pill:hover { border-color: color-mix(in srgb, var(--acc) 50%, transparent); color: var(--ink); }
.hero-pill em { font-style: normal; padding: 4px 10px; border-radius: 999px; background: var(--acc); color: var(--acc-ink); font-weight: 600; font-size: 12px; }
.hero-pill svg { transition: transform .3s var(--ease); }
.hero-pill:hover svg { transform: translateX(3px); }
.hero h1 { margin-top: 28px; font-size: clamp(48px, 8vw, 104px); font-weight: 500; letter-spacing: -0.05em; line-height: .96; }
.hl { color: var(--acc); }
.hero-sub { max-width: 620px; margin-top: 28px; font-size: 20px; color: var(--ink2); }
.hero-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 40px; }
.hero-note { margin-top: 18px; font-size: 14px; color: var(--ink2); }

/* Product shot */
.shot { margin: 80px auto 0; max-width: 1120px; position: relative; }
.shot::after { content: ''; position: absolute; left: 10%; right: 10%; top: -1px; height: 1px; background: linear-gradient(90deg, transparent, var(--acc), transparent); opacity: .6; }
.app { display: grid; grid-template-columns: 210px 1fr 220px; min-height: 470px; background: var(--bg2); font-size: 13px; text-align: left; }
.app small { display: block; color: var(--ink2); font-size: 12px; }
.app-side { padding: 18px 14px; border-right: 1px solid var(--line); }
.app-ws { display: flex; align-items: center; gap: 10px; padding: 6px 8px 16px; font-weight: 600; }
.ws-dot { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; background: var(--acc); color: var(--acc-ink); font-size: 12px; font-weight: 700; }
.app-nav a { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 8px; color: var(--ink2); }
.app-nav a i { width: 14px; height: 14px; border-radius: 4px; border: 1.5px solid currentColor; opacity: .7; }
.app-nav a.on { background: color-mix(in srgb, var(--ink) 5%, transparent); color: var(--ink); }
.app-nav b { margin-left: auto; padding: 1px 7px; border-radius: 99px; background: var(--acc); color: var(--acc-ink); font-size: 11px; }
.app-agents { margin-top: 22px; padding: 0 8px; }
.app-agents div { display: flex; align-items: center; gap: 9px; padding: 7px 0; color: var(--ink); }
.app-agents span { width: 8px; height: 8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px var(--c); }
.app-main { padding: 22px 26px; }
.app-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.app-top b { display: block; margin-top: 4px; font-size: 16px; font-family: var(--f-head); font-weight: 500; }
.live { display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px; border-radius: 99px; background: color-mix(in srgb, var(--acc) 10%, transparent); color: var(--acc); font-size: 12px; white-space: nowrap; }
.live i { width: 6px; height: 6px; border-radius: 50%; background: var(--acc); animation: k-pulse 1.4s infinite; }
@keyframes k-pulse { 50% { opacity: .25; } }
.steps { list-style: none; margin: 18px 0 0; padding: 0; position: relative; }
.steps::before { content: ''; position: absolute; left: 11px; top: 14px; bottom: 14px; width: 1px; background: var(--line); }
.steps li { position: relative; display: flex; gap: 14px; padding: 10px 0; opacity: .25; transition: opacity .5s var(--ease); }
.steps li.done, .steps li.cur { opacity: 1; }
.st-ic { flex: none; position: relative; z-index: 1; width: 23px; height: 23px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--bg2); transition: background .4s, border-color .4s; }
.steps li.done .st-ic { background: var(--acc); border-color: var(--acc); }
.steps li.done .st-ic::after { content: ''; position: absolute; left: 7px; top: 4px; width: 5px; height: 9px; border: solid var(--acc-ink); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.steps li.cur .st-ic { border-color: var(--acc); border-top-color: transparent; animation: k-spin .8s linear infinite; }
@keyframes k-spin { to { transform: rotate(360deg); } }
.steps b { font-weight: 500; font-size: 14px; }
.steps li.ask .st-ic { border-color: var(--acc3); }
.steps li.ask.cur .st-ic { animation: none; background: color-mix(in srgb, var(--acc3) 15%, transparent); }
.ask-btns { display: flex; gap: 8px; margin-top: 10px; }
.ask-btns button { height: 30px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--line); background: none; font-size: 12px; cursor: pointer; }
.ask-btns button:first-child { background: var(--acc); color: var(--acc-ink); border-color: var(--acc); font-weight: 600; }
.app-right { padding: 18px; border-left: 1px solid var(--line); }
.kpi { margin: 10px 0 14px; }
.kpi b { display: block; font: 500 40px/1 var(--f-head); letter-spacing: -0.04em; color: var(--acc); }
.kpi span { color: var(--ink2); font-size: 12px; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 70px; margin-bottom: 16px; }
.bars i { flex: 1; height: var(--h); border-radius: 4px 4px 2px 2px; background: linear-gradient(var(--acc), color-mix(in srgb, var(--acc) 25%, transparent)); transform-origin: bottom; animation: k-grow 1.2s var(--ease) both; }
.bars i:nth-child(2) { animation-delay: .08s } .bars i:nth-child(3) { animation-delay: .16s } .bars i:nth-child(4) { animation-delay: .24s } .bars i:nth-child(5) { animation-delay: .32s } .bars i:nth-child(6) { animation-delay: .4s } .bars i:nth-child(7) { animation-delay: .48s }
@keyframes k-grow { from { transform: scaleY(0); } }
.mini { display: flex; justify-content: space-between; padding: 9px 0; border-top: 1px solid var(--line); color: var(--ink2); }
.mini b { color: var(--ink); font-weight: 500; }

/* Logos */
.logos { padding: 96px 0 24px; }
.logos-cap { text-align: center; color: var(--ink2); font-size: 15px; margin-bottom: 32px; }
.lg { font: 600 26px/1 var(--f-head); letter-spacing: -0.03em; color: var(--ink); opacity: .45; white-space: nowrap; transition: opacity .3s; }
.lg:hover { opacity: 1; }

/* Bento */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { position: relative; overflow: hidden; padding: 28px; border-radius: var(--r-lg); border: 1px solid var(--line); background: linear-gradient(180deg, var(--bg2), var(--bg)); transition: border-color .4s, transform .5s var(--ease); }
.card::before { content: ''; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(400px circle at var(--cx, 50%) var(--cy, 0%), color-mix(in srgb, var(--acc) 9%, transparent), transparent 60%); opacity: 0; transition: opacity .4s; pointer-events: none; }
.card:hover { border-color: color-mix(in srgb, var(--acc) 28%, transparent); }
.card:hover::before { opacity: 1; }
.card h3 { margin-top: 24px; font-size: 22px; font-weight: 500; letter-spacing: -0.02em; }
.card p { margin-top: 10px; color: var(--ink2); font-size: 15px; }
.card-viz { position: relative; height: 230px; border-radius: var(--r-md); background: var(--bg3); border: 1px solid var(--line); overflow: hidden; }
.plan { padding: 18px; font-size: 13px; }
.plan-q { padding: 10px 12px; border-radius: 10px; background: color-mix(in srgb, var(--acc) 8%, transparent); color: var(--acc); margin-bottom: 12px; }
.plan-l { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px dashed var(--line); }
.plan-l i { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; background: color-mix(in srgb, var(--ink) 6%, transparent); font-style: normal; font-size: 11px; color: var(--ink2); }
.plan-l.dim { color: var(--ink2); }
.card:hover .plan-l { animation: k-tick .5s var(--ease) both; }
.card:hover .plan-l:nth-child(3) { animation-delay: .08s } .card:hover .plan-l:nth-child(4) { animation-delay: .16s } .card:hover .plan-l:nth-child(5) { animation-delay: .24s }
@keyframes k-tick { from { transform: translateX(-8px); opacity: .3; } }
.orbit { display: grid; place-items: center; }
.orb-core { position: absolute; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--acc); box-shadow: 0 0 40px color-mix(in srgb, var(--acc) 40%, transparent); z-index: 2; }
.ring { position: absolute; border-radius: 50%; border: 1px dashed color-mix(in srgb, var(--ink) 14%, transparent); animation: k-spin 28s linear infinite; }
.ring.r1 { width: 140px; height: 140px; }
.ring.r2 { width: 220px; height: 220px; animation-duration: 44s; animation-direction: reverse; }
.ring span { position: absolute; display: grid; place-items: center; width: 34px; height: 34px; margin: -17px; border-radius: 10px; background: var(--bg2); border: 1px solid var(--line); font-size: 11px; font-weight: 600; color: var(--ink); }
.r1 span:nth-child(1) { left: 50%; top: 0 } .r1 span:nth-child(2) { left: 93%; top: 75% } .r1 span:nth-child(3) { left: 7%; top: 75% }
.r2 span:nth-child(1) { left: 50%; top: 0 } .r2 span:nth-child(2) { left: 100%; top: 50% } .r2 span:nth-child(3) { left: 50%; top: 100% } .r2 span:nth-child(4) { left: 0; top: 50% }
.appr { margin: 22px 18px 0; padding: 14px; border-radius: 14px; background: var(--bg2); border: 1px solid var(--line); font-size: 13px; transition: transform .5s var(--ease); }
.appr.ghosted { margin-top: 10px; opacity: .45; transform: scale(.95); }
.card:hover .appr:first-child { transform: translateY(-4px); }
.appr-h { display: flex; gap: 12px; align-items: center; }
.appr-h b { font-weight: 500; }
.appr-h small { display: block; color: var(--ink2); font-size: 12px; }
.av { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, var(--bg3), color-mix(in srgb, var(--ink) 18%, var(--bg3))); color: var(--ink); font-size: 12px; font-weight: 600; }
.av.lg { width: 52px; height: 52px; font-size: 16px; background: var(--acc); color: var(--acc-ink); }
.appr-b { display: flex; gap: 8px; margin-top: 14px; }
.appr-b button { flex: 1; height: 34px; border-radius: 99px; border: 1px solid var(--line); background: none; font-size: 13px; cursor: pointer; }
.appr-b .yes { background: var(--acc); color: var(--acc-ink); border-color: var(--acc); font-weight: 600; }
.c-learn { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: center; }
.c-learn h3 { margin-top: 0; font-size: 30px; }
.ticks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 30px; font-size: 15px; }
.ticks li::before { content: ''; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: color-mix(in srgb, var(--acc) 14%, transparent); }
.ticks li::after { content: ''; position: absolute; left: 6px; top: 7px; width: 4px; height: 8px; border: solid var(--acc); border-width: 0 1.8px 1.8px 0; transform: rotate(45deg); }
.doc { height: 260px; display: grid; place-items: center; background: radial-gradient(circle at 70% 20%, color-mix(in srgb, var(--acc) 8%, transparent), transparent 50%), var(--bg3); }
.doc-p { width: 78%; padding: 22px; border-radius: 14px; background: var(--bg2); border: 1px solid var(--line); display: grid; gap: 10px; font-size: 13px; transform: rotate(-2deg); transition: transform .6s var(--ease); }
.card:hover .doc-p { transform: rotate(0); }
.ln { height: 7px; border-radius: 4px; background: color-mix(in srgb, var(--ink) 8%, transparent); }
.w90 { width: 90% } .w70 { width: 70% } .w80 { width: 80% } .w50 { width: 50% }
.doc-p mark { padding: 6px 8px; border-radius: 6px; background: color-mix(in srgb, var(--acc) 14%, transparent); color: var(--acc); }
.doc-tag { position: absolute; right: 9%; bottom: 14%; padding: 7px 12px; border-radius: 99px; background: var(--acc); color: var(--acc-ink); font-size: 12px; font-weight: 600; box-shadow: 0 10px 30px -8px color-mix(in srgb, var(--acc) 50%, transparent); }

/* How */
.how-line { position: relative; height: 1px; background: var(--line); margin-bottom: 0; }
.how-line i { position: absolute; inset: 0; background: linear-gradient(90deg, var(--acc), color-mix(in srgb, var(--acc) 20%, transparent)); transform: scaleX(0); transform-origin: left; transition: transform 1.6s var(--ease); opacity: 1 !important; filter: none !important; }
.how-line i.in { transform: scaleX(1); }
.how-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.how-grid li { position: relative; padding-top: 40px; }
.how-grid li::before { content: ''; position: absolute; top: -6px; left: 0; width: 11px; height: 11px; border-radius: 50%; background: var(--bg); border: 2px solid var(--acc); }
.how-n { font: 500 13px/1 var(--f-mono); color: var(--acc); }
.how-grid h3 { margin-top: 16px; font-size: 26px; font-weight: 500; }
.how-grid p { margin-top: 12px; color: var(--ink2); }

/* Numbers */
.nums { padding-top: 0; }
.a-nums b { font-weight: 500; }

/* Quote */
.quote { background: var(--bg2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.quote-in { max-width: 980px; }
.quote blockquote { margin: 28px 0 0; font: 500 clamp(28px, 3.6vw, 46px)/1.18 var(--f-head); letter-spacing: -0.03em; }
.who { display: flex; align-items: center; gap: 16px; margin-top: 40px; flex-wrap: wrap; }
.who small { display: block; color: var(--ink2); font-size: 14px; }
.who-link { margin-left: auto; color: var(--acc); text-decoration: none; font-weight: 500; }

/* Pricing */
.bill { position: relative; display: inline-flex; margin-top: 32px; padding: 5px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg2); }
.bill button { position: relative; z-index: 1; height: 40px; padding: 0 20px; border: 0; border-radius: 999px; background: none; font-size: 14px; color: var(--ink2); cursor: pointer; transition: color .3s; }
.bill button[aria-pressed="true"] { color: var(--acc-ink); font-weight: 600; }
.bill button em { font-style: normal; font-size: 12px; opacity: .8; }
.bill i { position: absolute; top: 5px; bottom: 5px; left: 5px; width: calc(50% - 5px); border-radius: 999px; background: var(--acc); transition: transform .45s var(--ease); }
.bill[data-state="y"] i { transform: translateX(100%); }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.plan { position: relative; padding: 32px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--bg2); display: flex; flex-direction: column; }
.plan h3 { font-size: 22px; font-weight: 500; }
.plan-d { margin-top: 8px; color: var(--ink2); font-size: 15px; }
.price { display: flex; align-items: baseline; gap: 8px; margin: 28px 0; }
.price b { font: 500 56px/1 var(--f-head); letter-spacing: -0.04em; transition: opacity .16s, transform .16s; }
.price b.flip { opacity: 0; transform: translateY(-8px); }
.price span { color: var(--ink2); font-size: 14px; }
.a-btn.full { width: 100%; justify-content: center; padding: 0 24px; }
.a-btn.full .chip { margin-left: auto; margin-right: -16px; }
.a-btn.full:has(.chip) { justify-content: space-between; padding: 0 8px 0 24px; }
.a-btn.full:has(.chip) .chip { margin: 0; }
.plan .ticks { margin-top: 28px; }
.plan.pop { background: linear-gradient(180deg, color-mix(in srgb, var(--acc) 9%, transparent), var(--bg2) 40%); border-color: color-mix(in srgb, var(--acc) 40%, transparent); }
.pop-tag { position: absolute; top: 28px; right: 28px; padding: 5px 11px; border-radius: 99px; background: var(--acc); color: var(--acc-ink); font-size: 12px; font-weight: 600; }

/* FAQ */
.faq-in { display: grid; grid-template-columns: 1fr 1.4fr; gap: 64px; align-items: start; }
.faq .a-head { position: sticky; top: 120px; margin-bottom: 0; }
.faq .a-head a { color: var(--acc); }
.a-acc summary { font-weight: 500; }

/* CTA */
.cta-wrap { padding-bottom: var(--sec); }
.cta { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 64px; border-radius: var(--r-lg); background: var(--acc); color: var(--acc-ink); }
.cta h2 { font-size: clamp(34px, 4.4vw, 58px); font-weight: 500; color: var(--acc-ink); max-width: 13em; }
.cta p { margin-top: 14px; font-size: 18px; opacity: .75; }
.cta-copy { position: relative; z-index: 1; }
.a-btn.dark { position: relative; z-index: 1; background: var(--acc-ink); color: var(--acc); --chip: var(--acc); }
.a-btn.dark .chip { color: var(--acc-ink); }
.cta-bird { position: absolute; right: -40px; bottom: -80px; width: 340px; height: 340px; fill: color-mix(in srgb, var(--acc-ink) 7%, transparent); transform: rotate(-12deg); transition: transform 1.2s var(--ease); }
.cta:hover .cta-bird { transform: rotate(-4deg) translateY(-12px); }

/* Footer */
.foot-p { margin-top: 16px; max-width: 22em; color: var(--ink2); font-size: 15px; }
.a-word { color: transparent; -webkit-text-stroke: 1px color-mix(in srgb, var(--ink) 16%, transparent); background: linear-gradient(180deg, color-mix(in srgb, var(--acc) 22%, transparent), transparent 80%); -webkit-background-clip: text; background-clip: text; }

/* Responsive */
@media (max-width: 1080px) {
  .app { grid-template-columns: 190px 1fr; } .app-right { display: none; }
  .bento { grid-template-columns: 1fr 1fr; } .c-learn { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .nav-links, .nav-login { display: none; }
  .nav-burger { display: block; }
  .nav-mob { display: grid; position: fixed; inset: 76px 0 0; padding: 24px 20px; background: var(--bg); gap: 4px; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .3s, transform .4s var(--ease), visibility 0s .4s; }
  .nav-mob a { padding: 16px 4px; border-bottom: 1px solid var(--line); font: 500 26px/1 var(--f-head); text-decoration: none; }
  .nav.open { background: var(--bg); }
  .nav.open .nav-mob { opacity: 1; visibility: visible; transform: none; transition: opacity .3s, transform .4s var(--ease); }
  .hero { padding-top: 132px; }
  .hero-sub { font-size: 18px; }
  .shot { margin-top: 56px; }
  .app { grid-template-columns: 1fr; min-height: 0; } .app-side { display: none; }
  .bento, .plans, .how-grid { grid-template-columns: 1fr; }
  .how-line { display: none; }
  .faq-in { grid-template-columns: 1fr; gap: 24px; } .faq .a-head { position: static; }
  .cta { flex-direction: column; align-items: flex-start; padding: 40px 28px; }
}
@media (max-width: 560px) {
  .nav-cta .a-btn.sm { display: none; }
  .hero-btns .a-btn { width: 100%; justify-content: center; }
  .who-link { margin-left: 0; width: 100%; }
}

/* Fixes */
.hero h1 { text-wrap: balance; font-size: clamp(46px, 7.4vw, 96px); }
.a-foot-grid a.logo { display: inline-flex; opacity: 1; padding: 0; }
.ring span { animation: k-spin 28s linear infinite reverse; }
.ring.r2 span { animation-duration: 44s; animation-direction: normal; }
.plan { font-size: 13px; }
.c-plan .card-viz { height: 250px; }
@media (max-width: 900px) {
  .nav-mob { position: absolute; inset: auto; top: 100%; left: 0; right: 0; height: calc(100dvh - 76px); align-content: start; background: var(--bg); }
}

/* ================= Inner pages ================= */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ph { position: relative; overflow: hidden; isolation: isolate; padding: 176px 0 96px; }
.ph::before { content: ''; position: absolute; z-index: -1; left: var(--mx, 70%); top: var(--my, 20%); width: 640px; height: 640px; border-radius: 50%; transform: translate(-50%, -50%); background: radial-gradient(circle, color-mix(in srgb, var(--acc) 13%, transparent), transparent 62%); transition: left .6s var(--ease), top .6s var(--ease); pointer-events: none; }
.ph-in { max-width: 920px; }
.ph.c .ph-in { margin: 0 auto; text-align: center; display: flex; flex-direction: column; align-items: center; }
.ph h1 { margin-top: 24px; font-size: clamp(44px, 6.4vw, 84px); font-weight: 500; letter-spacing: -0.05em; line-height: .98; text-wrap: balance; }
.ph-sub { margin-top: 24px; max-width: 640px; font-size: 20px; color: var(--ink2); }

/* Abstract cover art (no stock images needed) */
.art { position: relative; height: 100%; min-height: 220px; overflow: hidden; background: radial-gradient(circle at 20% 20%, color-mix(in srgb, var(--acc) 25%, transparent), transparent 45%), linear-gradient(135deg, var(--bg3), var(--bg)); }
.art span { position: absolute; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--acc) 35%, transparent); }
.art span:nth-child(1) { width: 60%; aspect-ratio: 1; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.art span:nth-child(2) { width: 36%; aspect-ratio: 1; left: 50%; top: 50%; transform: translate(-50%, -50%); border-style: dashed; animation: k-spin 40s linear infinite; }
.art span:nth-child(3) { width: 84%; aspect-ratio: 1; left: 50%; top: 50%; transform: translate(-50%, -50%); border-color: color-mix(in srgb, var(--ink) 8%, transparent); }
.art i { position: absolute; left: 50%; top: 50%; width: 18%; aspect-ratio: 1; transform: translate(-50%, -50%) rotate(45deg); border-radius: 22%; background: var(--acc); box-shadow: 0 0 60px color-mix(in srgb, var(--acc) 50%, transparent); }
.art-b { background: linear-gradient(160deg, var(--bg3), var(--bg)); } .art-b i { border-radius: 50%; width: 22%; left: 30%; top: 60%; background: var(--acc2); box-shadow: 0 0 60px color-mix(in srgb, var(--acc2) 45%, transparent); } .art-b span { border-color: color-mix(in srgb, var(--acc2) 30%, transparent); }
.art-b.alt i { background: var(--acc3); box-shadow: 0 0 60px color-mix(in srgb, var(--acc3) 45%, transparent); left: 68%; top: 40%; } .art-b.alt span { border-color: color-mix(in srgb, var(--acc3) 30%, transparent); }
.art-c { background: radial-gradient(circle at 80% 80%, color-mix(in srgb, var(--acc) 30%, transparent), transparent 50%), var(--bg2); } .art-c i { transform: translate(-50%, -50%); width: 46%; height: 10%; border-radius: 99px; aspect-ratio: auto; }
.art-d { background: repeating-linear-gradient(90deg, color-mix(in srgb, var(--ink) 5%, transparent) 0 1px, transparent 1px 28px), linear-gradient(135deg, var(--bg2), var(--bg)); } .art-d i { border-radius: 8px; transform: translate(-50%, -50%) rotate(-12deg); width: 30%; aspect-ratio: 1.6; }
.art-e { background: conic-gradient(from 210deg at 50% 60%, var(--bg), color-mix(in srgb, var(--acc) 18%, var(--bg)), var(--bg)); } .art-e i { width: 12%; border-radius: 50%; } .art-e span { border-color: color-mix(in srgb, var(--acc) 50%, transparent); }
.art-f { background: linear-gradient(180deg, var(--bg2), var(--bg)); } .art-f i { background: transparent; box-shadow: none; border: 2px solid var(--acc); width: 26%; }

/* About */
.story { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.story-img .art { min-height: 460px; }
.story-copy h2 { margin-top: 20px; font-size: clamp(32px, 3.6vw, 48px); font-weight: 500; }
.story-copy p { margin-top: 20px; color: var(--ink2); font-size: 18px; }
.vals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.val { padding: 32px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--bg2); transition: border-color .4s, transform .5s var(--ease); }
.val:hover { border-color: color-mix(in srgb, var(--acc) 35%, transparent); transform: translateY(-4px); }
.val-n { font: 500 13px/1 var(--f-mono); color: var(--acc); }
.val h3 { margin-top: 40px; font-size: 26px; font-weight: 500; }
.val p { margin-top: 12px; color: var(--ink2); }
.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px 16px; }
.mate b { display: block; margin-top: 16px; font-weight: 500; font-size: 17px; }
.mate small { color: var(--ink2); font-size: 14px; }
.mate-ph { position: relative; aspect-ratio: 4/5; border-radius: var(--r-md); overflow: hidden; display: grid; place-items: center; background: radial-gradient(circle at 30% 20%, hsl(var(--h) 60% 40% / .55), transparent 60%), linear-gradient(160deg, var(--bg3), var(--bg2)); border: 1px solid var(--line); }
.mate-ph span { font: 500 44px/1 var(--f-head); letter-spacing: -0.04em; color: color-mix(in srgb, var(--ink) 85%, transparent); transition: transform .6s var(--ease); }
.mate:hover .mate-ph span { transform: scale(1.12) rotate(-4deg); }
.mate-ph::after { content: ''; position: absolute; inset: auto 12px 12px auto; width: 10px; height: 10px; border-radius: 50%; background: var(--acc); opacity: 0; transition: opacity .3s; }
.mate:hover .mate-ph::after { opacity: 1; }
.mate-ph.is-photo span { display: none; }
.mate-ph.is-photo::before { content: ''; position: absolute; inset: 0; background: var(--ph) center 25% / cover no-repeat; transition: transform .6s var(--ease); }
.mate:hover .mate-ph.is-photo::before { transform: scale(1.04); }
.mate-ph::after { z-index: 1; }
.team-sec { padding-top: 0; }

/* Pricing page */
.plans-sec { margin-top: -24px; }
.cmp-wrap { overflow-x: auto; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--bg2); }
.cmp { width: 100%; min-width: 680px; border-collapse: collapse; font-size: 15px; }
.cmp th, .cmp td { padding: 16px 24px; text-align: left; border-bottom: 1px solid var(--line); font-weight: 400; }
.cmp thead th { font: 500 18px/1 var(--f-head); padding: 24px; }
.cmp tbody th { color: var(--ink2); }
.cmp td { color: var(--ink); }
.cmp .grp th { padding-top: 28px; font: 500 12px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--acc); }
.cmp .pop-col { background: color-mix(in srgb, var(--acc) 4%, transparent); }
.cmp thead .pop-col { color: var(--acc); }
.cmp tr:last-child th, .cmp tr:last-child td { border-bottom: 0; }
.cmp tbody tr:not(.grp):hover { background: color-mix(in srgb, var(--ink) 2%, transparent); }
.cmp i { display: inline-block; width: 20px; height: 20px; border-radius: 50%; position: relative; vertical-align: middle; }
.cmp i.y { background: color-mix(in srgb, var(--acc) 15%, transparent); }
.cmp i.y::after { content: ''; position: absolute; left: 7px; top: 4px; width: 4px; height: 8px; border: solid var(--acc); border-width: 0 1.8px 1.8px 0; transform: rotate(45deg); }
.cmp i.n::after { content: ''; position: absolute; left: 5px; right: 5px; top: 9px; height: 1.5px; background: var(--ink2); opacity: .5; }

/* Blog */
.feat { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; text-decoration: none; }
.feat-img .art { min-height: 380px; transition: transform .8s var(--ease); }
.feat:hover .feat-img .art { transform: scale(1.03); }
.feat h2 { margin-top: 18px; font-size: clamp(30px, 3.4vw, 44px); font-weight: 500; transition: color .3s; }
.feat:hover h2 { color: var(--acc); }
.feat p { margin-top: 16px; color: var(--ink2); font-size: 18px; }
.tag { display: inline-flex; padding: 5px 12px; border-radius: 99px; border: 1px solid var(--line); font: 500 12px/1 var(--f-mono); letter-spacing: .06em; color: var(--acc); }
.by { display: flex; align-items: center; gap: 12px; margin-top: 28px; }
.by b { display: block; font-weight: 500; font-size: 15px; }
.by small { color: var(--ink2); font-size: 13px; }
.blog-sec { padding-top: 96px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.chips button { height: 40px; padding: 0 18px; border-radius: 99px; border: 1px solid var(--line); background: none; font-size: 14px; color: var(--ink2); cursor: pointer; transition: all .25s; }
.chips button:hover { color: var(--ink); border-color: color-mix(in srgb, var(--ink) 30%, transparent); }
.chips button[aria-pressed="true"] { background: var(--acc); color: var(--acc-ink); border-color: var(--acc); font-weight: 600; }
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 24px; }
.post { display: block; text-decoration: none; transition: opacity .35s, transform .35s var(--ease); }
.post.hide { display: none; }
.post-img { border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line); margin-bottom: 20px; }
.post-img .art { min-height: 0; aspect-ratio: 16/10; transition: transform .8s var(--ease); }
.post:hover .post-img .art { transform: scale(1.05); }
.post h3 { margin-top: 14px; font-size: 22px; font-weight: 500; line-height: 1.2; transition: color .3s; }
.post:hover h3 { color: var(--acc); }
.post p { margin-top: 8px; color: var(--ink2); font-size: 15px; }
.post small { display: block; margin-top: 12px; color: var(--ink2); font-size: 13px; }
.empty { padding: 40px 0; color: var(--ink2); }
.news { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; padding: 56px; border-radius: var(--r-lg); border: 1px solid var(--line); background: radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--acc) 10%, transparent), transparent 50%), var(--bg2); }
.news h2 { margin-top: 18px; font-size: clamp(30px, 3.4vw, 42px); font-weight: 500; }
.news p { margin-top: 12px; color: var(--ink2); }
.news-form { display: flex; flex-wrap: wrap; gap: 10px; }
.news-form input { flex: 1; min-width: 200px; }
input, select, textarea { width: 100%; height: 52px; padding: 0 18px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: 400 16px/1.4 var(--f-body); transition: border-color .25s, box-shadow .25s; }
textarea { height: auto; padding: 14px 18px; resize: vertical; }
input::placeholder, textarea::placeholder { color: color-mix(in srgb, var(--ink2) 70%, var(--bg)); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--acc); box-shadow: 0 0 0 4px color-mix(in srgb, var(--acc) 12%, transparent); }
.invalid { border-color: var(--err) !important; }
.form-msg { display: block; width: 100%; min-height: 20px; font-size: 14px; color: var(--ink2); }
.form-msg.err { color: var(--err); } .form-msg.ok { color: var(--acc); }

/* Article */
.read-bar { position: fixed; z-index: 60; left: 0; right: 0; top: 0; height: 2px; }
.read-bar i { display: block; height: 100%; background: var(--acc); transform-origin: left; transform: scaleX(var(--p, 0)); }
.art-head { max-width: 900px; padding-top: 160px; padding-bottom: 56px; }
.back { display: inline-block; margin-bottom: 28px; color: var(--ink2); text-decoration: none; font-size: 15px; transition: color .2s; }
.back:hover { color: var(--acc); }
.art-head h1 { margin-top: 20px; font-size: clamp(40px, 5.6vw, 72px); font-weight: 500; letter-spacing: -0.045em; text-wrap: balance; }
.art-cover .art { min-height: 0; aspect-ratio: 21/9; }
.art-body { display: grid; grid-template-columns: 220px minmax(0, 720px); justify-content: center; gap: 72px; padding-top: 72px; padding-bottom: 40px; }
.toc { position: sticky; top: 110px; align-self: start; display: grid; gap: 4px; font-size: 14px; }
.toc b { font: 500 12px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink2); margin-bottom: 12px; }
.toc a { padding: 7px 0 7px 14px; border-left: 1px solid var(--line); color: var(--ink2); text-decoration: none; transition: color .2s, border-color .2s; }
.toc a:hover, .toc a.on { color: var(--ink); border-left-color: var(--acc); }
.prose { font-size: 18px; line-height: 1.75; color: color-mix(in srgb, var(--ink) 86%, var(--bg)); }
.prose > * + * { margin-top: 24px; }
.prose .lede { font-size: 22px; line-height: 1.6; color: var(--ink); }
.prose h2 { margin-top: 56px; font-size: 32px; font-weight: 500; color: var(--ink); scroll-margin-top: 110px; }
.prose ul { padding-left: 0; list-style: none; display: grid; gap: 12px; }
.prose li { position: relative; padding-left: 28px; }
.prose li::before { content: ''; position: absolute; left: 4px; top: 12px; width: 8px; height: 8px; border-radius: 2px; background: var(--acc); transform: rotate(45deg); }
.prose b { color: var(--ink); font-weight: 600; }
.prose blockquote { margin: 40px 0; padding: 4px 0 4px 28px; border-left: 2px solid var(--acc); }
.prose blockquote p { font: 500 26px/1.35 var(--f-head); letter-spacing: -0.02em; color: var(--ink); }
.prose cite { display: block; margin-top: 14px; font-style: normal; font-size: 15px; color: var(--ink2); }
.callout { padding: 20px 24px; border-radius: 16px; background: color-mix(in srgb, var(--acc) 7%, transparent); border: 1px solid color-mix(in srgb, var(--acc) 20%, transparent); }
.callout b { color: var(--acc); font: 500 12px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; }
.callout p { margin-top: 8px; font-size: 16px; }
.share { display: flex; align-items: center; gap: 10px; margin-top: 56px !important; padding-top: 28px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink2); }
.share a, .share button { display: grid; place-items: center; min-width: 40px; height: 40px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--line); background: none; color: var(--ink); text-decoration: none; font-size: 14px; cursor: pointer; transition: border-color .2s, color .2s; }
.share a:hover, .share button:hover { border-color: var(--acc); color: var(--acc); }
.rel-head { display: flex; justify-content: space-between; align-items: end; margin-bottom: 40px; }
.rel-head h2 { font-size: 40px; font-weight: 500; }
.rel-head a { color: var(--acc); text-decoration: none; }
.related { padding-top: 64px; }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact h1 { margin-top: 24px; font-size: clamp(42px, 5.4vw, 72px); font-weight: 500; letter-spacing: -0.05em; line-height: 1; }
.c-cards { display: grid; gap: 10px; margin-top: 40px; }
.c-card { display: flex; align-items: center; gap: 16px; padding: 16px; border-radius: 16px; border: 1px solid var(--line); background: color-mix(in srgb, var(--ink) 2%, transparent); text-decoration: none; transition: border-color .3s, transform .4s var(--ease); }
a.c-card:hover { border-color: color-mix(in srgb, var(--acc) 40%, transparent); transform: translateX(4px); }
.c-card b { display: block; font-weight: 500; }
.c-card small { color: var(--ink2); font-size: 14px; }
.c-ic { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: color-mix(in srgb, var(--acc) 10%, transparent); color: var(--acc); }
.cform { position: relative; }
.cform-in, .sent { padding: 28px; background: var(--bg2); display: grid; gap: 18px; }
.cform label { display: grid; gap: 8px; font-size: 14px; color: var(--ink2); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.topics { margin: 0; padding: 0; border: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.topics legend { font-size: 14px; color: var(--ink2); margin-bottom: 10px; }
.topics label { display: block; }
.topics input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.topics span { display: inline-flex; align-items: center; height: 38px; padding: 0 16px; border-radius: 99px; border: 1px solid var(--line); color: var(--ink); font-size: 14px; cursor: pointer; transition: all .2s; }
.topics input:checked + span { background: var(--acc); border-color: var(--acc); color: var(--acc-ink); font-weight: 600; }
.topics input:focus-visible + span { outline: 2px solid var(--acc); outline-offset: 2px; }
.sent { min-height: 520px; place-content: center; text-align: center; justify-items: center; }
.sent h3 { font-size: 32px; font-weight: 500; }
.sent p { color: var(--ink2); max-width: 22em; }
.sent-ic { position: relative; width: 64px; height: 64px; border-radius: 50%; background: var(--acc); animation: k-pop .6s var(--ease); }
.sent-ic::after { content: ''; position: absolute; left: 25px; top: 18px; width: 11px; height: 20px; border: solid var(--acc-ink); border-width: 0 3px 3px 0; transform: rotate(45deg); }
@keyframes k-pop { from { transform: scale(.4); opacity: 0; } }

/* 404 */
.nf { position: relative; overflow: hidden; isolation: isolate; min-height: 100vh; display: grid; place-items: center; padding: 140px 0 80px; text-align: center; }
.nf::before { content: ''; position: absolute; z-index: -1; left: var(--mx, 50%); top: var(--my, 40%); width: 700px; height: 700px; border-radius: 50%; transform: translate(-50%, -50%); background: radial-gradient(circle, color-mix(in srgb, var(--acc) 14%, transparent), transparent 62%); transition: left .6s var(--ease), top .6s var(--ease); }
.nf-in { display: flex; flex-direction: column; align-items: center; }
.nf-num { display: flex; align-items: center; gap: 12px; font: 500 clamp(120px, 22vw, 260px)/.9 var(--f-head); letter-spacing: -0.06em; }
.nf-bird { width: .8em; height: .8em; color: var(--acc); animation: k-fly 3.6s ease-in-out infinite; filter: drop-shadow(0 20px 40px color-mix(in srgb, var(--acc) 35%, transparent)); }
@keyframes k-fly { 50% { transform: translateY(-18px) rotate(8deg); } }
.nf h1 { margin-top: 24px; font-size: clamp(36px, 4.6vw, 56px); font-weight: 500; }
.nf .ph-sub { margin-left: auto; margin-right: auto; }
.nf-links { display: flex; gap: 24px; margin-top: 32px; }
.nf-links a { color: var(--ink2); text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: 2px; transition: color .2s, border-color .2s; }
.nf-links a:hover { color: var(--acc); border-color: var(--acc); }
.nf-page .a-foot { display: none; }

@media (max-width: 1080px) { .team { grid-template-columns: repeat(3, 1fr); } .art-body { grid-template-columns: 1fr; } .toc { display: none; } }
@media (max-width: 900px) {
  .ph { padding: 136px 0 64px; }
  .story, .feat, .news, .contact, .vals, .posts { grid-template-columns: 1fr; }
  .story { gap: 40px; } .story-img .art { min-height: 300px; }
  .team { grid-template-columns: 1fr 1fr; }
  .news { padding: 32px 24px; }
  .art-head { padding-top: 128px; } .art-body { padding-top: 48px; }
  .row2 { grid-template-columns: 1fr; }
}
.cta-mark { position: absolute; right: -30px; bottom: -70px; width: 320px; height: 320px; color: color-mix(in srgb, var(--acc-ink) 9%, transparent); transform: rotate(-12deg); transition: transform 1.2s var(--ease); pointer-events: none; }
.cta-mark svg { width: 100%; height: 100%; fill: currentColor; }
.cta:hover .cta-mark { transform: rotate(-4deg) translateY(-12px); }
