/* ============================================================
   openSylab — marketing site
   Foundation: mypol.ly "dark competence" (slate-950 gradient,
   translucent hairline panels, 90/10 restraint).
   Accent (10%): derived from openSylab's neo-clinical industrial UI
   — electric clinical blue + monospace data texture + traffic-light status.
   ============================================================ */

/* Fonts are loaded via <link rel="preload"/stylesheet> in each page <head>
   (faster, non-render-blocking) — not via @import here. */

:root {
  /* surface */
  --bg-950: #020617;
  --bg-900: #0b1220;
  --bg-850: #0f172a;
  --bg-800: #1e293b;
  --app-gradient: linear-gradient(160deg, #020617 0%, #0b1220 45%, #020617 100%);

  /* translucent panels */
  --surface-1: rgba(255,255,255,0.025);
  --surface-2: rgba(255,255,255,0.045);
  --surface-3: rgba(255,255,255,0.07);
  --border-1: rgba(255,255,255,0.06);
  --border-2: rgba(255,255,255,0.10);
  --border-3: rgba(255,255,255,0.14);

  /* text ramp (white opacity) */
  --fg-1: rgba(255,255,255,0.96);
  --fg-2: rgba(255,255,255,0.72);
  --fg-3: rgba(255,255,255,0.55);
  --fg-4: rgba(255,255,255,0.40);
  --fg-5: rgba(255,255,255,0.28);
  --fg-6: rgba(255,255,255,0.16);

  /* accent — derived from the metallic logo: steel-navy → bright cyan */
  --accent: #5bb8d6;          /* bright cyan — accent text, eyebrow lines, dots, links */
  --accent-bright: #8fe0ee;   /* specular cyan highlight */
  --accent-strong: #2e6f95;   /* steel — primary button fill */
  --accent-hover: #3a86ad;    /* primary button hover (stays legible w/ white text) */
  --accent-deep: #1d5273;
  --accent-glow: rgba(91,184,214,0.32);
  --accent-tint-08: rgba(91,184,214,0.08);
  --accent-tint-12: rgba(91,184,214,0.12);
  --accent-tint-16: rgba(91,184,214,0.16);
  --accent-tint-22: rgba(91,184,214,0.24);

  /* logo gradient — shared by wordmark + hero accent line */
  --logo-grad: linear-gradient(98deg, #2e6f95 0%, #5bb8d6 54%, #8fe0ee 100%);

  /* neon cyan — terminal/data hairline accents, used very sparingly */
  --cyan: #8fe0ee;
  --cyan-tint: rgba(143,224,238,0.14);

  /* clinical traffic-light status */
  --good: #2bd07a;
  --good-glow: rgba(43,208,122,0.55);
  --warn: #f5a524;
  --poor: #f04444;
  --poor-glow: rgba(240,68,68,0.5);

  /* type */
  --font-sans: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --fw-normal: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;

  /* radius */
  --r-2xl: 18px;
  --r-xl: 12px;
  --r-lg: 8px;
  --r-full: 999px;

  /* motion */
  --dur: 220ms;
  --dur-fast: 140ms;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);

  /* layout */
  --maxw: 1180px;
  --maxw-narrow: 920px;
  --pad-x: clamp(20px, 5vw, 56px);

  --shadow-cta: 0 10px 34px -8px var(--accent-glow);
  --shadow-pop: 0 30px 80px -20px rgba(0,0,0,0.7);
}

/* density tweak */
:root[data-density="cozy"] { --sec-pad: clamp(72px, 11vh, 150px); }
:root[data-density="compact"] { --sec-pad: clamp(52px, 8vh, 104px); }
:root { --sec-pad: clamp(72px, 11vh, 150px); }

/* font tweak */
:root[data-font="system"] {
  --font-sans: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

/* accent theme presets (Tweaks: data-accent) */
:root[data-accent="green"] {
  --accent: #25d196;
  --accent-bright: #58e8b7;
  --accent-strong: #14a878;
  --accent-deep: #0c7d5b;
  --accent-glow: rgba(37,209,150,0.30);
  --accent-tint-08: rgba(37,209,150,0.08);
  --accent-tint-12: rgba(37,209,150,0.12);
  --accent-tint-16: rgba(37,209,150,0.16);
  --accent-tint-22: rgba(37,209,150,0.22);
}
:root[data-accent="amber"] {
  --accent: #f5a524;
  --accent-bright: #fbbf24;
  --accent-strong: #d97706;
  --accent-deep: #b45309;
  --accent-glow: rgba(245,165,36,0.30);
  --accent-tint-08: rgba(245,165,36,0.08);
  --accent-tint-12: rgba(245,165,36,0.12);
  --accent-tint-16: rgba(245,165,36,0.16);
  --accent-tint-22: rgba(245,165,36,0.22);
}
:root[data-accent="amber"] .btn-primary { color: #1a1206; }
:root[data-accent="amber"] .lang-toggle button.active, :root[data-accent="amber"] .lang-toggle a.active { color: #1a1206; }

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg-950);
  color: var(--fg-2);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* fixed atmospheric backdrop */
.bg-field {
  position: fixed;
  inset: 0;
  z-index: -2;
  background: var(--app-gradient);
}
.bg-field::before {
  /* faint clinical grid — terminal-industrial nod, very subtle */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.022) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.022) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 0%, transparent 75%);
}
.bg-field::after {
  /* single soft accent bloom up top */
  content: "";
  position: absolute;
  top: -260px; left: 50%;
  width: 1100px; height: 700px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, var(--accent-tint-12) 0%, transparent 62%);
  filter: blur(8px);
}

/* ---------- language toggle visibility ---------- */
:root[data-lang="de"] .en { display: none !important; }
:root[data-lang="en"] .de { display: none !important; }

/* ---------- shared layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad-x); }
.wrap-narrow { max-width: var(--maxw-narrow); }

section { position: relative; }
.section-pad { padding-block: var(--sec-pad); }

.divider { border: 0; border-top: 1px solid var(--border-1); margin: 0; }

/* eyebrow / mono label */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: var(--fw-medium);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-4);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 1px;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
}
.eyebrow.center { justify-content: center; }

h1, h2, h3, h4 { color: var(--fg-1); line-height: 1.12; font-weight: var(--fw-semibold); letter-spacing: -0.01em; margin: 0; text-wrap: balance; }

.h-display { font-size: clamp(2.2rem, 4.6vw, 3.6rem); font-weight: var(--fw-bold); letter-spacing: -0.02em; line-height: 1.12; }
.h-section { font-size: clamp(1.9rem, 3.4vw, 2.85rem); font-weight: var(--fw-bold); letter-spacing: -0.02em; }
.h-card { font-size: 1.2rem; font-weight: var(--fw-semibold); }

.lead { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--fg-2); line-height: 1.6; text-wrap: pretty; }
.muted { color: var(--fg-3); }
.accent-text { color: var(--accent); }
.mono { font-family: var(--font-mono); }

.section-head { max-width: 760px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head .eyebrow { margin-bottom: 18px; }
.section-head .h-section { margin-bottom: 18px; }
.section-head p { font-size: 1.08rem; color: var(--fg-3); margin: 0; text-wrap: pretty; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-sans);
  font-size: 0.95rem; font-weight: var(--fw-semibold);
  padding: 12px 20px;
  border-radius: var(--r-lg);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease), transform var(--dur-fast) var(--ease), box-shadow var(--dur) var(--ease);
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--accent-strong);
  color: #fff;
  box-shadow: var(--shadow-cta);
}
.btn-primary:hover { background: var(--accent-hover); }

.btn-ghost {
  background: var(--surface-2);
  color: var(--fg-1);
  border-color: var(--border-2);
}
.btn-ghost:hover { background: var(--surface-3); border-color: var(--border-3); }

.btn-quiet {
  background: transparent;
  color: var(--fg-2);
  border-color: transparent;
  padding-inline: 10px;
}
.btn-quiet:hover { color: var(--fg-1); }

.btn-lg { padding: 15px 26px; font-size: 1rem; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(7, 12, 23, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.site-header.scrolled { border-bottom-color: var(--border-1); background: rgba(7, 12, 23, 0.88); }
.header-inner { display: flex; align-items: center; gap: 18px; height: 68px; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.brand-mark {
  width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center; flex-shrink: 0;
  background: radial-gradient(125% 125% at 32% 18%, rgba(91,184,214,0.18), rgba(10,42,72,0.34) 70%);
  border: 1px solid rgba(143,224,238,0.20);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.07), inset 0 0 16px rgba(46,111,149,0.18), 0 6px 20px -8px rgba(11,40,63,0.7);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.brand:hover .brand-mark { border-color: rgba(143,224,238,0.34); box-shadow: inset 0 1px 0 rgba(255,255,255,0.09), inset 0 0 20px rgba(46,111,149,0.26), 0 8px 24px -8px rgba(11,40,63,0.8); }
.brand-mark img { height: 30px; width: auto; display: block; }
.brand-rule { width: 1px; height: 30px; background: linear-gradient(var(--border-2), rgba(143,224,238,0.28), var(--border-2)); flex-shrink: 0; }
.brand-stack { display: flex; flex-direction: column; gap: 3px; }
.brand-name { font-size: 1.12rem; font-weight: var(--fw-semibold); color: var(--fg-1); letter-spacing: -0.01em; line-height: 1; }
.brand-name b { font-weight: var(--fw-semibold); background: var(--logo-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-name .o { color: var(--fg-4); font-weight: var(--fw-medium); }
.brand-micro { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--fg-4); line-height: 1; }

.nav { display: flex; align-items: center; gap: 2px; margin-left: 4px; }
.nav a {
  color: var(--fg-3); text-decoration: none; font-size: 0.9rem; font-weight: var(--fw-medium);
  padding: 8px 10px; border-radius: var(--r-lg); transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.nav a:hover { color: var(--fg-1); background: var(--surface-2); }

.header-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.lang-toggle { display: inline-flex; border: 1px solid var(--border-2); border-radius: var(--r-lg); overflow: hidden; font-family: var(--font-mono); }
.lang-toggle button, .lang-toggle a {
  background: transparent; border: 0; cursor: pointer; text-decoration: none;
  color: var(--fg-4); font-family: var(--font-mono); font-size: 0.74rem; font-weight: 500; letter-spacing: 0.06em;
  padding: 7px 11px; transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.lang-toggle a { display: inline-grid; place-items: center; }
.lang-toggle button.active, .lang-toggle a.active { color: var(--bg-950); background: var(--accent); }
.lang-toggle button:not(.active):hover, .lang-toggle a:not(.active):hover { color: var(--fg-1); }

.icon-link { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: var(--r-lg); color: var(--fg-3); border: 1px solid var(--border-2); background: var(--surface-1); transition: all var(--dur) var(--ease); }
.icon-link:hover { color: var(--fg-1); background: var(--surface-3); border-color: var(--border-3); }
.icon-link svg { width: 19px; height: 19px; }

.nav-toggle { display: none; }

/* ---------- hero ---------- */
.hero { padding-top: clamp(60px, 9vh, 110px); padding-bottom: clamp(40px, 6vh, 80px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(36px, 5vw, 76px); align-items: center; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.chip {
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.04em;
  color: var(--fg-3); background: var(--surface-2); border: 1px solid var(--border-1);
  border-radius: var(--r-full); padding: 5px 12px; display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
}
.chip .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--good); box-shadow: 0 0 7px var(--good-glow); }
.hero h1 { margin-bottom: 30px; }
.hero h1 .grad { background: var(--logo-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { max-width: 540px; margin-bottom: 30px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.hero-soft { display: inline-flex; align-items: center; gap: 8px; font-size: 0.9rem; color: var(--fg-3); text-decoration: none; margin-bottom: 24px; transition: color var(--dur) var(--ease), gap var(--dur) var(--ease); }
.hero-soft svg { width: 16px; height: 16px; color: var(--accent); transition: transform var(--dur) var(--ease); }
.hero-soft:hover { color: var(--fg-1); }
.hero-soft:hover svg { transform: translateX(3px); }
.hero-trust { font-family: var(--font-mono); font-size: 12.5px; color: var(--fg-4); display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.hero-trust .sep { color: var(--fg-6); }
.hero-trust b { color: var(--fg-2); font-weight: 500; }

/* hero visual — windowed dashboard */
.hero-visual { position: relative; }
.window {
  border-radius: var(--r-2xl);
  border: 1px solid var(--border-2);
  background: var(--bg-900);
  overflow: hidden;
  box-shadow: var(--shadow-pop);
}
.window-bar { display: flex; align-items: center; gap: 8px; padding: 11px 15px; background: rgba(255,255,255,0.03); border-bottom: 1px solid var(--border-1); }
.window-bar .lights { display: flex; gap: 6px; }
.window-bar .lights i { width: 11px; height: 11px; border-radius: 50%; background: var(--fg-6); }
.window-bar .url {
  margin-left: 10px; font-family: var(--font-mono); font-size: 11.5px; color: var(--fg-4);
  background: rgba(0,0,0,0.3); border: 1px solid var(--border-1); border-radius: var(--r-full);
  padding: 4px 12px; display: inline-flex; align-items: center; gap: 7px;
}
.window-bar .url svg { width: 12px; height: 12px; color: var(--good); }
.window img { width: 100%; display: block; }

.hero-float {
  position: absolute; left: -26px; bottom: -26px;
  background: rgba(11,18,32,0.9); backdrop-filter: blur(8px);
  border: 1px solid var(--border-2); border-radius: var(--r-xl);
  padding: 13px 16px; display: flex; align-items: center; gap: 13px;
  box-shadow: var(--shadow-pop);
}
.hero-float .ring { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--good-glow); color: #061b10; }
.hero-float .ring svg { width: 20px; height: 20px; }
.hero-float .t1 { font-size: 0.82rem; color: var(--fg-1); font-weight: 600; white-space: nowrap; }
.hero-float .t2 { font-family: var(--font-mono); font-size: 0.72rem; color: var(--fg-4); white-space: nowrap; }

/* ---------- logo strip ---------- */
.logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 38px; }
.logos .label { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg-5); }
.logos .item { font-family: var(--font-mono); font-size: 0.96rem; color: var(--fg-3); font-weight: 500; display: inline-flex; align-items: center; gap: 8px; }
.logos .item svg { width: 16px; height: 16px; color: var(--fg-4); }

/* ---------- feature grid ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 52px; }
.card {
  background: var(--surface-1);
  border: 1px solid var(--border-1);
  border-radius: var(--r-2xl);
  padding: 26px;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.card:hover { border-color: var(--border-2); background: var(--surface-2); }
.card .ico {
  width: 44px; height: 44px; border-radius: var(--r-lg);
  display: grid; place-items: center; margin-bottom: 18px;
  background: var(--surface-3); border: 1px solid var(--border-2); color: var(--fg-1);
}
.card .ico svg { width: 22px; height: 22px; }
.card h3 { margin-bottom: 9px; font-size: 1.1rem; }
.card p { margin: 0; font-size: 0.94rem; color: var(--fg-3); line-height: 1.6; }
.card .kicker { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; display: block; }

/* ---------- screenshot showcase ---------- */
.shots { margin-top: 46px; }
.shot-tabs { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 22px; }
.shot-tab {
  font-family: var(--font-mono); font-size: 0.82rem; letter-spacing: 0.02em;
  color: var(--fg-3); background: var(--surface-1); border: 1px solid var(--border-1);
  border-radius: var(--r-lg); padding: 9px 15px; cursor: pointer;
  transition: all var(--dur) var(--ease); display: inline-flex; align-items: center; gap: 8px;
}
.shot-tab .num { color: var(--fg-5); }
.shot-tab:hover { color: var(--fg-1); border-color: var(--border-2); }
.shot-tab.active { color: var(--accent-bright); background: var(--accent-tint-12); border-color: var(--accent-tint-22); }
.shot-tab.active .num { color: var(--accent); }
.shot-stage { position: relative; }
.shot-panel { display: none; }
.shot-panel.active { display: block; animation: fade 360ms var(--ease); }
.shot-caption { margin-top: 16px; display: flex; align-items: center; gap: 10px; font-size: 0.9rem; color: var(--fg-3); }
.shot-caption .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent-glow); flex-shrink: 0; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- security ---------- */
.sec-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.05fr); gap: clamp(36px,5vw,64px); align-items: center; }
.sec-list { display: grid; gap: 4px; margin-top: 30px; }
.sec-item { display: flex; gap: 15px; padding: 16px 4px; border-top: 1px solid var(--border-1); align-items: flex-start; }
.sec-item:last-child { border-bottom: 1px solid var(--border-1); }
.sec-item .ck { flex-shrink: 0; width: 22px; height: 22px; color: var(--good); margin-top: 1px; }
.sec-item .ck svg { width: 22px; height: 22px; }
.sec-item h4 { font-size: 0.98rem; margin-bottom: 3px; font-weight: 600; }
.sec-item p { margin: 0; font-size: 0.88rem; color: var(--fg-3); }
.sec-item code { font-family: var(--font-mono); font-size: 0.84em; color: var(--accent-bright); background: var(--accent-tint-08); padding: 1px 5px; border-radius: 5px; }

/* terminal card */
.terminal { border-radius: var(--r-2xl); border: 1px solid var(--border-2); background: #060b16; overflow: hidden; box-shadow: var(--shadow-pop); }
.terminal .bar { display: flex; align-items: center; gap: 7px; padding: 11px 15px; border-bottom: 1px solid var(--border-1); background: rgba(255,255,255,0.02); }
.terminal .bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--fg-6); }
.terminal .bar .title { margin-left: 8px; font-family: var(--font-mono); font-size: 11.5px; color: var(--fg-4); }
.terminal .body { padding: 20px 22px; font-family: var(--font-mono); font-size: 13px; line-height: 1.85; color: var(--fg-2); overflow-x: auto; }
.terminal .body .c { color: var(--fg-5); }
.terminal .body .p { color: var(--accent); }
.terminal .body .g { color: var(--good); }
.terminal .body .k { color: var(--cyan); }
.terminal .body .w { color: var(--warn); }
.terminal .body .dim { color: var(--fg-4); }

/* ---------- comparison ---------- */
.compare { margin-top: 46px; border: 1px solid var(--border-2); border-radius: var(--r-2xl); overflow: hidden; background: var(--surface-1); }
.compare-row { display: grid; grid-template-columns: 1.4fr 1fr 1fr; }
.compare-row > div { padding: 18px 22px; border-bottom: 1px solid var(--border-1); display: flex; align-items: center; gap: 9px; font-size: 0.94rem; }
.compare-row:last-child > div { border-bottom: 0; }
.compare-row .feat { color: var(--fg-2); font-weight: 500; }
.compare-head > div { border-bottom: 1px solid var(--border-2); padding-block: 16px; }
.compare-head .feat { color: var(--fg-4); font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; }
.compare-head .ours { color: var(--accent-bright); font-weight: 600; font-size: 1rem; }
.compare-head .theirs { color: var(--fg-3); font-weight: 600; font-size: 1rem; }
.compare .ours-col { background: var(--accent-tint-08); }
.compare .yes { color: var(--good); }
.compare .no { color: var(--fg-5); }
.compare .yes svg, .compare .no svg { width: 18px; height: 18px; flex-shrink: 0; }
.compare-row .v { color: var(--fg-3); font-size: 0.9rem; }

/* ---------- services ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 50px; }
.svc-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface-1); border: 1px solid var(--border-1); border-radius: var(--r-2xl);
  padding: 30px 28px; transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease), transform var(--dur) var(--ease);
  overflow: hidden;
}
.svc-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 2px; background: linear-gradient(90deg, transparent, var(--accent), transparent); opacity: 0; transition: opacity var(--dur) var(--ease); }
.svc-card:hover { border-color: var(--accent-tint-22); background: var(--surface-2); transform: translateY(-3px); }
.svc-card:hover::before { opacity: 1; }
.svc-num { font-family: var(--font-mono); font-size: 12px; color: var(--fg-5); letter-spacing: 0.1em; }
.svc-card .ico { width: 46px; height: 46px; border-radius: var(--r-lg); display: grid; place-items: center; margin: 16px 0 20px; background: var(--accent-tint-12); border: 1px solid var(--accent-tint-22); color: var(--accent-bright); }
.svc-card .ico svg { width: 23px; height: 23px; }
.svc-card h3 { font-size: 1.28rem; margin-bottom: 11px; }
.svc-card > p { font-size: 0.94rem; color: var(--fg-3); margin: 0 0 20px; }
.svc-feats { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 11px; }
.svc-feats li { display: flex; gap: 10px; font-size: 0.9rem; color: var(--fg-2); align-items: flex-start; }
.svc-feats li svg { width: 17px; height: 17px; color: var(--accent); flex-shrink: 0; margin-top: 3px; }
.svc-card .svc-foot { margin-top: auto; }
.svc-tag { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-4); border: 1px solid var(--border-2); border-radius: var(--r-full); padding: 5px 12px; display: inline-block; }

/* ---------- plugins ---------- */
.plugin-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 44px; }
.plugin {
  display: flex; gap: 15px; align-items: flex-start;
  background: var(--surface-1); border: 1px solid var(--border-1); border-radius: var(--r-xl);
  padding: 20px; transition: all var(--dur) var(--ease);
}
.plugin:hover { border-color: var(--border-2); background: var(--surface-2); }
.plugin .ico { flex-shrink: 0; width: 40px; height: 40px; border-radius: var(--r-lg); display: grid; place-items: center; background: var(--surface-3); border: 1px solid var(--border-2); color: var(--accent-bright); }
.plugin .ico svg { width: 20px; height: 20px; }
.plugin h4 { font-size: 0.98rem; margin-bottom: 4px; }
.plugin p { margin: 0; font-size: 0.85rem; color: var(--fg-3); line-height: 1.55; }
.plugin .badge { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--warn); margin-top: 8px; display: inline-block; }

/* ---------- CTA band + contact ---------- */
.cta-band {
  border: 1px solid var(--border-2); border-radius: var(--r-2xl);
  background:
    radial-gradient(ellipse 80% 130% at 50% -20%, var(--accent-tint-12), transparent 60%),
    var(--surface-1);
  padding: clamp(40px, 6vw, 68px); text-align: center; position: relative; overflow: hidden;
}
.cta-band .h-section { margin-bottom: 16px; }
.cta-band p { color: var(--fg-2); font-size: 1.1rem; max-width: 560px; margin: 0 auto 30px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

.contact-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: clamp(32px,5vw,60px); margin-top: 50px; align-items: start; }
.cta-band .eyebrow, .cta-band .h-section, .cta-band p, .cta-band .cta-actions { position: relative; z-index: 1; }
.cta-mark { position: absolute; right: -56px; bottom: -86px; height: 360px; width: auto; opacity: 0.08; pointer-events: none; z-index: 0; user-select: none; }
.footer-mark { position: absolute; right: -30px; top: -10px; height: 150px; opacity: 0.05; pointer-events: none; }
.contact-info { display: grid; gap: 18px; }
.contact-row { display: flex; gap: 14px; align-items: flex-start; }
.contact-row .ico { width: 40px; height: 40px; border-radius: var(--r-lg); display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--border-2); color: var(--accent-bright); flex-shrink: 0; }
.contact-row .ico svg { width: 19px; height: 19px; }
.contact-row .lbl { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-5); margin-bottom: 2px; }
.contact-row .val { color: var(--fg-1); font-size: 0.98rem; }
.contact-row a.val { text-decoration: none; }
.contact-row a.val:hover { color: var(--accent-bright); }

.form { background: var(--surface-1); border: 1px solid var(--border-2); border-radius: var(--r-2xl); padding: 28px; display: grid; gap: 16px; }
.field { display: grid; gap: 7px; }
.field label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-4); }
.field input, .field textarea, .field select {
  font-family: var(--font-sans); font-size: 0.95rem; color: var(--fg-1);
  background: var(--bg-850); border: 1px solid var(--border-2); border-radius: var(--r-lg);
  padding: 12px 14px; outline: none; transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease); width: 100%;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input::placeholder, .field textarea::placeholder { color: var(--fg-5); }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint-16); }
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-note { font-family: var(--font-mono); font-size: 11.5px; color: var(--fg-5); display: flex; align-items: center; gap: 8px; }
.form-note svg { width: 14px; height: 14px; color: var(--good); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--border-1); padding-block: 60px 36px; margin-top: 20px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; }
.footer-brand .brand { margin-bottom: 16px; }
.footer-brand p { font-size: 0.9rem; color: var(--fg-4); max-width: 300px; margin: 0 0 18px; }
.foot-col h5 { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-5); margin: 0 0 16px; font-weight: 500; }
.foot-col a { display: block; color: var(--fg-3); text-decoration: none; font-size: 0.9rem; padding: 5px 0; transition: color var(--dur) var(--ease); }
.foot-col a:hover { color: var(--fg-1); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center; margin-top: 48px; padding-top: 26px; border-top: 1px solid var(--border-1); }
.footer-bottom .copy { font-family: var(--font-mono); font-size: 12px; color: var(--fg-5); }
.footer-bottom .badges { display: flex; gap: 10px; flex-wrap: wrap; }
.footer-bottom .badges span { font-family: var(--font-mono); font-size: 11px; color: var(--fg-4); border: 1px solid var(--border-1); border-radius: var(--r-full); padding: 4px 11px; }

/* ---------- honest scope / regulatory band ---------- */
.honest-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 48px; }
.honest-col { border: 1px solid var(--border-1); border-radius: var(--r-2xl); padding: 30px 30px 32px; background: var(--surface-1); }
.honest-col.is { border-color: var(--accent-tint-22); background: linear-gradient(180deg, var(--accent-tint-08), transparent 60%), var(--surface-1); }
.honest-col .htag { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 18px; }
.honest-col.is .htag { color: var(--accent-bright); }
.honest-col.isnot .htag { color: var(--fg-4); }
.honest-col .htag svg { width: 17px; height: 17px; }
.honest-col h3 { font-size: 1.18rem; margin-bottom: 14px; }
.honest-col p { font-size: 0.95rem; color: var(--fg-3); margin: 0 0 14px; line-height: 1.62; }
.honest-col p:last-child { margin-bottom: 0; }
.honest-col code { font-family: var(--font-mono); font-size: 0.84em; color: var(--accent-bright); background: var(--accent-tint-08); padding: 1px 6px; border-radius: 5px; }
.honest-list { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 11px; }
.honest-list li { display: flex; gap: 11px; font-size: 0.92rem; color: var(--fg-2); align-items: flex-start; }
.honest-list li svg { width: 17px; height: 17px; flex-shrink: 0; margin-top: 3px; }
.honest-col.is .honest-list li svg { color: var(--good); }
.honest-col.isnot .honest-list li svg { color: var(--fg-5); }
.maturity-note { margin-top: 20px; display: flex; gap: 13px; align-items: flex-start; border: 1px dashed var(--border-2); border-radius: var(--r-xl); padding: 18px 20px; }
.maturity-note .mi { flex-shrink: 0; width: 38px; height: 38px; border-radius: var(--r-lg); display: grid; place-items: center; background: var(--accent-tint-12); border: 1px solid var(--accent-tint-22); color: var(--accent-bright); }
.maturity-note .mi svg { width: 19px; height: 19px; }
.maturity-note p { margin: 0; font-size: 0.9rem; color: var(--fg-3); line-height: 1.6; }
.maturity-note b { color: var(--fg-1); font-weight: 600; }

/* ---------- about / founder ---------- */
.about-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(36px, 5vw, 64px); align-items: center; margin-top: 50px; }
.about-copy .lead { margin-bottom: 24px; }
.about-values { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.about-values li { display: flex; gap: 14px; align-items: flex-start; }
.about-values .vi { flex-shrink: 0; width: 40px; height: 40px; border-radius: var(--r-lg); display: grid; place-items: center; background: var(--surface-3); border: 1px solid var(--border-2); color: var(--accent-bright); }
.about-values .vi svg { width: 20px; height: 20px; }
.about-values h4 { font-size: 0.98rem; margin-bottom: 3px; }
.about-values p { margin: 0; font-size: 0.9rem; color: var(--fg-3); line-height: 1.55; }
.founder-card { border: 1px solid var(--border-2); border-radius: var(--r-2xl); overflow: hidden; background: var(--surface-1); box-shadow: var(--shadow-pop); }
.founder-card image-slot { display: block; width: 100%; height: 340px; }
.founder-id { padding: 20px 22px; border-top: 1px solid var(--border-1); }
.founder-id .fn { font-size: 1.05rem; font-weight: 600; color: var(--fg-1); }
.founder-id .fr { font-family: var(--font-mono); font-size: 12px; color: var(--accent-bright); margin-top: 2px; }
.founder-quote { margin: 18px 0 0; padding: 18px 22px; border: 1px solid var(--border-1); border-left: 2px solid var(--accent); border-radius: var(--r-xl); background: var(--surface-1); }
.founder-quote p { margin: 0; font-size: 1.02rem; color: var(--fg-1); line-height: 1.55; font-style: italic; }

/* ---------- process timeline ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 52px; position: relative; }
.steps::before { content: ""; position: absolute; top: 26px; left: 8%; right: 8%; height: 1px; background: linear-gradient(90deg, transparent, var(--accent-tint-22) 12%, var(--accent-tint-22) 88%, transparent); z-index: 0; }
.step { position: relative; z-index: 1; }
.step-num { width: 52px; height: 52px; border-radius: var(--r-full); display: grid; place-items: center; font-family: var(--font-mono); font-size: 1.1rem; font-weight: 600; color: var(--accent-bright); background: var(--bg-900); border: 1px solid var(--accent-tint-22); box-shadow: 0 0 0 6px var(--bg-950), inset 0 0 14px var(--accent-tint-12); margin-bottom: 20px; }
.step h4 { font-size: 1.06rem; margin-bottom: 9px; }
.step > p { font-size: 0.9rem; color: var(--fg-3); margin: 0 0 14px; line-height: 1.58; }
.step-tag { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-4); border: 1px solid var(--border-2); border-radius: var(--r-full); padding: 4px 11px; display: inline-block; }

/* ---------- FAQ ---------- */
.faq-layout { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(36px, 5vw, 64px); margin-top: 50px; align-items: start; }
.faq-list { display: grid; gap: 0; border-top: 1px solid var(--border-1); }
.faq { border-bottom: 1px solid var(--border-1); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 4px; display: flex; align-items: flex-start; gap: 16px; font-size: 1.04rem; font-weight: 500; color: var(--fg-1); transition: color var(--dur) var(--ease); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent-bright); }
.faq summary .q { flex: 1; }
.faq summary .chev { flex-shrink: 0; width: 22px; height: 22px; color: var(--fg-4); transition: transform var(--dur) var(--ease), color var(--dur) var(--ease); margin-top: 1px; }
.faq[open] summary .chev { transform: rotate(45deg); color: var(--accent); }
.faq-a { padding: 0 38px 22px 4px; }
.faq-a p { margin: 0; font-size: 0.95rem; color: var(--fg-3); line-height: 1.65; }
.faq-a code { font-family: var(--font-mono); font-size: 0.84em; color: var(--accent-bright); background: var(--accent-tint-08); padding: 1px 6px; border-radius: 5px; }
.faq-aside { position: sticky; top: 96px; border: 1px solid var(--border-2); border-radius: var(--r-2xl); padding: 28px; background: var(--surface-1); }
.faq-aside h3 { font-size: 1.15rem; margin-bottom: 10px; }
.faq-aside p { font-size: 0.92rem; color: var(--fg-3); margin: 0 0 20px; line-height: 1.6; }

/* ---------- legal pages ---------- */
.legal-main { padding-block: clamp(40px, 7vh, 80px); }
.legal { max-width: 780px; margin: 0 auto; }
.legal-back { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 13px; color: var(--fg-3); text-decoration: none; margin-bottom: 26px; transition: color var(--dur) var(--ease); }
.legal-back svg { width: 15px; height: 15px; }
.legal-back:hover { color: var(--fg-1); }
.legal h1 { font-size: clamp(2rem, 4vw, 2.7rem); font-weight: var(--fw-bold); letter-spacing: -0.02em; margin-bottom: 10px; }
.legal .updated { font-family: var(--font-mono); font-size: 12px; color: var(--fg-4); margin-bottom: 30px; }
.legal h2 { font-size: 1.32rem; font-weight: var(--fw-semibold); margin: 40px 0 12px; }
.legal h3 { font-size: 1.02rem; font-weight: var(--fw-semibold); color: var(--fg-1); margin: 24px 0 7px; }
.legal p, .legal li { color: var(--fg-3); font-size: 0.96rem; line-height: 1.72; }
.legal p { margin: 0 0 14px; }
.legal ul { margin: 0 0 14px; padding-left: 20px; display: grid; gap: 7px; }
.legal a { color: var(--accent-bright); text-decoration: none; }
.legal a:hover { text-decoration: underline; }
.legal strong { color: var(--fg-1); font-weight: var(--fw-semibold); }
.legal .ph { color: var(--accent-bright); background: var(--accent-tint-08); border: 1px solid var(--accent-tint-22); border-radius: 5px; padding: 0 6px; font-family: var(--font-mono); font-size: 0.84em; }
.legal-notice { display: flex; gap: 13px; align-items: flex-start; border: 1px dashed var(--border-2); border-radius: var(--r-xl); padding: 16px 18px; margin-bottom: 34px; background: var(--surface-1); }
.legal-notice svg { width: 20px; height: 20px; color: var(--warn); flex-shrink: 0; margin-top: 2px; }
.legal-notice p { margin: 0; font-size: 0.88rem; color: var(--fg-3); }
.slim-footer { border-top: 1px solid var(--border-1); padding-block: 30px; margin-top: 50px; }
.slim-footer .wrap { display: flex; gap: 16px; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.slim-footer .copy { font-family: var(--font-mono); font-size: 12px; color: var(--fg-5); }
.slim-footer .links { display: flex; gap: 18px; }
.slim-footer a { color: var(--fg-3); text-decoration: none; font-size: 0.88rem; transition: color var(--dur) var(--ease); }
.slim-footer a:hover { color: var(--fg-1); }

/* reveal animation */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   POLISH LAYER — craft pass (depth, motion, focus, links)
   ============================================================ */

/* 1 — global link styling (guideline: define a / a:hover from palette) */
a { color: var(--accent-bright); text-decoration-color: var(--accent-tint-22); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
.brand, .nav a, .btn, .foot-col a, .footer-bottom .badges span, .contact-row a.val { text-decoration: none; }

/* 2 — consistent keyboard focus ring (a11y + polish) */
a:focus-visible, button:focus-visible, summary:focus-visible, .btn:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--r-lg);
}
.field input:focus-visible, .field textarea:focus-visible, .field select:focus-visible { outline: none; }

/* 3 — gradient hairline dividers (center-weighted, softer than flat) */
.divider { border: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--border-2) 18%, var(--border-2) 82%, transparent); }

/* 4 — primary button: subtle top sheen + lift on hover */
.btn-primary { background-image: linear-gradient(180deg, rgba(255,255,255,0.14), rgba(255,255,255,0) 42%); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 40px -10px var(--accent-glow); }
.btn-lg { border-radius: var(--r-xl); }

/* 5 — hero device: ambient accent glow + gentle float, richer chrome */
.hero-visual::before {
  content: ""; position: absolute; inset: -8% -6% -14% -6%; z-index: 0;
  background: radial-gradient(60% 55% at 62% 42%, var(--accent-tint-16), transparent 70%);
  filter: blur(26px); opacity: 0.9; pointer-events: none;
}
.hero-visual .window, .hero-visual .hero-float { position: relative; z-index: 1; }
.hero-visual .window { box-shadow: 0 40px 90px -30px rgba(0,0,0,0.8), 0 0 0 1px var(--border-2), inset 0 1px 0 rgba(255,255,255,0.05); }
.window-bar .lights i:nth-child(1) { background: #ff5f57; }
.window-bar .lights i:nth-child(2) { background: #febc2e; }
.window-bar .lights i:nth-child(3) { background: #28c840; }
.window-bar .lights i { opacity: 0.85; }

/* 6 — feature cards: lift + top accent line + gradient icon tile */
.card { position: relative; overflow: hidden; }
.card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 1px; background: linear-gradient(90deg, transparent, var(--accent-tint-22), transparent); opacity: 0; transition: opacity var(--dur) var(--ease); }
.card:hover { transform: translateY(-3px); box-shadow: 0 22px 50px -28px rgba(0,0,0,0.75); }
.card:hover::before { opacity: 1; }
.card .ico { background: linear-gradient(160deg, var(--accent-tint-12), var(--surface-2)); border-color: var(--accent-tint-22); color: var(--accent-bright); box-shadow: inset 0 1px 0 rgba(255,255,255,0.06); }

/* 7 — screenshot showcase: ambient glow behind active window */
.shot-stage::before {
  content: ""; position: absolute; inset: 6% 10% -4% 10%; z-index: 0;
  background: radial-gradient(50% 60% at 50% 40%, var(--accent-tint-12), transparent 72%);
  filter: blur(30px); pointer-events: none;
}
.shot-panel { position: relative; z-index: 1; }
.shot-panel .window img { aspect-ratio: auto; height: clamp(340px, 48vh, 520px); object-position: top center; }
.shot-panel .window { box-shadow: 0 36px 80px -32px rgba(0,0,0,0.8), 0 0 0 1px var(--border-2); }
.shot-tab { position: relative; }
.shot-tab.active { box-shadow: 0 0 0 1px var(--accent-tint-22), 0 8px 24px -12px var(--accent-glow); }

/* 8 — comparison: make the "ours" column read as the hero choice */
.compare { position: relative; }
.compare .ours-col { position: relative; box-shadow: inset 1px 0 0 var(--accent-tint-22), inset -1px 0 0 var(--accent-tint-22); }
.compare-head .ours-col { background: linear-gradient(180deg, var(--accent-tint-16), var(--accent-tint-08)); box-shadow: inset 1px 0 0 var(--accent-tint-22), inset -1px 0 0 var(--accent-tint-22), inset 0 1px 0 var(--accent-tint-22); }
.compare-head .ours { text-shadow: 0 0 18px var(--accent-glow); }
.compare-row:last-child .ours-col { border-bottom-left-radius: 2px; border-bottom-right-radius: 2px; }

/* 9 — staggered scroll reveal within grids (cascade, not all-at-once) */
.feature-grid .reveal, .svc-grid .reveal, .plugin-grid .reveal, .steps .reveal, .honest-grid .reveal { transition-delay: 0ms; }
.feature-grid > .reveal:nth-child(2), .svc-grid > .reveal:nth-child(2), .plugin-grid > .reveal:nth-child(2), .steps > .reveal:nth-child(2), .honest-grid > .reveal:nth-child(2) { transition-delay: 90ms; }
.feature-grid > .reveal:nth-child(3), .svc-grid > .reveal:nth-child(3), .plugin-grid > .reveal:nth-child(3), .steps > .reveal:nth-child(3) { transition-delay: 180ms; }
.feature-grid > .reveal:nth-child(4), .plugin-grid > .reveal:nth-child(4), .steps > .reveal:nth-child(4) { transition-delay: 270ms; }
.feature-grid > .reveal:nth-child(5), .plugin-grid > .reveal:nth-child(5) { transition-delay: 360ms; }
.feature-grid > .reveal:nth-child(6), .plugin-grid > .reveal:nth-child(6) { transition-delay: 450ms; }

/* 10 — refinements: chip dot glow, sec-item hover, svc icon depth, quote mark */
.chip { transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease); }
.chip:hover { border-color: var(--border-2); background: var(--surface-3); }
.sec-item { transition: background var(--dur) var(--ease); border-radius: var(--r-lg); }
.sec-item:hover { background: var(--surface-1); }
.svc-card .ico { background: linear-gradient(160deg, var(--accent-tint-16), var(--accent-tint-08)); box-shadow: inset 0 1px 0 rgba(255,255,255,0.07); }
.step-num { transition: box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.founder-quote { position: relative; }
.founder-quote::before { content: "\201C"; position: absolute; top: -6px; left: 14px; font-family: Georgia, serif; font-size: 3rem; line-height: 1; color: var(--accent-tint-22); }
.founder-quote p { padding-left: 22px; }

@media (prefers-reduced-motion: reduce) {
  .btn-primary:hover, .card:hover, .svc-card:hover { transform: none; }
}

/* ============================================================
   UX LAYER — navigation, feedback, forms, a11y
   ============================================================ */

/* anchor offset so sticky header never hides a section heading */
html { scroll-padding-top: 92px; }

/* reading-progress bar */
.scroll-progress { position: fixed; top: 0; left: 0; height: 2px; width: 0; z-index: 70; background: linear-gradient(90deg, var(--accent-strong), var(--accent-bright)); box-shadow: 0 0 10px var(--accent-glow); transition: width 90ms linear; pointer-events: none; }

/* scroll-spy active nav link */
.nav a.active { color: var(--fg-1); background: var(--surface-2); }
.nav a.active::after { content: ""; display: block; height: 2px; margin: 4px 4px -2px; border-radius: 2px; background: var(--accent); box-shadow: 0 0 8px var(--accent-glow); }

/* back-to-top button */
.to-top { position: fixed; right: clamp(16px, 3vw, 30px); bottom: clamp(16px, 3vw, 30px); z-index: 65; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; border: 1px solid var(--accent-tint-22); background: rgba(11,18,32,0.86); backdrop-filter: blur(10px); color: var(--accent-bright); box-shadow: var(--shadow-pop); opacity: 0; visibility: hidden; transform: translateY(12px) scale(0.9); transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur) var(--ease), background var(--dur) var(--ease); }
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: rgba(46,111,149,0.3); border-color: var(--accent-tint-22); }
.to-top svg { width: 20px; height: 20px; }

/* screenshot tabs — focus + roving keyboard */
.shot-tab:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* image CLS-guard + fade-in on load */
.window img { aspect-ratio: 1620 / 1000; object-fit: cover; object-position: top center; background: var(--bg-850); opacity: 0; transition: opacity 400ms var(--ease); }
.window img.loaded, .window img[data-eager] { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .window img { transition: none; opacity: 1; } }

/* form: inline validation + accessible status */
.field .req { color: var(--accent); margin-left: 2px; }
.field.invalid input, .field.invalid textarea, .field.invalid select { border-color: var(--poor); box-shadow: 0 0 0 3px rgba(240,68,68,0.16); }
.field .err-msg { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.04em; color: var(--poor); min-height: 0; opacity: 0; max-height: 0; overflow: hidden; transition: opacity var(--dur) var(--ease); }
.field.invalid .err-msg { opacity: 1; max-height: 20px; }
.form-status { font-family: var(--font-mono); font-size: 12px; text-align: center; min-height: 0; }
.form-status.ok { color: var(--good); }
.form-status.err { color: var(--poor); }
.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; }

/* FAQ open panel gets a soft accent rail */
.faq[open] { border-left: 2px solid var(--accent-tint-22); margin-left: -2px; padding-left: 2px; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-visual { max-width: 560px; }
  .sec-layout { grid-template-columns: 1fr; gap: 40px; }
  .feature-grid, .svc-grid { grid-template-columns: 1fr 1fr; }
  .plugin-grid { grid-template-columns: 1fr 1fr; }
  .honest-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .founder-card { max-width: 420px; }
  .steps { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
  .steps::before { display: none; }
  .faq-layout { grid-template-columns: 1fr; }
  .faq-aside { position: static; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .nav { display: none; }
  .nav.open {
    display: flex; flex-direction: column; align-items: stretch; gap: 4px;
    position: absolute; top: 68px; left: 0; right: 0;
    background: rgba(7,12,23,0.97); backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-2); padding: 14px var(--pad-x) 20px; margin: 0;
  }
  .nav.open a { padding: 12px; font-size: 1rem; }
  .nav-toggle { display: inline-grid; }
  .header-inner { gap: 12px; }
  .feature-grid, .svc-grid, .plugin-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 8px; }
  .step { display: grid; grid-template-columns: 52px 1fr; gap: 0 18px; align-items: start; }
  .step-num { margin-bottom: 0; }
  .step-body { padding-bottom: 26px; }
  .compare-row { grid-template-columns: 1.2fr 0.9fr 0.9fr; }
  .compare-row > div { padding: 14px; font-size: 0.85rem; }
  .form .row2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-float { left: 0; }
  .header-right .desktop-only { display: none; }
}
@media (max-width: 460px) {
  .brand-rule, .brand-micro { display: none; }
  .brand-mark { width: 40px; height: 40px; }
}
