/* ============================================================
   ADVAULT — Performance Marketing Agency
   Dark premium / metallic design system
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  /* Surfaces */
  --bg: #0A0A0C;
  --bg-alt: #0D0D10;
  --surface-1: #141418;
  --surface-2: #1C1C22;
  --surface-3: #24242C;

  /* Lines */
  --border: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.13);
  --hairline: rgba(255, 255, 255, 0.05);

  /* Text */
  --text: #F3F3F6;
  --text-soft: #C6C6CE;
  --text-muted: #8E8E99;
  --text-dim: #8A8A94; /* AA-safe on all surfaces (>=4.5:1) */

  /* Metallic silver */
  --silver-hi: #EDEDF1;
  --silver-mid: #B9B9C2;
  --silver-lo: #7C7C87;
  --metal: linear-gradient(160deg, #FDFDFE 0%, #C8C8D0 34%, #8A8A94 62%, #D6D6DE 100%);
  --metal-soft: linear-gradient(180deg, #E8E8EC 0%, #9A9AA4 100%);

  /* Accent — cool steel indigo (used sparingly) */
  --accent: #7B8CFF;
  --accent-2: #56C7E6;
  --accent-glow: rgba(123, 140, 255, 0.35);

  /* Effects */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 12px 40px rgba(0, 0, 0, 0.55);
  --shadow-lg: 0 30px 80px rgba(0, 0, 0, 0.6);
  --ring: 0 0 0 1px var(--border-strong);

  /* Sizing */
  --container: 1200px;
  --container-narrow: 880px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-sm: 10px;
  --nav-h: 74px;

  /* Type — Saira Condensed (engineered, engraved nameplate / dial numerals)
     paired with Public Sans (institutional, audit-grade legibility) */
  --font-display: "Saira Condensed", "Saira", system-ui, sans-serif;
  --font-body: "Public Sans", system-ui, -apple-system, sans-serif;

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  /* Z-index scale */
  --z-nav: 100;
  --z-menu: 99;
  --z-overlay: 200;
}

/* ---------- Reset & base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  font-weight: 400;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Ambient background: hex grid + radial glows */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 600px at 78% -8%, rgba(123, 140, 255, 0.06), transparent 60%),
    radial-gradient(700px 500px at 12% 4%, rgba(86, 199, 230, 0.035), transparent 55%),
    var(--bg);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.6;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='96' viewBox='0 0 56 96'%3E%3Cpath d='M28 0L56 16v32L28 64 0 48V16z M28 64l28 16v32M28 64L0 80v32' fill='none' stroke='%23ffffff' stroke-opacity='0.028' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 56px 96px;
}

img { max-width: 100%; display: block; }

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

/* Visible keyboard focus on dark */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
.btn:focus-visible { outline-offset: 4px; }

::selection {
  background: rgba(123, 140, 255, 0.3);
  color: #fff;
}

/* Scrollbar */
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: var(--surface-3);
  border-radius: 20px;
  border: 3px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover { background: #33333d; }

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  color: var(--text);
  text-wrap: balance;
}

h1 { font-size: clamp(2.7rem, 6vw, 4.6rem); line-height: 1.02; }
h2 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.06; }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); }
p { margin: 0 0 1rem; color: var(--text-soft); text-wrap: pretty; }

/* Emphasis heading fragment — solid worked-silver (no gradient-on-text) */
.metal-text {
  color: var(--silver-hi);
}

.accent-text { color: var(--accent); }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}
.container.narrow { max-width: var(--container-narrow); }

section { position: relative; }

.section-pad { padding: clamp(72px, 10vw, 128px) 0; }
.section-pad-sm { padding: clamp(56px, 7vw, 92px) 0; }

/* Headline-first section cadence — no per-section uppercase eyebrow. */
.section-head { max-width: 680px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { margin-bottom: 16px; }
.section-head p { font-size: 1.08rem; line-height: 1.65; color: var(--text-soft); margin-bottom: 0; }

/* ---------- Buttons ---------- */
.btn {
  --btn-py: 14px;
  --btn-px: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: var(--btn-py) var(--btn-px);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.005em;
  border-radius: 11px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.22s cubic-bezier(.2,.7,.3,1), box-shadow 0.22s ease, background 0.22s ease, border-color 0.22s ease;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn svg { width: 17px; height: 17px; flex-shrink: 0; }

.btn-primary {
  background: linear-gradient(180deg, #F6F6F8 0%, #C4C4CC 100%);
  color: #101014;
  box-shadow: 0 8px 24px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.7);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.15), inset 0 1px 0 rgba(255,255,255,0.8);
}
.btn-primary::after {
  content: "";
  position: absolute;
  top: 0; left: -60%;
  width: 40%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.65), transparent);
  transform: skewX(-18deg);
  transition: left 0.6s ease;
}
.btn-primary:hover::after { left: 130%; }

.btn-ghost {
  background: rgba(255,255,255,0.02);
  border-color: var(--border-strong);
  color: var(--text);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.28);
  transform: translateY(-2px);
}

.btn-lg { --btn-py: 17px; --btn-px: 32px; font-size: 1rem; }
.btn-block { width: 100%; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
}
.link-arrow svg { width: 16px; height: 16px; transition: transform 0.25s ease; }
.link-arrow:hover { color: var(--accent); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Navbar ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(10, 10, 12, 0.72);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--border);
}
.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-logo { display: flex; align-items: center; }
.nav-logo img { height: 30px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  display: block;
  padding: 9px 15px;
  font-size: 0.92rem;
  font-weight: 450;
  color: var(--text-muted);
  border-radius: 9px;
  transition: color 0.2s ease, background 0.2s ease;
}
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,0.04); }
.nav-links a.active { color: var(--text); }
.nav-links a.active::after {
  content: "";
  display: block;
  height: 1px;
  margin-top: 3px;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
}
.nav-menu { display: flex; align-items: center; gap: 24px; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  position: relative;
  width: 18px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.2s ease;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s ease;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle.open span { background: transparent; }
.nav-toggle.open span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-top: clamp(48px, 7vw, 88px);
  padding-bottom: clamp(64px, 9vw, 120px);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 15px 7px 11px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-strong);
  border-radius: 100px;
  font-size: 0.8rem;
  color: var(--text-soft);
  margin-bottom: 28px;
}
.hero-badge .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 10px var(--accent-2);
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}
.hero h1 { margin-bottom: 22px; }
.hero h1 .metal-text { display: inline; }
.hero-sub {
  font-size: 1.18rem;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 36px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }
.hero-trust {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  color: var(--text-dim);
  font-size: 0.82rem;
}
.hero-trust .item { display: flex; align-items: center; gap: 8px; }
.hero-trust svg { width: 15px; height: 15px; color: var(--silver-mid); }

/* Hero visual — animated vault crosshair */
.hero-visual {
  position: relative;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-visual::before {
  content: "";
  position: absolute;
  width: 72%; height: 72%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(123,140,255,0.10), transparent 70%);
  filter: blur(24px);
  animation: breathe 6s ease-in-out infinite;
}
@keyframes breathe {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.08); opacity: 1; }
}
.hero-emblem { width: 100%; height: 100%; position: relative; z-index: 1; }
.spin-slow { transform-origin: center; animation: spin 26s linear infinite; }
.spin-rev { transform-origin: center; animation: spin 40s linear infinite reverse; }
.sweep { transform-origin: center; animation: spin 8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.pulse-node { animation: node 3s ease-in-out infinite; }
@keyframes node { 0%,100% { opacity: 0.3; } 50% { opacity: 1; } }

/* ---------- Marquee / logos strip ---------- */
.platforms {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.012);
}
.platforms .container {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  justify-content: space-between;
  padding-top: 30px;
  padding-bottom: 30px;
}
.platforms .label {
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  font-family: var(--font-display);
}
.platforms .marks {
  display: flex;
  align-items: center;
  gap: 38px;
  flex-wrap: wrap;
}
.platforms .mark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 9px;
  transition: color 0.25s ease;
}
.platforms .mark:hover { color: var(--text); }
.platforms .mark svg { width: 20px; height: 20px; }

/* ---------- Vault ledger (audit register — replaces stat cliché) ---------- */
.ledger {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--surface-1), var(--bg-alt));
  box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255,255,255,0.05);
  overflow: hidden;
}
.ledger-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 18px 26px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.014);
}
.ledger-title {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--silver-hi);
}
.ledger-title .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 9px var(--accent-2);
}
.ledger-meta { font-size: 0.84rem; color: var(--text-muted); }
.ledger-rows { list-style: none; margin: 0; padding: 0; }
.ledger-row {
  display: grid;
  grid-template-columns: 1fr auto minmax(96px, auto);
  align-items: baseline;
  gap: 20px;
  padding: 20px 26px;
  border-bottom: 1px solid var(--hairline);
}
.ledger-row:last-child { border-bottom: none; }
.lr-label {
  font-size: 0.98rem;
  color: var(--text-soft);
  align-self: center;
}
.lr-value {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.01em;
  color: var(--silver-hi);
  font-variant-numeric: tabular-nums;
  justify-self: end;
  text-align: right;
}
.lr-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  justify-self: end;
  align-self: center;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}
.lr-status svg { width: 14px; height: 14px; color: var(--accent-2); flex-shrink: 0; }

/* ---------- Generic grids ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.tag {
  font-size: 0.76rem;
  font-family: var(--font-body);
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--text-soft);
  padding: 4px 11px;
  border: 1px solid var(--border-strong);
  border-radius: 100px;
  background: rgba(255,255,255,0.02);
}

/* Hex icon (shared) */
.ico-hex {
  position: relative;
  width: 54px; height: 54px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.ico-hex svg.hexbg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  color: rgba(123,140,255,0.14);
  transition: color 0.3s ease;
}
.ico-hex .glyph {
  position: relative;
  z-index: 1;
  width: 24px; height: 24px;
  color: var(--silver-hi);
}

/* ---------- Disciplines: asymmetric hierarchy, not an identical grid ----------
   One flagship discipline is emphasized; the rest are compact.
   Below sits the "foundation" band (the vault infrastructure). */
.disc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.disc {
  position: relative;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, var(--surface-1) 0%, var(--bg-alt) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform 0.3s var(--ease-out), border-color 0.3s ease, box-shadow 0.3s ease;
}
.disc:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}
.disc:hover .ico-hex svg.hexbg { color: rgba(123,140,255,0.30); }
.disc .ico-hex { margin-bottom: 18px; }
.disc h3 { margin-bottom: 8px; font-size: 1.24rem; }
.disc p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 16px; }
.disc .tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: auto; }

/* Flagship discipline spans two columns and leads with more room */
.disc.feature { grid-column: span 2; }
.disc.feature .head {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 16px;
}
.disc.feature .ico-hex { margin-bottom: 0; width: 60px; height: 60px; }
.disc.feature h3 { font-size: 1.55rem; margin-bottom: 0; }
.disc.feature p { font-size: 1.02rem; max-width: 46ch; }

/* Foundation band — the vault infrastructure everything runs on */
.foundation {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 34px;
  margin-top: 20px;
  padding: 32px 34px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background:
    radial-gradient(600px 200px at 12% 0%, rgba(123,140,255,0.07), transparent 62%),
    linear-gradient(180deg, var(--surface-2), var(--bg-alt));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}
.foundation .f-emblem { width: 84px; height: 84px; color: var(--silver-mid); flex-shrink: 0; }
.foundation .f-emblem svg { width: 100%; height: 100%; }
.foundation h3 { font-size: 1.4rem; margin-bottom: 6px; }
.foundation p { color: var(--text-muted); font-size: 0.98rem; margin: 0; max-width: 62ch; }
.foundation .f-tag {
  align-self: center;
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 6px 13px;
  border: 1px solid rgba(123,140,255,0.32);
  border-radius: 100px;
  white-space: nowrap;
}

/* ---------- Process steps ---------- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 30px 26px;
  background: linear-gradient(180deg, var(--surface-1), var(--bg-alt));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.step:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.step .step-n {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.01em;
  color: var(--silver-hi);
  font-variant-numeric: tabular-nums;
  margin-bottom: 16px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.step .step-n::before {
  content: "";
  width: 10px; height: 10px;
  border-radius: 50%;
  border: 2px solid var(--silver-lo);
  transform: translateY(-6px);
}
.step h3 { font-size: 1.18rem; margin-bottom: 9px; }
.step p { font-size: 0.92rem; color: var(--text-muted); margin: 0; }
.step .connector {
  position: absolute;
  top: 46px;
  right: -13px;
  width: 26px;
  color: var(--border-strong);
  z-index: 2;
}
.step:last-child .connector { display: none; }

/* ---------- Results / case cards ---------- */
.case-card {
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, var(--surface-1), var(--bg-alt));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.case-card:hover { transform: translateY(-5px); border-color: var(--border-strong); box-shadow: var(--shadow-md); }
.case-head {
  padding: 24px 26px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.case-head .sector { font-size: 0.78rem; color: var(--text-muted); letter-spacing: 0.14em; text-transform: uppercase; font-family: var(--font-display); }
.case-head .tag { color: var(--accent); border-color: rgba(123,140,255,0.3); }
.case-body { padding: 26px; flex: 1; display: flex; flex-direction: column; }
.case-body h3 { font-size: 1.22rem; margin-bottom: 8px; }
.case-body > p { font-size: 0.93rem; color: var(--text-muted); margin-bottom: 24px; }
.case-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: auto;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}
.case-metrics .m .v {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.01em;
  color: var(--silver-hi);
  font-variant-numeric: tabular-nums;
}
.case-metrics .m .k { font-size: 0.8rem; color: var(--text-muted); margin-top: 6px; }
.case-verify {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 0.76rem;
  letter-spacing: 0.03em;
  color: var(--text-muted);
}
.case-verify svg { width: 13px; height: 13px; color: var(--accent-2); }

/* ---------- Testimonials ---------- */
.quote-card {
  position: relative;
  background: linear-gradient(180deg, var(--surface-1), var(--bg-alt));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 30px 28px;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.quote-card:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.quote-card .stars { display: flex; gap: 3px; margin-bottom: 18px; color: var(--silver-hi); }
.quote-card .stars svg { width: 16px; height: 16px; }
.quote-card blockquote {
  margin: 0 0 24px;
  font-size: 1.06rem;
  line-height: 1.62;
  color: var(--text-soft);
  font-family: var(--font-body);
  font-weight: 400;
}
.quote-author { display: flex; align-items: center; gap: 13px; margin-top: auto; }
.quote-author .avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: #101014;
  background: var(--metal);
  flex-shrink: 0;
}
.quote-author .who .n { font-weight: 600; font-size: 0.94rem; color: var(--text); }
.quote-author .who .r { font-size: 0.8rem; color: var(--text-muted); }

/* ---------- CTA section ---------- */
.cta-panel {
  position: relative;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: clamp(48px, 7vw, 80px);
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(700px 400px at 50% -20%, rgba(123,140,255,0.10), transparent 68%),
    linear-gradient(180deg, var(--surface-1), var(--bg-alt));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}
.cta-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='96' viewBox='0 0 56 96'%3E%3Cpath d='M28 0L56 16v32L28 64 0 48V16z' fill='none' stroke='%23ffffff' stroke-opacity='0.04' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 56px 96px;
}
.cta-panel > * { position: relative; z-index: 1; }
.cta-panel h2 { margin-bottom: 18px; }
.cta-panel p { font-size: 1.1rem; color: var(--text-muted); max-width: 560px; margin: 0 auto 34px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, transparent, rgba(255,255,255,0.012));
  padding-top: 72px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 44px;
  padding-bottom: 56px;
}
.footer-brand img { height: 30px; margin-bottom: 20px; }
.footer-brand p { color: var(--text-muted); font-size: 0.92rem; max-width: 300px; margin-bottom: 22px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-muted);
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.footer-social a:hover { color: var(--text); border-color: var(--border-strong); background: rgba(255,255,255,0.04); }
.footer-social svg { width: 17px; height: 17px; }
.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 11px; }
.footer-col a { color: var(--text-muted); font-size: 0.92rem; }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--text-dim);
  font-size: 0.84rem;
}
.footer-bottom .legal-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-bottom a { color: var(--text-dim); }
.footer-bottom a:hover { color: var(--text-muted); }

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  padding: clamp(60px, 8vw, 104px) 0 clamp(40px, 5vw, 64px);
  text-align: center;
  position: relative;
  border-bottom: 1px solid var(--border);
}
.page-hero h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); margin-bottom: 20px; }
.page-hero p { font-size: 1.15rem; color: var(--text-soft); max-width: 640px; margin: 0 auto; line-height: 1.6; }
.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-dim);
  margin-bottom: 26px;
}
.breadcrumb a:hover { color: var(--text-soft); }
.breadcrumb span { color: var(--text-muted); }

/* ---------- Services detail (services.html) ---------- */
.svc-detail {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 50px;
  align-items: center;
  padding: clamp(48px, 6vw, 80px) 0;
  border-bottom: 1px solid var(--border);
}
.svc-detail:nth-child(even) .svc-visual { order: -1; }
.svc-detail .svc-cat {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--accent);
  margin-bottom: 14px;
}
.svc-detail h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 16px; }
.svc-detail > div > p { color: var(--text-muted); font-size: 1.02rem; margin-bottom: 26px; }
.svc-deliverables { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 12px; }
.svc-deliverables li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.96rem;
  color: var(--text-soft);
}
.svc-deliverables li svg {
  width: 20px; height: 20px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}
.svc-platforms { display: flex; flex-wrap: wrap; gap: 8px; }

.svc-visual {
  position: relative;
  aspect-ratio: 4/3.4;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(400px 300px at 70% 20%, rgba(123,140,255,0.12), transparent 60%),
    linear-gradient(180deg, var(--surface-1), var(--bg-alt));
  overflow: hidden;
  display: grid;
  place-items: center;
}
.svc-visual::after {
  content: "";
  position: absolute; inset: 0;
  opacity: 0.6;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='96' viewBox='0 0 56 96'%3E%3Cpath d='M28 0L56 16v32L28 64 0 48V16z' fill='none' stroke='%23ffffff' stroke-opacity='0.035' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 56px 96px;
}
.svc-visual .svc-emblem { position: relative; z-index: 1; width: 58%; color: var(--silver-mid); }
.svc-visual .svc-emblem svg { width: 100%; height: auto; }

/* ---------- About ---------- */
.about-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.about-intro .lead { font-size: 1.24rem; line-height: 1.55; color: var(--text-soft); font-family: var(--font-body); font-weight: 500; }
.about-figure {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 1/1;
  background:
    radial-gradient(circle at 50% 30%, rgba(123,140,255,0.14), transparent 60%),
    linear-gradient(180deg, var(--surface-1), var(--bg-alt));
  display: grid;
  place-items: center;
}
.about-figure img { width: 66%; filter: drop-shadow(0 20px 40px rgba(0,0,0,0.5)); }

.values-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.value-card {
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface-1), var(--bg-alt));
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.value-card:hover { border-color: var(--border-strong); transform: translateY(-4px); }
.value-card .v-ico {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 11px;
  background: rgba(123,140,255,0.12);
  color: var(--accent);
  margin-bottom: 20px;
}
.value-card .v-ico svg { width: 22px; height: 22px; }
.value-card h3 { font-size: 1.2rem; margin-bottom: 9px; }
.value-card p { color: var(--text-muted); font-size: 0.95rem; margin: 0; }

.philosophy {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: clamp(40px, 5vw, 64px);
  background:
    radial-gradient(600px 300px at 20% 0%, rgba(86,199,230,0.08), transparent 60%),
    linear-gradient(180deg, var(--surface-1), var(--bg-alt));
}
.philosophy .quote-mark { font-family: var(--font-display); font-size: 4rem; line-height: 0.6; color: var(--border-strong); }
.philosophy p { font-size: clamp(1.3rem, 2.4vw, 1.7rem); font-family: var(--font-display); line-height: 1.4; color: var(--text); letter-spacing: -0.01em; margin: 18px 0 0; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 44px; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 18px; }
.info-card {
  display: flex;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface-1), var(--bg-alt));
  transition: border-color 0.3s ease;
}
.info-card:hover { border-color: var(--border-strong); }
.info-card .i-ico {
  width: 44px; height: 44px;
  flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: 11px;
  background: rgba(123,140,255,0.12);
  color: var(--accent);
}
.info-card .i-ico svg { width: 21px; height: 21px; }
.info-card h4 { font-family: var(--font-display); font-size: 0.76rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-dim); margin: 2px 0 7px; }
.info-card a, .info-card address { color: var(--text-soft); font-style: normal; font-size: 0.98rem; line-height: 1.5; }
.info-card a:hover { color: var(--accent); }

.form-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 40px);
  background: linear-gradient(180deg, var(--surface-1), var(--bg-alt));
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.005em;
  color: var(--text-soft);
  margin-bottom: 8px;
}
.field label .req { color: var(--accent); }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 15px;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.96rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}
.field textarea { resize: vertical; min-height: 130px; }
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%238E8E99' stroke-width='1.6'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  padding-right: 42px;
  cursor: pointer;
}
.field input::placeholder,
.field textarea::placeholder { color: var(--text-dim); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(123,140,255,0.14);
  background: var(--bg-alt);
}
.field.invalid input,
.field.invalid select,
.field.invalid textarea { border-color: #ff6b6b; box-shadow: 0 0 0 3px rgba(255,107,107,0.12); }
.field .err {
  display: none;
  color: #ff8585;
  font-size: 0.8rem;
  margin-top: 6px;
}
.field.invalid .err { display: block; }
.form-note { font-size: 0.82rem; color: var(--text-dim); margin-top: 6px; }

.form-success {
  display: none;
  text-align: center;
  padding: 20px 0;
}
.form-success.show { display: block; animation: fade-up 0.5s ease both; }
.form-success .check {
  width: 68px; height: 68px;
  margin: 0 auto 22px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(86,199,230,0.14);
  color: var(--accent-2);
  border: 1px solid rgba(86,199,230,0.3);
}
.form-success .check svg { width: 32px; height: 32px; }
.form-success h3 { margin-bottom: 10px; }
.form-success p { color: var(--text-muted); max-width: 380px; margin: 0 auto; }

/* ---------- Legal pages ---------- */
.legal-layout { display: grid; grid-template-columns: 240px 1fr; gap: 56px; align-items: start; }
.legal-toc {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  background: var(--surface-1);
}
.legal-toc h4 { font-family: var(--font-display); font-size: 0.76rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-dim); margin: 0 0 14px; }
.legal-toc ul { list-style: none; margin: 0; padding: 0; }
.legal-toc li { margin-bottom: 3px; }
.legal-toc a {
  display: block;
  padding: 7px 11px;
  border-radius: 8px;
  font-size: 0.86rem;
  color: var(--text-muted);
  transition: color 0.2s ease, background 0.2s ease;
}
.legal-toc a:hover { color: var(--text); background: rgba(255,255,255,0.04); }

.legal-body { max-width: 720px; }
.legal-body .updated {
  display: inline-block;
  font-size: 0.82rem;
  color: var(--text-muted);
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 100px;
  margin-bottom: 34px;
}
.legal-body h2 {
  font-size: 1.5rem;
  margin: 48px 0 16px;
  padding-top: 10px;
  scroll-margin-top: calc(var(--nav-h) + 24px);
}
.legal-body h2:first-of-type { margin-top: 0; }
.legal-body h3 { font-size: 1.1rem; margin: 26px 0 10px; }
.legal-body p, .legal-body li { color: var(--text-soft); font-size: 0.98rem; line-height: 1.7; }
.legal-body ul { padding-left: 20px; margin-bottom: 18px; }
.legal-body li { margin-bottom: 9px; }
.legal-body a { color: var(--accent); }
.legal-body a:hover { text-decoration: underline; }
.legal-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0 24px;
  font-size: 0.9rem;
}
.legal-body th, .legal-body td {
  text-align: left;
  padding: 12px 14px;
  border: 1px solid var(--border);
}
.legal-body th { background: var(--surface-1); font-family: var(--font-display); font-weight: 500; color: var(--text); }
.legal-body td { color: var(--text-muted); }

/* ---------- FAQ / accordion (services) ---------- */
.faq { display: grid; gap: 12px; max-width: 800px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-1);
  overflow: hidden;
  transition: border-color 0.3s ease;
}
.faq-item.open { border-color: var(--border-strong); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  min-height: 44px;
  background: none;
  border: none;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}
.faq-q .plus { position: relative; width: 16px; height: 16px; flex-shrink: 0; }
.faq-q .plus::before,
.faq-q .plus::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: var(--accent);
  border-radius: 2px;
}
.faq-q .plus::before { width: 16px; height: 2px; }
.faq-q .plus::after { width: 2px; height: 16px; transition: transform 0.3s ease; }
.faq-item.open .faq-q .plus::after { transform: translate(-50%, -50%) scaleY(0); }
/* Height reveal via grid-template-rows (no layout-property thrash) */
.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s var(--ease-out);
}
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a > .faq-a-inner { overflow: hidden; min-height: 0; }
.faq-a-inner { padding: 0 24px 22px; color: var(--text-soft); font-size: 0.98rem; line-height: 1.65; }

/* ---------- Reveal animation ----------
   Visible by default; only hidden once JS confirms it can reveal them.
   No-JS / headless renders show content immediately. */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  will-change: opacity, transform;
}
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal[data-delay="1"] { transition-delay: 0.08s; }
.js .reveal[data-delay="2"] { transition-delay: 0.16s; }
.js .reveal[data-delay="3"] { transition-delay: 0.24s; }
.js .reveal[data-delay="4"] { transition-delay: 0.32s; }

@keyframes fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .js .reveal { opacity: 1 !important; transform: none !important; }
  .hero-badge .dot, .ledger-title .dot { animation: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-visual { max-width: 440px; margin: 0 auto; order: -1; }
  .hero-sub { max-width: none; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .step .connector { display: none; }
  .disc-grid { grid-template-columns: repeat(2, 1fr); }
  .disc.feature { grid-column: span 2; }
  .disc.feature .head { align-items: center; }
  .foundation { grid-template-columns: auto 1fr; gap: 24px 26px; }
  .foundation .f-tag { grid-column: 2; justify-self: start; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer-brand { grid-column: 1 / -1; }
  .svc-detail { grid-template-columns: 1fr; gap: 32px; }
  .svc-detail:nth-child(even) .svc-visual { order: 0; }
  .svc-visual { max-width: 440px; }
  .about-intro { grid-template-columns: 1fr; gap: 36px; }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .legal-layout { grid-template-columns: 1fr; gap: 32px; }
  .legal-toc { position: static; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: fixed;
    inset: var(--nav-h) 0 auto;
    background: rgba(10,10,12,0.97);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 20px 28px 32px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
    z-index: 99;
  }
  .nav-menu.open { transform: none; opacity: 1; visibility: visible; }
  .nav-menu .nav-links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    width: 100%;
  }
  .nav-menu .nav-links a { padding: 14px 12px; font-size: 1.05rem; border-radius: 10px; }
  .nav-menu .nav-links a.active::after { display: none; }
  .nav-menu .nav-links a.active { background: rgba(255,255,255,0.05); }
  .nav-menu .btn { display: inline-flex; margin-top: 14px; }
}

@media (max-width: 620px) {
  .container { padding: 0 20px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .disc-grid { grid-template-columns: 1fr; }
  .disc.feature { grid-column: auto; }
  .disc.feature .head { flex-wrap: wrap; }
  .foundation {
    grid-template-columns: 1fr;
    gap: 18px;
    text-align: left;
    padding: 26px 22px;
  }
  .foundation .f-tag { justify-self: start; }
  .form-row { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .case-metrics { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .ledger-row {
    grid-template-columns: 1fr auto;
    gap: 6px 16px;
  }
  .lr-value { grid-row: 1 / 3; grid-column: 2; align-self: center; }
  .lr-label { grid-column: 1; }
  .lr-status { grid-column: 1; justify-self: start; }
}
