/* DNNR Tech — design system for dnnr.us
   Pages are generated: edit _src/ and run `python3 _src/build.py`. */

:root {
  --bg: #FAFAFB;
  --bg-2: #F4F4F7;
  --surface: #FFFFFF;
  --surface-2: #F3F4F7;
  --glass: rgba(255, 255, 255, .72);
  --text: #0B0B12;
  --muted: #5B5E6B;
  --faint: #8A8D99;
  --border: #E7E8EE;
  --border-strong: #D9DAE2;
  --ink: #111118;
  --ink-text: #FFFFFF;
  --focus: #8B6CE0;
  --brand: linear-gradient(90deg, #3BA6E8 0%, #8B6CE0 35%, #8CCB4F 58%, #F57FA0 82%, #F7A26B 100%);
  --brand-soft: linear-gradient(135deg, rgba(59,166,232,.10), rgba(139,108,224,.10) 40%, rgba(245,127,160,.10));
  --shadow-sm: 0 1px 2px rgba(16, 16, 24, .04);
  --shadow: 0 1px 2px rgba(16, 16, 24, .04), 0 8px 24px rgba(16, 16, 24, .06);
  --shadow-lg: 0 2px 6px rgba(16, 16, 24, .05), 0 28px 56px rgba(16, 16, 24, .10);
  --radius: 22px;
  --radius-sm: 12px;
  --max: 1160px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0A0A0F;
    --bg-2: #0F0F16;
    --surface: #13131A;
    --surface-2: #1A1A23;
    --glass: rgba(24, 24, 32, .66);
    --text: #F3F3F7;
    --muted: #A2A5B3;
    --faint: #767988;
    --border: #24242F;
    --border-strong: #32323F;
    --ink: #F3F3F7;
    --ink-text: #0A0A0F;
    --brand-soft: linear-gradient(135deg, rgba(59,166,232,.14), rgba(139,108,224,.14) 40%, rgba(245,127,160,.14));
    --shadow-sm: none;
    --shadow: 0 1px 0 rgba(255, 255, 255, .03);
    --shadow-lg: 0 30px 60px rgba(0, 0, 0, .5);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 80%, transparent); backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px); border-bottom: 1px solid transparent; transition: border-color .2s ease; }
.site-header.scrolled { border-bottom-color: var(--border); }
.site-header .bar { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; letter-spacing: -.01em; font-size: 17px; color: var(--text); }
.brand img { width: 34px; height: auto; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav a { text-decoration: none; color: var(--muted); font-size: 14.5px; font-weight: 500; padding: 8px 12px; border-radius: 10px; transition: color .15s, background .15s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); background: var(--surface-2); }
.nav .btn { margin-left: 10px; }
@media (max-width: 640px) { .nav a.hide-sm { display: none; } .nav .btn { padding: 9px 14px; } }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 15px; font-weight: 600; line-height: 1; padding: 14px 20px; border-radius: var(--radius-sm); text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: transform .15s ease, background .15s, border-color .15s, box-shadow .15s, opacity .15s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-ink { background: var(--ink); color: var(--ink-text); }
.btn-ink:hover { box-shadow: 0 8px 24px color-mix(in srgb, var(--ink) 25%, transparent); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--border-strong); }
.btn-sm { font-size: 13.5px; padding: 10px 14px; border-radius: 10px; }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }
.nav .btn-ink, .nav .btn-ink:hover { color: var(--ink-text); background: var(--ink); }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- Type ---------- */
h1, h2, h3 { letter-spacing: -.025em; line-height: 1.12; margin: 0; }
.display { font-size: clamp(46px, 7.4vw, 88px); font-weight: 700; letter-spacing: -.045em; line-height: .98; }
.h2 { font-size: clamp(30px, 3.8vw, 44px); font-weight: 700; letter-spacing: -.03em; }
.lead { font-size: clamp(17px, 1.6vw, 19.5px); color: var(--muted); max-width: 600px; line-height: 1.6; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--muted); padding: 6px 13px 6px 9px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
.kicker { font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.grad { background: var(--brand); -webkit-background-clip: text; background-clip: text; color: transparent; }

section { padding: 104px 0; }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 24px; margin-bottom: 44px; }
.section-head p { margin: 14px 0 0; color: var(--muted); font-size: 17px; max-width: 560px; }
.section-head .kicker { display: block; margin-bottom: 14px; }
@media (max-width: 700px) { .section-head { grid-template-columns: 1fr; } section { padding: 76px 0; } }

/* ---------- Hero ---------- */
.hero { padding: 56px 0 32px; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -30% -20% auto; height: 640px; z-index: -1; background: radial-gradient(38% 55% at 18% 35%, rgba(59,166,232,.14), transparent 70%), radial-gradient(30% 50% at 52% 20%, rgba(140,203,79,.10), transparent 70%), radial-gradient(38% 55% at 88% 40%, rgba(245,127,160,.13), transparent 70%); filter: blur(12px); }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 48px; align-items: center; }
.hero h1 { margin: 26px 0 26px; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 36px; }
.capabilities { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 44px; color: var(--faint); font-size: 14px; font-weight: 500; }
.capabilities span { display: inline-flex; align-items: center; gap: 8px; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; } .hero-art { max-width: 520px; margin: 8px auto 0; } }

/* Hero art (inline SVG) */
.hero-art { position: relative; aspect-ratio: 1; width: 100%; }
.hero-art > svg { width: 100%; height: 100%; overflow: visible; }
.art-frame { fill: var(--surface); stroke: var(--border); }
.art-dots { fill: color-mix(in srgb, var(--text) 14%, transparent); }
.art-orbit { fill: none; stroke: url(#brandStroke); stroke-width: 1.4; opacity: .8; }
.art-orbit-faint { fill: none; stroke: color-mix(in srgb, var(--text) 22%, transparent); stroke-width: 1; stroke-dasharray: 3 7; }
.art-node { fill: var(--surface); stroke: url(#brandStroke); stroke-width: 2; }
.art-core { fill: var(--glass); stroke: var(--border); }
.spin { transform-box: view-box; transform-origin: 50% 50%; animation: spin 48s linear infinite; }
.spin.r2 { animation-duration: 64s; animation-direction: reverse; }
.spin.r3 { animation-duration: 84s; }
@keyframes spin { to { transform: rotate(360deg); } }
.chip-float { position: absolute; display: inline-flex; align-items: center; gap: 9px; padding: 9px 15px 9px 9px; border-radius: 14px; background: var(--glass); border: 1px solid var(--border); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: var(--shadow-lg); font-size: 13.5px; font-weight: 600; animation: bob 7s ease-in-out infinite; white-space: nowrap; }
.chip-float i { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: var(--brand-soft); border: 1px solid var(--border); }
.chip-float .gi { width: 15px; height: 15px; }
.chip-float.c-a { top: 12%; left: -4%; }
.chip-float.c-b { top: 46%; right: -5%; animation-delay: -2.5s; }
.chip-float.c-c { bottom: 10%; left: 7%; animation-delay: -4.5s; }
@keyframes bob { 50% { transform: translateY(-8px); } }
@media (max-width: 520px) { .chip-float { font-size: 12px; padding: 7px 11px 7px 7px; } .chip-float.c-a { left: 0; } .chip-float.c-b { right: 0; } }

/* Gradient-stroked line icons */
.gi { width: 22px; height: 22px; fill: none; stroke: url(#brandStroke); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.icon-tile { width: 50px; height: 50px; border-radius: 15px; display: grid; place-items: center; background: var(--brand-soft); border: 1px solid var(--border); }


/* ---------- Motto ---------- */
.motto { font-size: clamp(40px, 5.5vw, 74px); }
.motto .line { display: block; white-space: nowrap; }
.motto b { font-weight: inherit; }
.motto .i1 { color: #2F93D6; } .motto .i2 { color: #8B6CE0; } .motto .i3 { color: #6AAE34; } .motto .i4 { color: #EE6690; }
@media (prefers-color-scheme: dark) { .motto .i1 { color: #4FB3F0; } .motto .i3 { color: #92D25A; } .motto .i4 { color: #F7829F; } }
@media (max-width: 600px) { .motto { font-size: 10.4vw; } }

/* ---------- Hero scene: daily needs → naturally refined ---------- */
.refinery { position: relative; width: 100%; aspect-ratio: 1; container-type: inline-size; }
.rf-bg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.rf-flow { fill: none; stroke: url(#brandStroke); stroke-width: .38; stroke-linecap: round; stroke-dasharray: .8 1.8; opacity: .55; animation: rf-dash 2.4s linear infinite; }
.rf-flow.out { opacity: .85; }
@keyframes rf-dash { to { stroke-dashoffset: -5.2; } }
.rf-ring { transform-box: view-box; transform-origin: 50% 50%; animation: spin 70s linear infinite; }
.rf-ring-line { fill: none; stroke: color-mix(in srgb, var(--text) 14%, transparent); stroke-width: 1; }
.rf-ring-text { font: 700 2.05px var(--font); fill: var(--muted); letter-spacing: .05px; }
.rf-pulse { transform-box: view-box; transform-origin: 50% 50%; animation: rf-pulse 3s ease-in-out infinite; }
@keyframes rf-pulse { 50% { transform: scale(1.14); opacity: .7; } }
.rf-cap { position: absolute; top: 3.6%; font-size: clamp(9px, 2.1cqw, 11.5px); letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--faint); }
.rf-cap.l { left: 5.5%; } .rf-cap.r { right: 5.5%; background: var(--brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rf-card { position: absolute; width: 35cqw; display: flex; align-items: center; gap: 2.2cqw; padding: 2.1cqw 2.5cqw; border-radius: 3.2cqw; font-size: clamp(10px, 2.5cqw, 13.5px); line-height: 1.25; will-change: transform, opacity; }
.rf-card i { width: 6.6cqw; height: 6.6cqw; min-width: 22px; min-height: 22px; border-radius: 1.8cqw; display: grid; place-items: center; flex: none; }
.rf-card .gi { width: 58%; height: 58%; }
.rf-card b { display: block; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: -.01em; }
.rf-card span { display: block; color: var(--muted); font-size: .84em; white-space: nowrap; margin-top: 1px; }
.rf-card > div { min-width: 0; }
.rf-card.raw { background: var(--surface); border: 1px dashed var(--border-strong); color: var(--muted); box-shadow: var(--shadow-sm); transform: rotate(var(--r)); animation: rf-raw 9s cubic-bezier(.55,.05,.45,1) infinite; }
.rf-card.raw b { font-style: italic; font-weight: 600; }
.rf-card.raw i { background: var(--surface-2); }
.rf-card.raw .gi { stroke: var(--faint); }
.rf-card.done { background: var(--glass); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--border); box-shadow: var(--shadow-lg); opacity: 0; animation: rf-done 9s cubic-bezier(.2,.8,.2,1) infinite; }
.rf-card.done i { background: var(--brand-soft); border: 1px solid var(--border); }
.rf-card.done .gi { stroke-width: 2.4; }
.rf-card.raw.p1 { top: 10%; left: 1%; --r: -7deg; --dx: 31cqw; --dy: 35cqw; }
.rf-card.raw.p2 { top: 43%; left: -3%; --r: 5deg; --dx: 37cqw; --dy: 2cqw; }
.rf-card.raw.p3 { top: 76%; left: 2%; --r: -4deg; --dx: 30cqw; --dy: -31cqw; }
.rf-card.done.p1 { top: 11%; right: 0%; --dx: -32cqw; --dy: 34cqw; }
.rf-card.done.p2 { top: 44%; right: -6%; --dx: -38cqw; --dy: 1cqw; }
.rf-card.done.p3 { top: 75%; right: 1%; --dx: -31cqw; --dy: -30cqw; }
.rf-card.p2 { animation-delay: 3s; }
.rf-card.p3 { animation-delay: 6s; }
@keyframes rf-raw {
  0%, 20% { opacity: 1; transform: rotate(var(--r)) translate(0, 0) scale(1); }
  36% { opacity: 0; transform: rotate(0deg) translate(var(--dx), var(--dy)) scale(.22); }
  37%, 84% { opacity: 0; transform: rotate(var(--r)) translate(0, 0) scale(.94); }
  100% { opacity: 1; transform: rotate(var(--r)) translate(0, 0) scale(1); }
}
@keyframes rf-done {
  0%, 34% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(.22); }
  50%, 84% { opacity: 1; transform: translate(0, 0) scale(1); }
  96%, 100% { opacity: 0; transform: translate(0, -1.6cqw) scale(.98); }
}
@media (max-width: 960px) { .refinery { max-width: 520px; margin: 12px auto 0; } }
@media (prefers-reduced-motion: reduce) { .rf-card.done { opacity: 1 !important; } }


/* ---------- Hero particle scene ---------- */
.pc-scene { position: relative; aspect-ratio: 1; width: 100%; border-radius: 36px; overflow: hidden; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg); isolation: isolate; }
.pc-scene::before { content: ""; position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(45% 45% at 22% 24%, rgba(59,166,232,.16), transparent 70%),
  radial-gradient(45% 45% at 80% 78%, rgba(245,127,160,.15), transparent 70%),
  radial-gradient(35% 35% at 50% 50%, rgba(139,108,224,.12), transparent 70%); }
.pc-scene::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5; background-image: radial-gradient(color-mix(in srgb, var(--text) 16%, transparent) 1px, transparent 1.2px); background-size: 18px 18px; mask-image: radial-gradient(70% 70% at 50% 50%, #000, transparent); -webkit-mask-image: radial-gradient(70% 70% at 50% 50%, #000, transparent); }
.pc-scene canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: pan-y; }
.pc-cap { position: absolute; top: 22px; left: 50%; transform: translate(-50%, 6px); font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; white-space: nowrap; opacity: 0; transition: opacity .6s ease, transform .6s ease; pointer-events: none; }
.pc-cap.a { color: var(--faint); }
.pc-cap.b { background: var(--brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pc-scene[data-phase="drift"] .pc-cap.a, .pc-scene[data-phase="burst"] .pc-cap.a,
.pc-scene[data-phase="form"] .pc-cap.b, .pc-scene[data-phase="hold"] .pc-cap.b { opacity: 1; transform: translate(-50%, 0); }
.pc-ticker { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 0; border-top: 1px solid var(--border); background: color-mix(in srgb, var(--surface) 70%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.pc-ticker .track { display: flex; width: max-content; gap: 0; animation: pc-marquee 28s linear infinite; }
.pc-ticker span { font-size: 12.5px; font-weight: 600; letter-spacing: .04em; color: var(--muted); padding: 0 16px; white-space: nowrap; display: inline-flex; align-items: center; gap: 16px; }
.pc-ticker span::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--brand); }
@keyframes pc-marquee { to { transform: translateX(-50%); } }
@media (max-width: 960px) { .pc-scene { max-width: 520px; margin: 12px auto 0; } }

/* ---------- Pillars (What we do) ---------- */
.pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 880px) { .pillars { grid-template-columns: 1fr; } }
.pillar { position: relative; display: flex; flex-direction: column; text-decoration: none; color: inherit; border-radius: 28px; background: var(--surface); border: 1px solid var(--border); overflow: hidden; transition: transform .25s ease, box-shadow .25s ease, border-color .25s; }
.pillar:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--border-strong); }
.pillar .art { height: 230px; position: relative; background: var(--bg-2); border-bottom: 1px solid var(--border); overflow: hidden; }
.pillar .art::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 80% at 18% 18%, rgba(59,166,232,.16), transparent 70%), radial-gradient(60% 80% at 86% 82%, rgba(245,127,160,.14), transparent 70%); }
.pillar .art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.pillar .content { padding: 30px 32px 32px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.pillar h3 { font-size: clamp(22px, 2.3vw, 27px); }
.pillar p { margin: 0; color: var(--muted); flex: 1; }
.pillar .more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 15px; margin-top: 10px; }
.pillar .more span { transition: transform .2s; }
.pillar:hover .more span { transform: translateX(4px); }
.art-line { fill: none; stroke: var(--border-strong); stroke-width: 1.5; }
.art-fill { fill: var(--surface); stroke: var(--border-strong); stroke-width: 1.5; }
.art-grad { fill: url(#brandFill); }
.art-text { fill: var(--muted); font: 600 12px var(--font); }
.art-bar { fill: var(--surface-2); }
.art-path { fill: none; stroke: url(#brandStroke); stroke-width: 2; stroke-dasharray: 5 7; }

/* ---------- Capability strip ---------- */
.cap-strip { display: grid; grid-template-columns: repeat(6, 1fr); border: 1px solid var(--border); border-radius: 22px; background: var(--surface); overflow: hidden; }
.cap-strip > div { padding: 24px 20px; display: flex; flex-direction: column; gap: 12px; border-right: 1px solid var(--border); }
.cap-strip > div:last-child { border-right: 0; }
.cap-strip b { font-size: 15px; letter-spacing: -.01em; }
.cap-strip span { font-size: 13px; color: var(--muted); line-height: 1.45; }
@media (max-width: 980px) { .cap-strip { grid-template-columns: repeat(3, 1fr); } .cap-strip > div:nth-child(3n) { border-right: 0; } .cap-strip > div:nth-child(-n+3) { border-bottom: 1px solid var(--border); } }
@media (max-width: 560px) { .cap-strip { grid-template-columns: 1fr 1fr; } .cap-strip > div { border-right: 1px solid var(--border) !important; border-bottom: 1px solid var(--border); } .cap-strip > div:nth-child(2n) { border-right: 0 !important; } }

/* ---------- Service cards ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 960px) { .services { grid-template-columns: 1fr; } }
.service { position: relative; display: flex; flex-direction: column; gap: 16px; padding: 32px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); text-decoration: none; color: inherit; transition: transform .25s ease, box-shadow .25s ease, border-color .25s; overflow: hidden; }
.service::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--brand); opacity: 0; transition: opacity .25s; }
.service:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--border-strong); }
.service:hover::after { opacity: 1; }
.service h3 { font-size: 20px; }
.service p { margin: 0; color: var(--muted); font-size: 15.5px; flex: 1; }
.service .more { font-weight: 600; font-size: 14.5px; display: inline-flex; gap: 6px; }
.service .more span { transition: transform .2s; }
.service:hover .more span { transform: translateX(4px); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: 12.5px; font-weight: 500; color: var(--muted); padding: 5px 10px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); }

/* ---------- Selected work ---------- */
.work { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 960px) { .work { grid-template-columns: 1fr; } }
.work-card { border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); padding: 28px; display: flex; flex-direction: column; gap: 16px; transition: box-shadow .25s, transform .25s; text-decoration: none; color: inherit; }
.work-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.work-card .top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.work-card img.icon { width: 56px; height: 56px; border-radius: 22%; box-shadow: 0 0 0 1px rgba(0,0,0,.06), 0 6px 16px rgba(0,0,0,.08); }
.work-card h3 { font-size: 19px; }
.work-card p { margin: 0; color: var(--muted); font-size: 15px; flex: 1; }

/* ---------- AI badge ---------- */
.ai-badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px 5px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: .005em; color: var(--text); white-space: nowrap; position: relative; background: var(--brand-soft); isolation: isolate; }
.ai-badge::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: var(--brand); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); z-index: -1; opacity: .9; }
.ai-badge .gi { width: 13px; height: 13px; stroke-width: 2; }

/* ---------- App cards (apps page) ---------- */
.app-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 980px) { .app-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .app-grid { grid-template-columns: 1fr; } }
.app-card { position: relative; display: flex; flex-direction: column; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); overflow: hidden; transition: box-shadow .25s, transform .25s, border-color .25s; scroll-margin-top: 90px; }
.app-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: var(--border-strong); }
.app-card:target { border-color: var(--focus); box-shadow: 0 0 0 4px color-mix(in srgb, var(--focus) 18%, transparent); }
.app-card .body { padding: 26px 26px 22px; display: flex; flex-direction: column; gap: 16px; flex: 1; }
.app-card .head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.app-card img.icon { width: 64px; height: 64px; border-radius: 22%; box-shadow: 0 0 0 1px rgba(0,0,0,.06), 0 8px 20px rgba(0,0,0,.10); }
.app-card h3 { font-size: 18px; letter-spacing: -.015em; }
.app-card .cat { font-size: 13px; color: var(--faint); margin-top: 4px; }
.app-card p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.55; flex: 1; }
.app-card .links { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--border); }
.app-card .links a { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 10px; text-decoration: none; font-size: 13.5px; font-weight: 600; color: var(--muted); transition: color .15s, background .15s; }
.app-card .links a + a { border-left: 1px solid var(--border); }
.app-card .links a:hover { color: var(--text); background: var(--surface-2); }
.app-card .links svg { width: 15px; height: 15px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 30px; }
.chip { font-size: 14px; font-weight: 500; color: var(--muted); cursor: pointer; padding: 9px 15px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); display: inline-flex; align-items: center; gap: 7px; transition: border-color .15s; }
.chip:hover { border-color: var(--border-strong); }
.chip .gi { width: 14px; height: 14px; stroke-width: 2; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--ink-text); border-color: var(--ink); }
.chip[aria-pressed="true"] .gi { stroke: currentColor; }

/* ---------- Editorial principles ---------- */
.editorial { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; }
@media (max-width: 900px) { .editorial { grid-template-columns: 1fr; gap: 32px; } }
.editorial .intro p { color: var(--muted); font-size: 17px; margin: 16px 0 0; max-width: 420px; }
.plist { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border); }
.plist li { display: grid; grid-template-columns: 72px 1fr; gap: 12px; padding: 28px 0; border-bottom: 1px solid var(--border); }
.plist .n { font-size: 30px; font-weight: 700; letter-spacing: -.03em; line-height: 1; background: var(--brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.plist h3 { font-size: 20px; margin-bottom: 8px; }
.plist p { margin: 0; color: var(--muted); }

/* ---------- Services page ---------- */
.svc-rows { display: grid; gap: 22px; }
.svc-row { display: grid; grid-template-columns: 1.15fr .85fr; border-radius: 28px; border: 1px solid var(--border); background: var(--surface); overflow: hidden; scroll-margin-top: 90px; }
@media (max-width: 900px) { .svc-row { grid-template-columns: 1fr; } }
.svc-row .main { padding: 40px; display: flex; flex-direction: column; gap: 16px; }
.svc-row .main h2 { font-size: clamp(24px, 2.6vw, 30px); letter-spacing: -.025em; }
.svc-row .main > p { margin: 0; color: var(--muted); font-size: 16.5px; max-width: 520px; }
.svc-row .side { padding: 40px; background: var(--bg-2); border-left: 1px solid var(--border); display: flex; flex-direction: column; gap: 26px; }
@media (max-width: 900px) { .svc-row .side { border-left: 0; border-top: 1px solid var(--border); } .svc-row .main, .svc-row .side { padding: 30px 26px; } }
.svc-row .side h4 { margin: 0 0 10px; font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.svc-row .side p { margin: 0; font-size: 15px; }
.checks { list-style: none; padding: 0; margin: 8px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; font-size: 15px; }
@media (max-width: 560px) { .checks { grid-template-columns: 1fr; } }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks .gi { width: 18px; height: 18px; margin-top: 2px; stroke-width: 2.2; }
.deliv { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: 15px; }
.deliv li { display: flex; gap: 10px; align-items: center; }
.deliv li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); flex: none; }

.proof-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px) { .proof-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .proof-grid { grid-template-columns: 1fr; } }
.proof-card { padding: 26px; border-radius: 20px; background: var(--surface); border: 1px solid var(--border); display: flex; flex-direction: column; gap: 12px; }
.proof-card h3 { font-size: 17px; }
.proof-card p { margin: 0; color: var(--muted); font-size: 14.5px; flex: 1; }
.proof-card .where { display: flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 600; text-decoration: none; color: var(--text); padding-top: 14px; border-top: 1px solid var(--border); }
.proof-card .where img { width: 28px; height: 28px; border-radius: 22%; }
.proof-card .where em { font-style: normal; color: var(--faint); font-weight: 500; }

.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); position: relative; }
.timeline::before { content: ""; position: absolute; top: 20px; left: 20px; right: 12%; height: 2px; background: var(--brand); opacity: .55; }
.timeline li { position: relative; padding: 0 22px 0 0; }
.timeline .dot { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--border-strong); font-size: 13px; font-weight: 700; position: relative; box-shadow: 0 0 0 6px var(--bg); }
.timeline h3 { font-size: 17px; margin: 22px 0 8px; }
.timeline p { margin: 0; color: var(--muted); font-size: 14.5px; }
@media (max-width: 860px) { .timeline { grid-template-columns: 1fr; gap: 28px; } .timeline::before { top: 20px; bottom: 20px; left: 19px; right: auto; width: 2px; height: auto; } .timeline li { display: grid; grid-template-columns: 40px 1fr; gap: 18px; padding: 0; } .timeline h3 { margin-top: 8px; } }

/* ---------- CTA ---------- */
.cta { position: relative; overflow: hidden; border-radius: 32px; padding: 64px; background: #0E0E15; color: #F3F3F7; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 32px; border: 1px solid #22222C; }
.cta::before { content: ""; position: absolute; inset: 0; background: radial-gradient(40% 90% at 100% 0%, rgba(139,108,224,.38), transparent 70%), radial-gradient(40% 90% at 0% 100%, rgba(59,166,232,.26), transparent 70%); pointer-events: none; }
.cta::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--brand); }
.cta > * { position: relative; }
.cta h2 { font-size: clamp(28px, 3.4vw, 42px); letter-spacing: -.03em; }
.cta p { margin: 12px 0 0; color: rgba(243,243,247,.7); font-size: 17px; }
.cta .btn { background: #F3F3F7; color: #0E0E15; }
@media (max-width: 720px) { .cta { grid-template-columns: 1fr; padding: 40px 28px; } }

/* ---------- Contact form ---------- */
.form { display: grid; gap: 16px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form .row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 7px; }
.field label { font-size: 13.5px; font-weight: 600; }
.field label .opt { font-weight: 400; color: var(--faint); }
.field input, .field select, .field textarea { font: inherit; font-size: 15.5px; color: var(--text); background: var(--surface); border: 1px solid var(--border-strong); border-radius: 12px; padding: 12px 14px; width: 100%; transition: border-color .15s, box-shadow .15s; }
.field select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 52%, calc(100% - 15px) 52%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 38px; }
.field textarea { min-height: 150px; resize: vertical; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 4px color-mix(in srgb, var(--focus) 16%, transparent); }
.field .err { font-size: 13px; color: #E5484D; }
.field.invalid input, .field.invalid textarea { border-color: #E5484D; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form .foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 4px; }
.form .note { font-size: 13px; color: var(--faint); margin: 0; max-width: 340px; }
.form .note a { color: inherit; }
.form .status { font-size: 14px; color: #E5484D; margin: 0; }
.form-done { text-align: center; padding: 32px 8px; }
.form-done .ok { width: 60px; height: 60px; border-radius: 50%; margin: 0 auto 18px; display: grid; place-items: center; background: var(--brand-soft); border: 1px solid var(--border); }
.form-done .ok .gi { width: 26px; height: 26px; stroke-width: 2.2; }
.form-done h3 { font-size: 22px; margin-bottom: 8px; }
.form-done p { color: var(--muted); margin: 0; }

dialog.modal { width: min(640px, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: 0; border: 1px solid var(--border); border-radius: 26px; background: var(--surface); color: var(--text); box-shadow: 0 40px 100px rgba(0,0,0,.35); overflow: auto; }
dialog.modal::backdrop { background: rgba(8, 8, 14, .55); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
dialog.modal[open] { animation: pop .22s ease; }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.modal .mhead { padding: 30px 32px 0; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.modal .mhead h2 { font-size: 26px; letter-spacing: -.025em; }
.modal .mhead p { margin: 8px 0 0; color: var(--muted); font-size: 15px; }
.modal .close { flex: none; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); color: var(--muted); cursor: pointer; display: grid; place-items: center; font-size: 20px; line-height: 1; }
.modal .close:hover { color: var(--text); border-color: var(--border-strong); }
.modal .mbody { padding: 22px 32px 32px; }
.form-card { border-radius: 28px; border: 1px solid var(--border); background: var(--surface); padding: 36px; box-shadow: var(--shadow); }
.contact-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: start; }
@media (max-width: 900px) { .contact-layout { grid-template-columns: 1fr; gap: 32px; } .form-card { padding: 26px 22px; } }
.contact-layout .info > p { color: var(--muted); font-size: 17px; }
.contact-layout .info ul { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 20px; }
.contact-layout .info li { display: grid; grid-template-columns: 50px 1fr; gap: 16px; align-items: start; }
.contact-layout .info li b { display: block; font-size: 15.5px; margin-bottom: 2px; }
.contact-layout .info li span { color: var(--muted); font-size: 14.5px; }

/* ---------- Docs (privacy, support) ---------- */
.doc-hero { padding: 64px 0 28px; }
.doc-hero h1 { font-size: clamp(36px, 5vw, 56px); font-weight: 700; letter-spacing: -.035em; margin: 20px 0 14px; }
.doc-hero .meta { color: var(--faint); font-size: 14px; margin: 0; }
.doc-hero .lead { margin: 0; }
.doc-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px; align-items: start; padding-bottom: 104px; }
.doc-layout.single { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
@media (max-width: 900px) { .doc-layout { grid-template-columns: minmax(0, 1fr); gap: 0; } .toc { display: none; } }
.toc { position: sticky; top: 90px; font-size: 14px; }
.toc b { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); margin-bottom: 10px; }
.toc a { display: block; text-decoration: none; color: var(--muted); padding: 5px 0 5px 12px; border-left: 2px solid var(--border); }
.toc a:hover { color: var(--text); border-left-color: var(--text); }
.prose { max-width: 760px; font-size: 16.5px; }
.prose h2 { font-size: 24px; margin: 48px 0 14px; scroll-margin-top: 90px; }
.prose h3 { font-size: 18px; margin: 28px 0 10px; scroll-margin-top: 90px; }
.prose p, .prose ul, .prose ol { margin: 0 0 16px; color: color-mix(in srgb, var(--text) 86%, var(--muted)); }
.prose li { margin: 6px 0; }
.prose a { color: var(--text); text-decoration-color: color-mix(in srgb, var(--focus) 60%, transparent); text-underline-offset: 3px; }
.prose a.btn, .prose button.btn { text-decoration: none; }
.prose .btn-ink { color: var(--ink-text); }
.prose .btn-ghost { color: var(--text); }
.prose strong { color: var(--text); }
.prose > :first-child { margin-top: 0; }
.callout { border: 1px solid var(--border); background: var(--surface); border-radius: 16px; padding: 20px 22px; margin: 0 0 20px; box-shadow: var(--shadow-sm); position: relative; overflow: hidden; }
.callout::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--brand); }
.callout > :last-child { margin-bottom: 0; }
.table-wrap { overflow-x: auto; margin: 0 0 20px; border: 1px solid var(--border); border-radius: 14px; }
table { border-collapse: collapse; width: 100%; font-size: 14.5px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { background: var(--surface-2); font-weight: 600; font-size: 13px; color: var(--muted); }
tr:last-child td { border-bottom: 0; }
.app-sections details { border: 1px solid var(--border); border-radius: 14px; background: var(--surface); margin: 0 0 10px; scroll-margin-top: 90px; }
.app-sections summary { cursor: pointer; list-style: none; padding: 14px 18px; display: flex; align-items: center; gap: 12px; font-weight: 600; }
.app-sections summary::-webkit-details-marker { display: none; }
.app-sections summary img { width: 32px; height: 32px; border-radius: 22%; }
.app-sections summary::after { content: "+"; margin-left: auto; color: var(--faint); font-weight: 400; font-size: 20px; }
.app-sections details[open] summary::after { content: "–"; }
.app-sections .body { padding: 0 18px 8px; }
.app-sections .body ul { padding-left: 20px; }
.app-head { display: flex; align-items: center; gap: 14px; }
.app-icon { width: 60px; height: 60px; border-radius: 22%; box-shadow: 0 0 0 1px rgba(0,0,0,.06); flex: none; }
.stores { display: flex; gap: 8px; flex-wrap: wrap; }


/* ---------- Detail pages (services/*, apps/*) ---------- */
.crumbs { font-size: 13.5px; color: var(--faint); display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--text); }
.crumbs [aria-current] { color: var(--text); font-weight: 500; }
.detail-hero { padding-top: 40px; }
.detail-hero h1 { margin-top: 18px; }
.app-hero { display: flex; gap: 28px; align-items: center; margin-top: 28px; }
.app-hero h1 { margin: 8px 0 10px; }
.app-hero-icon { width: 112px; height: 112px; border-radius: 24%; box-shadow: 0 0 0 1px rgba(0,0,0,.06), 0 18px 40px rgba(0,0,0,.14); flex: none; }
@media (max-width: 640px) { .app-hero { flex-direction: column; align-items: flex-start; gap: 18px; } .app-hero-icon { width: 88px; height: 88px; } }
.app-detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; align-items: start; }
@media (max-width: 960px) { .app-detail { grid-template-columns: 1fr; gap: 36px; } }
.app-detail .prose > p:first-child { font-size: 18px; color: var(--text); }
.ai-callout { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.ai-callout p { margin: 0 !important; }
.muted-links { font-size: 14.5px; color: var(--muted) !important; margin-top: 28px !important; }
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.shots img { width: 100%; height: auto; border-radius: 22px; border: 1px solid var(--border); box-shadow: var(--shadow-lg); background: var(--surface-2); }
.shots img:nth-child(2) { transform: translateY(24px); }
@media (max-width: 560px) { .shots { grid-template-columns: repeat(3, 70%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; } .shots img { scroll-snap-align: start; } .shots img:nth-child(2) { transform: none; } }
.faq { border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item summary { cursor: pointer; list-style: none; padding: 22px 36px 22px 0; font-weight: 600; font-size: 17px; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-weight: 400; font-size: 22px; color: var(--faint); }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { margin: 0 0 22px; color: var(--muted); }
.app-card h3 a.stretch { color: inherit; text-decoration: none; }
.app-card h3 a.stretch::after { content: ""; position: absolute; inset: 0; z-index: 0; }
.app-card .links { position: relative; z-index: 1; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 56px 0; margin-top: 32px; font-size: 14.5px; }
.foot { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 760px) { .foot { grid-template-columns: 1fr 1fr; } .foot .about { grid-column: 1 / -1; } }
.foot b { display: block; font-size: 13px; color: var(--text); margin-bottom: 12px; }
.foot a { display: block; text-decoration: none; color: var(--muted); padding: 4px 0; }
.foot a:hover { color: var(--text); }
.foot a.brand { display: inline-flex; color: var(--text); padding: 0; }
.foot .about p { color: var(--muted); margin: 14px 0 0; max-width: 320px; }
.copyright { margin-top: 44px; color: var(--faint); font-size: 13px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- 404 ---------- */
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 96px 0; }
.notfound .code { font-size: clamp(88px, 16vw, 160px); font-weight: 800; letter-spacing: -.06em; line-height: 1; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
