/* ============================================================
   LUCCI — Dark Industrial
   Palette: black canvas, orange + teal accents (logo-derived)
   ============================================================ */

:root {
  /* Surfaces */
  --bg:            #0a0a0b;
  --bg-elevated:   #0f0f11;
  --surface:       #141418;
  --surface-2:     #1a1a1f;
  --border:        #26262c;
  --border-strong: #35353d;

  /* Text */
  --text:          #e7e7ea;
  --text-strong:   #f5f5f7;
  --text-muted:    #8a8a93;
  --text-dim:      #5a5a63;

  /* Accents (from logo) */
  --accent-orange:      #f07a1a;
  --accent-orange-soft: rgba(240, 122, 26, 0.15);
  --accent-orange-ring: rgba(240, 122, 26, 0.35);
  --accent-teal:        #0fa0a3;
  --accent-teal-soft:   rgba(15, 160, 163, 0.15);

  /* Status */
  --error:   #ef4444;
  --warn:    #f59e0b;
  --ok:      #10b981;

  /* Type */
  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Layout */
  --container: 1200px;
  --radius-sm: 6px;
  --radius:    10px;
  --radius-lg: 16px;

  /* Motion */
  --ease-out:  cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in:   cubic-bezier(0.55, 0, 0.65, 1);
  --dur-fast:  180ms;
  --dur-med:   280ms;
  --dur-slow:  420ms;

  /* Z-index scale */
  --z-base: 0;
  --z-raised: 10;
  --z-sticky: 40;
  --z-overlay: 60;
  --z-modal: 100;
}

* { box-sizing: border-box; }

html {
  background: var(--bg);
  color-scheme: dark;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: var(--accent-orange); color: #000; }

a { color: inherit; text-decoration: none; }
button { font: inherit; background: none; border: 0; color: inherit; cursor: pointer; }
img { display: block; max-width: 100%; height: auto; }

h1, h2, h3 {
  color: var(--text-strong);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin: 0;
}

p { margin: 0; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 40px);
}

/* ============================================================
   A11Y
   ============================================================ */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--accent-orange);
  color: #000;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  z-index: var(--z-modal);
}
.skip-link:focus { left: 8px; }

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

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: var(--z-sticky);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  background: rgba(10, 10, 11, 0.65);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
}
.site-header.is-scrolled {
  background: rgba(10, 10, 11, 0.85);
  border-bottom-color: var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-strong);
}
.brand-logo { width: 28px; height: 28px; }
.brand-name { font-size: 15px; }

.site-nav {
  display: flex;
  gap: 28px;
  margin-left: 24px;
}
.site-nav a {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
  transition: color var(--dur-fast) var(--ease-out);
}
.site-nav a:hover { color: var(--text-strong); }

.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Language switcher */
.lang-switch {
  position: relative;
}
.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  min-height: 36px;
  transition: border-color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
}
.lang-btn:hover { border-color: var(--border-strong); background: var(--surface); }
.lang-btn .icon { color: var(--text-muted); }

.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  min-width: 180px;
  list-style: none;
  margin: 0;
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 16px 48px rgba(0,0,0,0.5);
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
  z-index: var(--z-overlay);
}
.lang-switch.is-open .lang-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.lang-menu li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 14px;
  transition: background var(--dur-fast) var(--ease-out);
}
.lang-menu li:hover { background: var(--surface-2); }
.lang-menu li.is-active { color: var(--accent-orange); }
.lang-menu li.is-active::after {
  content: "";
  width: 6px; height: 6px;
  margin-left: auto;
  border-radius: 50%;
  background: var(--accent-orange);
  box-shadow: 0 0 0 3px var(--accent-orange-soft);
}
.lang-code {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  width: 24px;
}
.lang-menu li.is-active .lang-code { color: var(--accent-orange); }

/* Hide secondary nav on small screens */
@media (max-width: 820px) {
  .site-nav { display: none; }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.005em;
  min-height: 48px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-out),
              background var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out);
  touch-action: manipulation;
  user-select: none;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--accent-orange);
  color: #0a0a0b;
  box-shadow: 0 1px 0 rgba(255,255,255,0.08) inset, 0 8px 28px -12px var(--accent-orange-ring);
}
.btn-primary:hover {
  background: #ff8f2e;
  box-shadow: 0 1px 0 rgba(255,255,255,0.08) inset, 0 12px 36px -10px var(--accent-orange-ring);
}

.btn-ghost {
  background: transparent;
  color: var(--text-strong);
  border-color: var(--border-strong);
}
.btn-ghost:hover {
  background: var(--surface);
  border-color: var(--accent-teal);
}

.btn-sm { padding: 9px 14px; font-size: 13px; min-height: 36px; }
.btn-lg { padding: 16px 26px; font-size: 16px; min-height: 52px; }

/* ============================================================
   TYPOGRAPHY UTILS
   ============================================================ */
.display {
  font-size: clamp(2rem, 5.2vw, 4.2rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
}
.muted-strong { color: var(--text-muted); }
.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--text-muted);
  max-width: 60ch;
  line-height: 1.55;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255,255,255,0.02);
}
.status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent-teal);
  box-shadow: 0 0 0 3px var(--accent-teal-soft);
  animation: pulse-dot 2.4s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}
.section-num {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 16px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  padding-top: 112px;
  padding-bottom: 80px;
  overflow: hidden;
  display: flex;
  align-items: center;
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1000px 600px at 75% 20%, rgba(240,122,26,0.10), transparent 60%),
    radial-gradient(800px 500px at 15% 80%, rgba(15,160,163,0.10), transparent 60%);
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, var(--bg) 92%);
}
.hero-grid, .hero-nodes {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: var(--border);
  will-change: transform;
}
.nodes-layer .edge {
  stroke-dasharray: 6 6;
  stroke-opacity: 0.35;
  animation: flow 14s linear infinite;
}
@keyframes flow { to { stroke-dashoffset: -240; } }

.nodes-points .node {
  fill: var(--accent-teal);
  opacity: 0.9;
}
.nodes-points .node-primary {
  fill: var(--accent-orange);
  filter: drop-shadow(0 0 12px var(--accent-orange-ring));
}

.hero-content {
  position: relative;
  max-width: 900px;
}
.hero-content > * + * { margin-top: 28px; }
.hero-content .lead { margin-top: 22px; }

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  max-width: 700px;
}
@media (max-width: 560px) {
  .hero-stats { grid-template-columns: 1fr 1fr; gap: 20px; }
  .hero-stats div:nth-child(3) { grid-column: 1 / -1; }
}
.hero-stats div { min-width: 0; }
.hero-stats dt {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.hero-stats dd {
  margin: 0;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  font-weight: 700;
  color: var(--text-strong);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.hero-stats .unit {
  color: var(--text-muted);
  font-size: 0.55em;
  font-weight: 500;
  margin-left: 2px;
}

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  animation: bob 2.2s ease-in-out infinite;
}
@keyframes bob {
  0%, 100% { transform: translate(-50%, 0); }
  50%      { transform: translate(-50%, 6px); }
}

/* ============================================================
   GENERIC SECTION
   ============================================================ */
.section {
  position: relative;
  padding: clamp(80px, 10vw, 140px) 0;
  border-top: 1px solid var(--border);
}
.section-head {
  max-width: 820px;
  margin-bottom: 56px;
}
.section-head h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
}
.section-head h2 em {
  font-style: normal;
  color: var(--accent-orange);
}
.section-sub {
  margin-top: 14px;
  color: var(--text-muted);
  font-size: clamp(1rem, 1.4vw, 1.125rem);
}
.section-outro {
  margin-top: 32px;
  color: var(--text-muted);
  max-width: 60ch;
}

/* Reveal on scroll */
[data-reveal] > *,
[data-reveal].single {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--dur-slow) var(--ease-out),
              transform var(--dur-slow) var(--ease-out);
}
[data-reveal].is-in > *,
[data-reveal].is-in.single { opacity: 1; transform: none; }
[data-reveal].is-in > *:nth-child(2) { transition-delay: 60ms; }
[data-reveal].is-in > *:nth-child(3) { transition-delay: 120ms; }
[data-reveal].is-in > *:nth-child(4) { transition-delay: 180ms; }
[data-reveal].is-in > *:nth-child(5) { transition-delay: 240ms; }

/* ============================================================
   2. PROBLEM — system failures list
   ============================================================ */
.failures {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
  font-family: var(--font-mono);
}
.failure {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 18px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--error);
  border-radius: var(--radius-sm);
  font-size: 14px;
  transition: border-color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
}
.failure:hover {
  background: var(--surface-2);
  border-left-color: var(--accent-orange);
}
.failure-status {
  color: var(--text-dim);
  font-size: 11px;
  letter-spacing: 0.08em;
}
.failure-label {
  color: var(--text-strong);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
}
.failure-level {
  font-size: 10.5px;
  letter-spacing: 0.14em;
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid currentColor;
}
.failure-error { color: var(--error); }
.failure-warn  { color: var(--warn); }

.pullquote {
  margin-top: 56px;
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  color: var(--text-muted);
  line-height: 1.4;
  letter-spacing: -0.015em;
}
.pullquote strong { color: var(--text-strong); font-weight: 700; }
.pullquote-accent {
  text-align: center;
  font-weight: 700;
  color: var(--text-strong);
  padding: 32px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-top: 48px;
}

/* ============================================================
   3. VALUE — before/after
   ============================================================ */
.before-after {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 20px;
  align-items: stretch;
  margin-bottom: 40px;
}
.ba-col {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.ba-before { background: linear-gradient(180deg, var(--surface) 0%, rgba(20,20,24,0.5) 100%); }
.ba-after {
  background: radial-gradient(500px 200px at 70% 20%, var(--accent-orange-soft), transparent 70%), var(--surface);
  border-color: var(--border-strong);
}
.ba-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--text-dim);
}
.ba-label-on { color: var(--accent-orange); }
.ba-diagram { width: 100%; max-height: 220px; }
.ba-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 760px) {
  .before-after { grid-template-columns: 1fr; }
  .ba-arrow { transform: rotate(90deg); margin: -8px 0; }
}

.value-lead {
  margin-top: 40px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.value-chips {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.value-chips li {
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
}
.value-chips li:nth-child(odd) { border-color: var(--accent-teal); }
.value-chips li:nth-child(even) { border-color: var(--accent-orange); }

/* ============================================================
   4. PILLARS
   ============================================================ */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
@media (max-width: 900px) { .pillars { grid-template-columns: 1fr; } }

.pillar {
  padding: 32px 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform var(--dur-med) var(--ease-out),
              border-color var(--dur-med) var(--ease-out),
              background var(--dur-med) var(--ease-out);
  position: relative;
  overflow: hidden;
}
.pillar::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-teal), var(--accent-orange));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-slow) var(--ease-out);
}
.pillar:hover {
  border-color: var(--border-strong);
  background: var(--surface-2);
}
.pillar:hover::before { transform: scaleX(1); }

.pillar-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 4px;
}
.pillar-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-orange);
  letter-spacing: 0.14em;
}
.pillar h3 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}
.pillar p { color: var(--text-muted); font-size: 15px; }
.pillar-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
  margin-top: 8px;
}
.pillar-bullets li {
  position: relative;
  padding-left: 22px;
  font-size: 14px;
  color: var(--text);
}
.pillar-bullets li::before {
  content: "";
  position: absolute;
  left: 0; top: 10px;
  width: 12px; height: 1px;
  background: var(--accent-teal);
}
.pillar-diagram {
  margin-top: auto;
  width: 100%;
  height: 72px;
  opacity: 0.9;
}

/* ============================================================
   5. METHODOLOGY — pipeline
   ============================================================ */
.pipeline {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  counter-reset: stage;
}
@media (max-width: 900px) {
  .pipeline { grid-template-columns: 1fr; }
}
.stage {
  position: relative;
  padding: 32px 24px;
  border: 1px solid var(--border);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 200px;
}
.pipeline .stage + .stage { border-left: 0; }
@media (max-width: 900px) {
  .pipeline .stage + .stage { border-left: 1px solid var(--border); border-top: 0; }
}
.stage:first-child { border-top-left-radius: var(--radius); border-bottom-left-radius: var(--radius); }
.stage:last-child  { border-top-right-radius: var(--radius); border-bottom-right-radius: var(--radius); }
@media (max-width: 900px) {
  .stage:first-child { border-radius: var(--radius) var(--radius) 0 0; }
  .stage:last-child  { border-radius: 0 0 var(--radius) var(--radius); }
  .stage:not(:first-child):not(:last-child) { border-radius: 0; }
}
.stage::after {
  content: "";
  position: absolute;
  right: -7px; top: 50%;
  width: 14px; height: 14px;
  background: var(--bg);
  border-top: 1px solid var(--border);
  border-right: 1px solid var(--border);
  transform: translateY(-50%) rotate(45deg);
  z-index: 2;
}
.stage:last-child::after { display: none; }
@media (max-width: 900px) {
  .stage::after { display: none; }
}
.stage-num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent-orange);
  letter-spacing: 0.1em;
}
.stage h3 {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.stage p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.5;
}

/* ============================================================
   6. DIFFERENTIATOR — table
   ============================================================ */
.diff-table {
  display: grid;
  grid-template-columns: 1fr;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}
.diff-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-bottom: 1px solid var(--border);
}
.diff-row:last-child { border-bottom: 0; }
.diff-row > div {
  padding: 20px 24px;
  font-size: 15px;
}
.diff-row > div:first-child {
  color: var(--text-muted);
  border-right: 1px solid var(--border);
  text-decoration: line-through;
  text-decoration-color: rgba(239,68,68,0.4);
  text-decoration-thickness: 1px;
}
.diff-row.diff-head > div {
  padding: 14px 24px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  background: var(--bg-elevated);
}
.diff-row.diff-head > div:first-child { text-decoration: none; color: var(--text-dim); }
.diff-row > div.diff-lucci,
.diff-row > div:last-child {
  color: var(--text-strong);
  font-weight: 500;
}
.diff-row:not(.diff-head) > div:last-child {
  position: relative;
  padding-left: 40px;
}
.diff-row:not(.diff-head) > div:last-child::before {
  content: "";
  position: absolute;
  left: 22px; top: 50%;
  width: 10px; height: 10px;
  background: var(--accent-orange);
  border-radius: 2px;
  transform: translateY(-50%) rotate(45deg);
}

/* ============================================================
   7. USE CASES
   ============================================================ */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
@media (max-width: 900px) { .cases-grid { grid-template-columns: 1fr; } }
.case {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color var(--dur-fast) var(--ease-out),
              background var(--dur-fast) var(--ease-out);
}
.case:hover {
  border-color: var(--accent-teal);
  background: var(--surface-2);
}
.case-header {
  display: flex;
  align-items: center;
  gap: 12px;
}
.case-icon {
  color: var(--accent-teal);
  flex-shrink: 0;
}
.case-tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  color: var(--text-dim);
  padding: 4px 8px;
  border: 1px solid var(--border);
  border-radius: 4px;
}
.case h3 { font-size: 1.15rem; font-weight: 700; }
.case p { color: var(--text-muted); font-size: 14.5px; }
.case-code {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 10px 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--accent-orange);
  margin-top: auto;
  overflow-x: auto;
  white-space: nowrap;
}

/* ============================================================
   8. PLATFORM — dashboard mock
   ============================================================ */
.platform-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 1024px) {
  .platform-grid { grid-template-columns: 1fr; gap: 32px; }
}
.platform-copy h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin-top: 8px;
  margin-bottom: 18px;
}
.platform-copy p { color: var(--text-muted); margin-bottom: 12px; }
.platform-list {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: grid;
  gap: 10px;
}
.platform-list li {
  position: relative;
  padding-left: 26px;
  color: var(--text);
}
.platform-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 10px;
  width: 14px; height: 1px;
  background: var(--accent-orange);
}

.dashboard-mock {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  overflow: hidden;
  box-shadow: 0 24px 64px -20px rgba(0,0,0,0.6);
}
.dash-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.dash-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--border-strong);
}
.dash-title {
  margin-left: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}
.dash-body { padding: 18px; display: grid; gap: 18px; }
.dash-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.metric {
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.metric-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--text-dim);
}
.metric-val {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-strong);
  font-variant-numeric: tabular-nums;
}
.metric-val i { font-style: normal; color: var(--text-muted); font-size: 12px; font-weight: 500; margin-left: 2px; }
.metric-delta { font-family: var(--font-mono); font-size: 11px; font-weight: 500; }
.metric-delta.up   { color: var(--ok); }
.metric-delta.down { color: var(--ok); }

.dash-chart {
  width: 100%;
  height: 120px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0;
}
.dash-logs {
  font-family: var(--font-mono);
  font-size: 12px;
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.log-line {
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 12px;
  align-items: center;
  color: var(--text-muted);
}
.log-time { color: var(--text-dim); }
.log-lvl {
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 10px;
  letter-spacing: 0.08em;
}
.log-lvl.ok   { color: var(--ok); border: 1px solid rgba(16,185,129,0.35); }
.log-lvl.warn { color: var(--warn); border: 1px solid rgba(245,158,11,0.35); }

/* ============================================================
   9. CLOSE + FORM
   ============================================================ */
.section-close {
  text-align: center;
  padding-bottom: clamp(100px, 14vw, 180px);
}
.close-inner { max-width: 780px; margin-inline: auto; }
.section-close .display { margin-bottom: 18px; }
.section-close .lead { margin-inline: auto; margin-bottom: 40px; }

.close-form {
  display: grid;
  gap: 16px;
  text-align: left;
  margin-top: 40px;
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.field { display: grid; gap: 8px; }
.field-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.close-form textarea,
.close-form input {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font: inherit;
  font-size: 15px;
  min-height: 48px;
  resize: vertical;
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.close-form textarea:focus,
.close-form input:focus {
  outline: none;
  border-color: var(--accent-orange);
  box-shadow: 0 0 0 3px var(--accent-orange-soft);
}
.close-form .btn { width: 100%; margin-top: 6px; }
.form-hint {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-dim);
  letter-spacing: 0.08em;
  text-align: center;
}
.form-hint.is-success { color: var(--ok); }
.form-hint.is-error   { color: var(--error); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 56px;
  background: var(--bg-elevated);
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-strong);
  font-weight: 600;
}
.footer-tag {
  color: var(--text-muted);
  font-size: 14px;
  max-width: 48ch;
}
.footer-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  margin-top: 8px;
}

/* ============================================================
   PARALLAX LAYERS — set via JS
   ============================================================ */
.parallax { will-change: transform; }

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal] > *,
  [data-reveal].single { opacity: 1; transform: none; }
  .parallax { transform: none !important; }
  .scroll-hint { animation: none; }
}
