/* ==========================================================================
   NULLSTACK — design tokens
   ========================================================================== */
:root {
  --bg: #07080c;
  --bg-elevated: #0d0f16;
  --surface: #12141d;
  --surface-2: #171a24;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #eceef3;
  --text-dim: #9aa1b2;
  --text-faint: #5d6377;

  --accent-1: #00d4ff;
  --accent-2: #7c5cff;
  --accent-3: #6df0c2;
  --gradient: linear-gradient(120deg, var(--accent-1), var(--accent-2));
  --gradient-soft: linear-gradient(120deg, rgba(0, 212, 255, 0.14), rgba(124, 92, 255, 0.14));

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;

  --font-display: "Space Grotesk", "Inter", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --shadow-glow: 0 0 0 1px var(--border), 0 20px 60px -20px rgba(0, 212, 255, 0.25);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Light theme overrides. Applied via data-theme="light" on <html>, toggled
   by theme.js and persisted in localStorage. The accent hues stay on-brand
   but are deepened slightly so gradient text and badges keep enough
   contrast against a white background. The code terminal is intentionally
   NOT themed here — see .terminal further down, it always stays dark. */
:root[data-theme="light"] {
  --bg: #f4f6fb;
  --bg-elevated: #ffffff;
  --surface: #ffffff;
  --surface-2: #eef1f7;
  --border: rgba(10, 15, 30, 0.08);
  --border-strong: rgba(10, 15, 30, 0.14);
  --text: #12141d;
  --text-dim: #4b5266;
  --text-faint: #767d92;

  --accent-1: #0091b8;
  --accent-2: #6a3fd9;
  --accent-3: #0f9e6e;
  --gradient-soft: linear-gradient(120deg, rgba(0, 145, 184, 0.1), rgba(106, 63, 217, 0.1));

  --shadow-glow: 0 0 0 1px var(--border), 0 20px 60px -20px rgba(0, 145, 184, 0.18);
}
:root[data-theme="light"] .blob { opacity: 0.14; }
:root[data-theme="light"] .grid-overlay {
  background-image:
    linear-gradient(to right, rgba(10, 15, 30, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(10, 15, 30, 0.05) 1px, transparent 1px);
}
:root[data-theme="light"] .noise-overlay { opacity: 0.02; }
:root[data-theme="light"] .form-result.is-error { color: #c62828; }

/* ==========================================================================
   Reset & base
   ========================================================================== */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1em; color: var(--text-dim); }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }
img, svg { display: block; max-width: 100%; }

::selection { background: var(--accent-2); color: #fff; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--surface-2); border-radius: 10px; border: 2px solid var(--bg); }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow { max-width: 800px; }

/* ==========================================================================
   Scroll progress bar
   ========================================================================== */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: var(--gradient);
  z-index: 300;
  transition: width 0.1s linear;
}

/* ==========================================================================
   Animated background
   ========================================================================== */
.bg-mesh {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: var(--bg);
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.35;
  will-change: transform;
}
.blob-1 {
  width: 520px; height: 520px;
  top: -160px; left: -120px;
  background: var(--accent-1);
  animation: float-1 22s ease-in-out infinite;
}
.blob-2 {
  width: 460px; height: 460px;
  top: 30%; right: -160px;
  background: var(--accent-2);
  animation: float-2 26s ease-in-out infinite;
}
.blob-3 {
  width: 380px; height: 380px;
  bottom: -140px; left: 35%;
  background: var(--accent-3);
  opacity: 0.22;
  animation: float-3 30s ease-in-out infinite;
}
@keyframes float-1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(60px, 80px) scale(1.15); }
}
@keyframes float-2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-70px, 50px) scale(1.1); }
}
@keyframes float-3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, -60px) scale(1.2); }
}
.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 40%, transparent 100%);
}
.noise-overlay {
  position: absolute;
  inset: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}
.cursor-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(600px circle at var(--x, 50%) var(--y, 20%), rgba(0, 212, 255, 0.07), transparent 45%);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), filter 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--gradient);
  color: #06070a;
  position: relative;
  overflow: hidden;
}
/* Note: .btn-primary needs overflow:hidden to clip the ::after shine sweep
   below to the pill shape. A same-element box-shadow would get clipped by
   that overflow, so the hover glow uses drop-shadow(), which is not
   affected by the element's own overflow. */
.btn-primary:hover { transform: translateY(-2px); filter: drop-shadow(0 10px 18px rgba(0, 212, 255, 0.45)); }
.btn-primary::after {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 45%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: skewX(-20deg);
  transition: left 0.65s var(--ease);
}
.btn-primary:hover::after { left: 125%; }
.btn-magnetic { will-change: transform; }
.btn-ghost {
  background: rgba(255,255,255,0.03);
  border-color: var(--border-strong);
  color: var(--text);
}
.btn-ghost:hover { background: rgba(255,255,255,0.07); transform: translateY(-2px); }
.btn-sm { padding: 9px 18px; font-size: 0.85rem; }
.btn-lg { padding: 15px 30px; font-size: 1rem; }
.btn-block { width: 100%; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(7, 8, 12, 0.65);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}
.logo-mark {
  font-family: var(--font-mono);
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.main-nav {
  display: flex;
  gap: 30px;
}
.main-nav a {
  font-size: 0.92rem;
  color: var(--text-dim);
  transition: color 0.2s;
  position: relative;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 1px;
  background: var(--gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}
.main-nav a:hover { color: var(--text); }
.main-nav a:hover::after, .main-nav a.is-active::after { transform: scaleX(1); }
.main-nav a.is-active { color: var(--text); }
.header-actions { display: flex; align-items: center; gap: 16px; }

.lang-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 6px 12px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-faint);
}
.lang-opt { padding: 2px 4px; transition: color 0.2s; }
.lang-opt.is-active { color: var(--text); font-weight: 600; }
.lang-sep { opacity: 0.4; }

.theme-switch {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: none;
  border: 1px solid var(--border-strong);
  color: var(--text-dim);
  transition: border-color 0.2s, color 0.2s, transform 0.2s;
}
.theme-switch:hover { border-color: var(--accent-1); color: var(--accent-1); transform: rotate(12deg); }
.theme-switch svg { width: 17px; height: 17px; }
.theme-switch .icon-moon { display: none; }
:root[data-theme="light"] .theme-switch .icon-sun { display: none; }
:root[data-theme="light"] .theme-switch .icon-moon { display: block; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.25s, opacity 0.25s; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { padding: 96px 0 40px; position: relative; }
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.team-badge {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.team-avatars { display: flex; }
.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: #06070a;
  background: var(--gradient);
  border: 2px solid var(--bg);
  margin-left: -10px;
  opacity: 0;
  transform: scale(0.4);
  animation: avatar-pop 0.5s var(--ease) forwards;
  animation-delay: calc(var(--i, 0) * 0.12s + 0.3s);
}
.avatar:first-child { margin-left: 0; }
.avatar-more { background: var(--surface-2); color: var(--text-dim); border-color: var(--border-strong); }
@keyframes avatar-pop {
  to { opacity: 1; transform: scale(1); }
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-strong);
  font-size: 0.82rem;
  color: var(--text-dim);
}
.badge-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent-3);
  box-shadow: 0 0 0 0 rgba(109, 240, 194, 0.6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(109, 240, 194, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(109, 240, 194, 0); }
  100% { box-shadow: 0 0 0 0 rgba(109, 240, 194, 0); }
}

.hero-title {
  font-size: clamp(2.1rem, 4.4vw, 3.5rem);
  margin-bottom: 22px;
}
.text-gradient {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 200% auto;
  animation: gradient-shift 6s ease infinite;
}
@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero-subtitle { font-size: 1.08rem; max-width: 560px; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 16px; margin-bottom: 48px; flex-wrap: wrap; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 28px;
}
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat-value {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text);
}
.stat-label { font-size: 0.78rem; color: var(--text-faint); max-width: 120px; }

/* Terminal visual */
.hero-visual { position: relative; }
/* The terminal card is deliberately always dark, like a code editor,
   regardless of the site theme — colors are hardcoded rather than pulled
   from the theme variables. */
.terminal {
  background: #0d0f16;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.09), 0 20px 60px -20px rgba(0, 212, 255, 0.25);
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: #12141d;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}
.dot { width: 11px; height: 11px; border-radius: 50%; }
.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }
.terminal-title { margin-left: 8px; font-family: var(--font-mono); font-size: 0.75rem; color: #5d6377; }
.terminal-body {
  margin: 0;
  padding: 24px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.7;
  color: #c3e8ff;
  min-height: 220px;
  white-space: pre-wrap;
  word-break: break-word;
}
.cursor { color: #6df0c2; animation: blink 1s step-start infinite; }
@keyframes blink { 50% { opacity: 0; } }

.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  box-shadow: 0 20px 40px -18px rgba(0,0,0,0.6);
  animation: drift 5s ease-in-out infinite;
}
.float-card strong { display: block; font-size: 0.82rem; }
.float-card small { color: var(--text-faint); }
.float-icon { font-size: 1.1rem; color: var(--accent-3); }
.float-icon-alt { color: var(--accent-1); }
.float-card-1 { top: -18px; right: -14px; animation-delay: 0.3s; }
.float-card-2 { bottom: 10px; left: -24px; animation-delay: 1.1s; }
@keyframes drift {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Marquee */
.marquee {
  margin-top: 56px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  padding: 20px 0;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}
.marquee-track {
  display: flex;
  gap: 56px;
  width: max-content;
  animation: marquee 24s linear infinite;
  font-family: var(--font-mono);
  color: var(--text-faint);
  font-size: 0.95rem;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ==========================================================================
   Sections
   ========================================================================== */
.section { padding: 110px 0; position: relative; }
.section-alt { background: linear-gradient(180deg, transparent, rgba(255,255,255,0.015) 10%, rgba(255,255,255,0.015) 90%, transparent); }
.section-head { max-width: 640px; margin-bottom: 56px; }
.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-1);
  margin-bottom: 14px;
}
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.section-sub { font-size: 1.02rem; margin-top: 12px; }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Stagger the entrance of grid children so cards/plans pop in one after
   another instead of all at once. */
.grid > .reveal:nth-child(1) { --delay: 0; }
.grid > .reveal:nth-child(2) { --delay: 1; }
.grid > .reveal:nth-child(3) { --delay: 2; }
.grid > .reveal:nth-child(4) { --delay: 3; }
.grid > .reveal:nth-child(5) { --delay: 4; }
.grid > .reveal:nth-child(6) { --delay: 5; }
.grid > .reveal:nth-child(7) { --delay: 6; }
.grid > .reveal:nth-child(8) { --delay: 7; }
.grid > .reveal:nth-child(9) { --delay: 8; }

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.card:hover { border-color: var(--border-strong); background: var(--surface-2); }
.card-icon {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: var(--gradient-soft);
  color: var(--accent-1);
  margin-bottom: 18px;
}
.card-icon svg { width: 22px; height: 22px; }
.card h3 { font-size: 1.08rem; margin-bottom: 8px; }
.card p { font-size: 0.92rem; margin-bottom: 0; }

/* Stack */
.stack-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.stack-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 22px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.78rem;
  color: var(--text-dim);
  text-align: center;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease);
}
.stack-badge:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.stack-mono {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--gradient-soft);
  border-radius: 10px;
  padding: 6px 12px;
}

/* Timeline */
.timeline { display: flex; flex-direction: column; gap: 0; max-width: 760px; }
.timeline-item {
  display: flex;
  gap: 26px;
  padding: 28px 0;
  border-top: 1px solid var(--border);
}
.timeline-item:last-child { border-bottom: 1px solid var(--border); }
.timeline-index {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 1px var(--border-strong);
  min-width: 56px;
}
.timeline-item h3 { font-size: 1.05rem; margin-bottom: 6px; }
.timeline-item p { margin-bottom: 0; font-size: 0.92rem; }

/* Cases */
.case-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 30px;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease);
}
.case-card:hover { border-color: var(--accent-1); }
.case-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.case-tags span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  color: var(--text-faint);
}
.case-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.case-metric {
  font-size: 0.92rem;
  color: var(--accent-3);
  margin: 0;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
}

/* Pricing */
.pricing-grid { align-items: stretch; }
.plan {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease);
}
.plan:hover { transform: translateY(-6px); }
.plan-featured {
  border-color: var(--accent-1);
  background: linear-gradient(180deg, rgba(0,212,255,0.06), var(--surface) 40%);
  animation: plan-glow 3.2s ease-in-out infinite;
}
.plan-featured:hover { animation-play-state: paused; }
@keyframes plan-glow {
  0%, 100% { box-shadow: 0 0 0 1px var(--accent-1), 0 20px 50px -22px rgba(0, 212, 255, 0.35); }
  50% { box-shadow: 0 0 0 1px var(--accent-2), 0 26px 60px -20px rgba(124, 92, 255, 0.5); }
}
.plan-badge {
  position: absolute;
  top: -13px; left: 30px;
  background: var(--gradient);
  color: #06070a;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 999px;
}
.plan h3 { font-family: var(--font-mono); font-size: 1rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.04em; }
.plan-price { font-size: 1.9rem; font-weight: 700; font-family: var(--font-display); margin-bottom: 10px; }
.plan-desc { font-size: 0.9rem; margin-bottom: 22px; min-height: 44px; }
.plan-features { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; flex: 1; }
.plan-features li {
  font-size: 0.88rem;
  color: var(--text-dim);
  padding-left: 24px;
  position: relative;
}
.plan-features li::before {
  content: "";
  position: absolute;
  left: 0; top: 6px;
  width: 14px; height: 14px;
  border-radius: 4px;
  background: var(--gradient-soft);
  border: 1px solid var(--accent-1);
}

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  overflow: hidden;
}
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  background: none;
  border: none;
  color: var(--text);
  font-size: 0.98rem;
  font-weight: 500;
  text-align: left;
}
.faq-icon {
  font-family: var(--font-mono);
  color: var(--accent-1);
  font-size: 1.1rem;
  transition: transform 0.25s var(--ease);
  flex-shrink: 0;
}
.faq-question[aria-expanded="true"] .faq-icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s var(--ease);
}
.faq-answer p { padding: 0 24px 20px; margin: 0; font-size: 0.92rem; }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 60px;
}
.contact-info h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.contact-list { display: flex; flex-direction: column; gap: 16px; margin-top: 32px; }
.contact-list li { display: flex; flex-direction: column; gap: 4px; }
.contact-list-label { font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-faint); }
.contact-list a { font-size: 1.02rem; transition: color 0.2s; }
.contact-list a:hover { color: var(--accent-1); }

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-form label { display: flex; flex-direction: column; gap: 8px; font-size: 0.85rem; color: var(--text-dim); }
.form-full { display: flex; flex-direction: column; gap: 8px; font-size: 0.85rem; color: var(--text-dim); }
.contact-form input,
.contact-form select,
.contact-form textarea {
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  resize: vertical;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent-1);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.15);
}
.form-hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.form-note { font-size: 0.78rem; color: var(--text-faint); margin: 0; }
.form-note a { color: var(--text-dim); text-decoration: underline; text-underline-offset: 2px; }
.form-note a:hover { color: var(--accent-1); }
.form-result-row { display: flex; align-items: center; gap: 10px; }
.form-result { font-size: 0.88rem; margin: 0; min-height: 1.2em; }
.form-result.is-success { color: var(--accent-3); }
.form-result.is-error { color: #ff8080; }

.success-check {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  display: none;
}
.success-check.is-playing { display: block; }
.success-check-circle {
  stroke: var(--accent-3);
  stroke-width: 3;
  stroke-dasharray: 151;
  stroke-dashoffset: 151;
}
.success-check-mark {
  stroke: var(--accent-3);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
}
.success-check.is-playing .success-check-circle {
  animation: check-circle 0.5s var(--ease) forwards;
}
.success-check.is-playing .success-check-mark {
  animation: check-mark 0.35s var(--ease) 0.4s forwards;
}
@keyframes check-circle { to { stroke-dashoffset: 0; } }
@keyframes check-mark { to { stroke-dashoffset: 0; } }
.btn-spinner {
  width: 16px; height: 16px;
  border: 2px solid rgba(6,7,10,0.3);
  border-top-color: #06070a;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { border-top: 1px solid var(--border); padding-top: 56px; }
.footer-inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer-brand p { margin-top: 14px; font-size: 0.9rem; max-width: 260px; }
.footer-links, .footer-contact { display: flex; flex-direction: column; gap: 12px; font-size: 0.9rem; color: var(--text-dim); }
.footer-links a:hover, .footer-contact a:hover { color: var(--accent-1); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding: 20px 24px;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-faint);
}
.footer-legal-links { display: flex; gap: 16px; }
.footer-legal-links a:hover { color: var(--accent-1); }

/* Sticky floating CTA */
.sticky-cta {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 90;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0.35s;
}
.sticky-cta.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
/* The breathing glow animates on the wrapper, not the button itself —
   .sticky-cta-btn is a .btn-primary with overflow:hidden (for the shine
   sweep), which would clip a box-shadow declared on the button. */
.sticky-cta { animation: cta-breathe 2.6s ease-in-out infinite; border-radius: 999px; }
@keyframes cta-breathe {
  0%, 100% { box-shadow: 0 10px 30px -10px rgba(0, 212, 255, 0.5); }
  50% { box-shadow: 0 10px 34px -6px rgba(124, 92, 255, 0.65); }
}
@media (max-width: 720px) {
  .sticky-cta { left: 16px; bottom: 16px; }
}

/* Scroll to top */
.to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--text);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s var(--ease);
  z-index: 90;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { border-color: var(--accent-1); color: var(--accent-1); }

/* ==========================================================================
   Reveal-on-scroll
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: calc(var(--delay, 0) * 0.08s);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Tilt cards */
.tilt { transform-style: preserve-3d; will-change: transform; }

/* ==========================================================================
   Trust strip (guarantees) + mini trust list near the contact form
   ========================================================================== */
.trust-strip {
  padding: 30px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.trust-strip-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px 32px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-dim);
}
.trust-item svg { width: 20px; height: 20px; color: var(--accent-3); flex-shrink: 0; }

.trust-mini-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 4px 0 26px;
  padding: 0;
  list-style: none;
}
.trust-mini-list li {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--text-dim);
}
.trust-mini-list li::before { content: "✓"; color: var(--accent-3); font-weight: 700; }

/* ==========================================================================
   Secondary pages (privacy, terms, team, 404) — shared chrome
   ========================================================================== */
.page-hero { padding: 64px 0 16px; }
.page-hero h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.page-hero p { max-width: 640px; }
.page-updated { font-size: 0.82rem; color: var(--text-faint); }

.legal-content { padding: 8px 0 100px; }
.legal-content h2 { font-size: 1.15rem; margin-top: 2em; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content p, .legal-content li { color: var(--text-dim); font-size: 0.95rem; line-height: 1.8; }
.legal-content ul, .legal-content ol { padding-left: 1.3em; margin-bottom: 1em; }
.legal-content ul { list-style: disc; }
.legal-content ol { list-style: decimal; }
.legal-content a { color: var(--accent-1); text-decoration: underline; text-underline-offset: 2px; }

.legal-note {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  font-size: 0.85rem;
  color: var(--text-faint);
  margin: 24px 0 36px;
}

.role-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.role-tags span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-faint);
}

.notfound-hero {
  min-height: 55vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 14px;
  padding: 80px 24px;
}
.notfound-code {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(4rem, 12vw, 7rem);
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}
.notfound-hero p { max-width: 420px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 480px; margin: 0 auto 20px; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stack-grid { grid-template-columns: repeat(4, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .main-nav {
    display: flex;
    position: absolute;
    top: 76px; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s var(--ease);
  }
  .main-nav.is-open { max-height: 400px; }
  .main-nav a { padding: 16px 24px; border-top: 1px solid var(--border); }
  .nav-toggle { display: flex; }
  .nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.is-open span:nth-child(2) { opacity: 0; }
  .nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .header-actions .btn-sm { display: none; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .stack-grid { grid-template-columns: repeat(3, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; }
  .section { padding: 72px 0; }
}
