/* ---------- Tokens ---------- */
:root {
  --bg: #F4F7FA;
  --bg-2: #EAF0F5;
  --surface: #FFFFFF;
  --surface-2: #F0F4F8;
  --ink: #0B1A2E;
  --ink-2: #3A4A60;
  --ink-3: #66768C;
  --line: #DAE2EB;
  --line-2: #C9D4E0;
  --brand: #0A8560;
  --brand-strong: #076B4D;
  --brand-soft: #E1F3EB;
  --on-brand: #FFFFFF;
  --blue: #2D5BD0;
  --blue-soft: #E5ECFB;
  --alert: #C73E3E;
  --alert-soft: #FBE9E9;
  --amber: #B98500;
  --navy: #0B1A2E;
  --shadow: 0 1px 2px rgba(11,26,46,.06), 0 12px 32px -12px rgba(11,26,46,.18);
  --shadow-lg: 0 40px 80px -30px rgba(11,26,46,.35), 0 18px 36px -18px rgba(11,26,46,.25);
  /* device screens */
  --scr-bg: #F6F8FB;
  --scr-surface: #FFFFFF;
  --scr-ink: #0F1E33;
  --scr-mute: #8392A6;
  --scr-line: #E3E9F0;
  --scr-side: #0B1A2E;
  --bezel: #0A111C;
  --metal-1: #D7DDE4;
  --metal-2: #A9B3BF;
  --grid: rgba(11,26,46,.05);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #07101D;
    --bg-2: #0A1626;
    --surface: #0E1A2C;
    --surface-2: #132238;
    --ink: #E7EDF5;
    --ink-2: #A8B5C7;
    --ink-3: #7486A0;
    --line: #1C2C44;
    --line-2: #26395A;
    --brand: #22C68C;
    --brand-strong: #4FD9A8;
    --brand-soft: rgba(34,198,140,.12);
    --on-brand: #04140D;
    --blue: #7398FF;
    --blue-soft: rgba(115,152,255,.14);
    --alert: #F07171;
    --alert-soft: rgba(240,113,113,.14);
    --amber: #E3B341;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 12px 32px -12px rgba(0,0,0,.6);
    --shadow-lg: 0 40px 80px -30px rgba(0,0,0,.8), 0 18px 36px -18px rgba(0,0,0,.6);
    --scr-bg: #0C1626;
    --scr-surface: #122036;
    --scr-ink: #E4EBF5;
    --scr-mute: #7083A0;
    --scr-line: #1D2E48;
    --scr-side: #060D18;
    --bezel: #000000;
    --metal-1: #3A4554;
    --metal-2: #232C38;
    --grid: rgba(231,237,245,.04);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #07101D;
  --bg-2: #0A1626;
  --surface: #0E1A2C;
  --surface-2: #132238;
  --ink: #E7EDF5;
  --ink-2: #A8B5C7;
  --ink-3: #7486A0;
  --line: #1C2C44;
  --line-2: #26395A;
  --brand: #22C68C;
  --brand-strong: #4FD9A8;
  --brand-soft: rgba(34,198,140,.12);
  --on-brand: #04140D;
  --blue: #7398FF;
  --blue-soft: rgba(115,152,255,.14);
  --alert: #F07171;
  --alert-soft: rgba(240,113,113,.14);
  --amber: #E3B341;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 12px 32px -12px rgba(0,0,0,.6);
  --shadow-lg: 0 40px 80px -30px rgba(0,0,0,.8), 0 18px 36px -18px rgba(0,0,0,.6);
  --scr-bg: #0C1626;
  --scr-surface: #122036;
  --scr-ink: #E4EBF5;
  --scr-mute: #7083A0;
  --scr-line: #1D2E48;
  --scr-side: #060D18;
  --bezel: #000000;
  --metal-1: #3A4554;
  --metal-2: #232C38;
  --grid: rgba(231,237,245,.04);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.12; letter-spacing: -0.025em; font-weight: 800; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.mono { font-family: "JetBrains Mono", ui-monospace, monospace; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--brand); font-weight: 500;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.section { padding: 112px 0; position: relative; }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(32px, 4.4vw, 48px); margin-top: 14px; }
.section-head p { color: var(--ink-2); margin-top: 18px; font-size: 18px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 24px; border-radius: 12px;
  font: inherit; font-weight: 700; font-size: 16px; cursor: pointer;
  border: 1px solid transparent; transition: transform .2s, background .2s, border-color .2s, box-shadow .2s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; transition: transform .2s; }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--brand); color: var(--on-brand); box-shadow: 0 10px 24px -10px var(--brand); }
.btn-primary:hover { background: var(--brand-strong); transform: translateY(-1px); }
.btn-ghost { border-color: var(--line-2); color: var(--ink); background: var(--surface); }
.btn-ghost:hover { border-color: var(--ink-3); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 12px; font-weight: 800; font-size: 19px; letter-spacing: -0.02em; }
.logo svg { width: 34px; height: 34px; }
.logo b { color: var(--brand); font-weight: 800; }
.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-links a { padding: 8px 14px; border-radius: 10px; color: var(--ink-2); font-weight: 600; font-size: 15px; transition: color .2s, background .2s; }
.nav-links a:hover { color: var(--ink); background: var(--surface-2); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center;
  background: transparent; border: 1px solid var(--line); color: var(--ink-2); cursor: pointer; transition: border-color .2s, color .2s;
}
.icon-btn:hover { color: var(--ink); border-color: var(--line-2); }
.icon-btn svg { width: 19px; height: 19px; }
.theme-toggle .moon { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .sun { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .moon { display: block; }
}
.nav .btn { height: 42px; padding: 0 18px; font-size: 15px; border-radius: 11px; }
.menu-btn { display: none; }
.mobile-menu { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 72px 0 96px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 70% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 40%, #000 30%, transparent 75%);
}
.hero::after {
  content: ""; position: absolute; width: 760px; height: 760px; right: -220px; top: -160px; pointer-events: none;
  background: radial-gradient(circle, color-mix(in srgb, var(--brand) 22%, transparent), transparent 62%);
  filter: blur(20px); opacity: .7;
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1.12fr; gap: 56px; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 8px;
  border-radius: 99px; background: var(--surface); border: 1px solid var(--line);
  font-size: 14px; color: var(--ink-2); font-weight: 600; box-shadow: var(--shadow);
}
.pill .dot { width: 22px; height: 22px; border-radius: 99px; background: var(--brand-soft); display: grid; place-items: center; }
.pill .dot::after { content: ""; width: 8px; height: 8px; border-radius: 99px; background: var(--brand); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--brand) 50%, transparent); } 50% { box-shadow: 0 0 0 6px transparent; } }
.hero h1 { font-size: clamp(40px, 5.6vw, 68px); margin-top: 26px; letter-spacing: -0.035em; }
.hero h1 .hl { color: var(--brand); }
.hero .lede { margin-top: 24px; font-size: 19px; color: var(--ink-2); max-width: 540px; }
.hero-cta { display: flex; gap: 12px; margin-top: 36px; flex-wrap: wrap; }
.hero-meta { display: flex; gap: 28px; margin-top: 44px; flex-wrap: wrap; }
.hero-meta div { display: flex; align-items: center; gap: 10px; color: var(--ink-2); font-size: 15px; font-weight: 600; }
.hero-meta svg { width: 20px; height: 20px; color: var(--brand); flex: none; }

/* ---------- Device system (sizes in em; 1em = 1% of stage width) ---------- */
.stage-wrap { container-type: inline-size; width: 100%; }
.stage { position: relative; font-size: 1cqw; width: 100%; }
.stage * { line-height: 1.25; }
.laptop { position: absolute; }
.laptop .lid {
  background: var(--bezel); border-radius: 2.2em 2.2em .5em .5em; padding: 1.5em 1.5em 2em;
  box-shadow: var(--shadow-lg), inset 0 0 0 .15em rgba(255,255,255,.08);
  position: relative;
}
.laptop .lid::before { content: ""; position: absolute; top: .6em; left: 50%; width: .5em; height: .5em; margin-left: -.25em; border-radius: 50%; background: #1d2633; }
.laptop .screen { aspect-ratio: 16 / 10; border-radius: .4em; overflow: hidden; background: var(--scr-bg); position: relative; }
.laptop .base {
  position: relative; height: 2em; margin: 0 -7%;
  background: linear-gradient(180deg, var(--metal-1), var(--metal-2));
  border-radius: 0 0 2.6em 2.6em / 0 0 1.6em 1.6em;
  box-shadow: 0 2em 3em -1.5em rgba(0,0,0,.45);
}
.laptop .base::before { content: ""; position: absolute; left: 50%; top: 0; width: 16%; height: .7em; margin-left: -8%; background: var(--metal-2); border-radius: 0 0 1em 1em; opacity: .8; }
.phone { position: absolute; }
.phone .body {
  background: var(--bezel); border-radius: 4.4em; padding: 1.1em; position: relative;
  box-shadow: var(--shadow-lg), inset 0 0 0 .2em rgba(255,255,255,.1);
}
.phone .screen { border-radius: 3.4em; overflow: hidden; aspect-ratio: 9 / 19.2; background: var(--scr-bg); position: relative; }
.phone .island { position: absolute; top: 1.1em; left: 50%; width: 30%; height: 2.6em; margin-left: -15%; background: #000; border-radius: 2em; z-index: 3; }

/* screen UI primitives */
.ui { position: absolute; inset: 0; color: var(--scr-ink); font-family: "Manrope", sans-serif; display: flex; }
.ui .side { width: 18%; background: var(--scr-side); padding: 1.4em 1em; display: flex; flex-direction: column; gap: .9em; }
.ui .side .brand { display: flex; align-items: center; gap: .6em; color: #fff; font-weight: 800; font-size: 1.05em; margin-bottom: 1em; }
.ui .side .brand i { width: 1.5em; height: 1.5em; border: .3em solid #1FC68B; transform: rotate(45deg); border-radius: .15em; display: block; flex: none; }
.ui .side .it { height: 2.1em; border-radius: .5em; display: flex; align-items: center; gap: .7em; padding: 0 .7em; color: rgba(255,255,255,.55); font-size: .85em; font-weight: 600; }
.ui .side .it b { width: 1.1em; height: 1.1em; border-radius: .3em; background: currentColor; opacity: .7; flex: none; }
.ui .side .it.on { background: rgba(31,198,139,.16); color: #4FE0AB; }
.ui .main { flex: 1; padding: 1.4em 1.6em; display: flex; flex-direction: column; gap: 1.2em; min-width: 0; }
.ui .top { display: flex; align-items: center; justify-content: space-between; gap: 1em; }
.ui .top h5 { margin: 0; font-size: 1.45em; font-weight: 800; letter-spacing: -.02em; }
.ui .top small { display: block; font-size: .8em; color: var(--scr-mute); font-weight: 600; margin-bottom: .2em; }
.ui .search { height: 2.3em; width: 30%; border-radius: 99em; background: var(--scr-surface); border: .1em solid var(--scr-line); }
.ui .avatar { width: 2.3em; height: 2.3em; border-radius: 50%; background: linear-gradient(135deg, var(--brand), var(--blue)); flex: none; }
.ui .kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1em; }
.ui .kpi { background: var(--scr-surface); border: .1em solid var(--scr-line); border-radius: .8em; padding: .9em 1em; }
.ui .kpi small { font-size: .78em; color: var(--scr-mute); font-weight: 600; display: block; }
.ui .kpi strong { font-size: 1.7em; font-weight: 800; display: block; margin-top: .2em; letter-spacing: -.02em; }
.ui .kpi em { font-style: normal; font-size: .75em; font-weight: 700; color: var(--brand); }
.ui .row2 { display: grid; grid-template-columns: 1.55fr 1fr; gap: 1em; flex: 1; min-height: 0; }
.ui .card { background: var(--scr-surface); border: .1em solid var(--scr-line); border-radius: .8em; padding: 1em; display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.ui .card h6 { margin: 0 0 .8em; font-size: .95em; font-weight: 800; display: flex; justify-content: space-between; align-items: center; }
.ui .card h6 span { font-size: .8em; color: var(--scr-mute); font-weight: 600; }
.ui .chart { flex: 1; min-height: 0; }
.ui .chart svg { width: 100%; height: 100%; }
.ui .list { display: flex; flex-direction: column; gap: .7em; }
.ui .li { display: flex; align-items: center; gap: .7em; font-size: .8em; }
.ui .li .ic { width: 2.3em; height: 2.3em; border-radius: .6em; flex: none; display: grid; place-items: center; font-weight: 800; font-size: .85em; }
.ui .li .tx { flex: 1; min-width: 0; }
.ui .li .tx b { display: block; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ui .li .tx span { color: var(--scr-mute); font-size: .9em; }
.tag { display: inline-flex; align-items: center; padding: .25em .7em; border-radius: 99em; font-size: .8em; font-weight: 700; white-space: nowrap; }
.tag.ok { background: var(--brand-soft); color: var(--brand); }
.tag.wait { background: color-mix(in srgb, var(--amber) 16%, transparent); color: var(--amber); }
.tag.bad { background: var(--alert-soft); color: var(--alert); }
.tag.info { background: var(--blue-soft); color: var(--blue); }
.bar-grow { transform-origin: bottom; transform-box: fill-box; animation: grow 1.2s cubic-bezier(.2,.8,.2,1) both; }
@keyframes grow { from { transform: scaleY(0); } }
.line-draw { stroke-dasharray: 600; stroke-dashoffset: 600; animation: draw 2.2s .4s ease forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* phone app UI */
.app { position: absolute; inset: 0; color: var(--scr-ink); display: flex; flex-direction: column; }
.app .status { height: 4.6em; display: flex; justify-content: space-between; align-items: flex-end; padding: 0 2.6em .6em; font-size: 1.15em; font-weight: 700; flex: none; }
.app .status i { display: inline-block; width: 2.2em; height: .9em; border-radius: .25em; border: .15em solid currentColor; opacity: .8; }
.app .content { flex: 1; padding: 1.2em 1.8em; display: flex; flex-direction: column; gap: 1.4em; min-height: 0; overflow: hidden; }
.app .hello small { font-size: 1.1em; color: var(--scr-mute); font-weight: 600; display: block; }
.app .hello strong { font-size: 2.1em; font-weight: 800; letter-spacing: -.02em; display: block; margin-top: .1em; }
.app .alert {
  border-radius: 1.6em; padding: 1.5em; color: #fff;
  background: linear-gradient(135deg, #0B1A2E, #133459);
  position: relative; overflow: hidden;
}
.app .alert::after { content: ""; position: absolute; right: -2.5em; top: -2.5em; width: 9em; height: 9em; border-radius: 50%; border: 1.4em solid rgba(31,198,139,.25); }
.app .alert small { font-size: 1em; opacity: .7; font-weight: 600; display: flex; align-items: center; gap: .5em; }
.app .alert small::before { content: ""; width: .7em; height: .7em; border-radius: 50%; background: #FF7A7A; box-shadow: 0 0 0 .3em rgba(255,122,122,.25); }
.app .alert b { display: block; font-size: 1.45em; margin-top: .5em; font-weight: 800; }
.app .alert .go { margin-top: 1.1em; display: inline-flex; padding: .6em 1.2em; border-radius: 99em; background: #1FC68B; color: #04140D; font-weight: 800; font-size: 1em; }
.app .sect { font-size: 1.2em; font-weight: 800; display: flex; justify-content: space-between; }
.app .sect span { color: var(--brand); font-weight: 700; font-size: .9em; }
.app .task { display: flex; align-items: center; gap: 1em; background: var(--scr-surface); border: .12em solid var(--scr-line); border-radius: 1.3em; padding: 1em 1.1em; font-size: 1.05em; }
.app .task .ck { width: 2em; height: 2em; border-radius: .6em; border: .18em solid var(--scr-line); flex: none; display: grid; place-items: center; }
.app .task .ck.done { background: var(--brand); border-color: var(--brand); }
.app .task .ck.done::after { content: ""; width: .5em; height: .9em; border: solid #fff; border-width: 0 .22em .22em 0; transform: rotate(45deg) translate(-.05em, -.1em); }
.app .task .tx { flex: 1; min-width: 0; }
.app .task .tx b { display: block; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app .task .tx span { color: var(--scr-mute); font-size: .88em; }
.app .tabbar { height: 6.4em; flex: none; display: flex; justify-content: space-around; align-items: center; padding-bottom: 1.4em; border-top: .12em solid var(--scr-line); background: var(--scr-surface); }
.app .tabbar i { width: 2.2em; height: 2.2em; border-radius: .7em; background: var(--scr-line); display: block; }
.app .tabbar i.on { background: var(--brand); }

/* floating chips */
.chip {
  position: absolute; z-index: 5; display: flex; align-items: center; gap: .9em;
  background: var(--surface); border: .1em solid var(--line); border-radius: 1.2em;
  padding: 1em 1.3em; box-shadow: var(--shadow-lg); font-size: 1.75em; color: var(--ink);
  animation: float 6s ease-in-out infinite;
}
.chip .ci { width: 2.4em; height: 2.4em; border-radius: .7em; display: grid; place-items: center; flex: none; }
.chip .ci svg { width: 1.3em; height: 1.3em; }
.chip b { display: block; font-weight: 800; font-size: 1em; white-space: nowrap; }
.chip span { display: block; color: var(--ink-3); font-size: .82em; font-weight: 600; white-space: nowrap; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-.8em); } }

.hero-stage { aspect-ratio: 1 / .86; }
.hero-stage .laptop { left: 2%; top: 4%; width: 84%; }
.hero-stage .phone { right: 1%; bottom: 2%; width: 27%; }
.hero-stage .chip.c1 { left: -3%; bottom: 14%; animation-delay: -2s; }
.hero-stage .chip.c2 { right: 18%; top: -1%; animation-delay: -4s; }

/* ---------- Domains strip ---------- */
.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.strip-inner { display: flex; align-items: center; gap: 40px; padding: 26px 24px; overflow: hidden; }
.strip-label { flex: none; font-size: 13px; color: var(--ink-3); font-weight: 600; max-width: 150px; line-height: 1.4; }
.marquee { flex: 1; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 48px; width: max-content; animation: marquee 40s linear infinite; }
.marquee-track span { display: inline-flex; align-items: center; gap: 12px; font-weight: 700; font-size: 18px; color: var(--ink-2); white-space: nowrap; }
.marquee-track span::before { content: ""; width: 9px; height: 9px; transform: rotate(45deg); border: 2px solid var(--brand); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Services ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.svc {
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 30px;
  transition: transform .3s, box-shadow .3s, border-color .3s; position: relative; overflow: hidden;
}
.svc:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-2); }
.svc .ico { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.svc .ico svg { width: 26px; height: 26px; }
.svc h3 { font-size: 21px; margin-top: 24px; letter-spacing: -0.015em; }
.svc p { color: var(--ink-2); margin-top: 10px; font-size: 16px; }
.svc ul { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.svc li { font-size: 13px; font-weight: 600; color: var(--ink-2); background: var(--surface-2); border-radius: 8px; padding: 5px 10px; }

/* ---------- Work ---------- */
.work-section { background: var(--bg-2); }
.work { display: flex; flex-direction: column; gap: 28px; }
.case {
  display: grid; grid-template-columns: 1fr 1.15fr; gap: 0; background: var(--surface);
  border: 1px solid var(--line); border-radius: 28px; overflow: hidden;
}
.case:nth-child(even) { grid-template-columns: 1.15fr 1fr; }
.case:nth-child(even) .case-art { order: -1; }
.case-body { padding: 52px; display: flex; flex-direction: column; justify-content: center; }
.case-kicker { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.case-body h3 { font-size: clamp(26px, 3vw, 34px); margin-top: 18px; }
.case-body p { color: var(--ink-2); margin-top: 14px; }
.case-points { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.case-points li { display: flex; gap: 12px; color: var(--ink-2); font-size: 16px; }
.case-points li::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: 9px; transform: rotate(45deg); background: var(--brand); }
.stack { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.stack span { font-family: "JetBrains Mono", monospace; font-size: 12.5px; padding: 6px 11px; border-radius: 8px; border: 1px solid var(--line); color: var(--ink-2); }
.case-link { margin-top: 28px; display: inline-flex; align-items: center; gap: 8px; color: var(--brand); font-weight: 700; }
.case-link svg { width: 18px; height: 18px; transition: transform .2s; }
.case-link:hover svg { transform: translate(2px, -2px); }
.case-art {
  position: relative; padding: 48px 40px; display: flex; align-items: center;
  background:
    radial-gradient(circle at 70% 30%, color-mix(in srgb, var(--brand) 18%, transparent), transparent 55%),
    radial-gradient(circle at 20% 90%, color-mix(in srgb, var(--blue) 16%, transparent), transparent 55%),
    var(--surface-2);
  overflow: hidden;
}
.case-art::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 32px 32px;
}
.case-art .stage-wrap { position: relative; }
.duo { aspect-ratio: 1 / .72; }
.duo .laptop { left: 0; top: 2%; width: 86%; }
.duo .phone { right: 0; bottom: 0; width: 26%; }
.solo-l { aspect-ratio: 1 / .66; }
.solo-l .laptop { left: 6%; top: 2%; width: 88%; }
.solo-l .chip { right: -1%; bottom: 10%; }
.pair { aspect-ratio: 1 / .78; }
.pair .phone.p1 { left: 18%; top: 0; width: 32%; transform: rotate(-4deg); }
.pair .phone.p2 { right: 16%; top: 8%; width: 32%; transform: rotate(5deg); }

/* exam app bits */
.q-timer { display: flex; justify-content: space-between; align-items: center; font-size: 1.05em; font-weight: 700; }
.q-timer .t { padding: .4em .9em; border-radius: 99em; background: var(--alert-soft); color: var(--alert); font-family: "JetBrains Mono", monospace; }
.q-prog { height: .6em; border-radius: 99em; background: var(--scr-line); overflow: hidden; }
.q-prog i { display: block; height: 100%; width: 62%; background: var(--brand); border-radius: 99em; }
.q-text { font-size: 1.3em; font-weight: 700; line-height: 1.35 !important; }
.opt { display: flex; align-items: center; gap: .9em; padding: 1em 1.1em; border-radius: 1.1em; border: .14em solid var(--scr-line); background: var(--scr-surface); font-size: 1.05em; font-weight: 600; }
.opt i { width: 1.9em; height: 1.9em; border-radius: 50%; border: .15em solid var(--scr-line); display: grid; place-items: center; font-style: normal; font-weight: 800; font-size: .85em; flex: none; color: var(--scr-mute); }
.opt.sel { border-color: var(--brand); background: var(--brand-soft); }
.opt.sel i { background: var(--brand); border-color: var(--brand); color: #fff; }
.q-next { margin-top: auto; height: 3.6em; border-radius: 1.1em; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 1.15em; }

/* scanner table */
.tbl { width: 100%; border-collapse: collapse; font-size: .82em; }
.tbl th { text-align: left; color: var(--scr-mute); font-weight: 600; padding: .5em .6em; border-bottom: .1em solid var(--scr-line); }
.tbl td { padding: .62em .6em; border-bottom: .1em solid var(--scr-line); font-weight: 600; white-space: nowrap; }
.tbl td.up { color: var(--brand); }
.tbl td.dn { color: var(--alert); }
.score { display: inline-flex; align-items: center; gap: .5em; }
.score b { display: inline-block; height: .55em; border-radius: 99em; background: var(--brand); }
.spark { width: 6em; height: 1.6em; }

/* smart home */
.sw-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1em; }
.sw { background: var(--scr-surface); border: .12em solid var(--scr-line); border-radius: 1.4em; padding: 1.2em; display: flex; flex-direction: column; gap: 1.4em; font-size: 1em; }
.sw.on { background: #0B1A2E; color: #fff; border-color: #0B1A2E; }
.sw .tg { width: 3.4em; height: 2em; border-radius: 99em; background: var(--scr-line); position: relative; }
.sw .tg::after { content: ""; position: absolute; top: .25em; left: .25em; width: 1.5em; height: 1.5em; border-radius: 50%; background: #fff; box-shadow: 0 .1em .3em rgba(0,0,0,.2); transition: left .3s; }
.sw.on .tg { background: #1FC68B; }
.sw.on .tg::after { left: 1.65em; }
.sw b { font-weight: 800; font-size: 1.15em; display: block; }
.sw span { font-size: .9em; opacity: .65; font-weight: 600; }
.energy { background: var(--scr-surface); border: .12em solid var(--scr-line); border-radius: 1.4em; padding: 1.2em; }
.energy small { font-size: 1em; color: var(--scr-mute); font-weight: 600; }
.energy strong { display: block; font-size: 2em; font-weight: 800; margin: .1em 0 .4em; }
.energy svg { width: 100%; height: 4.5em; }

/* ---------- Process ---------- */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; position: relative; }
.step { position: relative; padding: 30px 26px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; }
.step .num { font-family: "JetBrains Mono", monospace; font-size: 13px; color: var(--brand); font-weight: 500; letter-spacing: .1em; }
.step h3 { font-size: 21px; margin-top: 14px; }
.step p { color: var(--ink-2); margin-top: 10px; font-size: 15.5px; }
.step .bar { margin-top: 22px; height: 4px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.step .bar i { display: block; height: 100%; background: var(--brand); border-radius: 4px; }

/* ---------- Why ---------- */
.why { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.why-list { display: grid; gap: 4px; }
.why-item { display: grid; grid-template-columns: 48px 1fr; gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.why-item:last-child { border-bottom: 0; }
.why-item .ico { width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); color: var(--brand); }
.why-item .ico svg { width: 23px; height: 23px; }
.why-item h3 { font-size: 19px; letter-spacing: -0.01em; }
.why-item p { color: var(--ink-2); font-size: 15.5px; margin-top: 6px; }
.tech-board {
  background: var(--navy); color: #E7EDF5; border-radius: 28px; padding: 40px; position: relative; overflow: hidden;
  box-shadow: var(--shadow-lg);
}
:root[data-theme="dark"] .tech-board { background: var(--surface); border: 1px solid var(--line); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tech-board { background: var(--surface); border: 1px solid var(--line); } }
.tech-board::after { content: ""; position: absolute; right: -90px; bottom: -90px; width: 280px; height: 280px; border: 40px solid rgba(31,198,139,.12); transform: rotate(45deg); border-radius: 24px; }
.tech-board h3 { font-size: 24px; }
.tech-board > p { color: #A8B5C7; margin-top: 10px; font-size: 15.5px; }
.tech-groups { display: grid; gap: 22px; margin-top: 30px; position: relative; z-index: 1; }
.tech-groups h4 { font-family: "JetBrains Mono", monospace; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #4FD9A8; font-weight: 500; }
.tech-groups div div { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.tech-groups span { font-size: 14px; font-weight: 600; padding: 7px 13px; border-radius: 9px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); }

/* ---------- CTA band ---------- */
.cta-band {
  border-radius: 32px; padding: 64px; position: relative; overflow: hidden;
  background: linear-gradient(120deg, #0B1A2E 0%, #0F2E4A 55%, #0A5A45 100%);
  color: #fff; display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 44px 44px; mask-image: linear-gradient(90deg, transparent, #000); -webkit-mask-image: linear-gradient(90deg, transparent, #000);
}
.cta-band > * { position: relative; }
.cta-band h2 { font-size: clamp(30px, 3.8vw, 44px); }
.cta-band p { color: rgba(255,255,255,.75); margin-top: 16px; font-size: 18px; }
.cta-band .actions { display: flex; flex-direction: column; gap: 12px; align-items: stretch; }
.cta-band .btn-primary { background: #1FC68B; color: #04140D; box-shadow: none; }
.cta-band .btn-primary:hover { background: #4FD9A8; }
.cta-band .btn-ghost { background: rgba(255,255,255,.06); color: #fff; border-color: rgba(255,255,255,.22); }
.cta-band .btn-ghost:hover { border-color: rgba(255,255,255,.5); }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; }
.contact-info { display: grid; gap: 16px; align-content: start; }
.info-card { display: flex; gap: 18px; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; }
.info-card .ico { width: 46px; height: 46px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; flex: none; }
.info-card .ico svg { width: 22px; height: 22px; }
.info-card h3 { font-size: 15px; color: var(--ink-3); font-weight: 600; letter-spacing: 0; }
.info-card p, .info-card a { font-size: 17px; font-weight: 600; color: var(--ink); margin-top: 4px; display: block; }
.info-card a:hover { color: var(--brand); }
.form { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 36px; box-shadow: var(--shadow); }
.form h3 { font-size: 24px; }
.form > p { color: var(--ink-2); margin-top: 8px; font-size: 15.5px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 26px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 700; color: var(--ink-2); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 16px; color: var(--ink); background: var(--bg); border: 1px solid var(--line-2);
  border-radius: 12px; padding: 13px 15px; transition: border-color .2s, box-shadow .2s; width: 100%;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.chips-select { display: flex; flex-wrap: wrap; gap: 8px; }
.chips-select label { cursor: pointer; }
.chips-select input { position: absolute; opacity: 0; pointer-events: none; }
.chips-select span { display: inline-block; padding: 9px 15px; border-radius: 10px; border: 1px solid var(--line-2); font-size: 14.5px; font-weight: 600; color: var(--ink-2); transition: all .2s; }
.chips-select input:checked + span { background: var(--brand-soft); border-color: var(--brand); color: var(--brand); }
.chips-select input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.form .btn { width: 100%; margin-top: 22px; }
.form-note { font-size: 13.5px; color: var(--ink-3); margin-top: 12px; text-align: center; }
.form-note a { color: var(--brand); font-weight: 700; }
.form-note.err { color: var(--alert); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.field .label { font-size: 14px; font-weight: 700; color: var(--ink-2); }
.field em, .field .label em { font-style: normal; font-weight: 500; color: var(--ink-3); margin-left: 4px; }
.quote fieldset { border: 0; padding: 0; margin: 26px 0 0; min-width: 0; display: grid; gap: 22px; }
.quote fieldset[hidden] { display: none; }
.q-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.q-count { font-family: "JetBrains Mono", monospace; font-size: 12.5px; color: var(--ink-3); white-space: nowrap; }
.q-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 16px; }
.q-steps i { height: 4px; border-radius: 4px; background: var(--surface-2); transition: background .3s; }
.q-steps i.on { background: var(--brand); }
.q-nav { display: flex; gap: 12px; margin-top: 26px; }
.q-nav .btn { margin-top: 0; flex: 1; width: auto; }
.q-nav .btn[hidden] { display: none; }
.q-nav .btn-ghost { flex: 0 0 auto; }
.q-nav .btn.loading { opacity: .7; pointer-events: none; }
.drop { position: relative; display: flex; align-items: center; gap: 12px; padding: 18px; border: 1.5px dashed var(--line-2); border-radius: 12px; cursor: pointer; color: var(--ink-2); font-weight: 600; font-size: 15px; transition: border-color .2s, background .2s; }
.drop:hover, .drop:focus-within { border-color: var(--brand); background: var(--brand-soft); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.drop svg { width: 22px; height: 22px; color: var(--brand); flex: none; }
.drop span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.field .invalid, .chips-select.invalid span { border-color: var(--alert) !important; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.q-done { text-align: center; padding: 40px 8px 16px; }
.q-done[hidden] { display: none; }
.q-done-ico { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.q-done-ico svg { width: 30px; height: 30px; }
.q-done h3 { margin-top: 20px; }
.q-done p { color: var(--ink-2); margin-top: 8px; }
.q-done .q-ref { font-size: 14px; color: var(--ink-3); }
.quote.sent > :not(.q-done) { display: none; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--line); padding: 56px 0 36px; margin-top: 40px; }
.foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.foot p { color: var(--ink-2); font-size: 15px; margin-top: 16px; max-width: 320px; }
.foot h4 { font-size: 14px; font-weight: 700; color: var(--ink-3); letter-spacing: 0; }
.foot ul { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 10px; }
.foot ul a { color: var(--ink-2); font-size: 15px; font-weight: 600; }
.foot ul a:hover { color: var(--brand); }
.foot-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--line); margin-top: 44px; padding-top: 24px; font-size: 14px; color: var(--ink-3); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s cubic-bezier(.2,.8,.2,1), transform .8s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .line-draw { stroke-dashoffset: 0; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-copy { text-align: left; }
  .hero-visual { max-width: 760px; width: 100%; margin: 0 auto; }
  .services { grid-template-columns: repeat(2, 1fr); }
  .case, .case:nth-child(even) { grid-template-columns: 1fr; }
  .case:nth-child(even) .case-art { order: 0; }
  .case-art { order: -1; }
  .process { grid-template-columns: repeat(2, 1fr); }
  .why { grid-template-columns: 1fr; }
  .cta-band { grid-template-columns: 1fr; padding: 48px; }
  .contact { grid-template-columns: 1fr; }
  .foot { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav-links, .nav .btn-primary { display: none; }
  .menu-btn { display: grid; }
  .mobile-menu {
    display: block; position: fixed; inset: 72px 0 auto 0; z-index: 49;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 12px 16px 24px; transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: opacity .25s, transform .25s; box-shadow: var(--shadow);
  }
  .mobile-menu.open { opacity: 1; transform: none; pointer-events: auto; }
  .mobile-menu a { display: block; padding: 14px 8px; font-weight: 700; font-size: 18px; border-bottom: 1px solid var(--line); }
  .mobile-menu .btn { margin-top: 18px; width: 100%; border-bottom: 0; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .section { padding: 80px 0; }
  .section-head { margin-bottom: 40px; }
  .hero { padding: 40px 0 64px; }
  .hero .lede { font-size: 17px; }
  .hero-cta .btn { flex: 1 1 100%; }
  .hero-meta { gap: 14px 22px; margin-top: 32px; }
  .hero-stage { aspect-ratio: 1 / 1.05; }
  .hero-stage .laptop { left: 6%; top: 6%; width: 88%; }
  .hero-stage .phone { right: 2%; bottom: 0; width: 36%; }
  .hero-stage .chip { font-size: 2.6em; }
  .hero-stage .chip.c1 { left: 0; bottom: 6%; }
  .hero-stage .chip.c2 { right: 2%; top: -2%; }
  .strip-inner { flex-direction: column; align-items: flex-start; gap: 14px; padding: 22px 16px; }
  .strip-label { max-width: none; }
  .marquee { width: 100%; }
  .services { grid-template-columns: 1fr; }
  .svc { padding: 26px; }
  .case { border-radius: 22px; }
  .case-body { padding: 30px 22px 34px; }
  .case-art { padding: 32px 18px; }
  .duo { aspect-ratio: 1 / .8; }
  .duo .phone { width: 32%; }
  .solo-l .chip { font-size: 2em; right: 0; bottom: 0; }
  .pair .phone.p1 { left: 8%; width: 40%; }
  .pair .phone.p2 { right: 6%; width: 40%; }
  .pair { aspect-ratio: 1 / .98; }
  .process { grid-template-columns: 1fr; }
  .tech-board { padding: 28px 22px; border-radius: 22px; }
  .cta-band { padding: 36px 22px; border-radius: 24px; }
  .form { padding: 26px 20px; }
  .fields { grid-template-columns: 1fr; }
  .foot { grid-template-columns: 1fr; gap: 32px; }
}
