/* BamMobi landing — ui-ux-pro-max: Hero + Features + CTA, light base with glass + dark showcase accents */
:root {
  --brand: #00a03a;
  --primary: #00843a;        /* 4.8:1 with white text */
  --primary-hover: #006e30;
  --primary-ink: #005a28;
  --primary-soft: #e7f6ec;
  --bg: #f8fafc;
  --surface: #ffffff;
  --muted: #f1f5f4;
  --fg: #0f172a;
  --fg-2: #334155;
  --fg-3: #475569;
  --border: #e2e8f0;
  --ink: #06120c;
  --on-ink: #e6efe9;
  --on-ink-2: #a9bdb1;
  --danger: #b91c1c;

  --font-head: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;

  --r-sm: 8px; --r-md: 12px; --r-lg: 18px; --r-xl: 26px;
  --sh-sm: 0 1px 2px rgba(15,23,42,.06), 0 1px 3px rgba(15,23,42,.05);
  --sh-md: 0 10px 28px rgba(15,23,42,.09), 0 2px 6px rgba(15,23,42,.04);
  --sh-lg: 0 30px 70px rgba(6,18,12,.28), 0 8px 20px rgba(6,18,12,.12);
  --ease: cubic-bezier(.2,.8,.2,1);
  --t-fast: 160ms; --t-med: 260ms;
  --header-h: 68px;
}

/* Accent families: --c (strong, AA on its soft bg), --cs (soft bg), --cg (glow/border) */
.c-green  { --c: #047857; --cs: #dcfce7; --cg: #34d399; }
.c-violet { --c: #6d28d9; --cs: #ede9fe; --cg: #a78bfa; }
.c-blue   { --c: #1d4ed8; --cs: #dbeafe; --cg: #60a5fa; }
.c-amber  { --c: #b45309; --cs: #fef3c7; --cg: #fbbf24; }
.c-rose   { --c: #be123c; --cs: #ffe4e6; --cg: #fb7185; }
.c-teal   { --c: #0f766e; --cs: #ccfbf1; --cg: #2dd4bf; }

*,*::before,*::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 1rem/1.65 var(--font-body); color: var(--fg-2); background: var(--bg); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--fg); margin: 0; line-height: 1.15; letter-spacing: -.02em; text-wrap: balance; }
p { margin: 0; }
a { color: var(--primary-ink); }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid #14b8a6; outline-offset: 3px; border-radius: 6px; }
body:focus { outline: none; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--fg); color: #fff; padding: 10px 16px; border-radius: var(--r-sm); text-decoration: none; }
.skip-link:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid transparent; font: 600 .95rem/1 var(--font-body); text-decoration: none; cursor: pointer; transition: background var(--t-fast) var(--ease), border-color var(--t-fast), color var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast) var(--ease); touch-action: manipulation; white-space: nowrap; }
.btn:active { transform: scale(.98); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: .9rem; }
.btn-lg { min-height: 52px; padding: 0 26px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-primary { background: linear-gradient(135deg, #00954a, var(--primary) 60%); color: #fff; box-shadow: 0 8px 22px rgba(0,132,58,.28); }
.btn-primary:hover { background: var(--primary-hover); box-shadow: 0 12px 28px rgba(0,132,58,.34); }
.btn-primary .ic { transition: transform var(--t-fast) var(--ease); }
.btn-primary:hover .ic { transform: translateX(3px); }
.btn-secondary { background: var(--surface); color: var(--fg); border-color: var(--border); box-shadow: var(--sh-sm); }
.btn-secondary:hover { border-color: var(--primary); color: var(--primary-ink); }
.btn-ghost { background: transparent; color: var(--fg-2); }
.btn-ghost:hover { background: var(--muted); color: var(--fg); }
.btn[disabled] { opacity: .6; cursor: progress; }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--fg); cursor: pointer; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(248,250,252,.72); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid transparent; transition: border-color var(--t-med), background var(--t-med); }
.site-header.scrolled { border-bottom-color: var(--border); background: rgba(255,255,255,.88); }
.header-inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 700 1.2rem var(--font-head); color: var(--fg); text-decoration: none; letter-spacing: -.02em; }
.brand img { border-radius: 9px; }
.nav { display: flex; gap: 2px; margin-left: 12px; }
.nav a { padding: 8px 13px; border-radius: 999px; color: var(--fg-2); font-weight: 500; font-size: .94rem; text-decoration: none; transition: background var(--t-fast), color var(--t-fast); }
.nav a:hover, .nav a.active { color: var(--primary-ink); background: var(--primary-soft); }
.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.menu-toggle { display: none; }
.mobile-nav { position: absolute; top: 100%; left: 0; right: 0; display: grid; gap: 4px; padding: 8px 24px 20px; max-height: calc(100dvh - var(--header-h)); overflow-y: auto; border-top: 1px solid var(--border); background: var(--surface); box-shadow: 0 18px 40px rgba(15,23,42,.14); }
.mobile-nav[hidden] { display: none; }
.mobile-nav a:not(.btn) { padding: 12px 8px; color: var(--fg); font-weight: 500; text-decoration: none; border-radius: var(--r-sm); }
.mobile-nav a:not(.btn):hover { background: var(--muted); }
.mobile-nav .btn { margin-top: 8px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 64px 0 88px; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.blob { position: absolute; border-radius: 50%; filter: blur(80px); }
.b1 { width: 560px; height: 560px; background: radial-gradient(circle, rgba(52,211,153,.55), transparent 65%); top: -200px; right: 4%; }
.b2 { width: 460px; height: 460px; background: radial-gradient(circle, rgba(96,165,250,.35), transparent 65%); bottom: -220px; left: -120px; }
.b3 { width: 380px; height: 380px; background: radial-gradient(circle, rgba(167,139,250,.32), transparent 65%); top: 20%; right: -140px; }
.grid-lines { position: absolute; inset: 0; background-image: linear-gradient(rgba(15,23,42,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(15,23,42,.05) 1px, transparent 1px); background-size: 48px 48px; mask-image: radial-gradient(ellipse 70% 60% at 40% 30%, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 70% 60% at 40% 30%, #000 30%, transparent 75%); }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 10px; border-radius: 999px; background: rgba(255,255,255,.8); border: 1px solid var(--border); font-size: .85rem; font-weight: 600; color: var(--primary-ink); box-shadow: var(--sh-sm); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px rgba(0,160,58,.18); }
.hero h1 { margin-top: 22px; font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 700; letter-spacing: -.035em; }
.hl { background: linear-gradient(100deg, #00843a 0%, #0f9f8f 50%, #2563eb 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { margin-top: 22px; font-size: 1.14rem; max-width: 54ch; color: var(--fg-3); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 34px; font-size: .92rem; font-weight: 500; color: var(--fg-2); }
.hero-trust li { display: inline-flex; align-items: center; gap: 10px; }
.ht-ic { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--cs); color: var(--c); }
.ht-ic .ic { width: 17px; height: 17px; }

/* Showcase (dark glass panel) */
.showcase { position: relative; border-radius: var(--r-xl); background: linear-gradient(160deg, #0c2418 0%, #081610 55%, #0a1622 100%); border: 1px solid rgba(255,255,255,.1); box-shadow: var(--sh-lg); color: var(--on-ink); overflow: hidden; min-height: 496px; display: flex; flex-direction: column; }
.showcase::before { content: ""; position: absolute; inset: -40% -20% auto auto; width: 70%; height: 80%; background: radial-gradient(circle, rgba(52,211,153,.22), transparent 60%); pointer-events: none; }
.sc-head { position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.03); }
.lights { display: flex; gap: 6px; padding-left: 4px; }
.lights i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; }
.lights i:nth-child(2) { background: #febc2e; }
.lights i:nth-child(3) { background: #28c840; }
.sc-tabs { display: flex; gap: 4px; margin: 0 auto; padding: 4px; border-radius: 999px; background: rgba(255,255,255,.06); overflow-x: auto; scrollbar-width: none; }
.sc-tabs button { border: 0; background: transparent; color: var(--on-ink-2); font: 600 .8rem var(--font-body); padding: 7px 12px; min-height: 32px; border-radius: 999px; cursor: pointer; white-space: nowrap; transition: background var(--t-fast), color var(--t-fast); }
.sc-tabs button:hover { color: #fff; }
.sc-tabs button[aria-selected="true"] { background: #fff; color: var(--ink); }
.sc-pause { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 1px solid rgba(255,255,255,.14); background: transparent; color: var(--on-ink-2); cursor: pointer; }
.sc-pause:hover { color: #fff; border-color: rgba(255,255,255,.3); }
.sc-pause .ic { width: 15px; height: 15px; }
.sc-panel { position: relative; flex: 1; padding: 22px; display: flex; flex-direction: column; gap: 14px; animation: panelIn 360ms var(--ease); }
.sc-panel[hidden] { display: none; }
.sc-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.sc-title span { display: inline-flex; align-items: center; gap: 8px; font: 600 .95rem var(--font-head); color: #fff; }
.sc-title small { font-size: .75rem; color: #8fa89a; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 4px rgba(52,211,153,.2); animation: pulse 1.8s infinite; }
.msg { max-width: 86%; padding: 12px 16px; border-radius: 16px; font-size: .92rem; line-height: 1.5; }
.msg-in { background: rgba(255,255,255,.09); color: var(--on-ink); border-bottom-left-radius: 4px; }
.msg-out { align-self: flex-end; background: linear-gradient(135deg, #059669, #047857); color: #fff; border-bottom-right-radius: 4px; box-shadow: 0 10px 24px rgba(4,120,87,.35); }
.msg-out.wide { max-width: 100%; }
.agent-tag { display: flex; align-items: center; gap: 6px; font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #bbf7d0; margin-bottom: 4px; }
.agent-tag .ic { width: 13px; height: 13px; }
.chat-label, .chat-name { font-weight: inherit; }
.chat { flex: 1 1 0; min-height: 200px; display: flex; flex-direction: column; gap: 10px; overflow: hidden; scroll-behavior: smooth; }
.chat.scrolled { -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 36px); mask-image: linear-gradient(to bottom, transparent 0, #000 36px); }
.chat > * { flex-shrink: 0; animation: msgIn 320ms var(--ease) both; }
.chat .msg { padding: 10px 14px; font-size: .9rem; }
.typing { display: inline-flex; gap: 5px; align-items: center; padding: 14px 16px !important; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .5; animation: typing 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
.msg-out.typing { box-shadow: none; }
.analysis { padding: 10px 14px 12px; border-radius: var(--r-md); background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); }
.an-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #8fa89a; }
.an-head > span:first-child { display: inline-flex; align-items: center; gap: 6px; flex: none; white-space: nowrap; }
.an-status { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.an-head .ic { width: 14px; height: 14px; color: #6ee7b7; }
.an-status { display: block; padding: 3px 9px; border-radius: 999px; font-size: .68rem; letter-spacing: .02em; text-transform: none; background: rgba(251,191,36,.12); color: #fcd34d; }
.an-status::before { content: ""; display: inline-block; vertical-align: 1px; margin-right: 6px; width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: pulse 1.2s infinite; }
.an-status.ok { background: rgba(52,211,153,.14); color: #6ee7b7; }
.an-status.ok::before { animation: none; }
.an-grid { display: grid; grid-template-columns: 1.35fr 1.1fr 1fr .8fr; gap: 10px; margin: 0; }
.an-grid > div { min-width: 0; }
.an-grid > div + div { padding-left: 10px; border-left: 1px solid rgba(255,255,255,.08); }
.an-grid dt { font-size: .68rem; color: #8fa89a; }
.an-grid dd { display: flex; align-items: center; gap: 6px; margin: 2px 0 0; min-height: 20px; font: 600 .82rem var(--font-head); color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; animation: msgIn 320ms var(--ease) both; }
.an-grid dd.pending { width: 70%; border-radius: 6px; background: linear-gradient(90deg, rgba(255,255,255,.06), rgba(255,255,255,.16), rgba(255,255,255,.06)); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }
.sent { flex: none; width: 8px; height: 8px; border-radius: 50%; background: #94a3b8; }
.sent.pos { background: #34d399; } .sent.mix { background: #fbbf24; }
.an-bar { display: block; height: 3px; margin-top: 4px; border-radius: 2px; background: rgba(255,255,255,.1); overflow: hidden; }
.an-bar b { display: block; height: 100%; border-radius: 2px; background: linear-gradient(90deg, #10b981, #6ee7b7); transition: width 900ms var(--ease); }
.act { align-self: center; position: relative; display: inline-flex; align-items: center; gap: 8px; max-width: 100%; padding: 6px 12px; border-radius: 999px; border: 1px dashed rgba(255,255,255,.18); background: rgba(255,255,255,.04); font-size: .78rem; color: var(--on-ink); }
.act .ic { flex: none; width: 18px; height: 18px; padding: 3px; border-radius: 50%; background: rgba(52,211,153,.18); color: #6ee7b7; stroke-width: 2.5; }
.act em { font-style: normal; font-size: .72rem; color: #8fa89a; font-variant-numeric: tabular-nums; }
.act.run .ic, .act.run em { visibility: hidden; }
.act.run::before { content: ""; position: absolute; left: 14px; width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(110,231,183,.25); border-top-color: #6ee7b7; animation: spin .7s linear infinite; }
.step.run::before { border-color: rgba(110,231,183,.25); border-top-color: #6ee7b7; animation: spin .7s linear infinite; }

.models { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.model { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 4px 12px; padding: 14px; border-radius: var(--r-md); background: linear-gradient(135deg, color-mix(in srgb, var(--mc) 18%, transparent), rgba(255,255,255,.02)); border: 1px solid color-mix(in srgb, var(--mc) 40%, transparent); }
.model b { display: block; font: 700 .95rem var(--font-head); color: #fff; }
.model small { font-size: .74rem; color: #8fa89a; }
.model ul { grid-column: 1 / -1; display: flex; gap: 6px; margin-top: 8px; }
.model li { font-size: .7rem; font-weight: 600; padding: 3px 8px; border-radius: 6px; background: color-mix(in srgb, var(--mc) 20%, transparent); color: color-mix(in srgb, var(--mc) 55%, #fff); }
.m-logo { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; background: rgba(255,255,255,.95); grid-row: span 1; }
.m-logo svg { width: 24px; height: 24px; }
.m-openai { --mc: #38bdf8; } .m-claude { --mc: #d97757; } .m-gemini { --mc: #a78bfa; } .m-muse { --mc: #3b82f6; }
.router { display: flex; align-items: center; gap: 10px; margin-top: auto; padding: 12px 14px; border-radius: var(--r-md); background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); font-size: .85rem; }
.router .ic { color: #6ee7b7; }

.pipeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px 10px; counter-reset: pp; }
.pp { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; }
.pp:not(:nth-child(4n))::after { content: ""; position: absolute; top: 23px; left: calc(50% + 28px); width: calc(100% + 10px - 56px); height: 2px; background: linear-gradient(90deg, var(--cg), transparent); opacity: .55; }
.pp-ic { position: relative; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: #0b1a13; border: 1px solid var(--cg); color: var(--cg); box-shadow: 0 0 20px color-mix(in srgb, var(--cg) 28%, transparent); animation: ppGlow 4s var(--ease) infinite; animation-delay: calc(var(--n) * 500ms); }
.pp-ic .ic { width: 20px; height: 20px; }
.pp-ic i { position: absolute; top: -7px; right: -7px; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--cg); color: #06130c; font: 700 .62rem var(--font-head); font-style: normal; }
.pp b { margin-top: 8px; font: 600 .8rem var(--font-head); color: #fff; }
.pp small { font-size: .68rem; color: #8fa89a; }
#p-rag .msg { margin-top: auto; }
.rag-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: .74rem; color: #8fa89a; }
.rag-meta span { display: inline-flex; align-items: center; gap: 6px; }
.rag-meta .ic { width: 14px; height: 14px; color: #6ee7b7; }

.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.kpi { padding: 11px 13px; border-radius: var(--r-md); background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); }
.kpi small { display: block; font-size: .72rem; color: #8fa89a; }
.kpi b { display: block; margin-top: 2px; font: 700 1.45rem var(--font-head); color: #fff; font-variant-numeric: tabular-nums; }
.up { font-size: .72rem; font-weight: 700; color: #6ee7b7; }
.kpi b i { font-style: normal; font-size: .9rem; color: #8fa89a; margin-left: 2px; }
.chart { margin-top: auto; padding: 12px 14px 0; border-radius: var(--r-md); background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08); }
.chart-head { display: flex; justify-content: space-between; gap: 12px; font-size: .74rem; color: #8fa89a; }
.chart-head span:first-child { color: var(--on-ink); font-weight: 600; }
.bars { height: 70px; margin-top: 10px; display: flex; align-items: flex-end; gap: 8px; }
.bars span { flex: 1; animation-delay: calc(var(--i, 0) * 45ms) !important; height: var(--h); border-radius: 6px 6px 0 0; background: linear-gradient(180deg, #34d399, rgba(52,211,153,.25)); transform-origin: bottom; animation: grow 700ms var(--ease) both; }
.bars span:last-child { background: linear-gradient(180deg, #6ee7b7, #10b981); box-shadow: 0 0 18px rgba(52,211,153,.45); }

/* ---------- Platforms ---------- */
.logos { padding: 40px 0 48px; background: var(--surface); border-block: 1px solid var(--border); }
.logos-title { text-align: center; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-3); margin-bottom: 22px; }
.logo-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.lg-chip { display: inline-flex; align-items: center; gap: 9px; padding: 9px 15px 9px 11px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); font: 600 .9rem var(--font-head); color: var(--fg); box-shadow: var(--sh-sm); transition: transform var(--t-med) var(--ease), box-shadow var(--t-med), border-color var(--t-med); }
.lg-chip:hover { transform: translateY(-2px); box-shadow: var(--sh-md); border-color: #cbd5e1; }
.lg-chip svg { width: 26px; height: 26px; }
.lg-openai { display: inline-grid; }

/* ---------- Sections ---------- */
.section { position: relative; padding: 104px 0; }
.section-muted { background: linear-gradient(180deg, #f1f6f3, #f5f7fa); }
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); }
.section-head p:not(.kicker) { margin-top: 14px; font-size: 1.08rem; color: var(--fg-3); }
.section-head.split { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; text-align: left; }
.section-head.split .head-note { max-width: 38ch; margin: 0; font-size: 1rem; }
.section-head.left { text-align: left; margin: 0; }
.kicker { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 12px; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--primary-ink); }
.kicker::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: currentColor; }
.section-head:not(.split):not(.left) .kicker::after { content: ""; width: 18px; height: 2px; border-radius: 2px; background: currentColor; }
.kicker-light { color: #6ee7a0; }

/* Offers (How we help) */
.offers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.offer { position: relative; overflow: hidden; padding: 30px 26px; border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--sh-sm); transition: transform var(--t-med) var(--ease), box-shadow var(--t-med), border-color var(--t-med); }
.offer::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg, var(--c), var(--cg)); }
.offer::after { content: ""; position: absolute; right: -60px; top: -60px; width: 160px; height: 160px; border-radius: 50%; background: var(--cs); opacity: .7; z-index: 0; }
.offer > * { position: relative; z-index: 1; }
.offer:hover { transform: translateY(-4px); box-shadow: var(--sh-md); border-color: color-mix(in srgb, var(--cg) 60%, white); }
.offer-num { position: absolute; top: 26px; right: 24px; font: 700 .9rem var(--font-head); color: var(--c); }
.offer-ic, .card-icon, .ind-ic { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 15px; background: var(--cs); color: var(--c); }
.offer-ic .ic, .card-icon .ic, .ind-ic .ic { width: 24px; height: 24px; }
.offer-ic { background: linear-gradient(135deg, var(--c), color-mix(in srgb, var(--c) 70%, var(--cg))); color: #fff; box-shadow: 0 10px 22px color-mix(in srgb, var(--c) 35%, transparent); }
.offer h3 { margin-top: 22px; font-size: 1.2rem; }
.offer p { margin-top: 10px; font-size: .95rem; color: var(--fg-3); }
.ticks { display: grid; gap: 8px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--border); font-size: .9rem; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks li::before { content: ""; flex-shrink: 0; width: 18px; height: 18px; margin-top: 3px; border-radius: 50%; background-color: var(--cs, var(--primary-soft)); -webkit-mask: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23334155' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); background-position: center; background-size: 11px; background-repeat: no-repeat; }

/* Bento */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { position: relative; padding: 28px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); transition: transform var(--t-med) var(--ease), box-shadow var(--t-med), border-color var(--t-med); }
.card:hover { transform: translateY(-3px); box-shadow: var(--sh-md); border-color: color-mix(in srgb, var(--cg) 55%, white); }
.card h3 { margin-top: 18px; font-size: 1.15rem; }
.card p { margin-top: 8px; font-size: .95rem; color: var(--fg-3); }
.card-feature { grid-column: span 2; grid-row: span 2; display: flex; flex-direction: column; overflow: hidden; background: radial-gradient(ellipse 60% 70% at 100% 0%, var(--cs), transparent 70%), linear-gradient(160deg, #fff 40%, #f0fbf4); }
.card-feature .card-icon { width: 60px; height: 60px; background: linear-gradient(135deg, #059669, #047857); color: #fff; box-shadow: 0 12px 26px rgba(4,120,87,.3); }
.card-feature h3 { font-size: 1.7rem; margin-top: 24px; }
.card-feature p { font-size: 1.05rem; max-width: 46ch; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.tags li { font-size: .78rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--cs, var(--muted)); color: var(--c, var(--fg-2)); }
.usecases { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 26px; }
.usecases li { display: flex; align-items: flex-start; gap: 12px; padding: 14px; border-radius: var(--r-md); background: rgba(255,255,255,.8); border: 1px solid var(--border); transition: border-color var(--t-fast), box-shadow var(--t-fast); }
.usecases li:hover { border-color: color-mix(in srgb, var(--cg) 60%, white); box-shadow: var(--sh-sm); }
.uc-ic { display: grid; place-items: center; flex-shrink: 0; width: 38px; height: 38px; border-radius: 11px; background: var(--cs); color: var(--c); }
.uc-ic .ic { width: 19px; height: 19px; }
.usecases b { display: block; font: 600 .95rem var(--font-head); color: var(--fg); }
.usecases small { display: block; margin-top: 2px; font-size: .85rem; line-height: 1.45; color: var(--fg-3); }
.mini-flow { margin-top: auto; padding-top: 28px; display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.mini-flow span { display: inline-flex; align-items: center; gap: 8px; padding: 12px 16px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--border); font: 600 .9rem var(--font-head); color: var(--fg); box-shadow: var(--sh-sm); }
.mini-flow span .ic { width: 18px; height: 18px; color: var(--c); }
.mini-flow span.hot { background: linear-gradient(135deg, #059669, #047857); color: #fff; border-color: transparent; box-shadow: 0 10px 22px rgba(4,120,87,.3); }
.mini-flow span.hot .ic { color: #fff; }
.mini-flow .arr { color: #94a3b8; }

/* Stats band */
.stats { background: linear-gradient(120deg, #00843a, #047857 45%, #0f766e); color: #fff; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 44px 24px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.stat + .stat { border-left: 1px solid rgba(255,255,255,.18); }
.stat .ic { width: 26px; height: 26px; color: #bbf7d0; margin-bottom: 10px; }
.stat b { font: 700 clamp(2rem, 3.5vw, 2.8rem) var(--font-head); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stat span { margin-top: 4px; font-size: .92rem; color: #dcfce7; }

/* Industries */
.industries { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.ind { display: grid; grid-template-columns: auto 1fr; gap: 4px 18px; align-items: start; padding: 24px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); transition: transform var(--t-med) var(--ease), box-shadow var(--t-med), border-color var(--t-med); }
.ind:hover { transform: translateY(-3px); box-shadow: var(--sh-md); border-color: color-mix(in srgb, var(--cg) 55%, white); }
.ind-ic { grid-row: span 2; }
.ind h3 { font-size: 1.08rem; align-self: end; }
.ind p { font-size: .92rem; color: var(--fg-3); }

/* Process (dark) */
.section-dark { background: var(--ink); color: var(--on-ink-2); overflow: hidden; }
.dark-glow { position: absolute; inset: 0; background: radial-gradient(ellipse 50% 50% at 15% 0%, rgba(52,211,153,.18), transparent 70%), radial-gradient(ellipse 40% 50% at 90% 100%, rgba(96,165,250,.14), transparent 70%); }
.section-dark .container { position: relative; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .section-head p:not(.kicker) { color: var(--on-ink-2); }
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; position: relative; margin-top: 30px; }
.timeline::before { content: ""; position: absolute; top: 0; left: 10%; right: 10%; height: 2px; background: linear-gradient(90deg, #60a5fa, #a78bfa, #fbbf24, #34d399); opacity: .55; }
.phase { position: relative; padding: 28px 24px; border-radius: var(--r-lg); background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.09); display: flex; flex-direction: column; transition: border-color var(--t-med), background var(--t-med), transform var(--t-med) var(--ease); }
.phase:hover { border-color: color-mix(in srgb, var(--cg, #34d399) 60%, transparent); background: rgba(255,255,255,.06); transform: translateY(-3px); }
.phase-icon { display: grid; place-items: center; width: 54px; height: 54px; margin-top: -56px; border-radius: 16px; background: #0b1a13; border: 1px solid var(--cg); color: var(--cg); box-shadow: 0 0 28px color-mix(in srgb, var(--cg) 35%, transparent); }
.phase:has(.c-blue) { --cg: #60a5fa; } .phase:has(.c-violet) { --cg: #a78bfa; } .phase:has(.c-amber) { --cg: #fbbf24; } .phase:has(.c-green) { --cg: #34d399; }
.phase-when { margin-top: 20px; font-size: .76rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--cg); }
.phase h3 { margin-top: 8px; font-size: 1.3rem; }
.phase p { margin-top: 10px; font-size: .95rem; color: var(--on-ink-2); }
.deliverable { margin-top: auto; padding-top: 20px; font-size: .86rem; font-weight: 600; color: var(--on-ink); }
.deliverable::before { content: "Deliverable"; display: block; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: #8fa89a; margin-bottom: 4px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.09); }

/* Products */
.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.product { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 8px; padding: 26px; border-radius: var(--r-lg); border: 1px solid var(--border); background: var(--surface); min-height: 200px; transition: transform var(--t-med) var(--ease), box-shadow var(--t-med); }
.product::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg, var(--c, var(--primary)), var(--cg, #34d399)); }
.product:not(.skeleton):hover { transform: translateY(-3px); box-shadow: var(--sh-md); }
.product-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.product .card-icon { width: 46px; height: 46px; border-radius: 13px; }
.badge { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 4px 10px; border-radius: 999px; }
.badge-live { background: var(--primary-soft); color: var(--primary-ink); }
.badge-beta { background: #fef3c7; color: #854d0e; }
.product h3 { font-size: 1.12rem; }
.product p { font-size: .93rem; color: var(--fg-3); }
.product .cat { font-size: .8rem; font-weight: 600; color: var(--c, #64748b); text-transform: capitalize; }
.skeleton { background: linear-gradient(90deg, #f1f5f9 25%, #e8eef4 50%, #f1f5f9 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-color: transparent; }
.skeleton::before { display: none; }

/* FAQ */
.faq-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; }
.faq { display: grid; gap: 12px; }
.faq details { border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--border); transition: border-color var(--t-fast), box-shadow var(--t-fast); }
.faq details[open] { border-color: #a7dcbb; box-shadow: var(--sh-sm); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; min-height: 44px; cursor: pointer; list-style: none; font: 600 1.02rem var(--font-head); color: var(--fg); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { flex-shrink: 0; width: 28px; height: 28px; padding: 5px; border-radius: 50%; background: var(--primary-soft); color: var(--primary-ink); transition: transform var(--t-med) var(--ease); }
.faq details[open] summary .ic { transform: rotate(45deg); }
.faq details p { padding: 0 22px 20px; color: var(--fg-3); }

/* CTA + form */
.cta-section { background: radial-gradient(ellipse 60% 80% at 0% 0%, #0f3a24, transparent 60%), radial-gradient(ellipse 60% 80% at 100% 100%, #0b2f4a, transparent 60%), var(--ink); color: var(--on-ink-2); }
.cta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.cta-copy h2 { color: #fff; font-size: clamp(2rem, 3.6vw, 2.9rem); }
.cta-copy > p { margin-top: 18px; font-size: 1.08rem; max-width: 48ch; }
.cta-points { display: grid; gap: 12px; margin-top: 28px; color: var(--on-ink); }
.cta-points li { display: flex; align-items: center; gap: 12px; }
.cta-points .ic { width: 30px; height: 30px; padding: 6px; border-radius: 50%; background: rgba(52,211,153,.15); color: #6ee7a0; }
.cta-points a { color: #fff; }

.form { padding: 32px; border-radius: var(--r-xl); display: grid; gap: 16px; background: #fff; box-shadow: var(--sh-lg); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; align-content: start; }
.field label { font-size: .88rem; font-weight: 600; color: var(--fg); }
.field label span { color: var(--danger); }
.field input, .field select, .field textarea { width: 100%; min-height: 46px; padding: 11px 14px; font: inherit; font-size: 1rem; color: var(--fg); background: var(--surface); border: 1px solid #cbd5e1; border-radius: var(--r-md); transition: border-color var(--t-fast), box-shadow var(--t-fast); }
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(0,132,58,.15); }
.field [aria-invalid="true"] { border-color: var(--danger); }
.err { font-size: .84rem; color: var(--danger); }
.err:empty { display: none; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-size: .92rem; text-align: center; }
.form-status:empty { display: none; }
.form-status.ok { color: var(--primary-ink); font-weight: 600; }
.form-status.bad { color: var(--danger); }

/* Footer */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); padding-top: 64px; font-size: .94rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.footer-grid a[aria-current="page"] { color: var(--primary-ink); font-weight: 600; }
.footer-brand .brand { gap: 12px; font-size: 1.65rem; }
.footer-brand .brand img { width: 48px; height: 48px; border-radius: 12px; }
.footer-brand p { margin-top: 16px; color: var(--fg-3); line-height: 1.65; max-width: 40ch; }
.site-footer h4 { font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; color: var(--fg); margin-bottom: 14px; }
.footer-grid a:not(.brand) { display: block; padding: 4px 0; color: var(--fg-3); text-decoration: none; }
.footer-grid a:not(.brand):hover { color: var(--primary-ink); }
.f-mail { display: inline-flex !important; align-items: center; gap: 8px; }
.f-mail .ic { width: 16px; height: 16px; color: var(--primary); }
.f-note { margin-top: 10px; font-size: .85rem; color: var(--fg-3); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; padding-block: 22px; border-top: 1px solid var(--border); color: var(--fg-3); }
.footer-bottom a { color: var(--fg-3); }

/* Inner page hero + dark call-to-action band (About, Blog, Careers, FAQ) */
.contact-hero { padding: 72px 0 8px; text-align: center; background: radial-gradient(60% 80% at 50% 0%, var(--primary-soft), transparent 70%); }
.contact-hero h1 { margin-top: 10px; font-size: clamp(2.2rem, 5vw, 3.4rem); letter-spacing: -.03em; text-wrap: balance; }
.contact-hero .lead { margin: 18px auto 0; }

/* FAQ page */
.faq-page { padding: 80px 0 56px; background: radial-gradient(50% 60% at 15% 0%, var(--primary-soft), transparent 70%); }
.faq-page h1 { font-size: clamp(2.2rem, 4.4vw, 3.2rem); letter-spacing: -.03em; }
.faq-page .section-head p:not(.kicker) { margin-top: 14px; font-size: 1.08rem; color: var(--fg-3); }
.faq-cta-wrap { padding: 0 0 96px; }
.faq-cta-wrap .contact-cta { margin-top: 0; }

/* 404 page */
.notfound { padding-bottom: 112px; }
.notfound-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; margin-top: 36px; }
.notfound-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--primary-ink); font-weight: 600; }
.contact-cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 32px; padding: 28px 32px; border-radius: var(--r-lg); background: linear-gradient(135deg, #0c2418, #081610 60%, #0a1622); color: var(--on-ink); }
.contact-cta h2 { font-size: 1.4rem; color: #fff; }
.contact-cta p { margin-top: 6px; color: var(--on-ink-2); max-width: 52ch; }
.contact-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.contact-cta .btn-secondary { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.2); color: #fff; }
.contact-cta .btn-secondary:hover { background: rgba(255,255,255,.14); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Inner page hero spacing */
.page-hero { padding-bottom: 0; }
.page-hero + .section { padding-top: 72px; }

/* About page */
.about-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; align-items: start; }
.about-copy h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.about-copy p:not(.kicker) { margin-top: 16px; font-size: 1.05rem; line-height: 1.75; color: var(--fg-2); }
.about-numbers { border-radius: var(--r-xl); overflow: hidden; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--sh-md); }
.an-title { padding: 22px 26px; background: linear-gradient(135deg, #00954a, var(--primary-ink)); color: #fff; }
.an-title b { display: block; font: 700 1.15rem var(--font-head); }
.an-title span { font-size: .88rem; color: rgba(255,255,255,.78); }
.about-numbers dl { display: grid; grid-template-columns: 1fr 1fr; margin: 0; }
.about-numbers dl div { display: flex; flex-direction: column-reverse; padding: 22px 26px; border-top: 1px solid var(--border); }
.about-numbers dl div:nth-child(odd) { border-right: 1px solid var(--border); }
.about-numbers dt { font-size: .85rem; color: var(--fg-3); }
.about-numbers dd { margin: 0; font: 700 2rem var(--font-head); color: var(--primary-ink); letter-spacing: -.02em; }
.perks.values { grid-template-columns: repeat(4, 1fr); }
.stack-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 860px; margin: 0 auto; }
.stack-chips li { padding: 8px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-weight: 600; font-size: .92rem; color: var(--fg-2); box-shadow: var(--sh-sm); }
.about-story + .section-muted + .section .contact-cta { margin-top: 56px; }

/* Blog */
.blog-section { padding-top: 56px; }
.blog-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 36px; }
.blog-filters:empty { display: none; }
.chip { min-height: 40px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--fg-2); font: 600 .9rem var(--font-body); cursor: pointer; transition: all var(--t-fast) var(--ease); }
.chip:hover { border-color: var(--primary); color: var(--primary-ink); }
.chip[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: #fff; }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-card { border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--sh-sm); overflow: hidden; transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease); }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--sh-md); }
.post-link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.post-link:focus-visible { outline: 3px solid var(--primary); outline-offset: -3px; border-radius: var(--r-lg); }
.post-cover { position: relative; height: 150px; display: grid; place-items: center; background: radial-gradient(circle at 25% 20%, color-mix(in srgb, var(--cg) 55%, transparent), transparent 55%), linear-gradient(135deg, var(--cs), color-mix(in srgb, var(--cs) 40%, #fff)); overflow: hidden; }
.post-cover::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(color-mix(in srgb, var(--c) 18%, transparent) 1px, transparent 1px); background-size: 16px 16px; opacity: .6; }
.post-cover span { position: relative; z-index: 1; font: 700 1.5rem var(--font-head); color: var(--c); letter-spacing: -.02em; opacity: .85; }
.post-text { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 24px; }
.post-cat { align-self: flex-start; font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--c); }
.post-text h3 { margin-top: 8px; font-size: 1.2rem; line-height: 1.3; }
.post-text p { margin-top: 10px; color: var(--fg-3); line-height: 1.6; flex: 1; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 18px; font-size: .85rem; color: var(--fg-3); }
.avatar { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--primary-soft); color: var(--primary-ink); font: 700 .72rem var(--font-head); flex: none; }
.post-card.featured { grid-column: 1 / -1; }
.post-card.featured .post-link { flex-direction: row; }
.post-card.featured .post-cover { width: 44%; height: auto; min-height: 300px; }
.post-card.featured .post-cover span { font-size: 2.4rem; }
.post-card.featured .post-text { padding: 36px 40px; justify-content: center; }
.post-card.featured h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.post-card.featured p { flex: 0; font-size: 1.05rem; }
.post-skel { height: 340px; border-radius: var(--r-lg); background: linear-gradient(90deg, #eef2f1, #f8faf9, #eef2f1); background-size: 200% 100%; animation: shimmer 1.3s linear infinite; }
.post-skel.tall { height: 420px; }
.blog-empty { grid-column: 1 / -1; display: grid; justify-items: center; gap: 10px; padding: 56px 24px; text-align: center; border-radius: var(--r-lg); background: var(--surface); border: 1px dashed var(--border); }
.blog-empty h3 { margin-top: 6px; }
.blog-empty p { color: var(--fg-3); }
.post-view { padding-top: 48px; }
.post-container { max-width: 800px; }
.post-back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--fg-3); font-weight: 600; text-decoration: none; }
.post-back:hover { color: var(--primary-ink); }
.post-back .ic { width: 18px; height: 18px; }
.post-head { margin: 16px 0 32px; padding-bottom: 28px; border-bottom: 1px solid var(--border); }
.post-head h1 { margin-top: 12px; font-size: clamp(2rem, 4.4vw, 3rem); letter-spacing: -.03em; }
.post-lead { margin-top: 16px; font-size: 1.2rem; line-height: 1.6; color: var(--fg-3); }
.post-content { font-size: 1.08rem; line-height: 1.8; color: var(--fg-2); overflow-wrap: anywhere; }
.post-content > * + * { margin-top: 1.1em; }
.post-content h2 { margin-top: 1.8em; font-size: 1.6rem; }
.post-content h3 { margin-top: 1.5em; font-size: 1.25rem; }
.post-content ul, .post-content ol { padding-left: 1.4em; list-style: revert; }
.post-content li + li { margin-top: .4em; }
.post-content a { color: var(--primary-ink); }
.post-content blockquote { margin-left: 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--primary); color: var(--fg); font-style: italic; }
.post-content pre { padding: 18px; border-radius: var(--r-md); background: var(--ink); color: var(--on-ink); overflow-x: auto; font-size: .9rem; }
.post-content code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .92em; }
.post-content :not(pre) > code { padding: 2px 6px; border-radius: 6px; background: var(--muted); }
.post-content img { max-width: 100%; height: auto; border-radius: var(--r-md); }
.post-cta { margin-top: 56px; }
@media (max-width: 1023px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .perks.values { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .post-card.featured .post-link { flex-direction: column; }
  .post-card.featured .post-cover { width: auto; min-height: 200px; }
  .post-card.featured .post-text { padding: 26px 28px; }
}
@media (max-width: 640px) {
  .perks.values, .blog-grid { grid-template-columns: 1fr; }
  .about-numbers dd { font-size: 1.6rem; }
  .about-numbers dl div { padding: 18px 20px; }
}

/* Careers page */
.careers-hero { padding-bottom: 0; }
.careers-hero + .section { padding-top: 72px; }
.careers-cta { justify-content: center; }
.perks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.perk { padding: 26px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--sh-sm); transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease); }
.perk:hover { transform: translateY(-3px); box-shadow: var(--sh-md); }
.perk h3 { margin-top: 18px; font-size: 1.1rem; }
.perk p { margin-top: 8px; color: var(--fg-3); line-height: 1.6; }
.roles { display: grid; gap: 16px; max-width: 980px; margin: 0 auto; }
.role { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px 28px 24px 32px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--sh-sm); overflow: hidden; transition: box-shadow var(--t-med) var(--ease), border-color var(--t-med) var(--ease); }
.role::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--c); }
.role:hover { border-color: color-mix(in srgb, var(--c) 40%, var(--border)); box-shadow: var(--sh-md); }
.role-team { font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--c); }
.role h3 { margin-top: 4px; font-size: 1.2rem; }
.role-main p { margin-top: 6px; color: var(--fg-3); max-width: 60ch; }
.role-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.role-tags li { padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 600; background: var(--cs); color: var(--fg-2); }
.role-side { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }
.role-meta { display: grid; gap: 6px; text-align: right; }
.role-meta li { display: inline-flex; align-items: center; justify-content: flex-end; gap: 6px; font-size: .88rem; color: var(--fg-2); }
.role-meta .ic { width: 16px; height: 16px; color: var(--fg-3); }
.role-side .btn .ic { width: 16px; height: 16px; }
.hire-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: hs; }
.hire-steps li { position: relative; padding: 24px; border-radius: var(--r-lg); background: var(--muted); }
.hire-steps li:not(:last-child)::after { content: ""; position: absolute; top: 42px; right: -20px; width: 20px; height: 2px; background: var(--border); }
.hs-n { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--primary); color: #fff; font: 700 .95rem var(--font-head); box-shadow: 0 6px 16px rgba(0,132,58,.28); }
.hire-steps h3 { margin-top: 14px; font-size: 1.05rem; }
.hire-steps p { margin-top: 6px; color: var(--fg-3); font-size: .94rem; line-height: 1.55; }
#hiring .contact-cta { margin-top: 48px; }

/* Job application popup */
.apply-dialog { width: min(640px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: var(--r-xl); background: var(--surface); color: var(--fg-2); box-shadow: var(--sh-lg); overflow: hidden; }
.apply-dialog::backdrop { background: rgba(6, 18, 12, .55); backdrop-filter: blur(3px); }
.apply-dialog[open] { animation: dlgIn 220ms var(--ease); }
@keyframes dlgIn { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
.apply-form { display: flex; flex-direction: column; max-height: calc(100dvh - 32px); }
.apply-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 24px 28px 16px; border-bottom: 1px solid var(--border); }
.apply-head .kicker { margin-bottom: 6px; }
.apply-head h2 { font-size: 1.45rem; }
.apply-close { flex: none; }
.apply-body { display: grid; gap: 16px; padding: 22px 28px; overflow-y: auto; }
.apply-body .field label small, .apply-body .field-label small { font-weight: 500; color: var(--fg-3); margin-left: 4px; }
.field-label { font-size: .88rem; font-weight: 600; color: var(--fg); }
.field-label span { color: var(--danger); }
.help { font-size: .84rem; color: var(--fg-3); }
.dropzone { position: relative; display: grid; justify-items: center; gap: 6px; padding: 22px 16px; border: 2px dashed #cbd5e1; border-radius: var(--r-md); background: #f8faf9; text-align: center; cursor: pointer; transition: border-color var(--t-fast), background var(--t-fast); }
.dropzone:hover, .dropzone.drag { border-color: var(--primary); background: var(--primary-soft); }
.dropzone.has-file { border-style: solid; border-color: #a7dcbb; background: var(--primary-soft); }
.dropzone:focus-within { outline: 3px solid rgba(0,132,58,.35); outline-offset: 2px; }
.dropzone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.dz-ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--surface); color: var(--primary-ink); box-shadow: var(--sh-sm); }
.field .dropzone .dz-text { font-size: .95rem; color: var(--fg-3); }
.dz-text b { color: var(--primary-ink); }
.field .dropzone .dz-file { font-size: .9rem; font-weight: 600; color: var(--fg); overflow-wrap: anywhere; }
.field .dropzone .dz-ic { color: var(--primary-ink); }
.dropzone[aria-invalid="true"], .dropzone:has(input[aria-invalid="true"]) { border-color: var(--danger); }
.apply-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 28px; border-top: 1px solid var(--border); background: #fafbfb; }
.apply-note { font-size: .82rem; color: var(--fg-3); }
.apply-actions { display: flex; gap: 10px; }
.apply-done { display: grid; justify-items: center; gap: 10px; padding: 40px 28px 36px; text-align: center; }
.apply-done p { max-width: 46ch; color: var(--fg-3); }
.apply-done .btn { margin-top: 8px; }
.done-ic { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--primary-soft); color: var(--primary-ink); }
.done-ic .ic { width: 28px; height: 28px; }
.apply-done h3 { font-size: 1.4rem; }
.apply-done h3:focus { outline: none; }
@media (max-width: 640px) {
  .apply-head, .apply-body { padding-left: 20px; padding-right: 20px; }
  .apply-foot { flex-direction: column-reverse; align-items: stretch; padding: 14px 20px; }
  .apply-actions .btn { flex: 1; }
  .apply-note { text-align: center; }
}
@media (max-width: 1023px) {
  .perks { grid-template-columns: repeat(2, 1fr); }
  .hire-steps { grid-template-columns: repeat(2, 1fr); }
  .hire-steps li::after { display: none; }
}
@media (max-width: 760px) {
  .role { flex-direction: column; align-items: stretch; padding: 22px 22px 22px 26px; }
  .role-side { flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: wrap; }
  .role-meta, .role-meta li { text-align: left; justify-content: flex-start; }
}
@media (max-width: 640px) {
  .perks, .hire-steps { grid-template-columns: 1fr; }
  .careers-cta .btn { flex: 1 1 100%; }
}
@media (max-width: 860px) {
  .contact-cta { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
  .contact-hero { padding-top: 48px; }
  .faq-page { padding-top: 48px; }
  .faq-cta-wrap { padding-bottom: 64px; }
  .contact-cta { padding: 24px; }
  .contact-cta-actions, .contact-cta-actions .btn { width: 100%; }
}

/* Reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 520ms var(--ease), transform 520ms var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.in { opacity: 1; transform: none; }

@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes panelIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes msgIn { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes typing { 0%,60%,100% { transform: translateY(0); opacity: .45; } 30% { transform: translateY(-4px); opacity: 1; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes ppGlow { 0%,100% { box-shadow: 0 0 14px color-mix(in srgb, var(--cg) 20%, transparent); } 12% { box-shadow: 0 0 30px color-mix(in srgb, var(--cg) 70%, transparent); transform: translateY(-2px); } 24% { transform: none; } }
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 1ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .nav { display: none; }
  .menu-toggle { display: inline-grid; }
}
@media (max-width: 1100px) {
  .offers { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1023px) {
  .hero-grid, .cta-grid, .faq-wrap { grid-template-columns: 1fr; }
  .showcase { max-width: 620px; width: 100%; margin: 0 auto; }
  .bento, .products, .industries { grid-template-columns: repeat(2, 1fr); }
  .card-feature { grid-column: span 2; grid-row: auto; }
  .timeline { grid-template-columns: repeat(2, 1fr); row-gap: 56px; }
  .timeline::before { display: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.18); }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
  .faq-wrap { gap: 32px; }
}
@media (max-width: 640px) {
  .container { padding: 0 20px; }
  .hide-sm { display: none; }
  .hero { padding: 44px 0 64px; }
  .lead { font-size: 1.05rem; }
  .hero-cta .btn { flex: 1 1 100%; }
  .showcase { min-height: 0; }
  .sc-head .lights { display: none; }
  .sc-tabs { margin: 0; }
  .sc-panel { padding: 18px; }
  .models, .kpis { grid-template-columns: 1fr 1fr; }
  .bars { height: 64px; }
  .pipeline { grid-template-columns: repeat(2, 1fr); }
  .pp:not(:nth-child(4n))::after { display: none; }
  .pp { display: grid; grid-template-columns: 40px 1fr; column-gap: 10px; align-items: center; text-align: left; }
  .pp-ic { grid-row: span 2; width: 40px; height: 40px; border-radius: 12px; }
  .pp-ic .ic { width: 18px; height: 18px; }
  .pp b { margin-top: 0; align-self: end; }
  .pp small { align-self: start; }
  .chat { min-height: 300px; }
  .an-grid { grid-template-columns: 1fr 1fr; row-gap: 10px; }
  .an-grid > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .section { padding: 72px 0; }
  .section-head { margin-bottom: 40px; }
  .section-head.split { flex-direction: column; align-items: flex-start; }
  .offers, .bento, .products, .industries, .timeline, .field-row, .usecases { grid-template-columns: 1fr; }
  .card-feature { grid-column: auto; }
  .form { padding: 22px; }
  .footer-grid { gap: 28px 16px; padding-bottom: 36px; }
  .footer-bottom { flex-direction: column; }
}
@media (max-width: 640px) {
  .models { grid-template-columns: 1fr; gap: 8px; }
  .model { grid-template-columns: auto 1fr auto; padding: 10px 12px; }
  .model ul { grid-column: auto; margin-top: 0; }
  .sc-tabs button { padding: 7px 9px; font-size: .74rem; }
}
@media (max-width: 420px) {
  .header-actions .btn-primary { display: none; }
  .model ul li:nth-child(2) { display: none; }
}
@media (max-width: 420px) {
  .sc-head { gap: 6px; padding: 10px; }
  .sc-tabs { gap: 2px; padding: 3px; }
  .sc-tabs button { padding: 6px 7px; }
}
