/* ============================================
   CASH — design tokens
   Ink #0B0D14 · Paper #F7F5EF · Indigo #2B3A67
   Gold #D4A144 · Slate #6B7280 · White #FFFFFF
   ============================================ */

:root {
  --ink: #0b0d14;
  --ink-soft: #121522;
  --ink-softer: #191d2e;
  --paper: #f7f5ef;
  --paper-dim: #ece8dc;
  --indigo: #2b3a67;
  --indigo-light: #4a5f9e;
  --gold: #d4a144;
  --gold-light: #f0c775;
  --gold-dim: #8a6b2e;
  --slate: #6b7280;
  --white: #ffffff;

  --grad-gold: linear-gradient(135deg, #f0c775 0%, #d4a144 55%, #b8842f 100%);
  --grad-indigo: linear-gradient(135deg, #4a5f9e 0%, #2b3a67 100%);
  --grad-mesh: radial-gradient(ellipse 60% 50% at 20% 20%, rgba(212, 161, 68, 0.16), transparent 60%),
               radial-gradient(ellipse 50% 45% at 85% 15%, rgba(74, 95, 158, 0.22), transparent 55%),
               radial-gradient(ellipse 55% 50% at 75% 85%, rgba(212, 161, 68, 0.08), transparent 60%);

  --glow-gold: 0 0 50px rgba(212, 161, 68, 0.25);
  --glow-indigo: 0 0 60px rgba(74, 95, 158, 0.35);

  --glass-bg: rgba(255, 255, 255, 0.04);
  --glass-border: rgba(255, 255, 255, 0.09);

  --font-display: "Space Grotesk", sans-serif;
  --font-body: "Inter", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;

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

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  margin: 0 0 0.4em;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--ink);
}

p { margin: 0 0 1em; color: var(--ink); }

a { color: inherit; text-decoration: none; }

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

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--indigo);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 16px;
  font-weight: 500;
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  background: var(--grad-gold);
  display: inline-block;
  border-radius: 2px;
  box-shadow: 0 0 10px rgba(212, 161, 68, 0.6);
}

.eyebrow.on-dark { color: var(--gold-light); }

/* ---------- reveal-on-scroll ---------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
[data-reveal].in-view {
  opacity: 1;
  transform: translateY(0);
}
[data-reveal-group] > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
[data-reveal-group].in-view > * { opacity: 1; transform: translateY(0); }
[data-reveal-group].in-view > *:nth-child(1) { transition-delay: 0.05s; }
[data-reveal-group].in-view > *:nth-child(2) { transition-delay: 0.14s; }
[data-reveal-group].in-view > *:nth-child(3) { transition-delay: 0.23s; }
[data-reveal-group].in-view > *:nth-child(4) { transition-delay: 0.32s; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.92rem;
  padding: 15px 26px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s ease, border-color 0.2s ease, color 0.2s ease;
  position: relative;
  white-space: nowrap;
}

.btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.btn-primary {
  background: var(--grad-gold);
  color: var(--ink);
  font-weight: 600;
  box-shadow: 0 8px 24px -8px rgba(212, 161, 68, 0.55), inset 0 1px 0 rgba(255,255,255,0.4);
}
.btn-primary:hover {
  transform: translateY(-2px) scale(1.015);
  box-shadow: 0 14px 34px -10px rgba(212, 161, 68, 0.65), inset 0 1px 0 rgba(255,255,255,0.4);
}
.btn-primary:active { transform: translateY(0) scale(0.99); }

.btn-ghost {
  background: rgba(255,255,255,0.03);
  color: var(--paper);
  border-color: rgba(246, 244, 239, 0.18);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-light); transform: translateY(-2px); background: rgba(255,255,255,0.06); }

.btn-outline {
  background: transparent;
  color: var(--indigo);
  border-color: var(--indigo);
}
.btn-outline:hover { background: var(--indigo); color: var(--paper); transform: translateY(-2px); }

.btn-block { width: 100%; justify-content: center; }

/* ---------- nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 13, 20, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid rgba(246, 244, 239, 0.07);
  transition: padding 0.3s var(--ease), background 0.3s ease;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  max-width: var(--max);
  margin: 0 auto;
  transition: padding 0.3s var(--ease);
}

.site-header.shrink .nav { padding: 12px 32px; }
.site-header.shrink { background: rgba(11, 13, 20, 0.92); }

.logo {
  font-family: var(--font-mono);
  font-size: 1.3rem;
  color: var(--paper);
  font-weight: 500;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
}

.logo .cursor {
  display: inline-block;
  width: 0.5em;
  height: 1.05em;
  background: var(--grad-gold);
  margin-left: 3px;
  border-radius: 1px;
  vertical-align: -0.18em;
  animation: blink 1.1s step-end infinite;
  box-shadow: 0 0 12px rgba(212,161,68,0.7);
}

@keyframes blink {
  50% { opacity: 0; }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  font-family: var(--font-mono);
  font-size: 0.92rem;
}

.nav-links a:not(.btn) {
  color: rgba(246, 244, 239, 0.68);
  transition: color 0.2s ease;
  position: relative;
  padding-bottom: 4px;
}
.nav-links a:not(.btn):hover,
.nav-links a[aria-current="page"] { color: var(--paper); }

.nav-links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: var(--grad-gold);
  border-radius: 2px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--paper);
  font-size: 1.6rem;
  cursor: pointer;
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--ink);
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 32px 26px;
    gap: 20px;
    display: none;
    border-bottom: 1px solid rgba(246,244,239,0.1);
  }
  .nav-links.open { display: flex; }
  .nav-links .btn { width: 100%; justify-content: center; }
}

/* ---------- hero ---------- */

.hero {
  background: var(--ink);
  color: var(--paper);
  padding: 120px 0 130px;
  position: relative;
  overflow: hidden;
}

.hero-mesh {
  position: absolute;
  inset: -10%;
  background: var(--grad-mesh);
  animation: meshdrift 18s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes meshdrift {
  0% { transform: translate(0,0) scale(1); }
  100% { transform: translate(-2%, 2%) scale(1.06); }
}

.hero-grain {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(90deg, rgba(212,161,68,0.03) 0 1px, transparent 1px 90px),
                     repeating-linear-gradient(0deg, rgba(246,244,239,0.02) 0 1px, transparent 1px 90px);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
  padding: 8px 16px 8px 8px;
  border-radius: 30px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: rgba(246,244,239,0.85);
  margin-bottom: 26px;
}
.hero-badge .dotlive {
  width: 8px; height: 8px; border-radius: 50%;
  background: #63d67a;
  box-shadow: 0 0 8px #63d67a;
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; } 50% { opacity: 0.4; }
}

.hero h1 {
  font-size: clamp(2.6rem, 5.2vw, 4.2rem);
  color: var(--paper);
}

.hero h1 .accent {
  background: var(--grad-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  color: rgba(246,244,239,0.68);
  font-size: 1.15rem;
  max-width: 46ch;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 34px;
  flex-wrap: wrap;
}

.hero-proof {
  display: flex;
  gap: 28px;
  margin-top: 46px;
  flex-wrap: wrap;
}
.hero-proof .proof-item {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: rgba(246,244,239,0.55);
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-proof .proof-item strong {
  color: var(--gold-light);
  font-size: 1.05rem;
}

/* ---------- terminal mockup ---------- */

.terminal-wrap {
  position: relative;
  perspective: 1200px;
}

.terminal-glow {
  position: absolute;
  inset: -40px;
  background: radial-gradient(ellipse at center, rgba(212,161,68,0.18), transparent 70%);
  filter: blur(20px);
  pointer-events: none;
}

/* Flip stage: outer element receives mouse-tilt; inner element performs
   the periodic 180deg flip between the code terminal and the live
   browser preview. Keeping these on separate elements lets both
   transforms run without fighting each other. */
.flip-stage {
  position: relative;
  perspective: 1200px;
  transition: transform 0.2s ease-out;
}

.flip-inner {
  position: relative;
  transform-style: preserve-3d;
  transition: transform 1s cubic-bezier(0.65, 0, 0.35, 1);
}

.flip-inner.flipped {
  transform: rotateY(180deg);
}

.flip-face {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.flip-face.flip-back {
  position: absolute;
  inset: 0;
  transform: rotateY(180deg);
}

.terminal {
  background: linear-gradient(180deg, var(--ink-softer), var(--ink-soft));
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 40px 80px -24px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.02);
  position: relative;
}

/* ---------- browser preview (flip-back face) ---------- */

.browser-mock {
  background: var(--paper);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 40px 80px -24px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.02);
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--ink-softer);
  border-bottom: 1px solid rgba(246,244,239,0.07);
}

.browser-url {
  margin-left: 10px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: rgba(246,244,239,0.55);
  background: rgba(255,255,255,0.05);
  padding: 4px 12px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.browser-live {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: #7fd894;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.browser-live::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #63d67a;
  box-shadow: 0 0 8px #63d67a;
  animation: pulse 1.6s ease-in-out infinite;
}

.browser-body { padding: 22px 22px 24px; min-height: 226px; }

.bm-nav { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.bm-logo { width: 20px; height: 20px; border-radius: 5px; background: var(--grad-gold); flex-shrink: 0; }
.bm-links { display: flex; gap: 8px; margin-left: auto; }
.bm-links i { width: 22px; height: 6px; border-radius: 3px; background: rgba(18,20,28,0.14); display: block; font-style: normal; }
.bm-cta {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  padding: 6px 12px;
  border-radius: 5px;
  background: var(--grad-gold);
  color: var(--ink);
  font-weight: 700;
}

.bm-hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 16px; align-items: center; margin-bottom: 20px; }
.bm-eyebrow { width: 58px; height: 6px; border-radius: 3px; background: var(--indigo); display: block; margin-bottom: 12px; }
.bm-h1 { display: block; height: 12px; border-radius: 3px; background: rgba(18,20,28,0.85); margin-bottom: 8px; width: 92%; }
.bm-h1.short { width: 58%; margin-bottom: 14px; }
.bm-p { display: block; height: 7px; width: 78%; border-radius: 3px; background: rgba(18,20,28,0.16); margin: 0 0 16px; }
.bm-btn {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 9px 15px;
  border-radius: 6px;
  background: var(--ink);
  color: var(--paper);
}
.bm-hero-art {
  height: 96px;
  border-radius: 10px;
  background: var(--grad-indigo);
  position: relative;
  overflow: hidden;
}
.bm-hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--grad-mesh);
  opacity: 0.7;
}

.bm-strip { display: flex; gap: 10px; }
.bm-chip { flex: 1; height: 46px; border-radius: 8px; background: rgba(18,20,28,0.06); }

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(246,244,239,0.07);
}

.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.red { background: #e0645a; }
.dot.yellow { background: #e0b64a; }
.dot.green { background: #63b876; }

.terminal-title {
  margin-left: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: rgba(246,244,239,0.4);
}

.terminal-body {
  padding: 26px 26px 30px;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  line-height: 2;
  color: rgba(246,244,239,0.85);
  min-height: 230px;
}

.terminal-body .ln { color: rgba(246,244,239,0.28); width: 1.6em; display: inline-block; user-select: none; }
.terminal-body .kw { color: var(--gold-light); }
.terminal-body .str { color: #8fb3e0; }
.terminal-body .fn { color: #a9c98a; }
.terminal-body .tag { color: rgba(246,244,239,0.4); }
.terminal-body .type-cursor {
  display: inline-block;
  width: 0.5em;
  height: 1.05em;
  background: var(--gold);
  vertical-align: -0.18em;
  animation: blink 0.9s step-end infinite;
}

.terminal-tabs {
  display: flex;
  gap: 6px;
  padding: 14px 16px 0;
}
.terminal-tab {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  padding: 7px 14px;
  border-radius: 6px 6px 0 0;
  color: rgba(246,244,239,0.4);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}
.terminal-tab.active {
  color: var(--paper);
  background: rgba(255,255,255,0.05);
}

/* ---------- marquee ---------- */

.marquee-band {
  background: var(--ink-soft);
  border-top: 1px solid rgba(246,244,239,0.06);
  border-bottom: 1px solid rgba(246,244,239,0.06);
  padding: 20px 0;
  overflow: hidden;
  white-space: nowrap;
}
.marquee-track {
  display: inline-flex;
  gap: 48px;
  animation: scroll-left 28s linear infinite;
}
@keyframes scroll-left {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.marquee-track span {
  font-family: var(--font-mono);
  font-size: 0.92rem;
  color: rgba(246,244,239,0.42);
  letter-spacing: 0.02em;
}
.marquee-track span.dim { color: rgba(246,244,239,0.18); }

/* ---------- sections ---------- */

section { padding: 100px 0; position: relative; }

.section-alt { background: var(--paper-dim); }
.section-dark { background: var(--ink); color: var(--paper); position: relative; overflow: hidden; }
.section-dark h2, .section-dark h3 { color: var(--paper); }
.section-dark p { color: rgba(246,244,239,0.65); }

.section-head {
  max-width: 64ch;
  margin-bottom: 56px;
}

.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.section-head h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
}

.section-head p {
  color: var(--slate);
  font-size: 1.08rem;
}
.section-dark .section-head p { color: rgba(246,244,239,0.65); }

/* ---------- highlight row ---------- */

.highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 760px) {
  .highlights { grid-template-columns: 1fr; }
}

.highlight {
  background: var(--white);
  border: 1px solid rgba(18,20,28,0.07);
  border-radius: 14px;
  padding: 34px 30px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s ease;
}
.highlight:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px -20px rgba(18,20,28,0.18);
  border-color: rgba(212,161,68,0.4);
}

.highlight .tag-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--indigo);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: block;
  font-weight: 600;
}

.highlight h3 { font-size: 1.2rem; margin-bottom: 9px; }
.highlight p { color: var(--slate); margin: 0; font-size: 0.97rem; }

/* ---------- cards ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}

@media (max-width: 760px) {
  .card-grid { grid-template-columns: 1fr; }
}

.card {
  background: var(--white);
  border: 1px solid rgba(18,20,28,0.08);
  border-radius: 16px;
  padding: 38px 36px;
  transition: border-color 0.3s ease, transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--grad-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.card:hover::before { transform: scaleX(1); }
.card:hover { border-color: rgba(212,161,68,0.35); transform: translateY(-5px); box-shadow: 0 30px 60px -24px rgba(18,20,28,0.2); }

.card.dark {
  background: var(--ink-soft);
  border-color: rgba(246,244,239,0.08);
}

.card .card-kicker {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--gold-dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: block;
  font-weight: 600;
}
.card.dark .card-kicker { color: var(--gold-light); }

.card h3 { font-size: 1.4rem; margin-bottom: 11px; }
.card p { color: var(--slate); }
.card.dark p { color: rgba(246,244,239,0.6); }
.card.dark h3 { color: var(--paper); }

.card ul {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.card li {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--ink);
  padding: 8px 0;
  border-top: 1px solid rgba(18,20,28,0.07);
}
.card.dark li { color: rgba(246,244,239,0.85); border-top-color: rgba(246,244,239,0.08); }
.card li:first-child { border-top: none; }
.card li::before { content: "// "; color: var(--slate); }

/* ---------- process steps ---------- */

.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}

@media (max-width: 900px) {
  .process { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .process { grid-template-columns: 1fr; }
}

.step {
  border-left: 2px solid var(--indigo);
  padding-left: 20px;
  position: relative;
  transition: border-color 0.3s ease;
}
.step:hover { border-color: var(--gold); }

.step .step-num {
  font-family: var(--font-mono);
  color: var(--gold);
  font-size: 0.85rem;
  display: block;
  margin-bottom: 12px;
  font-weight: 600;
}

.step h3 { font-size: 1.08rem; margin-bottom: 7px; }
.step p { color: var(--slate); font-size: 0.95rem; margin: 0; }

/* ---------- comparison / why table ---------- */

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
@media (max-width: 900px) {
  .why-grid { grid-template-columns: 1fr; }
}
.why-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 32px 28px;
  backdrop-filter: blur(10px);
  transition: transform 0.3s var(--ease), border-color 0.3s ease;
}
.why-card:hover { transform: translateY(-5px); border-color: rgba(212,161,68,0.4); }
.why-card .why-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--grad-gold);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 18px;
}
.why-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.why-card p { font-size: 0.94rem; margin: 0; }

/* ---------- stat strip ---------- */

.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(246,244,239,0.08);
  border: 1px solid rgba(246,244,239,0.08);
  border-radius: 14px;
  overflow: hidden;
}
@media (max-width: 700px) {
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
}
.stat-cell {
  background: var(--ink-soft);
  padding: 30px 24px;
  text-align: center;
}
.stat-cell .stat-num {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 700;
  background: var(--grad-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: block;
}
.stat-cell .stat-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: rgba(246,244,239,0.55);
  margin-top: 8px;
  display: block;
}

/* ---------- CTA band ---------- */

.cta-band {
  background: var(--ink);
  color: var(--paper);
  padding: 90px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 0%, rgba(212,161,68,0.14), transparent 65%);
  pointer-events: none;
}

.cta-band h2 { color: var(--paper); font-size: clamp(1.7rem, 3.4vw, 2.5rem); position: relative; }
.cta-band p { color: rgba(246,244,239,0.65); max-width: 50ch; margin: 0 auto 32px; position: relative; }
.cta-band .wrap { position: relative; }

/* ---------- footer ---------- */

footer {
  background: var(--ink);
  color: rgba(246,244,239,0.6);
  padding: 54px 0 34px;
  font-size: 0.9rem;
  border-top: 1px solid rgba(246,244,239,0.07);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 28px;
  margin-bottom: 32px;
}

footer .logo { margin-bottom: 10px; }

.footer-contact a {
  display: block;
  color: rgba(246,244,239,0.75);
  font-family: var(--font-mono);
  padding: 4px 0;
  transition: color 0.2s ease;
}
.footer-contact a:hover { color: var(--gold-light); }

.footer-bottom {
  border-top: 1px solid rgba(246,244,239,0.1);
  padding-top: 22px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- inner page hero (services/contact) ---------- */

.page-hero {
  background: var(--ink);
  color: var(--paper);
  padding: 80px 0 70px;
  position: relative;
  overflow: hidden;
}

.page-hero h1 { color: var(--paper); font-size: clamp(2.2rem, 4.4vw, 3.2rem); }
.page-hero p { color: rgba(246,244,239,0.68); max-width: 58ch; font-size: 1.08rem; }

/* ---------- pricing note ---------- */

.note-block {
  background: var(--white);
  border: 1px solid rgba(212,161,68,0.3);
  border-radius: 14px;
  padding: 30px 32px;
  font-size: 0.98rem;
  color: var(--ink);
  position: relative;
}
.note-block::before {
  content: "$";
  position: absolute;
  top: -18px; left: 28px;
  width: 36px; height: 36px;
  background: var(--grad-gold);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--ink);
  box-shadow: 0 8px 20px -6px rgba(212,161,68,0.6);
}
.note-block strong { color: var(--indigo); }

/* ---------- contact page ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

@media (max-width: 800px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.contact-card {
  background: var(--white);
  border: 1px solid rgba(18,20,28,0.08);
  border-radius: 16px;
  padding: 34px;
  transition: box-shadow 0.3s ease;
}
.contact-card:hover { box-shadow: 0 30px 60px -30px rgba(18,20,28,0.2); }

.contact-card h3 {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--indigo);
  margin-bottom: 18px;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 0;
  border-top: 1px solid rgba(18,20,28,0.07);
  font-size: 1.04rem;
}
.contact-link:first-of-type { border-top: none; }
.contact-link .k { font-family: var(--font-mono); color: var(--slate); font-size: 0.8rem; width: 70px; flex-shrink: 0; }
.contact-link a { transition: color 0.2s ease; }
.contact-link a:hover { color: var(--indigo); }

form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

label {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--indigo);
  margin-bottom: 6px;
  display: block;
}

input, textarea, select {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.98rem;
  padding: 13px 15px;
  border: 1px solid rgba(18,20,28,0.15);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(212,161,68,0.14);
}

textarea { resize: vertical; min-height: 130px; }

.field { display: flex; flex-direction: column; }

.form-note {
  font-size: 0.85rem;
  color: var(--slate);
  margin-top: -4px;
}

.faq-item {
  border-top: 1px solid rgba(18,20,28,0.08);
  padding: 22px 0;
}
.faq-item:first-child { border-top: none; }
.faq-item h4 { font-size: 1.03rem; margin-bottom: 7px; }
.faq-item p { color: var(--slate); margin: 0; font-size: 0.96rem; }

/* ---------- circuit field canvas ---------- */
/* Ambient node-network background, layered behind content in every
   dark section across every page. Sits between the mesh gradient and
   the content wrap in DOM order so it reads as part of the same
   atmosphere rather than a separate effect. */

.circuit-bg {
  position: absolute;
  inset: 0;
  display: block;
  opacity: 0.7;
  pointer-events: none;
}

/* ---------- cursor spotlight ---------- */
/* A soft light that follows the cursor across dark sections —
   reinforces that the page is reacting to you, not just animating
   on its own. */

.spot-track {
  position: relative;
}
.spot-track::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(212,161,68,0.10), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.spot-track:hover::after { opacity: 1; }

/* ---------- JS-driven tilt targets ---------- */
/* Ensures the inline transform set by initTilt() eases smoothly back
   to rest on mouseleave, matching the existing hover transitions. */

.card, .highlight, .why-card {
  will-change: transform;
}
