/* =========================================================================
   Vynux - Design System
   Automation & data engineering, build-to-spec.
   ========================================================================= */

/* ---------- Fonts ---------- */
@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;450;500;600;700&display=swap");

/* ---------- Theme tokens ---------- */
:root {
  --font-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Code", "Roboto Mono", monospace;

  /* Brand */
  --brand: #4f9eff;
  --brand-2: #7c5cff;

  /* Spacing / sizing */
  --container: 1200px;
  --container-narrow: 860px;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.6s;
}

/* Dark (default) */
:root,
[data-theme="dark"] {
  color-scheme: dark;
  --bg: #08080a;
  --bg-grad-1: rgba(79, 158, 255, 0.10);
  --bg-grad-2: rgba(124, 92, 255, 0.08);
  --surface: #0f0f13;
  --surface-2: #16161c;
  --surface-3: #1d1d25;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.15);
  --text: #f3f3f6;
  --text-muted: #a6a6b2;
  --text-faint: #6e6e7a;
  --accent: #4f9eff;
  --accent-strong: #6fb0ff;
  --accent-contrast: #04122b;
  --accent-soft: rgba(79, 158, 255, 0.13);
  --glow: rgba(79, 158, 255, 0.30);
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.8);
  --shadow-card: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 20px 50px -30px rgba(0, 0, 0, 0.9);
  --grid-line: rgba(255, 255, 255, 0.045);
}

/* Light */
[data-theme="light"] {
  color-scheme: light;
  --bg: #ffffff;
  --bg-grad-1: rgba(79, 158, 255, 0.12);
  --bg-grad-2: rgba(124, 92, 255, 0.08);
  --surface: #ffffff;
  --surface-2: #f5f6f9;
  --surface-3: #eef0f4;
  --border: rgba(15, 17, 26, 0.10);
  --border-strong: rgba(15, 17, 26, 0.16);
  --text: #0d0e13;
  --text-muted: #565a66;
  --text-faint: #8b8f9c;
  --accent: #1f6feb;
  --accent-strong: #1a5fd0;
  --accent-contrast: #ffffff;
  --accent-soft: rgba(31, 111, 235, 0.10);
  --glow: rgba(79, 158, 255, 0.22);
  --shadow: 0 24px 60px -28px rgba(20, 30, 55, 0.30);
  --shadow-card: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 18px 44px -30px rgba(20, 30, 55, 0.35);
  --grid-line: rgba(15, 17, 26, 0.05);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
}
body.nav-open { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
ul { list-style: none; padding: 0; }

::selection { background: var(--accent); color: var(--accent-contrast); }

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

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--text);
}
.h-display { font-size: clamp(2.6rem, 6vw, 4.6rem); letter-spacing: -0.035em; }
.h-1 { font-size: clamp(2.1rem, 4.4vw, 3.2rem); }
.h-2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.h-3 { font-size: clamp(1.2rem, 1.8vw, 1.45rem); }
p { color: var(--text-muted); }
.lead { font-size: clamp(1.08rem, 1.6vw, 1.3rem); color: var(--text-muted); line-height: 1.6; }

.text-gradient {
  background: linear-gradient(105deg, var(--text) 30%, var(--accent) 75%, var(--brand-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.accent { color: var(--accent); }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(1.2rem, 4vw, 2.5rem); }
.section { padding-block: clamp(4.5rem, 9vw, 8rem); position: relative; }
.section-narrow { max-width: var(--container-narrow); margin-inline: auto; }
.center { text-align: center; }
.stack-sm > * + * { margin-top: 0.6rem; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
}
.eyebrow::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.section-head { max-width: 640px; }
.section-head.center { margin-inline: auto; }
.section-head .eyebrow { margin-bottom: 1.1rem; }
.section-head p { margin-top: 1rem; font-size: 1.08rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  font-weight: 550;
  font-size: 0.97rem;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), box-shadow 0.3s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 1.05em; height: 1.05em; }

.btn-primary {
  background: var(--accent);
  color: var(--accent-contrast);
  box-shadow: 0 8px 24px -10px var(--glow), 0 0 0 1px rgba(255,255,255,0.04) inset;
}
.btn-primary:hover {
  background: var(--accent-strong);
  box-shadow: 0 14px 34px -12px var(--glow);
}
.btn-ghost {
  border-color: var(--border-strong);
  color: var(--text);
  background: var(--surface-2);
}
.btn-ghost:hover { border-color: var(--accent); background: var(--surface-3); }
.btn-link {
  padding: 0;
  color: var(--accent);
  font-weight: 550;
  gap: 0.4rem;
}
.btn-link:hover { transform: none; }
.btn-link svg { width: 1.05em; height: 1.05em; transition: transform 0.25s var(--ease); }
.btn-link:hover svg { transform: translateX(4px); }
.btn-lg { padding: 1rem 1.8rem; font-size: 1.05rem; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: saturate(150%) blur(16px);
  -webkit-backdrop-filter: saturate(150%) blur(16px);
  border-bottom-color: var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 72px;
}
.brand { display: inline-flex; align-items: center; gap: 0.65rem; font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; letter-spacing: -0.02em; }
.brand-mark { width: 34px; height: 34px; border-radius: 9px; box-shadow: 0 4px 14px -6px var(--glow); flex-shrink: 0; }
.brand:hover .brand-mark { animation: pulse 1.2s var(--ease); }

.nav-links { display: flex; align-items: center; gap: 0.35rem; }
.nav-links a {
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--text); background: var(--surface-2); }
.nav-links a.active { color: var(--text); }
.nav-links a.active::after {
  content: "";
  display: block;
  height: 2px;
  width: 18px;
  margin: 2px auto 0;
  border-radius: 2px;
  background: var(--accent);
}
.nav-actions { display: flex; align-items: center; gap: 0.6rem; }

.theme-toggle {
  width: 40px; height: 40px;
  border-radius: 999px;
  border: 1px solid var(--border);
  display: grid; place-items: center;
  color: var(--text-muted);
  background: var(--surface);
  transition: color 0.2s, border-color 0.2s, transform 0.4s var(--ease);
}
.theme-toggle:hover { color: var(--text); border-color: var(--border-strong); }
.theme-toggle:active { transform: rotate(40deg); }
.theme-toggle svg { width: 19px; height: 19px; }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-theme="light"] .theme-toggle .icon-sun { display: block; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }

.nav-burger { display: none; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--border); color: var(--text); }
.nav-burger span { display: block; width: 18px; height: 2px; background: currentColor; margin: 3px auto; border-radius: 2px; transition: transform 0.3s var(--ease), opacity 0.2s; }
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 72px 0 0;
  z-index: 99;
  background: var(--bg);
  padding: 1.5rem clamp(1.2rem, 4vw, 2.5rem) 2.5rem;
  transform: translateY(-12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.mobile-menu.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
.mobile-menu a {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 500;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.mobile-menu a span { color: var(--text-faint); font-family: var(--font-mono); font-size: 0.9rem; }
.mobile-menu .btn { margin-top: 1.4rem; }

/* ---------- Background ornaments ---------- */
.bg-ornament {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.bg-ornament .glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.9;
}
.glow-a { width: 620px; height: 620px; top: -260px; right: -120px; background: var(--bg-grad-1); }
.glow-b { width: 540px; height: 540px; bottom: -280px; left: -160px; background: var(--bg-grad-2); }
.grid-overlay {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
}

/* ---------- Hero ---------- */
.hero { position: relative; padding-block: clamp(4rem, 9vw, 7.5rem) clamp(3.5rem, 7vw, 6rem); overflow: hidden; }
.hero .container { position: relative; z-index: 1; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.45rem 0.45rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.8rem;
}
.hero-badge b { color: var(--text); font-weight: 550; }
.hero-badge .tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  background: var(--accent-soft);
  color: var(--accent);
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
}
.hero h1 { margin-bottom: 1.4rem; }
.hero .lead { max-width: 36ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2.2rem; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 1.6rem; margin-top: 2.6rem; }
.hero-meta div { }
.hero-meta dt { font-family: var(--font-display); font-size: 1.7rem; font-weight: 600; color: var(--text); letter-spacing: -0.02em; }
.hero-meta dd { font-size: 0.85rem; color: var(--text-muted); }

/* Hero visual - animated signal panel */
.hero-visual {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  box-shadow: var(--shadow-card);
  padding: 1.4rem;
  overflow: hidden;
}
.hero-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 80% at 80% 0%, var(--accent-soft), transparent 60%);
  pointer-events: none;
}
.viz-head { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1rem; position: relative; }
.viz-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--surface-3); }
.viz-dot:nth-child(1) { background: #ff5f57; }
.viz-dot:nth-child(2) { background: #febc2e; }
.viz-dot:nth-child(3) { background: #28c840; }
.viz-head span { margin-left: auto; font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-faint); }
.viz-chart { width: 100%; height: auto; border-radius: var(--radius); background: var(--bg); border: 1px solid var(--border); }
.signal-line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
  animation: draw 2.6s var(--ease) 0.3s forwards;
  filter: drop-shadow(0 0 8px var(--glow));
}
.signal-fill { fill: url(#vfill); opacity: 0; animation: fadeIn 1.2s ease 1.6s forwards; }
.signal-node { fill: var(--accent); opacity: 0; animation: popIn 0.5s var(--ease) 2.7s forwards; }
.viz-rows { display: grid; gap: 0.55rem; margin-top: 1rem; position: relative; }
.viz-row { display: flex; align-items: center; gap: 0.7rem; font-family: var(--font-mono); font-size: 0.76rem; color: var(--text-muted); }
.viz-row .led { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--glow); flex-shrink: 0; }
.viz-row .val { margin-left: auto; color: var(--text); }

@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadeIn { to { opacity: 1; } }
@keyframes popIn { 0% { opacity: 0; transform: scale(0); } 70% { transform: scale(1.4); } 100% { opacity: 1; transform: scale(1); } }
@keyframes pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.12); } }

/* ---------- Logo / tech marquee ---------- */
.marquee-wrap { border-block: 1px solid var(--border); padding-block: 2.2rem; overflow: hidden; }
.marquee-label { text-align: center; font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 1.5rem; }
.marquee { display: flex; gap: 3.5rem; width: max-content; animation: marquee 28s linear infinite; }
.marquee-wrap:hover .marquee { animation-play-state: paused; }
.marquee span {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text-faint);
  white-space: nowrap;
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.marquee span::before { content: "›"; color: var(--accent); }
.marquee span:hover { color: var(--text); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Cards / grid ---------- */
.grid { display: grid; gap: 1.2rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.7rem;
  transition: transform 0.35s var(--ease), border-color 0.3s, box-shadow 0.35s var(--ease);
  overflow: hidden;
}
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(120% 100% at 0% 0%, var(--accent-soft), transparent 55%);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
  pointer-events: none;
}
.card:hover { transform: translateY(-5px); border-color: var(--border-strong); box-shadow: var(--shadow-card); }
.card:hover::after { opacity: 1; }
.card .card-body { position: relative; z-index: 1; }
.card h3 { margin-bottom: 0.6rem; font-size: 1.22rem; }
.card p { font-size: 0.96rem; }

.card-icon {
  width: 48px; height: 48px;
  border-radius: 13px;
  display: grid; place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 1.2rem;
  border: 1px solid var(--border);
}
.card-icon svg { width: 24px; height: 24px; }

.card-list { margin-top: 1.1rem; display: grid; gap: 0.5rem; }
.card-list li { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.9rem; color: var(--text-muted); }
.card-list li::before { content: ""; width: 6px; height: 6px; margin-top: 0.5rem; border-radius: 50%; background: var(--accent); flex-shrink: 0; }

.card-num {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.15rem 0.6rem;
  display: inline-block;
  margin-bottom: 1rem;
}

/* Feature row (alternating) */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.feature-row + .feature-row { margin-top: clamp(3.5rem, 7vw, 6rem); }
.feature-row.reverse .feature-media { order: -1; }
.feature-media {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  box-shadow: var(--shadow-card);
  padding: 1.6rem;
  min-height: 280px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* ---------- Stats band ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.stat { background: var(--surface); padding: 1.8rem; text-align: center; }
.stat dt { font-family: var(--font-display); font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 600; letter-spacing: -0.03em; }
.stat dd { color: var(--text-muted); font-size: 0.9rem; margin-top: 0.3rem; }

/* ---------- Process / steps ---------- */
.steps { display: grid; gap: 1.2rem; grid-template-columns: repeat(3, 1fr); counter-reset: step; }
.step { position: relative; padding: 1.7rem; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.step-num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 600;
  color: var(--accent);
  opacity: 0.85;
  line-height: 1;
  margin-bottom: 1rem;
  display: block;
}
.step h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.step p { font-size: 0.94rem; }

/* ---------- Tech stack chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.92rem;
  color: var(--text);
  font-weight: 500;
  transition: border-color 0.2s, transform 0.2s var(--ease), color 0.2s;
}
.chip:hover { border-color: var(--accent); transform: translateY(-2px); }
.chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(120% 140% at 80% 0%, var(--accent-soft), transparent 55%),
    linear-gradient(180deg, var(--surface), var(--surface-2));
  padding: clamp(2.5rem, 6vw, 4.5rem);
  text-align: center;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 80% at 50% 50%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 50%, #000, transparent 75%);
  pointer-events: none;
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { margin-bottom: 1rem; }
.cta-band p { max-width: 52ch; margin-inline: auto; }
.cta-band .hero-actions { justify-content: center; }

/* ---------- Contact ---------- */
.contact-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: clamp(1.6rem, 4vw, 2.6rem);
  box-shadow: var(--shadow-card);
}
.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-block: 0.4rem 1.4rem;
}
.contact-email:hover { color: var(--accent); }
.info-list { display: grid; gap: 1.3rem; }
.info-list .info-item { display: flex; gap: 0.9rem; align-items: flex-start; }
.info-list .info-item .card-icon { margin-bottom: 0; width: 42px; height: 42px; }
.info-list .info-item h4 { font-size: 1rem; margin-bottom: 0.2rem; }
.info-list .info-item p { font-size: 0.92rem; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 0.8rem; }
.faq details {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 0.4rem 1.3rem;
  transition: border-color 0.2s;
}
.faq details[open] { border-color: var(--border-strong); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 1rem 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.05rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--accent); transition: transform 0.25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 1.1rem; font-size: 0.96rem; }

/* ---------- Page hero (interior pages) ---------- */
.page-hero { position: relative; padding-block: clamp(3.5rem, 7vw, 6rem) clamp(2rem, 4vw, 3rem); overflow: hidden; }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { margin-block: 1.2rem 1.2rem; max-width: 18ch; }
.page-hero .lead { max-width: 60ch; }
.breadcrumb { font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-faint); }
.breadcrumb a:hover { color: var(--accent); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--surface); margin-top: 2rem; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-block: clamp(3rem, 6vw, 4.5rem) 2.5rem;
}
.footer-brand .brand { margin-bottom: 1rem; }
.footer-brand p { font-size: 0.92rem; max-width: 32ch; }
.footer-col h4 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-faint); margin-bottom: 1.1rem; font-family: var(--font-body); font-weight: 600; }
.footer-col ul { display: grid; gap: 0.7rem; }
.footer-col a { color: var(--text-muted); font-size: 0.94rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-block: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.86rem;
  color: var(--text-faint);
}
.footer-bottom .made { display: inline-flex; align-items: center; gap: 0.5rem; }
.footer-bottom .made .led { width: 7px; height: 7px; border-radius: 50%; background: #28c840; box-shadow: 0 0 8px #28c84088; }

/* ---------- Reveal animation ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}
[data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- Utilities ---------- */
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.mb-2 { margin-bottom: 2rem; }
.muted { color: var(--text-muted); }
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: var(--accent-contrast);
  padding: 0.7rem 1.2rem; border-radius: 0 0 10px 0; z-index: 200; font-weight: 600;
}
.skip-link:focus { left: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: 2; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .feature-row { grid-template-columns: 1fr; }
  .feature-row.reverse .feature-media { order: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .nav-links, .nav-actions .btn { display: none; }
  .nav-burger { display: block; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  body { font-size: 16px; }
  .grid-4 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .hero-meta { gap: 1.2rem; }
}
