/* ==========================================================================
   Flowgen — design system & homepage styles
   ========================================================================== */
:root {
  --bg: #000;
  --bg-1: #0a0a0b;
  --bg-2: #131313;
  --bg-3: #1c1c1c;
  --bg-4: #222;
  --line: #262626;
  --line-soft: rgba(255,255,255,.08);
  --line-dash: rgba(255,255,255,.12);
  --fg: #edf2f5;
  --fg-2: #9f9f9f;
  --fg-3: #828282;
  --fg-4: #505050;
  --white: #fff;
  --green: #08ffb6;
  --purple: #bb3eff;
  --pink: #e01e5a;
  --red: #ff2323;
  --blue: #3e8bff;
  --amber: #ffb020;
  --font: "Inter", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --radius: 8px;
  --radius-lg: 14px;
  --container: 1180px;
  --header-h: 60px;
  --announce-h: 40px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body.no-scroll { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.ico { width: 1em; height: 1em; display: inline-block; vertical-align: -0.15em; }
i[data-icon], span[data-icon] { display: inline-flex; font-style: normal; }
i[data-icon] svg, span[data-icon] svg { width: 16px; height: 16px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 16px; border-radius: var(--radius); font-size: 14px; font-weight: 500; line-height: 1.2; transition: background .15s, color .15s, transform .15s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-white { background: var(--white); color: #222; }
.btn-white:hover { background: #e6e6e6; }
.btn-grey { background: #333; color: var(--fg); }
.btn-grey:hover { background: #444; }
.btn-ghost { background: transparent; border: 1px solid var(--line); }
.btn-sm { padding: 6px 12px; }
.btn-xs { padding: 4px 10px; font-size: 12px; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--fg-2); }
.link-arrow svg { width: 14px; height: 14px; transition: transform .15s; }
.link-arrow:hover { color: var(--fg); }
.link-arrow:hover svg { transform: translateX(2px); }

/* Section scaffolding with dashed vertical guides */
.section-grid { position: relative; }
.section-grid > .container { position: relative; }
.section-grid > .container::before, .section-grid > .container::after { content: ""; position: absolute; top: 0; bottom: 0; width: 0; border-left: 1px dashed var(--line-dash); pointer-events: none; }
.section-grid > .container::before { left: 0; }
.section-grid > .container::after { right: 0; }
@media (max-width: 1240px) { .section-grid > .container::before, .section-grid > .container::after { display: none; } }
.section-head { padding: 96px 0 40px; max-width: 640px; }
.section-head h2, .final-cta h2, .hero-title { font-size: 48px; font-weight: 500; line-height: 1.12; letter-spacing: -0.0225em; }
.section-head p { margin-top: 16px; color: var(--fg-2); font-size: 16px; max-width: 520px; }
.section-head--row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; max-width: none; }
.section-head--row > div { max-width: 640px; }
@media (max-width: 860px) { .section-head h2, .final-cta h2, .hero-title { font-size: 36px; } .section-head { padding: 64px 0 32px; } .section-head--row { flex-direction: column; align-items: flex-start; } }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
.fade { animation: fade .35s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .fade { animation: none; } * { scroll-behavior: auto !important; } }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(0,0,0,.85); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.site-header.is-scrolled { border-bottom: 1px solid var(--line-soft); }
.header-inner { position: relative; height: var(--header-h); max-width: var(--container); margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 17px; letter-spacing: -0.01em; }
.logo-mark { width: 22px; height: 22px; }
.nav { flex: 1; display: flex; justify-content: center; }
.nav-list { display: flex; align-items: center; gap: 4px; }
.nav-item { position: static; }
.nav-link, .nav-trigger { display: inline-flex; align-items: center; gap: 4px; padding: 8px 10px; border-radius: 6px; font-size: 14px; color: var(--fg-2); transition: color .15s, background .15s; }
.nav-link:hover, .nav-trigger:hover, .nav-item.is-open .nav-trigger { color: var(--fg); }
.nav-trigger .chev { width: 12px; height: 12px; transition: transform .2s; }
.nav-item.is-open .chev { transform: rotate(180deg); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.header-actions .nav-link { color: var(--fg); font-weight: 500; }

/* Mega menu */
.mega { position: absolute; top: 100%; left: 50%; transform: translate(-50%, 6px); padding-top: 4px; max-width: calc(100vw - 32px); opacity: 0; visibility: hidden; transition: opacity .18s, transform .18s, visibility .18s; z-index: 60; }
.nav-item.is-open .mega { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.mega-inner { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 10px; display: grid; gap: 6px; box-shadow: 0 20px 60px rgba(0,0,0,.6); }
.mega-platform { grid-template-columns: 280px 280px; }
.mega-resources { grid-template-columns: 300px; }
.mega-solutions { grid-template-columns: 260px 280px; }
.mega-col { display: flex; flex-direction: column; gap: 2px; }
.mega-heading { padding: 10px 10px 4px; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--fg-3); }
.mega-link { display: flex; gap: 10px; align-items: flex-start; padding: 9px 10px; border-radius: 8px; transition: background .12s; }
.mega-link:hover { background: var(--bg-3); }
.mega-link strong { display: block; font-size: 14px; font-weight: 500; }
.mega-link small { display: block; font-size: 12px; color: var(--fg-3); margin-top: 2px; }
.mega-icon { flex: none; width: 32px; height: 32px; border-radius: 8px; background: var(--bg-3); border: 1px solid var(--line); display: grid; place-items: center; color: var(--fg); }
.mega-icon svg { width: 16px; height: 16px; }
.mega-link--featured .mega-icon { background: linear-gradient(135deg, #2b1a3f, #15232a); border-color: #3a2a55; }
.mega-promo { display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding: 14px; border-radius: 10px; background: radial-gradient(120% 90% at 20% 0%, #2a1c12 0%, #0f0f10 60%); border: 1px solid var(--line); min-height: 200px; }
.mega-promo:hover { border-color: #3a3a3a; }
.promo-badge { font-size: 11px; letter-spacing: .05em; text-transform: uppercase; color: #ff8a4c; }
.promo-badge em { font-style: normal; font-weight: 700; }
.mega-promo strong { font-size: 15px; font-weight: 500; }
.mega-promo small { font-size: 12px; color: var(--fg-3); }

/* Announcement bar */
.announce { display: flex; justify-content: center; align-items: center; gap: 10px; min-height: var(--announce-h); padding: 6px 16px; text-align: center; font-size: 13px; color: var(--fg); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); background: #050505; }
.announce-badge { padding: 3px 8px; border-radius: 5px; background: #3a1d12; color: #ff8a4c; font-weight: 500; }
.announce svg { width: 14px; height: 14px; }
.announce:hover span:not(.announce-badge) { text-decoration: underline; }

/* Burger + mobile menu */
.burger { display: none; width: 36px; height: 36px; flex-direction: column; justify-content: center; gap: 5px; align-items: center; }
.burger span { width: 18px; height: 1.5px; background: var(--fg); transition: transform .2s, opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
.mobile-menu { position: fixed; inset: var(--header-h) 0 0; background: var(--bg); overflow: auto; padding: 16px 24px 40px; z-index: 49; }
.mobile-menu details { border-bottom: 1px solid var(--line); }
.mobile-menu summary { padding: 16px 0; font-size: 18px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; }
.mobile-menu summary::after { content: "+"; color: var(--fg-3); }
.mobile-menu details[open] summary::after { content: "–"; }
.mobile-menu details div { display: flex; flex-direction: column; padding-bottom: 12px; }
.mobile-menu details a, .mobile-link { padding: 10px 0; color: var(--fg-2); font-size: 15px; }
.mobile-link { display: block; border-bottom: 1px solid var(--line); padding: 16px 0; font-size: 18px; color: var(--fg); }
.mobile-cta { display: flex; gap: 10px; margin-top: 24px; }
.mobile-cta .btn { flex: 1; }
@media (max-width: 980px) { .nav, .header-actions .nav-link, .header-actions .btn { display: none; } .burger { display: flex; } .announce { font-size: 12px; gap: 8px; } }
.site-header:has(.burger[aria-expanded="true"]) .announce { display: none; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { position: relative; padding: 110px 0 0; text-align: center; overflow: hidden; }
.hero-glow { position: absolute; inset: -20% 0 auto; height: 70%; background: radial-gradient(60% 50% at 50% 0%, rgba(255,255,255,.07), transparent 70%); pointer-events: none; }
.hero .container { position: relative; }
.hero-title { max-width: 820px; margin: 0 auto; }
.hero-title .block { display: block; }
.rotator { position: relative; display: block; height: 1.15em; }
.rot { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: .3em; white-space: nowrap; opacity: 0; filter: blur(16px); visibility: hidden; transition: opacity .6s ease, filter .6s ease, visibility .6s; }
.rot.is-active { opacity: 1; filter: none; visibility: visible; }
.plat-logo { width: .8em; height: .8em; display: inline-block; border-radius: 50%; background: var(--fg); flex: none; }
.plat-logo[data-logo="chatgpt"] { background: conic-gradient(from 0deg, #fff 0 60deg, #000 60deg 70deg, #fff 70deg 130deg, #000 130deg 140deg, #fff 140deg 200deg, #000 200deg 210deg, #fff 210deg 270deg, #000 270deg 280deg, #fff 280deg 340deg, #000 340deg 350deg, #fff 350deg); -webkit-mask: radial-gradient(circle, transparent 36%, #000 38%); mask: radial-gradient(circle, transparent 36%, #000 38%); }
.plat-logo[data-logo="perplexity"] { background: #20b8cd; clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); border-radius: 0; }
.plat-logo[data-logo="claude"] { background: #d97757; clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); border-radius: 0; }
.plat-logo[data-logo="gemini"] { background: linear-gradient(135deg, #4285f4, #9b72cb, #d96570); clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%); border-radius: 0; }
.plat-logo[data-logo="copilot"] { background: linear-gradient(135deg, #f25022 0 50%, #7fba00 50%); border-radius: 30%; }
.plat-logo[data-logo="deepseek"] { background: #4d6bfe; border-radius: 50% 50% 50% 0; }
.plat-logo[data-logo="aio"] { background: conic-gradient(#4285f4, #34a853, #fbbc05, #ea4335, #4285f4); -webkit-mask: radial-gradient(circle, transparent 40%, #000 42%); mask: radial-gradient(circle, transparent 40%, #000 42%); }
.hero-sub { max-width: 640px; margin: 22px auto 0; font-size: 17px; color: var(--fg-2); }
.hero-cta { display: flex; justify-content: center; gap: 10px; margin-top: 28px; }

/* Product demo */
.demo-wrap { margin-top: 64px; }
.demo { display: grid; grid-template-columns: 210px 1fr 1.05fr; height: 560px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg-1); overflow: hidden; text-align: left; box-shadow: 0 40px 120px rgba(0,0,0,.6); }
.demo-side { background: #0d0d0e; border-right: 1px solid var(--line); padding: 14px 12px; display: flex; flex-direction: column; font-size: 13px; }
.demo-ws { display: flex; align-items: center; gap: 8px; padding: 4px 6px; }
.ws-avatar { width: 20px; height: 20px; border-radius: 5px; background: #ffb020; color: #000; font-size: 10px; font-weight: 700; display: grid; place-items: center; }
.ws-name { font-weight: 500; }
.demo-ws svg { width: 12px; height: 12px; color: var(--fg-3); }
.ws-inbox { margin-left: auto; width: 14px; height: 10px; border: 1.3px solid var(--fg-3); border-radius: 3px; }
.demo-seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--bg-3); border-radius: 7px; padding: 3px; margin: 12px 0; }
.demo-seg button { padding: 5px; border-radius: 5px; font-size: 12px; color: var(--fg-3); }
.demo-seg button.is-active { background: var(--bg-4); color: var(--fg); }
.demo-menu li { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 6px; color: var(--fg-2); }
.demo-menu li.is-active { background: var(--bg-3); color: var(--fg); }
.demo-menu svg { width: 14px; height: 14px; }
.demo-recents-label { display: flex; align-items: center; gap: 6px; margin: 18px 8px 6px; font-size: 11px; color: var(--fg-3); }
.demo-recents-label svg { width: 10px; height: 10px; }
.demo-recents { display: flex; flex-direction: column; gap: 2px; }
.demo-recents button { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 6px; color: var(--fg-2); text-align: left; font-size: 13px; }
.demo-recents button:hover { background: var(--bg-3); }
.demo-recents button.is-active { background: var(--bg-3); color: var(--fg); }
.demo-recents svg { width: 14px; height: 14px; }
.demo-side-foot { margin-top: auto; display: flex; justify-content: space-between; color: var(--fg-3); }
.demo-chat { display: flex; flex-direction: column; border-right: 1px solid var(--line); min-width: 0; }
.demo-chat-head { display: flex; align-items: center; gap: 6px; padding: 14px 18px; font-size: 13px; font-weight: 500; border-bottom: 1px solid var(--line-soft); }
.demo-chat-head svg { width: 10px; height: 10px; color: var(--fg-3); }
.demo-chat-body { flex: 1; overflow: auto; padding: 18px; font-size: 13px; line-height: 1.55; scrollbar-width: none; }
.demo-chat-body::-webkit-scrollbar { display: none; }
.msg-user { display: flex; justify-content: flex-end; }
.msg-user p { max-width: 86%; background: var(--bg-3); padding: 10px 14px; border-radius: 12px 12px 2px 12px; }
.msg-ai { margin-top: 18px; }
.msg-working { color: var(--fg-3); font-size: 12px; display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.dot-pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--fg); animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { opacity: .3; } }
.msg-paras p + p { margin-top: 12px; }
.msg-tools { margin-top: 16px; }
.tools-label { font-size: 12px; color: var(--fg-3); margin-bottom: 6px; }
.msg-tools li { display: flex; align-items: center; gap: 8px; padding: 6px 0; color: var(--fg-2); }
.msg-tools li svg { width: 13px; height: 13px; }
.msg-tools li .spin { margin-left: auto; width: 10px; height: 10px; border: 1.5px solid var(--fg-3); border-top-color: var(--fg); border-radius: 50%; animation: spin .8s linear infinite; }
.msg-tools li.done .spin { border: 0; animation: none; width: auto; height: auto; }
.msg-tools li.done .spin::after { content: "✓"; color: var(--green); font-size: 11px; }
@keyframes spin { to { transform: rotate(360deg); } }
.demo-composer { position: relative; margin: 14px 18px 18px; border: 1px solid var(--line); border-radius: 12px; background: #0f0f10; padding: 12px; }
.demo-composer-glow { position: absolute; left: 10%; right: 10%; top: -1px; height: 1px; background: linear-gradient(90deg, transparent, #3e8bff, transparent); }
.demo-composer input { width: 100%; background: none; border: 0; color: var(--fg); font: inherit; font-size: 13px; outline: none; }
.demo-composer input::placeholder { color: var(--fg-4); }
.demo-composer-row { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.demo-composer-row span { flex: 1; }
.demo-composer-row button { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; color: var(--fg-2); border: 1px solid var(--line); }
.demo-composer-row button svg { width: 12px; height: 12px; }
.demo-composer-row .send { background: var(--fg); color: #000; border: 0; }
.demo-doc { background: #0b0b0c; opacity: .55; transition: opacity .5s; font-size: 13px; display: flex; flex-direction: column; min-width: 0; }
.demo-doc.is-visible { opacity: 1; }
.doc-tabs { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--line-soft); color: var(--fg-3); font-size: 12px; }
.doc-tab { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; border-radius: 6px; background: var(--bg-3); color: var(--fg); max-width: 200px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.doc-tab svg { width: 12px; height: 12px; flex: none; }
.doc-tab b { font-weight: 400; color: var(--fg-3); }
.doc-tools { margin-left: auto; }
.doc-tools svg { width: 14px; height: 14px; }
.doc-body { padding: 22px 26px; overflow: auto; scrollbar-width: none; }
.doc-body::-webkit-scrollbar { display: none; }
.doc-body h3 { font-size: 20px; font-weight: 500; letter-spacing: -0.01em; }
.doc-body small { display: block; color: var(--fg-3); margin: 6px 0 14px; }
.doc-body h4 { font-size: 14px; font-weight: 600; margin: 16px 0 4px; }
.doc-body p { color: var(--fg-2); }
.doc-hero { font-size: 22px; color: var(--fg) !important; font-weight: 500; letter-spacing: -0.02em; margin-bottom: 8px; }
.doc-ad { display: flex; gap: 12px; padding: 12px; margin-top: 12px; border: 1px solid var(--line); border-radius: 10px; }
.doc-ad-img { flex: none; width: 64px; height: 64px; border-radius: 8px; background: linear-gradient(135deg, #2d3b34, #16201b); }
.doc-ad strong { font-size: 13px; display: block; }
.doc-ad em { font-style: normal; color: var(--fg-3); font-size: 12px; }
.demo-note { margin: 14px 0 0; font-size: 12px; color: var(--fg-4); text-align: center; }
@media (max-width: 980px) { .demo { grid-template-columns: 1fr; height: auto; } .demo-side, .demo-doc { display: none; } .demo-chat { border-right: 0; } .demo-chat-body { max-height: 420px; } }

/* ==========================================================================
   Logos
   ========================================================================== */
.logos { padding: 100px 0 40px; }
.logos .container { padding-top: 40px; }
.logos-head { display: flex; justify-content: space-between; align-items: center; padding: 0 0 20px; font-size: 14px; }
.marquee { overflow: hidden; border-top: 1px solid var(--line-dash); border-bottom: 1px solid var(--line-dash); -webkit-mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 50s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.logo-cell { flex: none; width: 196px; height: 72px; display: grid; place-items: center; border-right: 1px dashed var(--line-dash); font-size: 17px; font-weight: 600; letter-spacing: -0.01em; color: var(--fg); opacity: .9; }
.logo-cell.serif { font-family: Georgia, "Times New Roman", serif; font-weight: 400; letter-spacing: .12em; font-size: 14px; }
.logo-cell.heavy { font-weight: 800; letter-spacing: .04em; }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* ==========================================================================
   Statement (sticky word reveal)
   ========================================================================== */
.statement { height: 220vh; }
.statement > .container { position: sticky; top: 0; height: 100vh; display: grid; place-items: center; }
.statement-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.statement > .container { position: sticky; }
.statement .statement-canvas { position: sticky; }
.statement-text { position: relative; z-index: 1; max-width: 680px; text-align: center; font-size: 44px; font-weight: 500; line-height: 1.15; letter-spacing: -0.03em; }
.statement-text .w { color: var(--fg-4); filter: blur(5px); transition: color .4s, filter .4s; }
.statement-text .w.on { color: var(--fg); filter: none; }
.statement-canvas { position: sticky !important; top: 0; display: block; height: 100vh; pointer-events: none; -webkit-mask: radial-gradient(42% 30% at 50% 50%, rgba(0,0,0,.25) 0%, #000 100%); mask: radial-gradient(42% 30% at 50% 50%, rgba(0,0,0,.25) 0%, #000 100%); }
.statement > .container { margin-top: -100vh; }
.statement { position: relative; }
@media (max-width: 860px) { .statement-text { font-size: 30px; } .statement { height: 180vh; } }

/* ==========================================================================
   Capabilities
   ========================================================================== */
.inline-aim { display: inline-block; width: .7em; height: .7em; background: var(--fg); clip-path: polygon(0 50%, 50% 0, 100% 50%, 50% 100%); vertical-align: -0.05em; margin: 0 .05em; }
.cap-grid { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px dashed var(--line-dash); border-bottom: 1px dashed var(--line-dash); }
.cap-left { padding: 28px 24px 28px 0; border-right: 1px dashed var(--line-dash); }
.pill-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.pill-tabs button { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg-2); color: var(--fg-2); font-size: 13px; transition: background .15s, color .15s, border-color .15s; }
.pill-tabs button svg { width: 13px; height: 13px; }
.pill-tabs button:hover { color: var(--fg); border-color: #3a3a3a; }
.pill-tabs button.is-active { background: var(--fg); color: #000; border-color: var(--fg); }
.pill-tabs--plain button { background: transparent; border-color: transparent; }
.pill-tabs--plain button.is-active { background: var(--bg-3); color: var(--fg); border-color: var(--line); }
.cap-copy { margin-top: 32px; }
.cap-copy h3 { font-size: 20px; font-weight: 500; letter-spacing: -0.015em; line-height: 1.3; }
.cap-copy p { margin-top: 12px; color: var(--fg-2); max-width: 440px; }
.cap-right { padding: 28px 0 28px 24px; display: flex; flex-direction: column; gap: 14px; min-height: 480px; }
.cmsg-you { display: flex; justify-content: flex-end; }
.cmsg-you p { max-width: 70%; background: var(--bg-3); border-radius: 12px 12px 2px 12px; padding: 12px 16px; font-size: 14px; }
.cmsg-ai small { display: flex; align-items: center; gap: 6px; color: var(--fg-3); font-size: 12px; margin-bottom: 6px; }
.cmsg-ai p { font-size: 14px; max-width: 520px; }
.ccard { border: 1px solid var(--line); border-radius: 10px; background: var(--bg-1); overflow: hidden; font-size: 13px; }
.ccard header { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--line-soft); color: var(--fg-2); }
.ccard-rows li { display: flex; align-items: center; gap: 10px; padding: 9px 14px; border-bottom: 1px solid var(--line-soft); }
.ccard-rows li:last-child { border-bottom: 0; }
.ccard-rows svg { width: 13px; height: 13px; color: var(--fg-3); }
.ccard-rows span { flex: 1; }
.ccard-rows small { color: var(--fg-3); }
.ccard-rows em { color: var(--fg-4); font-style: normal; }
.st { display: inline-flex; align-items: center; color: var(--green); }
.st svg { width: 12px; height: 12px; }
.st .spin { width: 10px; height: 10px; border: 1.5px solid var(--fg-3); border-top-color: var(--fg); border-radius: 50%; animation: spin .8s linear infinite; display: inline-block; }
.cmsg-composer { margin-top: auto; border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: #0f0f10; }
.cmsg-composer p { font-size: 13px; }
.cmsg-composer div { display: flex; align-items: center; gap: 8px; margin-top: 12px; color: var(--fg-3); }
.cmsg-composer div span { flex: 1; }
.cmsg-composer div b, .cmsg-composer div .send { width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; font-weight: 400; }
.cmsg-composer div svg { width: 14px; height: 14px; }
.cmsg-composer .send { background: var(--fg); color: #000; border: 0; font-style: normal; }
.ccard-post .post-img { height: 180px; background: linear-gradient(160deg, #3b4a3e, #151b17 70%); position: relative; }
.ccard-post .post-img::after { content: ""; position: absolute; left: 20%; bottom: 20%; width: 50%; height: 30%; border: 2px solid rgba(255,255,255,.4); border-radius: 50% / 60%; }
.ccard-post p { padding: 12px 14px; color: var(--fg-2); }
.ccard-stats { display: grid; grid-template-columns: repeat(3, 1fr); padding: 0; }
.ccard-stats div { padding: 14px; border-right: 1px solid var(--line-soft); }
.ccard-stats div:last-child { border-right: 0; }
.ccard-stats small { color: var(--fg-3); display: block; font-size: 12px; }
.ccard-stats strong { font-size: 16px; font-weight: 500; }
.ccard-ads { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ad { border: 1px solid var(--line); border-radius: 10px; padding: 12px; font-size: 13px; }
.ad-img { display: block; height: 110px; border-radius: 8px; background: linear-gradient(135deg, #2d3b34, #16201b); margin-bottom: 10px; }
.ad strong { display: block; font-weight: 500; }
.ad p { color: var(--fg-2); }
.ad em { font-style: normal; color: var(--fg-3); }
.ccard-email strong { display: block; padding: 12px 14px 4px; font-weight: 500; }
.ccard-email p { padding: 0 14px 14px; color: var(--fg-2); }
.ccard-slack { padding: 6px 0; }
.slack-msg { display: flex; gap: 10px; padding: 10px 14px; }
.avatar { flex: none; width: 32px; height: 32px; border-radius: 8px; background: var(--c, #555); display: block; }
.slack-msg strong { font-weight: 600; font-size: 13px; }
.slack-msg p { color: var(--fg-2); }
.files { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.files span { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border: 1px solid var(--line); border-radius: 6px; font-size: 12px; color: var(--fg-2); }
.files svg { width: 11px; height: 11px; }
@media (max-width: 980px) { .cap-grid { grid-template-columns: 1fr; } .cap-left { border-right: 0; padding-right: 0; border-bottom: 1px dashed var(--line-dash); } .cap-right { padding-left: 0; min-height: 0; } }

/* ==========================================================================
   Context
   ========================================================================== */
.ctx-grid { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px dashed var(--line-dash); }
.ctx-card { padding: 28px 24px 32px; border-bottom: 1px dashed var(--line-dash); }
.ctx-card:nth-child(odd) { border-right: 1px dashed var(--line-dash); padding-left: 0; }
.ctx-card:nth-child(even) { padding-right: 0; }
.ctx-card--wide { grid-column: 1 / -1; border-right: 0 !important; padding-right: 0 !important; }
.ctx-card h3 { font-size: 16px; font-weight: 500; margin-top: 24px; }
.ctx-card p { color: var(--fg-2); margin: 6px 0 18px; }
.ctx-visual { height: 300px; border-radius: 12px; background: var(--bg-1); border: 1px solid var(--line-soft); overflow: hidden; position: relative; }
.ctx-prompts { padding: 24px; display: flex; flex-direction: column; justify-content: center; gap: 8px; }
.pv-row { display: inline-flex; align-items: center; gap: 10px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg-2); font-size: 13px; width: max-content; transform: translateX(calc(var(--i, 0) * 30px)); animation: pvIn .6s both; }
.pv-row:nth-child(2) { --i: 1; } .pv-row:nth-child(3) { --i: 2; } .pv-row:nth-child(4) { --i: 3; } .pv-row:nth-child(5) { --i: 2; } .pv-row:nth-child(6) { --i: 1; } .pv-row:nth-child(7) { --i: 3; }
.pv-row:not(:first-child):not(:nth-child(5)) { opacity: .35; filter: blur(1px); }
.pv-term { color: var(--fg-2); }
.pv-vol { font-weight: 600; }
.pv-delta { font-size: 12px; color: var(--fg-3); }
.pv-delta.up { color: var(--green); } .pv-delta.down { color: var(--red); }
.ctx-insights { padding: 20px; display: grid; grid-template-rows: auto 1fr; gap: 14px; }
.ins-pill { display: inline-block; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line); font-size: 12px; color: var(--fg-2); }
.ins-rows { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.ins-rows div { padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg-2); }
.ins-rows strong { display: block; font-size: 12px; font-weight: 500; }
.ins-rows small { color: var(--fg-3); font-size: 11px; }
.ins-chart p { font-size: 12px; color: var(--fg-3); margin-bottom: 8px; }
.ins-chart svg { width: 100%; height: 110px; }
.ins-chart .line { stroke-dasharray: 600; stroke-dashoffset: 600; animation: draw 2s ease forwards; }
.ins-chart .l2 { animation-delay: .2s; } .ins-chart .l3 { animation-delay: .4s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.ctx-records { display: flex; align-items: flex-end; justify-content: center; gap: 16px; padding: 24px; background: radial-gradient(60% 60% at 50% 100%, rgba(187,62,255,.08), transparent); }
.rec-card { width: 220px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-2); font-size: 12px; color: var(--fg-2); }
.rec-card--lift { transform: translateY(-20px); }
.rec-card footer { display: flex; align-items: center; gap: 6px; margin-top: 14px; color: var(--fg); }
.rec-card footer span { margin-left: auto; color: var(--fg-3); }
.rec-dot { width: 10px; height: 10px; border-radius: 3px; background: var(--c); }
@media (max-width: 860px) { .ctx-grid { grid-template-columns: 1fr; } .ctx-card { padding-left: 0 !important; padding-right: 0 !important; border-right: 0 !important; } .rec-card:last-child { display: none; } }

/* ==========================================================================
   Customers carousel
   ========================================================================== */
.carousel-nav { display: flex; gap: 6px; }
.carousel-nav button { width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--line); display: grid; place-items: center; color: var(--fg); transition: background .15s; }
.carousel-nav button:hover:not(:disabled) { background: var(--bg-3); }
.carousel-nav button:disabled { opacity: .35; cursor: default; }
.carousel-nav svg { width: 14px; height: 14px; }
.carousel { overflow: hidden; padding-left: max(24px, calc((100% - var(--container)) / 2 + 24px)); }
.carousel-track { display: flex; gap: 16px; transition: transform .5s cubic-bezier(.2,.7,.2,1); touch-action: pan-y; }
.cust-card { flex: none; width: 560px; height: 420px; border-radius: 14px; overflow: hidden; position: relative; display: flex; flex-direction: column; justify-content: flex-end; background: var(--img); border: 1px solid var(--line); }
.cust-card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,.85)); }
.cust-logo { position: absolute; top: 20px; left: 20px; font-weight: 700; letter-spacing: .02em; font-size: 15px; z-index: 1; }
.cust-body { position: relative; padding: 24px; z-index: 1; }
.cust-body strong { display: block; font-size: 40px; font-weight: 500; letter-spacing: -0.03em; line-height: 1; }
.cust-body p { margin: 10px 0 14px; color: var(--fg); max-width: 420px; }
.cust-body footer { font-size: 13px; color: var(--fg-2); }
.cust-body footer i { font-style: normal; margin: 0 6px; }
.cust-body .link-arrow { margin-top: 12px; color: var(--fg); }
@media (max-width: 860px) { .cust-card { width: 82vw; height: 380px; } }

/* ==========================================================================
   Reinforced (feature cards carousel)
   ========================================================================== */
.feat-card { flex: none; width: 400px; }
.feat-visual { height: 280px; border-radius: 12px; border: 1px solid var(--line-soft); background: var(--bg-1); overflow: hidden; padding: 20px; position: relative; }
.feat-card h3 { font-size: 16px; font-weight: 500; margin-top: 22px; }
.feat-card p { color: var(--fg-2); margin: 6px 0 16px; }
.fv-bars { display: flex; align-items: flex-end; gap: 8px; height: 200px; }
.fv-bars i { flex: 1; height: var(--h); background: linear-gradient(180deg, var(--fg), #555); border-radius: 3px 3px 0 0; transform-origin: bottom; animation: grow 1s both; }
@keyframes grow { from { transform: scaleY(0); } }
.feat-analytics p { color: var(--fg-3); font-size: 12px; margin-top: 10px; }
.feat-bench ul { display: flex; flex-direction: column; gap: 22px; margin-top: 24px; }
.feat-bench li { display: grid; grid-template-columns: 110px 1fr 30px; align-items: center; gap: 12px; font-size: 13px; color: var(--fg-2); }
.feat-bench b { height: 10px; border-radius: 5px; background: var(--bg-3); position: relative; overflow: hidden; }
.feat-bench b::after { content: ""; position: absolute; inset: 0; width: var(--w); background: var(--fg); border-radius: 5px; }
.feat-bench li:first-child b::after { background: var(--green); }
.feat-bench em { font-style: normal; color: var(--fg); text-align: right; }
.fact-row { display: flex; align-items: center; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg-2); font-size: 12px; margin-bottom: 10px; }
.fact-row i { width: 8px; height: 8px; border-radius: 50%; background: var(--red); flex: none; }
.fact-row.ok i { background: var(--green); }
.fact-row span { margin-left: auto; color: var(--fg-3); }
.feat-sent { display: flex; align-items: center; gap: 24px; }
.sent-ring { position: relative; width: 150px; height: 150px; }
.sent-ring span { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; font-size: 26px; font-weight: 500; }
.sent-ring small { font-size: 12px; color: var(--fg-3); }
.feat-sent ul { font-size: 13px; color: var(--fg-2); display: flex; flex-direction: column; gap: 10px; }
.feat-sent li { display: flex; align-items: center; gap: 8px; }
.feat-sent li i { width: 8px; height: 8px; border-radius: 50%; }
.shop-item { display: flex; align-items: center; gap: 12px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg-2); margin-bottom: 10px; font-size: 13px; }
.shop-item i { width: 44px; height: 44px; border-radius: 6px; background: linear-gradient(135deg, #2d3b34, #16201b); }
.shop-item em { margin-left: auto; font-style: normal; font-weight: 600; }
.carousel-dots { display: flex; gap: 6px; padding: 28px 0 0; }
.carousel-dots button { width: 24px; height: 4px; border-radius: 2px; background: var(--bg-3); transition: background .2s; }
.carousel-dots button[aria-selected="true"] { background: var(--fg); }
@media (max-width: 860px) { .feat-card { width: 82vw; } }

/* ==========================================================================
   Enterprise / Command Center
   ========================================================================== */
.enterprise .section-head { padding-bottom: 24px; }
.cc-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; padding: 24px 0; border-top: 1px dashed var(--line-dash); }
.cc-head h3 { font-size: 20px; font-weight: 500; letter-spacing: -0.015em; }
.cc-head p { color: var(--fg-2); margin-top: 6px; }
.cc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.cc-card { border: 1px solid var(--line); border-radius: 12px; background: var(--bg-1); padding: 16px; font-size: 13px; min-width: 0; }
.cc-card header { display: flex; justify-content: space-between; align-items: center; color: var(--fg-2); margin-bottom: 10px; }
.cc-range { font-size: 11px; padding: 2px 8px; border: 1px solid var(--line); border-radius: 6px; color: var(--fg-3); }
.cc-big { display: block; font-size: 28px; font-weight: 500; letter-spacing: -0.02em; margin-bottom: 8px; }
.cc-chart { width: 100%; height: 150px; }
.cc-line.draw { animation: draw 1.6s ease forwards; }
.cc-seg { display: inline-flex; background: var(--bg-3); border-radius: 6px; padding: 2px; }
.cc-seg b { font-weight: 400; font-size: 11px; padding: 3px 8px; border-radius: 4px; color: var(--fg-3); cursor: pointer; }
.cc-seg b.is-active { background: var(--bg-4); color: var(--fg); }
.cc-bars { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.cc-bars li { display: grid; grid-template-columns: 140px 1fr 30px; gap: 10px; align-items: center; color: var(--fg-2); font-size: 12px; }
.cc-bars b { height: 8px; border-radius: 4px; background: var(--bg-3); position: relative; overflow: hidden; }
.cc-bars b::after { content: ""; position: absolute; inset: 0; width: var(--p); background: var(--fg); border-radius: 4px; transition: width .6s ease, background .3s; }
.cc-bars.bench b::after { width: 60%; background: var(--purple); }
.cc-bars em { font-style: normal; color: var(--fg); text-align: right; }
.cc-axis { display: flex; justify-content: space-between; margin: 10px 0 0 150px; font-size: 10px; color: var(--fg-4); }
.cc-card--wide { grid-column: 1 / -1; }
.podium { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; align-items: end; padding: 10px 0 20px; text-align: center; }
.podium-item { padding: 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-2); position: relative; }
.podium-item--first { padding: 22px 16px; border-color: #3a3a3a; }
.podium .rank { position: absolute; top: 10px; left: 10px; width: 20px; height: 20px; border-radius: 50%; background: var(--bg-4); font-size: 11px; display: grid; place-items: center; }
.podium .avatar { margin: 0 auto 10px; width: 44px; height: 44px; border-radius: 50%; }
.podium .avatar.big { width: 56px; height: 56px; }
.podium strong { display: block; font-weight: 500; }
.podium small { display: block; color: var(--fg-3); font-size: 12px; }
.cc-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.cc-table th { text-align: left; font-weight: 400; color: var(--fg-3); padding: 8px; border-bottom: 1px solid var(--line-soft); }
.cc-table td { padding: 9px 8px; border-bottom: 1px solid var(--line-soft); }
.cc-table td:first-child { color: var(--fg-3); width: 30px; }
.ent-grid { display: grid; grid-template-columns: 1fr 1fr; margin-top: 40px; border-top: 1px dashed var(--line-dash); }
.ent-card { padding: 28px 24px 56px; }
.ent-card:first-child { padding-left: 0; border-right: 1px dashed var(--line-dash); }
.ent-card:last-child { padding-right: 0; }
.ent-card h3 { font-size: 16px; font-weight: 500; margin-top: 24px; }
.ent-card p { color: var(--fg-2); margin: 6px 0 18px; }
.ent-visual { height: 240px; border-radius: 12px; border: 1px solid var(--line-soft); background: var(--bg-1); display: flex; align-items: center; justify-content: center; gap: 12px; }
.badge { padding: 10px 18px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-2); font-weight: 600; letter-spacing: .04em; }
.ent-integrations { position: relative; }
.int-glyph { width: 48px; height: 48px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-2); display: grid; place-items: center; font-style: normal; font-weight: 700; color: var(--fg-2); }
.int-glyph--center { background: var(--fg); color: #000; width: 56px; height: 56px; }
@media (max-width: 980px) { .cc-grid { grid-template-columns: 1fr; } .ent-grid { grid-template-columns: 1fr; } .ent-card { padding-left: 0 !important; padding-right: 0 !important; border-right: 0 !important; } .cc-head { flex-direction: column; align-items: flex-start; } .cc-bars li { grid-template-columns: 110px 1fr 30px; } .cc-axis { margin-left: 120px; } }

/* ==========================================================================
   Research
   ========================================================================== */
.research .pill-tabs { padding: 10px 0 24px; border-top: 1px dashed var(--line-dash); }
.research-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.rcard { display: block; }
.rcard-sheet { aspect-ratio: 320 / 420; border-radius: 10px; position: relative; overflow: hidden; background: #f3f1ec; color: #111; padding: 22px; display: flex; align-items: flex-end; border: 1px solid rgba(255,255,255,.1); transition: transform .3s; background-image: linear-gradient(rgba(0,0,0,.05) 1px, transparent 1px); background-size: 100% 28px; }
.rcard:hover .rcard-sheet { transform: translateY(-4px); }
.rcard-sheet h3 { font-size: 22px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.15; position: relative; z-index: 1; font-family: Georgia, "Times New Roman", serif; }
.rcard-art { position: absolute; border-radius: 6px; background: hsl(var(--hue) 70% 55%); opacity: .9; }
.rcard-art.a1 { width: 44%; height: 34%; top: 10%; right: 10%; }
.rcard-art.a2 { width: 30%; height: 26%; top: 28%; left: 10%; background: hsl(calc(var(--hue) + 40) 60% 45%); }
.rcard-art.a3 { width: 14%; height: 10%; top: 48%; right: 24%; background: #111; }
.rcard p { margin-top: 14px; font-size: 15px; font-weight: 500; }
.rcard small { display: block; margin-top: 4px; color: var(--fg-3); font-size: 13px; }
@media (max-width: 860px) { .research-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Final CTA
   ========================================================================== */
.final-cta { padding: 140px 0; text-align: center; }
.final-cta .container { padding-top: 40px; padding-bottom: 40px; }
.final-cta h2 { max-width: 700px; margin: 0 auto; }
.final-cta p { margin: 18px auto 0; color: var(--fg-2); font-size: 16px; max-width: 520px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 32px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr repeat(4, 1fr); gap: 32px; }
.footer-brand { display: flex; flex-direction: column; gap: 20px; }
.status { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--fg-2); }
.status i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(8,255,182,.15); }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col p { color: var(--fg-3); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 4px; }
.footer-col p.mt { margin-top: 18px; }
.footer-col a { color: var(--fg-2); }
.footer-col a:hover { color: var(--fg); }
.footer-bottom { display: flex; gap: 10px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line-soft); color: var(--fg-3); font-size: 13px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ==========================================================================
   Cookie banner
   ========================================================================== */
.cookie { position: fixed; right: 20px; bottom: 20px; z-index: 80; width: 320px; padding: 18px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); box-shadow: 0 20px 60px rgba(0,0,0,.6); font-size: 13px; }
.cookie h2 { font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.cookie p { color: var(--fg-2); }
.cookie a { text-decoration: underline; color: var(--fg); }
.cookie-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.cookie-custom { width: 100%; margin-top: 8px; padding: 6px; color: var(--fg-2); }
.cookie-custom:hover { color: var(--fg); }
@media (max-width: 480px) { .cookie { left: 12px; right: 12px; width: auto; bottom: 12px; } }

/* ==========================================================================
   Shared subpage components
   ========================================================================== */
.page-hero { padding: 96px 0 56px; text-align: center; }
.page-hero .eyebrow { display: inline-block; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-3); margin-bottom: 18px; }
.page-hero h1 { font-size: 56px; font-weight: 500; line-height: 1.08; letter-spacing: -0.03em; max-width: 820px; margin: 0 auto; }
.page-hero p { max-width: 620px; margin: 20px auto 0; color: var(--fg-2); font-size: 17px; }
.page-hero--left { text-align: left; }
.page-hero--left h1, .page-hero--left p { margin-left: 0; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature-grid--2 { grid-template-columns: 1fr 1fr; }
.card { border: 1px solid var(--line); border-radius: 12px; background: var(--bg-1); padding: 24px; }
.card h3 { font-size: 16px; font-weight: 500; }
.card p { color: var(--fg-2); margin-top: 8px; }
.card .card-visual { height: 180px; border-radius: 8px; background: var(--bg-2); border: 1px solid var(--line-soft); margin-bottom: 18px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding: 64px 0; border-top: 1px dashed var(--line-dash); }
.split h2 { font-size: 32px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.15; }
.split p { color: var(--fg-2); margin-top: 14px; }
.split .btn { margin-top: 22px; }
.split-visual { aspect-ratio: 4 / 3; border-radius: 12px; border: 1px solid var(--line-soft); background: var(--bg-1); }
.split--rev .split-visual { order: -1; }
.prose { max-width: 720px; margin: 0 auto; padding: 48px 0 96px; font-size: 17px; line-height: 1.7; color: var(--fg-2); }
.prose h2 { font-size: 28px; font-weight: 500; letter-spacing: -0.02em; color: var(--fg); margin: 40px 0 12px; }
.prose h3 { font-size: 20px; font-weight: 500; color: var(--fg); margin: 28px 0 8px; }
.prose p + p { margin-top: 16px; }
.prose ul { list-style: disc; padding-left: 20px; margin: 12px 0; }
.prose a { color: var(--fg); text-decoration: underline; }
.list-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding-bottom: 96px; }
.post-card { display: block; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--bg-1); transition: border-color .15s; }
.post-card:hover { border-color: #3a3a3a; }
.post-card .thumb { aspect-ratio: 16 / 9; background: linear-gradient(135deg, hsl(var(--hue, 200) 30% 18%), hsl(calc(var(--hue, 200) + 40) 30% 10%)); }
.post-card .body { padding: 18px; }
.post-card .tag { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--fg-3); }
.post-card h3 { font-size: 17px; font-weight: 500; margin-top: 8px; line-height: 1.3; }
.post-card small { display: block; margin-top: 10px; color: var(--fg-3); }
.form { max-width: 520px; display: grid; gap: 14px; }
.form label { display: grid; gap: 6px; font-size: 13px; color: var(--fg-2); }
.form input, .form select, .form textarea { width: 100%; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg-1); color: var(--fg); font: inherit; font-size: 14px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: #555; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.plan { border: 1px solid var(--line); border-radius: 14px; padding: 28px; background: var(--bg-1); display: flex; flex-direction: column; }
.plan--featured { border-color: #3a3a3a; background: var(--bg-2); }
.plan h3 { font-size: 18px; font-weight: 500; }
.plan .price { font-size: 40px; font-weight: 500; letter-spacing: -0.03em; margin: 14px 0 4px; }
.plan .price small { font-size: 14px; color: var(--fg-3); font-weight: 400; letter-spacing: 0; }
.plan > p { color: var(--fg-2); font-size: 14px; }
.plan ul { margin: 20px 0 24px; display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: var(--fg-2); }
.plan li { display: flex; gap: 8px; align-items: flex-start; }
.plan li::before { content: "✓"; color: var(--green); flex: none; }
.plan .btn { margin-top: auto; }
.faq { max-width: 720px; margin: 0 auto; padding: 48px 0 96px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { padding: 18px 0; font-size: 16px; font-weight: 500; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: "+"; color: var(--fg-3); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 18px; color: var(--fg-2); }
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px dashed var(--line-dash); border-bottom: 1px dashed var(--line-dash); }
.stats-row div { padding: 28px 24px; border-right: 1px dashed var(--line-dash); }
.stats-row div:first-child { padding-left: 0; }
.stats-row div:last-child { border-right: 0; }
.stats-row strong { display: block; font-size: 36px; font-weight: 500; letter-spacing: -0.03em; }
.stats-row span { color: var(--fg-2); font-size: 14px; }
.section-pad { padding: 64px 0; }
.section-pad--lg { padding: 96px 0; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-weight: 500; color: var(--fg-3); padding: 12px; border-bottom: 1px solid var(--line); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.table td { padding: 14px 12px; border-bottom: 1px solid var(--line-soft); }
.table tr:hover td { background: rgba(255,255,255,.02); }
.breadcrumb { font-size: 13px; color: var(--fg-3); padding-top: 32px; }
.breadcrumb a:hover { color: var(--fg); }
.article-meta { display: flex; gap: 12px; align-items: center; color: var(--fg-3); font-size: 14px; margin-top: 18px; }
.article-hero-img { aspect-ratio: 21 / 9; border-radius: 14px; margin: 40px auto 0; max-width: 960px; background: linear-gradient(135deg, hsl(var(--hue, 200) 30% 18%), hsl(calc(var(--hue, 200) + 40) 30% 10%)); border: 1px solid var(--line-soft); }
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.logo-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px dashed var(--line-dash); border-left: 1px dashed var(--line-dash); }
.logo-grid > * { display: grid; place-items: center; height: 96px; border-right: 1px dashed var(--line-dash); border-bottom: 1px dashed var(--line-dash); font-weight: 600; font-size: 16px; }
.tag-pill { display: inline-block; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line); font-size: 12px; color: var(--fg-2); }
@media (max-width: 980px) { .feature-grid, .list-grid, .pricing-grid, .team-grid { grid-template-columns: 1fr 1fr; } .split { grid-template-columns: 1fr; gap: 28px; } .split--rev .split-visual { order: 0; } .stats-row { grid-template-columns: 1fr 1fr; } .stats-row div { padding-left: 0; border-right: 0; } .logo-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .feature-grid, .list-grid, .pricing-grid, .team-grid, .feature-grid--2 { grid-template-columns: 1fr; } .page-hero h1 { font-size: 38px; } .form-row { grid-template-columns: 1fr; } }

/* flowgen logo (header) */
.logo--flowgen { gap: 8px; }
.logo--flowgen .logo-mark { width: 21px; height: 23px; }
.logo--flowgen .logo-text { font-size: 20px; font-weight: 700; letter-spacing: -0.035em; line-height: 1; padding-bottom: 2px; }

/* ---------- Language switch + Korean typography ---------- */
.lang { display: inline-flex; padding: 2px; margin-right: 6px; border: 1px solid var(--line); border-radius: 999px; }
.lang button { padding: 4px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600; letter-spacing: .04em; color: var(--fg-3); transition: color .2s, background .2s; }
.lang button:hover { color: var(--fg); }
.lang button.on { background: var(--fg); color: #000; }
.mobile-cta .lang { align-self: flex-start; margin: 0 0 6px; }
html[lang="ko"] body { font-family: Inter, "Pretendard Variable", Pretendard, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif; word-break: keep-all; overflow-wrap: break-word; }
html[lang="ko"] h1, html[lang="ko"] h2, html[lang="ko"] h3 { letter-spacing: -0.03em; line-height: 1.22; }
.logo--flowgen img { display: block; height: 28px; width: auto; }
.footer-brand .logo img { display: block; height: 28px; width: auto; }
/* grid items must be allowed to shrink below their content width on narrow screens */
.ctx-card, .ent-card { min-width: 0; }
@media (max-width: 860px) { .ctx-grid, .ent-grid { grid-template-columns: minmax(0, 1fr); } }
