/* ============================================================
   AxonRiedge — styles.css
   Precision-industrial. Light blueprint hero → deep near-black.
   Edit color/spacing tokens in :root. See UPDATE-GUIDE.md.
   ============================================================ */

/* ---- 1. Design tokens ------------------------------------ */
:root {
  /* Dark surfaces (default site body) */
  --bg:            #0a0b0e;   /* deep ink */
  --bg-2:          #0e1014;   /* elevated band */
  --surface:       #14161c;   /* card */
  --surface-2:     #191c24;   /* card hover / input */

  /* Light blueprint surfaces (hero / light bands) */
  --paper:         #ecebe3;   /* engineering paper */
  --paper-2:       #e4e3da;
  --ink:           #15171c;   /* near-black ink on paper */
  --ink-soft:      #44474f;
  --blueprint-line: rgba(20,40,46,0.10);

  /* Text on dark */
  --text:          #eef1f5;
  --text-2:        #9aa1ad;
  --muted:         #5b626f;

  /* Accent — restrained cyan signal */
  --accent:        oklch(0.82 0.12 205);   /* ~#34e3ff */
  --accent-dim:    oklch(0.62 0.09 205);
  --accent-ghost:  oklch(0.82 0.12 205 / 0.10);
  --accent-line:   oklch(0.82 0.12 205 / 0.30);

  /* Lines */
  --line:          rgba(255,255,255,0.08);
  --line-2:        rgba(255,255,255,0.14);

  /* Type */
  --f-head: 'Space Grotesk', system-ui, sans-serif;
  --f-body: 'IBM Plex Sans', system-ui, sans-serif;
  --f-mono: 'IBM Plex Mono', ui-monospace, monospace;

  /* Layout */
  --container: 1240px;
  --pad: clamp(20px, 5vw, 80px);
  --nav-h: 68px;
  --r-card: 14px;
  --r-btn: 9px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---- 2. Reset -------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
ul { list-style: none; padding: 0; }
::selection { background: var(--accent); color: #04161a; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ---- 3. Typography --------------------------------------- */
h1, h2, h3, h4 { font-family: var(--f-head); font-weight: 600; line-height: 1.05; letter-spacing: -0.02em; }
.h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 600; }
.h2 { font-size: clamp(2rem, 4vw, 3.1rem); }
.h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); letter-spacing: -0.01em; }
p { text-wrap: pretty; }

.mono {
  font-family: var(--f-mono);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
}
.eyebrow {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: ""; width: 26px; height: 1px;
  background: var(--accent-line);
}
.lead { font-size: clamp(1.05rem, 1.5vw, 1.22rem); color: var(--text-2); max-width: 56ch; }

/* ---- 4. Layout ------------------------------------------- */
.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--pad); }
section { position: relative; }
.band { padding-block: clamp(72px, 11vw, 132px); }
.band--dark   { background: var(--bg); }
.band--dark2  { background: var(--bg-2); }
.sec-head { max-width: 720px; margin-bottom: 56px; }
.sec-head .h2 { margin: 18px 0 18px; }
.sec-head p { color: var(--text-2); max-width: 60ch; }

/* hairline section index marker */
.sec-index { color: var(--muted); }

/* ---- 5. Buttons ------------------------------------------ */
.btn {
  --bw: 1px;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 24px; border-radius: var(--r-btn);
  font-family: var(--f-mono); font-size: 0.78rem; letter-spacing: 0.08em;
  text-transform: uppercase; font-weight: 500;
  cursor: pointer; border: var(--bw) solid transparent; white-space: nowrap;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease),
              background .3s var(--ease), border-color .3s var(--ease), color .3s;
  position: relative; overflow: hidden; will-change: transform;
}
.btn .arr { transition: transform .3s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }

.btn-primary { background: var(--accent); color: #04161a; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 34px -8px var(--accent); }
.btn-primary::after {
  content: ""; position: absolute; inset: 0; left: -120%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.45), transparent);
  transition: left .6s var(--ease);
}
.btn-primary:hover::after { left: 120%; }

.btn-ghost { border-color: var(--line-2); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--accent); background: var(--accent-ghost); }

/* on light paper */
.on-paper .btn-ghost { border-color: rgba(20,30,35,0.25); color: var(--ink); }
.on-paper .btn-ghost:hover { border-color: var(--accent-dim); background: rgba(20,40,46,0.04); }

.glow { animation: glowPulse 3.4s ease-in-out infinite; }
@keyframes glowPulse {
  0%,100% { box-shadow: 0 0 0 0 var(--accent-ghost), 0 8px 24px -10px var(--accent); }
  50%     { box-shadow: 0 0 0 6px transparent, 0 12px 40px -8px var(--accent); }
}

/* ---- 6. Nav ---------------------------------------------- */
.nav {
  position: fixed; inset: 0 0 auto 0; height: var(--nav-h); z-index: 100;
  display: flex; align-items: center;
  transition: background .35s var(--ease), border-color .35s, backdrop-filter .35s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(10,11,14,0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}
/* over the light hero, before scroll, nav text is ink */
.nav:not(.scrolled) { color: var(--ink); }
.nav .inner { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--f-head); font-weight: 600; font-size: 1.05rem; letter-spacing: -0.01em; }
.brand .mark { width: 26px; height: 26px; flex: none; }
.brand b { color: inherit; }
.brand .ax { opacity: 0.55; font-weight: 500; }

.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a {
  font-family: var(--f-mono); font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: inherit; opacity: 0.72; position: relative; padding: 4px 0; transition: opacity .25s;
}
.nav-links a:hover, .nav-links a.active { opacity: 1; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 1px; width: 0;
  background: var(--accent); box-shadow: 0 0 8px var(--accent); transition: width .3s var(--ease);
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-burger { display: none; width: 40px; height: 40px; border: 1px solid currentColor; border-radius: 8px; background: transparent; cursor: pointer; align-items: center; justify-content: center; opacity: 0.8; }
.nav-burger span, .nav-burger span::before, .nav-burger span::after {
  content: ""; display: block; width: 16px; height: 1.5px; background: currentColor; position: relative; transition: transform .3s var(--ease), opacity .2s;
}
.nav-burger span::before { position: absolute; top: -5px; }
.nav-burger span::after  { position: absolute; top: 5px; }
body.menu-open .nav-burger span { background: transparent; }
body.menu-open .nav-burger span::before { transform: translateY(5px) rotate(45deg); }
body.menu-open .nav-burger span::after  { transform: translateY(-5px) rotate(-45deg); }

/* mobile overlay */
.mobile-menu {
  position: fixed; inset: 0; z-index: 99; background: var(--bg);
  display: flex; flex-direction: column; justify-content: center; gap: 6px;
  padding: var(--pad); opacity: 0; pointer-events: none; transform: translateY(-8px);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
body.menu-open .mobile-menu { opacity: 1; pointer-events: auto; transform: none; }
.mobile-menu a {
  font-family: var(--f-head); font-size: 2rem; font-weight: 600; letter-spacing: -0.02em;
  padding: 8px 0; border-bottom: 1px solid var(--line); opacity: 0; transform: translateX(-14px);
}
body.menu-open .mobile-menu a { animation: mIn .5s var(--ease) forwards; }
@keyframes mIn { to { opacity: 1; transform: none; } }

/* ---- 7. Scroll progress ---------------------------------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 100%; z-index: 101;
  background: linear-gradient(90deg, var(--accent), var(--accent-dim));
  transform: scaleX(0); transform-origin: left; box-shadow: 0 0 10px var(--accent);
}

/* ---- 8. Hero (light blueprint) --------------------------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  background: var(--paper); color: var(--ink); overflow: hidden;
  padding-top: var(--nav-h);
}
.on-paper { color: var(--ink); }
/* blueprint grid */
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--blueprint-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--blueprint-line) 1px, transparent 1px),
    linear-gradient(var(--blueprint-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--blueprint-line) 1px, transparent 1px);
  background-size: 132px 132px, 132px 132px, 33px 33px, 33px 33px;
  mask-image: radial-gradient(ellipse 120% 95% at 30% 35%, #000 55%, transparent 100%);
}
/* paper edge vignette to fade into dark site */
.hero::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 160px;
  background: linear-gradient(transparent, rgba(10,11,14,0.0));
  pointer-events: none;
}
.hero-grid {
  position: relative; z-index: 2; display: grid; gap: clamp(40px, 5vw, 72px);
  grid-template-columns: 1.05fr 0.95fr; align-items: center; width: 100%;
}
.hero-pill {
  display: inline-flex; align-items: center; gap: 9px; padding: 7px 14px; border-radius: 999px;
  border: 1px solid rgba(20,40,46,0.22); background: rgba(255,255,255,0.4);
  font-family: var(--f-mono); font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft);
}
.hero-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-dim); box-shadow: 0 0 0 4px var(--accent-ghost); }
.hero h1 { margin: 26px 0 22px; color: var(--ink); }
.hero h1 .grad {
  background: linear-gradient(100deg, var(--accent-dim), oklch(0.55 0.13 250));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lead { color: var(--ink-soft); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin: 34px 0 40px; }
.trust-bar { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.trust-bar span { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }
.trust-bar span::before { content: ""; width: 5px; height: 5px; background: var(--accent-dim); transform: rotate(45deg); }

/* hero visual — dark edge unit on the paper */
.edge-unit {
  position: relative; aspect-ratio: 5 / 4.4; border-radius: 16px;
  background: linear-gradient(160deg, #14161c, #0a0b0e);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 40px 90px -30px rgba(10,20,30,0.55), inset 0 1px 0 rgba(255,255,255,0.05);
  overflow: hidden; color: var(--text);
}
.edge-unit .eu-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.eu-head .mono { color: var(--text-2); }
.eu-online { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-mono); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.eu-online .led { width: 8px; height: 8px; border-radius: 50%; background: oklch(0.82 0.18 150); box-shadow: 0 0 0 0 oklch(0.82 0.18 150 / .6); animation: led 2.4s ease-out infinite; }
@keyframes led { 0% { box-shadow: 0 0 0 0 oklch(0.82 0.18 150 / .55);} 70%,100% { box-shadow: 0 0 0 9px transparent; } }
.eu-net { position: absolute; inset: 60px 0 60px 0; }
.eu-net svg { width: 100%; height: 100%; }
.eu-node { fill: var(--accent); filter: drop-shadow(0 0 6px var(--accent)); animation: nodePulse 3s ease-in-out infinite; }
@keyframes nodePulse { 0%,100% { opacity: .45; } 50% { opacity: 1; } }
.eu-link { stroke: var(--accent-line); stroke-width: 1; }
.eu-foot { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 18px; border-top: 1px solid var(--line); display: flex; gap: 22px; }
.eu-stat { font-family: var(--f-mono); }
.eu-stat b { display: block; font-size: 1.1rem; color: var(--text); font-weight: 500; }
.eu-stat span { font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }

/* corner registration marks on hero */
.reg { position: absolute; width: 16px; height: 16px; z-index: 2; opacity: 0.5; }
.reg::before, .reg::after { content: ""; position: absolute; background: var(--ink-soft); }
.reg::before { width: 100%; height: 1px; top: 50%; }
.reg::after { height: 100%; width: 1px; left: 50%; }
.reg.tl { top: calc(var(--nav-h) + 22px); left: 22px; }
.reg.tr { top: calc(var(--nav-h) + 22px); right: 22px; }
.reg.bl { bottom: 22px; left: 22px; }
.reg.br { bottom: 22px; right: 22px; }

/* ---- 9. Particles canvas --------------------------------- */
#particles { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.band > .container, .hero-grid { position: relative; z-index: 2; }

/* ---- 10. Feature grid (Product 1) ------------------------ */
.grid-3 { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.feature {
  background: var(--bg); padding: 34px 30px 38px; position: relative;
  transition: background .4s var(--ease), transform .4s var(--ease);
}
.feature:hover { background: var(--surface); }
.feature .ico {
  width: 46px; height: 46px; border-radius: 11px; display: grid; place-items: center;
  background: var(--accent-ghost); border: 1px solid var(--accent-line); color: var(--accent); margin-bottom: 22px;
  transition: transform .4s var(--ease);
}
.feature:hover .ico { transform: translateY(-3px); }
.feature .ico svg { width: 22px; height: 22px; }
.feature h3 { margin-bottom: 10px; }
.feature p { color: var(--text-2); font-size: 0.95rem; }
.feature .fnum { position: absolute; top: 26px; right: 28px; font-family: var(--f-mono); font-size: 0.7rem; color: var(--muted); letter-spacing: 0.1em; }

/* ---- 11. Process timeline -------------------------------- */
.timeline { position: relative; }
.tl-track { position: absolute; top: 33px; left: 0; right: 0; height: 2px; }
.tl-track svg { width: 100%; height: 2px; overflow: visible; }
.tl-line { stroke: var(--line-2); stroke-width: 2; }
.tl-line.draw { stroke: var(--accent); stroke-dasharray: 1; stroke-dashoffset: 1; }
.tl-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; position: relative; z-index: 2; }
.tl-step { }
.tl-dot {
  width: 66px; height: 66px; border-radius: 14px; display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--line); font-family: var(--f-mono);
  font-size: 1rem; color: var(--accent); margin-bottom: 22px; transition: all .4s var(--ease);
}
.tl-step:hover .tl-dot { border-color: var(--accent); background: var(--surface-2); transform: translateY(-4px); box-shadow: 0 14px 30px -16px var(--accent); }
.tl-step h3 { margin-bottom: 8px; }
.tl-step p { color: var(--text-2); font-size: 0.93rem; max-width: 30ch; }
.tl-step .mono { color: var(--muted); display: block; margin-bottom: 14px; }

/* ---- 12. Services (Product 2) ---------------------------- */
.svc-grid { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: clamp(40px, 5vw, 80px); align-items: center; }
.svc-list { border-top: 1px solid var(--line); margin-top: 30px; }
.svc-item { border-bottom: 1px solid var(--line); }
.svc-q {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 4px; font-family: var(--f-head); font-size: 1.18rem; font-weight: 600; letter-spacing: -0.01em;
  color: var(--text); transition: color .25s;
}
.svc-q:hover { color: var(--accent); }
.svc-plus { position: relative; width: 18px; height: 18px; flex: none; }
.svc-plus::before, .svc-plus::after { content: ""; position: absolute; background: currentColor; transition: transform .35s var(--ease); }
.svc-plus::before { top: 50%; left: 0; width: 100%; height: 1.5px; transform: translateY(-50%); }
.svc-plus::after  { left: 50%; top: 0; height: 100%; width: 1.5px; transform: translateX(-50%); }
.svc-item.open .svc-plus::after { transform: translateX(-50%) scaleY(0); }
.svc-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s var(--ease); }
.svc-item.open .svc-a { grid-template-rows: 1fr; }
.svc-a > div { overflow: hidden; }
.svc-a p { color: var(--text-2); font-size: 0.95rem; padding: 0 4px 22px; max-width: 52ch; }

/* services visual — build/assembly */
.factory { position: relative; aspect-ratio: 1 / 1; border-radius: var(--r-card); border: 1px solid var(--line); background:
  radial-gradient(circle at 30% 20%, rgba(52,227,255,0.06), transparent 40%), var(--surface); overflow: hidden; padding: 26px; }
.factory .term { font-family: var(--f-mono); font-size: 0.78rem; line-height: 1.9; color: var(--text-2); }
.factory .term .ln { opacity: 0; transform: translateX(-6px); }
.factory.run .term .ln { animation: lnIn .4s var(--ease) forwards; }
@keyframes lnIn { to { opacity: 1; transform: none; } }
.factory .term .k { color: var(--accent); }
.factory .term .ok { color: oklch(0.82 0.16 150); }
.factory .term .dim { color: var(--muted); }
.factory .gear { position: absolute; bottom: 22px; right: 22px; opacity: 0.5; }
.factory .gear svg { width: 64px; height: 64px; animation: spin 9s linear infinite; color: var(--accent-dim); }
.factory .gear.g2 { bottom: 56px; right: 70px; opacity: 0.3; }
.factory .gear.g2 svg { width: 40px; height: 40px; animation: spin 7s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- 13. Specs table ------------------------------------- */
.specs { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.specs th, .specs td { text-align: left; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.specs thead th { font-family: var(--f-mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.specs tbody tr { transition: background .25s; }
.specs tbody tr:hover { background: var(--accent-ghost); }
.specs td:first-child { font-family: var(--f-head); font-weight: 600; color: var(--text); }
.specs .latency { font-family: var(--f-mono); color: var(--accent); }
.specs .row-custom { position: relative; }
.specs .row-custom td:first-child { box-shadow: inset 3px 0 0 var(--accent); }
.specs-wrap { border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; }
.specs-wrap { overflow-x: auto; }

/* ---- 14. Stats + testimonials ---------------------------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; margin-bottom: 64px; }
.stat { background: var(--bg-2); padding: 40px 32px; text-align: center; }
.stat b { font-family: var(--f-head); font-size: clamp(2.6rem, 5vw, 3.8rem); font-weight: 600; letter-spacing: -0.03em; color: var(--text); display: block; line-height: 1; }
.stat b .u { color: var(--accent); }
.stat span { font-family: var(--f-mono); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-2); margin-top: 14px; display: block; }
.tcards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.tcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 30px; transition: transform .4s var(--ease), border-color .4s; }
.tcard:hover { transform: translateY(-6px); border-color: var(--accent-line); }
.tcard .stars { display: flex; gap: 4px; color: var(--accent); margin-bottom: 18px; }
.tcard .stars svg { width: 15px; height: 15px; }
.tcard blockquote { font-size: 1rem; color: var(--text); line-height: 1.65; margin-bottom: 22px; }
.tcard .who { display: flex; align-items: center; gap: 13px; }
.tcard .av { width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; font-family: var(--f-mono); font-size: 0.8rem; color: var(--bg); font-weight: 600; }
.tcard .who b { font-family: var(--f-body); font-size: 0.92rem; font-weight: 600; display: block; }
.tcard .who span { font-family: var(--f-mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

/* ---- 15. Articles / Logs --------------------------------- */
.log-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 48px; }
.logs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.log {
  display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-card); overflow: hidden; transition: transform .4s var(--ease), border-color .4s;
}
.log:hover { transform: translateY(-6px); border-color: var(--accent-line); }
.log .thumb { aspect-ratio: 16 / 9; position: relative; background:
  repeating-linear-gradient(135deg, rgba(255,255,255,0.03) 0 9px, transparent 9px 18px), var(--bg-2);
  border-bottom: 1px solid var(--line); display: grid; place-items: center; }
.log .thumb .ph { font-family: var(--f-mono); font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); border: 1px dashed var(--line-2); padding: 6px 12px; border-radius: 6px; }
.log .meta { display: flex; gap: 12px; align-items: center; font-family: var(--f-mono); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); padding: 22px 24px 0; }
.log .meta .tag { color: var(--accent); }
.log h3 { font-size: 1.2rem; padding: 14px 24px 0; }
.log p { color: var(--text-2); font-size: 0.92rem; padding: 12px 24px 0; flex: 1; }
.log .more { font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); padding: 20px 24px 26px; display: inline-flex; gap: 8px; align-items: center; }
.log .more .arr { transition: transform .3s var(--ease); }
.log:hover .more .arr { transform: translateX(4px); }

/* ---- 16. FAQ --------------------------------------------- */
.faq { max-width: 820px; margin-inline: auto; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 26px 4px;
  font-family: var(--f-head); font-size: clamp(1.05rem, 1.7vw, 1.25rem); font-weight: 600; color: var(--text); transition: color .25s;
}
.faq-q:hover { color: var(--accent); }
.faq-plus { position: relative; width: 20px; height: 20px; flex: none; transition: transform .35s var(--ease); }
.faq-plus::before, .faq-plus::after { content: ""; position: absolute; background: currentColor; }
.faq-plus::before { top: 50%; left: 0; width: 100%; height: 1.5px; transform: translateY(-50%); }
.faq-plus::after  { left: 50%; top: 0; height: 100%; width: 1.5px; transform: translateX(-50%); transition: transform .35s var(--ease); }
.faq-item.open .faq-plus { transform: rotate(90deg); }
.faq-item.open .faq-plus::after { transform: translateX(-50%) scaleY(0); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s var(--ease); }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a > div { overflow: hidden; }
.faq-a p { color: var(--text-2); padding: 0 4px 26px; max-width: 68ch; }

/* ---- 17. Contact ----------------------------------------- */
.contact-wrap { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(40px, 5vw, 80px); }
.contact-aside .h2 { margin: 18px 0; }
.contact-aside p { color: var(--text-2); margin-bottom: 30px; }
.contact-meta { display: grid; gap: 18px; margin-top: 36px; }
.cmeta { display: flex; gap: 14px; align-items: flex-start; }
.cmeta .ci { width: 38px; height: 38px; border-radius: 9px; background: var(--accent-ghost); border: 1px solid var(--accent-line); color: var(--accent); display: grid; place-items: center; flex: none; }
.cmeta .ci svg { width: 17px; height: 17px; }
.cmeta b { font-family: var(--f-body); font-size: 0.92rem; display: block; }
.cmeta span { font-family: var(--f-mono); font-size: 0.74rem; color: var(--text-2); letter-spacing: 0.04em; }
.is-ph { color: var(--muted) !important; }

.form { display: grid; gap: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: clamp(24px, 3vw, 40px); }
.field { position: relative; display: grid; gap: 8px; }
.field.row2 { grid-template-columns: 1fr 1fr; gap: 18px; }
.field label, .form .field > label { font-family: var(--f-mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-2); }
.input {
  width: 100%; background: var(--bg-2); border: 1px solid var(--line); border-radius: 9px; padding: 13px 15px;
  color: var(--text); font-size: 0.95rem; transition: border-color .25s, box-shadow .25s, background .25s;
}
.input::placeholder { color: var(--muted); }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ghost); background: var(--surface-2); }
textarea.input { resize: vertical; min-height: 120px; }
.form .btn-primary { justify-content: center; }
.form-note { font-family: var(--f-mono); font-size: 0.68rem; color: var(--muted); letter-spacing: 0.04em; }
.err { color: oklch(0.7 0.18 25); font-family: var(--f-mono); font-size: 0.66rem; letter-spacing: 0.06em; min-height: 12px; }
.input.invalid { border-color: oklch(0.7 0.18 25); }
.form-success {
  display: none; flex-direction: column; align-items: center; justify-content: center; gap: 18px; text-align: center;
  padding: clamp(40px, 6vw, 80px); background: var(--surface); border: 1px solid var(--accent-line); border-radius: var(--r-card);
}
.form-success.show { display: flex; animation: fadeUp .6s var(--ease); }
.form-success .check { width: 64px; height: 64px; border-radius: 50%; border: 1.5px solid var(--accent); display: grid; place-items: center; color: var(--accent); }
.form-success .check svg { width: 30px; height: 30px; }
.form.hide { display: none; }

/* ---- 18. Footer ------------------------------------------ */
.footer { border-top: 1px solid var(--line); background: var(--bg); padding-block: 64px 30px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 50px; border-bottom: 1px solid var(--line); }
.foot-brand p { color: var(--text-2); font-size: 0.92rem; max-width: 34ch; margin: 18px 0 22px; }
.socials { display: flex; gap: 12px; }
.socials a { width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 9px; display: grid; place-items: center; color: var(--text-2); transition: color .25s, border-color .25s, transform .25s; }
.socials a:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-2px); }
.socials a svg { width: 17px; height: 17px; }
.foot-col h4 { font-family: var(--f-mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin-bottom: 18px; }
.foot-col a { display: block; color: var(--text-2); font-size: 0.92rem; padding: 6px 0; transition: color .25s; }
.foot-col a:hover { color: var(--accent); }
.foot-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 26px; flex-wrap: wrap; }
.foot-bottom, .foot-bottom a { font-family: var(--f-mono); font-size: 0.7rem; letter-spacing: 0.06em; color: var(--muted); }
.foot-bottom a:hover { color: var(--text-2); }
.foot-legal { display: flex; gap: 22px; }

/* ---- 19. Reveal animations ------------------------------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
.reveal { transition: opacity .8s var(--ease), transform .8s var(--ease); }
.anim .reveal { opacity: 0; transform: translateY(34px); }
.reveal.visible { opacity: 1; transform: none; }
.rd-1 { transition-delay: .08s; } .rd-2 { transition-delay: .16s; } .rd-3 { transition-delay: .24s; }
.rd-4 { transition-delay: .32s; } .rd-5 { transition-delay: .40s; } .rd-6 { transition-delay: .48s; }
/* hero load-in — only hidden once animations can actually run (.anim) */
.anim .load { opacity: 0; animation: fadeUp .9s var(--ease) forwards; }
.load.d1 { animation-delay: .05s; } .load.d2 { animation-delay: .2s; }
.load.d3 { animation-delay: .35s; } .load.d4 { animation-delay: .5s; } .load.d5 { animation-delay: .65s; }

/* typing cursor */
.type-cursor { color: var(--accent); font-weight: 400; animation: blink 1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---- 20. Responsive -------------------------------------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .edge-unit { max-width: 460px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .svc-grid, .contact-wrap { grid-template-columns: 1fr; }
  .tl-steps { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .tl-track { display: none; }
  .logs, .tcards { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 760px) {
  .nav-links, .nav-cta .btn { display: none; }
  .nav-burger { display: flex; }
  .grid-3 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .logs, .tcards { grid-template-columns: 1fr; }
  .tl-steps { grid-template-columns: 1fr; }
  .field.row2 { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .reg { display: none; }
}

/* ---- 21. Reduced motion ---------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal, .load { opacity: 1 !important; transform: none !important; }
  #particles { display: none; }
}
