/* ==========================================================================
   Qotech — design system 2026
   Éditorial clair : papier + encre bleu nuit + cyan (logo)
   ========================================================================== */

/* ---------- Fonts (self-hosted, RGPD-friendly) ---------- */
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("fonts/SpaceGrotesk-latin-500-600-700.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("fonts/SpaceGrotesk-latin-ext-500-600-700.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("fonts/Inter-latin-400-500-600.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("fonts/Inter-latin-ext-400-500-600.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Tokens ---------- */
:root {
  --paper: #f5f6f2;
  --card: #ffffff;
  --ink: #0b1b2b;
  --ink-soft: #33465c;
  --muted: #5c6c80;
  --line: #dfe3da;
  --line-strong: #c9cfc2;
  --accent: #00b9d7;
  --accent-ink: #0a7d99;
  --accent-deep: #0e6e85;
  --accent-soft: rgba(0, 185, 215, 0.1);
  --night: #06131f;
  --night-2: #0a1d2e;
  --night-line: rgba(151, 222, 238, 0.16);
  --night-fg: #e9f1f6;
  --night-muted: #8ba3b6;
  --accent-bright: #2bd2ee;
  --ok: #3ecf8e;
  --warn: #ffb454;
  --err: #ff6b81;
  --font-display: "Space Grotesk", "Avenir Next", system-ui, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --shadow-card: 0 1px 2px rgba(11, 27, 43, 0.04), 0 8px 24px -12px rgba(11, 27, 43, 0.1);
  --shadow-pop: 0 2px 4px rgba(11, 27, 43, 0.06), 0 20px 44px -16px rgba(8, 125, 153, 0.28);
  --header-h: 76px;
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: rgba(0, 185, 215, 0.25); }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}
p { margin: 0; }

.mono { font-family: var(--font-mono); }

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 28px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 200;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
}
.skip-link:focus { left: 12px; }

:focus-visible {
  outline: 2px solid var(--accent-ink);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
}
.reveal.on {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--d, 0ms);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease,
    border-color 0.2s ease, box-shadow 0.2s ease;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn .arr { transition: transform 0.2s ease; }
.btn:hover .arr { transform: translateX(4px); }

.btn-primary {
  background: var(--ink);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-deep);
  box-shadow: var(--shadow-pop);
}
.btn-ghost {
  border-color: var(--line-strong);
  color: var(--ink);
  background: transparent;
}
.btn-ghost:hover { border-color: var(--ink); background: #fff; }

.btn-light {
  background: #fff;
  color: var(--night);
}
.btn-light:hover { background: var(--accent-bright); }

.btn-sm { padding: 11px 22px; font-size: 14px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background 0.25s ease, box-shadow 0.25s ease;
}
.site-header.scrolled {
  background: rgba(245, 246, 242, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: inset 0 -1px 0 var(--line);
}
.site-header .container {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: -0.02em;
}
.brand img { width: 34px; height: 34px; }
.brand .tld { color: var(--accent-ink); }

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.main-nav a {
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.2s ease, background 0.2s ease;
}
.main-nav a:hover { color: var(--ink); background: rgba(11, 27, 43, 0.05); }
.main-nav a.active { color: var(--accent-deep); background: var(--accent-soft); }

.header-actions { display: flex; align-items: center; gap: 14px; }

.lang-toggle {
  display: flex;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}
.lang-toggle button {
  appearance: none;
  background: transparent;
  border: 0;
  padding: 8px 13px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.lang-toggle button[aria-pressed="true"] {
  background: var(--ink);
  color: #fff;
}

.menu-toggle {
  display: none;
  appearance: none;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  position: relative;
}
.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transform: translate(-50%, -50%);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.menu-toggle span::before { transform: translate(-50%, calc(-50% - 6px)); }
.menu-toggle span::after { transform: translate(-50%, calc(-50% + 6px)); }
.menu-toggle[aria-expanded="true"] span { background: transparent; }
.menu-toggle[aria-expanded="true"] span::before { transform: translate(-50%, -50%) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span::after { transform: translate(-50%, -50%) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 72px) 0 72px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(560px 380px at 82% 12%, rgba(0, 185, 215, 0.14), transparent 68%),
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 100% 100%, 56px 56px, 56px 56px;
  -webkit-mask-image: linear-gradient(#000 55%, transparent 96%);
  mask-image: linear-gradient(#000 55%, transparent 96%);
  opacity: 0.75;
  pointer-events: none;
}
.hero .container {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.kicker .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(0, 185, 215, 0.18); }
  50% { box-shadow: 0 0 0 7px rgba(0, 185, 215, 0.06); }
}

.hero h1 {
  margin: 26px 0 22px;
  font-size: clamp(2.9rem, 6.4vw, 4.9rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.035em;
}
.hero h1 .accent-word {
  color: var(--accent-deep);
  background-image: linear-gradient(transparent 68%, rgba(0, 185, 215, 0.28) 68%);
  background-size: 100% 100%;
  background-repeat: no-repeat;
}

.hero .lead {
  max-width: 480px;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  line-height: 1.65;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.hero-note {
  margin-top: 22px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 13.5px;
}
.hero-note svg { color: var(--accent-ink); flex: none; }

/* Terminal card */
.terminal {
  border-radius: var(--r-lg);
  background: var(--night);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08) inset, 0 32px 64px -24px rgba(6, 19, 31, 0.5);
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.9;
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--night-line);
  background: var(--night-2);
}
.terminal-bar i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #2c4257;
}
.terminal-bar i:nth-child(1) { background: #ff6b81; }
.terminal-bar i:nth-child(2) { background: #ffb454; }
.terminal-bar i:nth-child(3) { background: #3ecf8e; }
.terminal-bar .title {
  margin-left: 10px;
  color: var(--night-muted);
  font-size: 11.5px;
  letter-spacing: 0.06em;
}
.terminal-body {
  padding: 22px 22px 26px;
  color: var(--night-fg);
  min-height: 318px;
}
.terminal-body .t-line { white-space: pre-wrap; word-break: break-word; min-height: 1.9em; }
.t-prompt { color: var(--accent-bright); }
.t-dim { color: var(--night-muted); }
.t-ok { color: var(--ok); }
.t-err { color: var(--err); }
.t-warn { color: var(--warn); }
.t-caret {
  display: inline-block;
  width: 8px;
  height: 15px;
  margin-left: 2px;
  background: var(--accent-bright);
  vertical-align: -2px;
  animation: blink 1.05s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.terminal-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 22px 22px;
}
.terminal-foot span {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--accent-bright);
  border: 1px solid var(--night-line);
  border-radius: 999px;
  padding: 5px 12px;
  background: rgba(43, 210, 238, 0.06);
}

/* Stack strip */
.stack-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
  overflow: hidden;
}
.stack-strip .container {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-top: 16px;
  padding-bottom: 16px;
}
.stack-strip .label {
  flex: none;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--muted);
}
.stack-viewport { overflow: hidden; flex: 1; position: relative; }
.stack-viewport::before,
.stack-viewport::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 48px;
  z-index: 1;
  pointer-events: none;
}
.stack-viewport::before { left: 0; background: linear-gradient(90deg, #fff, transparent); }
.stack-viewport::after { right: 0; background: linear-gradient(-90deg, #fff, transparent); }
.stack-track {
  display: flex;
  gap: 34px;
  width: max-content;
  animation: marquee 36s linear infinite;
}
.stack-strip:hover .stack-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.stack-track span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-soft);
  white-space: nowrap;
}
.stack-track span::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.75;
}

/* ---------- Sections ---------- */
.section { padding: 104px 0; position: relative; }
.section.tight { padding: 84px 0; }

.section-head { max-width: 720px; margin-bottom: 60px; }
.section-head.center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-deep);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}
.section-head.center .eyebrow::after {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.section-head h2 {
  margin: 18px 0 16px;
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}
.section-head p { color: var(--muted); font-size: 17px; max-width: 58ch; }
.section-head.center p { margin-inline: auto; }

/* ---------- Stats ---------- */
.stats-band { background: transparent; padding: 68px 0; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.stat {
  border-top: 2px solid var(--ink);
  padding-top: 20px;
}
.stat .value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.5rem, 4.4vw, 3.6rem);
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat .value .unit { color: var(--accent-ink); }
.stat .label {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Services ---------- */
#services { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 34px 30px 30px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease,
    box-shadow 0.3s ease, background 0.3s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  background: #fff;
  border-color: rgba(0, 185, 215, 0.45);
  box-shadow: var(--shadow-pop);
}
.service-card .num {
  position: absolute;
  top: 26px;
  right: 28px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--line-strong);
  transition: color 0.3s ease;
}
.service-card:hover .num { color: var(--accent-ink); }
.service-card .icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent-deep);
  margin-bottom: 26px;
}
.service-card h3 { font-size: 21px; margin-bottom: 12px; letter-spacing: -0.015em; }
.service-card > p { color: var(--muted); font-size: 14.5px; margin-bottom: 22px; }
.service-card ul {
  list-style: none;
  margin: auto 0 0;
  padding: 20px 0 0;
  border-top: 1px dashed var(--line-strong);
  display: grid;
  gap: 11px;
}
.service-card li {
  display: flex;
  align-items: baseline;
  gap: 11px;
  font-size: 14px;
  color: var(--ink-soft);
}
.service-card li::before {
  content: "+";
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--accent-ink);
  flex: none;
}

/* ---------- Process ---------- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
  counter-reset: step;
}
.step {
  position: relative;
  padding-top: 26px;
}
.step::before {
  content: "";
  position: absolute;
  top: 5px;
  left: 0;
  right: -26px;
  height: 1px;
  background: var(--line-strong);
}
.step:last-child::before { right: 0; }
.step::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--paper);
  border: 2.5px solid var(--accent-ink);
}
.step .step-num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--accent-deep);
}
.step h3 { font-size: 19px; margin: 10px 0 10px; }
.step p { color: var(--muted); font-size: 14.5px; }

/* ---------- About ---------- */
#about { background: #fff; border-top: 1px solid var(--line); }
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 72px;
  align-items: start;
}
.about-grid .section-head { margin-bottom: 28px; }
.about-copy p { color: var(--ink-soft); font-size: 16.5px; line-height: 1.75; margin-bottom: 18px; }
.about-copy .about-sign {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 30px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.about-sign::before { content: ""; width: 34px; height: 2px; background: var(--accent); }

.commitments {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 32px 30px;
}
.commitments h3 {
  font-size: 15px;
  font-family: var(--font-mono);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 22px;
}
.commitments ul { list-style: none; margin: 0; padding: 0; display: grid; }
.commitments li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.commitments li .check {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent-deep);
  margin-top: 2px;
}
.commitments li strong { display: block; font-size: 15px; font-weight: 600; }
.commitments li span { color: var(--muted); font-size: 13.5px; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--line-strong);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 4px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.01em;
  transition: color 0.2s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--accent-deep); }
.faq-item summary .chev {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: grid;
  place-items: center;
  color: var(--ink-soft);
  transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.faq-item[open] summary { color: var(--accent-deep); }
.faq-item[open] summary .chev {
  transform: rotate(45deg);
  background: var(--accent-soft);
  border-color: transparent;
  color: var(--accent-deep);
}
.faq-item .faq-body {
  padding: 0 44px 26px 4px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
  max-width: 66ch;
}

/* ---------- CTA band ---------- */
.cta-band { padding: 0 0 104px; }
.cta-panel {
  position: relative;
  overflow: hidden;
  background: var(--night);
  border-radius: 28px;
  padding: 76px 64px;
  display: grid;
  grid-template-columns: 1.2fr auto;
  align-items: center;
  gap: 40px;
}
.cta-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(420px 300px at 88% -10%, rgba(43, 210, 238, 0.22), transparent 70%),
    linear-gradient(var(--night-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--night-line) 1px, transparent 1px);
  background-size: 100% 100%, 44px 44px, 44px 44px;
  opacity: 0.5;
  pointer-events: none;
}
.cta-panel > * { position: relative; }
.cta-panel h2 {
  color: #fff;
  font-size: clamp(1.8rem, 3.4vw, 2.7rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}
.cta-panel p { color: var(--night-muted); font-size: 16.5px; max-width: 46ch; }
.cta-actions { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.cta-actions .alt {
  color: var(--night-muted);
  font-size: 13.5px;
}
.cta-actions .alt a {
  color: var(--accent-bright);
  border-bottom: 1px solid rgba(43, 210, 238, 0.4);
  transition: border-color 0.2s ease;
}
.cta-actions .alt a:hover { border-color: var(--accent-bright); }

/* ---------- Contact ---------- */
#contact { background: #fff; border-top: 1px solid var(--line); }
.contact-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 26px;
  align-items: start;
}
.form-card,
.contact-aside > .aside-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 36px 34px;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 8px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: 12px;
  border: 1.5px solid var(--line-strong);
  background: #fff;
  color: var(--ink);
  font-family: inherit;
  font-size: 14.5px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent-ink);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' stroke='%235c6c80' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 42px;
}
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  display: none;
  margin-top: 16px;
  padding: 13px 16px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.55;
}
.form-status.show { display: block; }
.form-status.ok {
  background: rgba(62, 207, 142, 0.12);
  color: #17734a;
  border: 1px solid rgba(62, 207, 142, 0.4);
}
.form-status.err {
  background: rgba(255, 107, 129, 0.1);
  color: #b3364a;
  border: 1px solid rgba(255, 107, 129, 0.35);
}
.form-status a { text-decoration: underline; font-weight: 600; }

.contact-aside { display: grid; gap: 26px; }
.aside-card h3 { font-size: 18px; margin-bottom: 20px; }
.aside-card .info-row {
  display: flex;
  gap: 15px;
  align-items: flex-start;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.aside-card .info-row:first-of-type { border-top: 0; padding-top: 0; }
.aside-card .info-ic {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--accent-deep);
}
.aside-card .info-row strong { display: block; font-size: 12px; font-family: var(--font-mono); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; }
.aside-card .info-row span, .aside-card .info-row a.val { font-size: 15px; color: var(--ink); }
.aside-card .info-row a.val:hover { color: var(--accent-deep); }
.aside-card .siren {
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--night);
  color: var(--night-fg);
  padding: 72px 0 36px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--night-line);
}
.site-footer .brand { color: #fff; }
.footer-tagline { margin-top: 16px; color: var(--night-muted); font-size: 14.5px; max-width: 34ch; }
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--night-muted);
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.footer-col a { color: var(--night-fg); font-size: 14.5px; opacity: 0.85; transition: opacity 0.2s ease, color 0.2s ease; }
.footer-col a:hover { opacity: 1; color: var(--accent-bright); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 28px;
  color: var(--night-muted);
  font-size: 13px;
}
.footer-bottom .made {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
}

/* ---------- Legal pages ---------- */
.legal-main {
  padding: calc(var(--header-h) + 56px) 0 96px;
  min-height: 72vh;
}
.legal-wrap { max-width: 780px; margin: 0 auto; }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 36px;
  transition: color 0.2s ease, gap 0.2s ease;
}
.back-link:hover { color: var(--accent-deep); }
.legal-wrap h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  padding-bottom: 28px;
  margin-bottom: 8px;
  border-bottom: 2px solid var(--ink);
}
.legal-wrap h2 {
  font-size: 19px;
  margin: 40px 0 12px;
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.legal-wrap h2::before {
  content: "//";
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--accent-ink);
}
.legal-wrap p, .legal-wrap li { color: var(--ink-soft); font-size: 15px; line-height: 1.8; }
.legal-wrap p { margin: 0 0 14px; }
.legal-wrap ul { margin: 0 0 14px; padding-left: 22px; }

/* ---------- 404 ---------- */
.nf-main {
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 40px 24px;
  position: relative;
  overflow: hidden;
}
.nf-main::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(480px 340px at 50% 0%, rgba(0, 185, 215, 0.12), transparent 70%),
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 100% 100%, 56px 56px, 56px 56px;
  -webkit-mask-image: linear-gradient(#000 40%, transparent 90%);
  mask-image: linear-gradient(#000 40%, transparent 90%);
  opacity: 0.7;
}
.nf-inner { position: relative; }
.nf-code {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--accent-deep);
}
.nf-inner h1 {
  font-size: clamp(4.5rem, 16vw, 9rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1;
  margin: 10px 0 18px;
}
.nf-inner p { color: var(--muted); font-size: 17px; margin-bottom: 34px; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hero .container { grid-template-columns: 1fr; gap: 48px; }
  .hero .lead { max-width: 560px; }
  .terminal { max-width: 620px; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .process-grid { grid-template-columns: 1fr 1fr; row-gap: 44px; }
  .step:nth-child(2)::before { right: 0; }
  .about-grid { grid-template-columns: 1fr; gap: 44px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 18px 24px 26px;
    background: var(--paper);
    box-shadow: inset 0 1px 0 var(--line), 0 24px 40px -20px rgba(11, 27, 43, 0.25);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 13px 16px; font-size: 16px; }
  .menu-toggle { display: block; }
  .header-cta { display: none; }
  .site-header { background: rgba(245, 246, 242, 0.9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: inset 0 -1px 0 var(--line); }
}

@media (max-width: 720px) {
  .section { padding: 76px 0; }
  .section.tight { padding: 64px 0; }
  .hero { padding-top: calc(var(--header-h) + 48px); }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 34px 24px; }
  .services-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; row-gap: 36px; }
  .step::before { display: none; }
  .step { padding-top: 0; padding-left: 26px; }
  .step::after { top: 4px; }
  .cta-panel { grid-template-columns: 1fr; padding: 52px 32px; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .stack-strip .container { flex-direction: column; align-items: flex-start; gap: 12px; }
}
