/* ============================================================
   CodeSnap.in — Dark Dev-Tool Aesthetic
   Refined brutalist · electric accents · monospace details
   ============================================================ */

:root {
  /* Surface */
  --bg: #0a0a0c;
  --bg-elev: #131316;
  --bg-card: #18181c;
  --bg-input: #1f1f24;
  --line: #2a2a30;
  --line-bright: #3a3a42;

  /* Text */
  --text: #f4f4f5;
  --text-mute: #a1a1aa;
  --text-faint: #71717a;

  /* Accents */
  --accent: #fb923c;
  --accent-hot: #f97316;
  --accent-glow: rgba(251, 146, 60, 0.4);
  --green: #22c55e;
  --red: #ef4444;
  --blue: #60a5fa;

  /* Type */
  --display: 'Spectral', Georgia, serif;
  --body: 'DM Sans', -apple-system, sans-serif;
  --mono: 'JetBrains Mono', 'Fira Code', ui-monospace, monospace;

  /* Layout */
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 14px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font-family: inherit; }
::selection { background: var(--accent); color: var(--bg); }

/* ===== GRID BG ===== */
.grid-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 30%, transparent 80%);
}

/* Soft glow accent in corner */
body::before {
  content: '';
  position: fixed;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--accent-glow), transparent 60%);
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
}

/* ===== NAV ===== */
.nav {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px 32px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-family: var(--display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.brand-icon {
  width: 38px; height: 38px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: var(--bg);
  border-radius: var(--r-md);
  transition: transform .25s cubic-bezier(.34,1.56,.64,1);
}
.brand-icon.dark { background: var(--text); color: var(--bg); }
.brand:hover .brand-icon { transform: rotate(-8deg); }
.dot { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
  font-size: 14px;
  font-weight: 500;
}
.nav-links a { color: var(--text-mute); transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.cta-link {
  background: var(--accent) !important;
  color: var(--bg) !important;
  padding: 11px 20px;
  border-radius: var(--r-sm);
  transition: all .25s;
  font-weight: 600;
}
.cta-link:hover { background: var(--accent-hot) !important; transform: translateY(-1px); }

@media (max-width: 720px) {
  .nav-links a:not(.cta-link) { display: none; }
}

/* ===== REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  animation: reveal .9s cubic-bezier(.16,1,.3,1) forwards;
  animation-delay: var(--d, 0s);
}
@keyframes reveal {
  to { opacity: 1; transform: translateY(0); }
}

/* ===== HERO ===== */
.hero {
  position: relative;
  z-index: 1;
  max-width: 1400px;
  margin: 0 auto;
  padding: 60px 32px 100px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 1000px) { .hero-grid { grid-template-columns: 1fr; gap: 60px; } }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  padding: 7px 14px 7px 10px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-mute);
  margin-bottom: 28px;
}
.badge-pulse {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18); }
  50% { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.28); }
}

.hero-title {
  font-family: var(--display);
  font-size: clamp(48px, 8vw, 110px);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--text);
  margin-bottom: 32px;
}
.hero-title .line { display: block; }
.hero-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
  position: relative;
}
.hero-title em::after {
  content: '';
  position: absolute;
  left: -2%;
  bottom: 4px;
  width: 104%;
  height: 8px;
  background: var(--accent);
  opacity: 0.25;
  border-radius: 999px;
  z-index: -1;
  transform: scaleX(0);
  transform-origin: left;
  animation: underline 1.2s cubic-bezier(.16,1,.3,1) .8s forwards;
}
@keyframes underline { to { transform: scaleX(1); } }

.hero-sub {
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--text-mute);
  max-width: 540px;
  margin-bottom: 40px;
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
  padding: 14px 26px;
  border-radius: var(--r-sm);
  font-weight: 600;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all .25s;
  position: relative;
  overflow: hidden;
}
.btn-primary:hover { background: var(--accent-hot); transform: translateY(-2px); box-shadow: 0 12px 32px var(--accent-glow); }
.btn-arrow { transition: transform .25s; }
.btn-primary:hover .btn-arrow { transform: translateX(4px); }
.btn-primary.big { padding: 18px 32px; font-size: 16px; }

.btn-ghost {
  color: var(--text);
  padding: 14px 22px;
  font-weight: 500;
  font-size: 15px;
  border: 1px solid var(--line-bright);
  border-radius: var(--r-sm);
  transition: all .2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.hero-stats {
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
}
.hero-stats > div { display: flex; flex-direction: column; gap: 4px; }
.hero-stats b {
  font-family: var(--display);
  font-size: 36px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1;
}
.hero-stats span {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* ===== HERO PREVIEW ===== */
.hero-preview {
  position: relative;
  height: 500px;
  display: grid;
  place-items: center;
}
@media (max-width: 1000px) { .hero-preview { height: 380px; } }

.hero-snap-bg {
  background: linear-gradient(135deg, #f59e0b 0%, #dc2626 50%, #7c2d12 100%);
  padding: 40px;
  border-radius: var(--r-lg);
  width: 100%;
  max-width: 480px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  animation: float 6s ease-in-out infinite;
  transform: rotate(-2deg);
}
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-15px) rotate(1deg); }
}

.hero-snap-window {
  background: #1a0f0a;
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}
.hero-snap-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(254, 243, 199, 0.08);
}
.hero-snap-controls .dot-r,
.hero-snap-controls .dot-y,
.hero-snap-controls .dot-g {
  width: 10px; height: 10px; border-radius: 50%;
}
.hero-snap-controls .dot-r { background: #ff5f57; }
.hero-snap-controls .dot-y { background: #febc2e; }
.hero-snap-controls .dot-g { background: #28c840; }
.hero-snap-title {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 11px;
  color: rgba(254, 243, 199, 0.5);
}
.hero-snap-code {
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.6;
  color: #fef3c7;
  padding: 20px 24px;
  white-space: pre;
  overflow-x: auto;
}
.hero-snap-code .kw { color: #fbbf24; }
.hero-snap-code .st { color: #fde047; }
.hero-snap-code .fn { color: #fb923c; }
.hero-snap-code .vr { color: #fef3c7; }
.hero-snap-code .ty { color: #fcd34d; }
.hero-snap-code .cm { color: #92400e; font-style: italic; }

.float-tag {
  position: absolute;
  background: var(--bg-card);
  border: 1px solid var(--line-bright);
  font-family: var(--mono);
  font-size: 12px;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--text);
  animation: bob 4s ease-in-out infinite;
}
.tag-1 {
  top: 5%; right: 0;
  color: var(--green);
  border-color: var(--green);
}
.tag-2 {
  bottom: 8%; left: -5%;
  color: var(--accent);
  border-color: var(--accent);
  animation-delay: 1s;
}
.float-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  pointer-events: none;
}
.orb-1 {
  width: 200px; height: 200px;
  background: var(--accent);
  top: -50px; left: -50px;
  opacity: 0.3;
}
.orb-2 {
  width: 250px; height: 250px;
  background: #ec4899;
  bottom: -80px; right: -80px;
  opacity: 0.25;
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ===== SECTION COMMONS ===== */
.section-head {
  max-width: 900px;
  margin: 0 auto 64px;
  padding: 0 32px;
  text-align: center;
}
.eyebrow {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.section-title {
  font-family: var(--display);
  font-size: clamp(40px, 6.5vw, 80px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--text);
}
.section-title em { color: var(--accent); font-style: italic; font-weight: 400; }
.section-lead {
  font-size: 16px;
  color: var(--text-mute);
  max-width: 540px;
  margin: 24px auto 0;
}

/* ===== THEMES STRIP ===== */
.themes-section {
  padding: 80px 0 60px;
  position: relative;
  z-index: 1;
}
.theme-strip {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 16px 32px 32px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.theme-strip::-webkit-scrollbar { height: 8px; }
.theme-strip::-webkit-scrollbar-track { background: var(--bg-card); }
.theme-strip::-webkit-scrollbar-thumb { background: var(--line-bright); border-radius: 4px; }

.theme-strip-card {
  flex-shrink: 0;
  width: 240px;
  scroll-snap-align: start;
  padding: 24px;
  border-radius: var(--r-md);
  cursor: pointer;
  transition: transform .25s;
  text-align: left;
}
.theme-strip-card:hover { transform: translateY(-6px); }
.strip-window {
  border-radius: var(--r-sm);
  overflow: hidden;
  font-family: var(--mono);
  font-size: 11px;
  margin-bottom: 12px;
}
.strip-controls {
  display: flex;
  gap: 4px;
  padding: 8px 10px;
  background: rgba(0, 0, 0, 0.15);
}
.strip-controls span { width: 8px; height: 8px; border-radius: 50%; }
.strip-code {
  padding: 12px;
  line-height: 1.5;
  white-space: nowrap;
}
.strip-name {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text);
  font-weight: 500;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

/* ===== EDITOR ===== */
.editor-section {
  padding: 60px 0 100px;
  position: relative;
  z-index: 1;
}
.editor-wrap {
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 24px;
  align-items: start;
}
@media (max-width: 1000px) { .editor-wrap { grid-template-columns: 1fr; } }

/* Sidebar */
.controls {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px;
  position: sticky;
  top: 20px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
}
@media (max-width: 1000px) { .controls { position: static; max-height: none; } }
.controls::-webkit-scrollbar { width: 6px; }
.controls::-webkit-scrollbar-thumb { background: var(--line-bright); border-radius: 3px; }

.ctrl-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ctrl-group.export-group {
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.ctrl-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  font-weight: 500;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.ctrl-label.small { font-size: 10px; }
.ctrl-label .val { color: var(--accent); font-weight: 600; }

.ctrl-select, .ctrl-input {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 10px 12px;
  border-radius: var(--r-sm);
  font-family: var(--body);
  font-size: 14px;
  transition: border-color .2s;
}
.ctrl-select:focus, .ctrl-input:focus { outline: none; border-color: var(--accent); }

.ctrl-range {
  appearance: none;
  width: 100%;
  height: 4px;
  background: var(--line);
  border-radius: 2px;
  outline: none;
}
.ctrl-range::-webkit-slider-thumb {
  appearance: none;
  width: 16px; height: 16px;
  background: var(--accent);
  border-radius: 50%;
  cursor: pointer;
  transition: transform .15s;
}
.ctrl-range::-webkit-slider-thumb:hover { transform: scale(1.2); }
.ctrl-range::-moz-range-thumb {
  width: 16px; height: 16px;
  background: var(--accent);
  border-radius: 50%;
  border: none;
  cursor: pointer;
}

/* Theme grid in sidebar */
.theme-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}
.theme-swatch {
  aspect-ratio: 1;
  border-radius: var(--r-sm);
  border: 2px solid transparent;
  cursor: pointer;
  position: relative;
  transition: all .2s;
}
.theme-swatch:hover { transform: scale(1.1); }
.theme-swatch.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--bg-card), 0 0 0 4px var(--accent);
}
.swatch-tooltip {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg);
  color: var(--text);
  font-family: var(--mono);
  font-size: 10px;
  padding: 4px 8px;
  border-radius: var(--r-sm);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s;
  border: 1px solid var(--line-bright);
}
.theme-swatch:hover .swatch-tooltip { opacity: 1; }

/* Segmented control */
.seg-control {
  display: flex;
  background: var(--bg-input);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 3px;
  gap: 2px;
}
.seg-control button {
  flex: 1;
  padding: 8px 10px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-mute);
  border-radius: 4px;
  transition: all .2s;
}
.seg-control button.active {
  background: var(--accent);
  color: var(--bg);
}
.seg-control.small button { padding: 6px 8px; font-size: 10px; }

/* Toggle */
.ctrl-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text);
  cursor: pointer;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
}
.ctrl-toggle small { color: var(--text-faint); margin-left: 4px; }
.ctrl-toggle input { display: none; }
.toggle-track {
  position: relative;
  width: 32px; height: 18px;
  background: var(--line-bright);
  border-radius: 999px;
  transition: background .25s;
}
.toggle-thumb {
  position: absolute;
  top: 2px; left: 2px;
  width: 14px; height: 14px;
  background: var(--text);
  border-radius: 50%;
  transition: transform .25s cubic-bezier(.34,1.56,.64,1);
}
.ctrl-toggle input:checked + .toggle-track { background: var(--accent); }
.ctrl-toggle input:checked + .toggle-track .toggle-thumb { transform: translateX(14px); background: var(--bg); }

/* Export buttons */
.export-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.export-btn {
  width: 100%;
  justify-content: center;
  padding: 12px;
  font-size: 14px;
}
.export-quality {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Preview area */
.preview-area {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}
.preview-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 4px;
}
.toolbar-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.toolbar-info {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-mute);
}

.preview-stage {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  padding: 0;
  overflow: auto;
  position: relative;
  min-height: 480px;
  transition: background .35s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.snap-canvas {
  padding: 64px;
  position: relative;
  display: inline-block;
  transition: padding .25s;
  min-width: 480px;
}

.snap-window {
  background: #0f1729;
  color: #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  transition: all .25s;
  min-width: 360px;
}
.snap-window.with-shadow {
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), 0 12px 24px rgba(0, 0, 0, 0.3);
}

.snap-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
}
.snap-controls .ctrl-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
}
.snap-controls.window-mac .ctrl-dot.dot-red { background: #ff5f57; }
.snap-controls.window-mac .ctrl-dot.dot-yellow { background: #febc2e; }
.snap-controls.window-mac .ctrl-dot.dot-green { background: #28c840; }
.snap-controls.window-windows {
  justify-content: flex-end;
  padding: 12px 18px;
}
.snap-controls.window-windows .ctrl-dot { display: none; }
.snap-controls.window-windows::after {
  content: '─  □  ✕';
  font-family: var(--mono);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 4px;
}
.window-title {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--mono);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}
.snap-controls.window-windows .window-title {
  position: static;
  transform: none;
  margin-right: auto;
  margin-left: 4px;
}

/* Code area */
.snap-code-wrap {
  position: relative;
  font-family: var(--mono);
}
#codeDisplay, #codeInput {
  margin: 0;
  padding: 24px 28px;
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.65;
  background: transparent !important;
  color: inherit;
  white-space: pre;
  overflow-x: auto;
  tab-size: 2;
  -moz-tab-size: 2;
  letter-spacing: 0;
}
#codeDisplay {
  display: block;
  pointer-events: none;
  min-height: 80px;
}
#codeDisplay code {
  font-family: var(--mono) !important;
  background: transparent !important;
  text-shadow: none !important;
  font-size: inherit !important;
}
#codeInput {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  outline: none;
  resize: none;
  color: transparent;
  caret-color: var(--text);
  background: transparent;
  overflow: auto;
}
#codeInput::placeholder { color: rgba(255, 255, 255, 0.3); }

/* Line numbers */
#codeDisplay.with-lines {
  padding-left: 60px;
  position: relative;
  counter-reset: line;
}
#codeDisplay.with-lines code {
  display: block;
}
#codeInput.with-lines {
  padding-left: 60px;
}

/* Watermark */
.snap-watermark {
  display: none;
  position: absolute;
  bottom: 12px; right: 24px;
  font-family: var(--mono);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
  background: rgba(0, 0, 0, 0.3);
  padding: 4px 10px;
  border-radius: 999px;
  pointer-events: none;
}

/* ===== USE CASES ===== */
.use-cases {
  padding: 100px 0;
  background: var(--bg-elev);
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.cases-grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 900px) { .cases-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .cases-grid { grid-template-columns: 1fr; } }

.case-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 32px 28px;
  transition: all .25s;
}
.case-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}
.case-icon {
  font-size: 28px;
  font-family: var(--display);
  font-weight: 500;
  width: 52px; height: 52px;
  display: grid;
  place-items: center;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  margin-bottom: 20px;
  color: var(--accent);
}
.case-card h3 {
  font-family: var(--display);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}
.case-card p {
  color: var(--text-mute);
  font-size: 14px;
  line-height: 1.6;
}

/* ===== BIG CTA ===== */
.big-cta {
  text-align: center;
  padding: 120px 32px;
  position: relative;
  z-index: 1;
  overflow: hidden;
}
.big-cta::before {
  content: '';
  position: absolute;
  top: -200px; left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent-glow), transparent 60%);
  z-index: -1;
}
.big-cta h2 {
  font-family: var(--display);
  font-size: clamp(40px, 6.5vw, 84px);
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1;
  max-width: 900px;
  margin: 0 auto 24px;
}
.big-cta h2 em { color: var(--accent); font-style: italic; font-weight: 400; }
.big-cta-sub {
  color: var(--text-mute);
  font-size: 17px;
  margin-bottom: 40px;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--bg-elev);
  padding: 80px 0 40px;
  border-top: 1px solid var(--line);
  position: relative;
  z-index: 1;
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 56px;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-tagline {
  color: var(--text-mute);
  font-size: 14px;
}

.footer-cross { margin-bottom: 56px; }
.footer-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
}
.cross-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
}
.cross-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  padding: 18px 22px;
  border-radius: var(--r-md);
  transition: all .25s;
}
.cross-card:hover {
  border-color: var(--accent);
  background: var(--bg);
  transform: translateY(-2px);
}
.cross-icon {
  font-size: 24px;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: var(--bg-elev);
  border-radius: var(--r-sm);
}
.cross-card div:not(.cross-icon) { flex: 1; }
.cross-card strong {
  display: block;
  font-family: var(--display);
  font-size: 18px;
  font-weight: 500;
  color: var(--text);
}
.cross-card em {
  display: block;
  font-style: normal;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-faint);
  margin-top: 2px;
  letter-spacing: 0.04em;
}
.cross-arrow {
  color: var(--text-faint);
  font-size: 20px;
  transition: all .25s;
}
.cross-card:hover .cross-arrow { color: var(--accent); transform: translateX(4px); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-faint);
  letter-spacing: 0.04em;
  flex-wrap: wrap;
  gap: 12px;
}

/* ===== TOAST ===== */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(140%);
  background: var(--accent);
  color: var(--bg);
  padding: 12px 20px;
  border-radius: var(--r-sm);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 12px 32px var(--accent-glow);
  z-index: 9999;
  transition: transform .35s cubic-bezier(.16,1,.3,1);
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01s !important; }
  .reveal { opacity: 1; transform: none; }
}
