/* =============================================
   Custody Node - Landing Page Styles v3
   Enterprise Light — Zen Edition
   ============================================= */

:root {
  --bg:           #f8f9fc;
  --bg-card:      #ffffff;
  --bg-card-hover:#f4f6fb;
  --bg-dark:      #f0f2f8;
  --border:       #dde2ee;
  --border-subtle:#e8ebf5;
  --text:         #1a2340;
  --text-muted:   #5a6888;
  --text-dim:     #9aa3bc;
  --accent:       #1e52d8;
  --accent-light: #4472ef;
  --green:        #0ea151;
  --yellow:       #b07d10;
  --red:          #c42b2b;
  --purple:       #5b3fd4;
  --font:         "Inter", sans-serif;
  --mono:         "JetBrains Mono", monospace;
  --radius:       10px;
  --radius-lg:    16px;
  --t:            0.2s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

.gradient-text {
  background: linear-gradient(135deg, #1e52d8 0%, #4472ef 50%, #5b3fd4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* SCROLL BAR */
.scroll-bar {
  position: fixed; top: 0; left: 0;
  height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  z-index: 200; transition: width 0.1s linear;
}

/* NAV */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100; padding: 16px 0;
  transition: background var(--t), border-bottom var(--t), box-shadow var(--t);
}
.nav.scrolled {
  background: rgba(248,249,252,0.96);
  backdrop-filter: blur(24px) saturate(1.6);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 16px rgba(30,82,216,0.06);
}
.nav-inner {
  max-width: 1160px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; gap: 32px;
}
.logo { text-decoration: none; font-size: 1.35rem; font-weight: 800; letter-spacing: -0.5px; display: inline-flex; align-items: center; }
.logo-icon { width: 1.1em; height: 1.1em; margin-right: 0.35em; color: var(--accent); flex-shrink: 0; }
.logo-main { color: var(--text); }
.logo-ai { color: var(--accent); }
.nav-links { display: flex; list-style: none; gap: 28px; margin-left: auto; }
.nav-links a {
  color: var(--text-muted); text-decoration: none;
  font-size: 0.87rem; font-weight: 500; transition: color var(--t);
  position: relative; padding-bottom: 2px;
}
.nav-links a::after {
  content: ""; position: absolute; bottom: 0; left: 0;
  width: 0; height: 1px; background: var(--accent);
  transition: width var(--t);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 22px; border-radius: 8px;
  font-size: 0.88rem; font-weight: 600;
  text-decoration: none; cursor: pointer;
  transition: all var(--t); border: none; font-family: var(--font);
  position: relative; overflow: hidden;
}
.btn-nav {
  background: var(--accent); color: white; padding: 8px 18px; font-size: 0.84rem;
  box-shadow: 0 1px 4px rgba(30,82,216,0.25);
}
.btn-nav:hover { background: var(--accent-light); box-shadow: 0 4px 14px rgba(30,82,216,0.3); }
.btn-primary { background: var(--accent); color: white; box-shadow: 0 2px 8px rgba(30,82,216,0.25); }
.btn-primary:hover { background: var(--accent-light); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(30,82,216,0.3); }
.btn-glow:hover { box-shadow: 0 4px 20px rgba(30,82,216,0.3); }
.btn-ghost { background: transparent; color: var(--text-muted); border: 1px solid var(--border); }
.btn-ghost:hover { color: var(--text); border-color: var(--accent); background: rgba(30,82,216,0.04); }
.btn-outline { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-large { padding: 14px 32px; font-size: 1rem; }
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px; margin-left: auto;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text); border-radius: 2px; }

/* HERO */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  position: relative; overflow: hidden; padding: 100px 0 80px;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(30,82,216,0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30,82,216,0.055) 1px, transparent 1px);
  background-size: 72px 72px;
}
.glow { position: absolute; border-radius: 50%; filter: blur(140px); opacity: 0.18; }
.glow-1 { width: 600px; height: 600px; background: radial-gradient(circle, rgba(30,82,216,0.45), transparent 70%); top: -180px; left: -120px; }
.glow-2 { width: 400px; height: 400px; background: radial-gradient(circle, rgba(91,63,212,0.3), transparent 70%); top: 180px; right: -80px; }
.glow-3 { width: 300px; height: 300px; background: radial-gradient(circle, rgba(14,161,81,0.25), transparent 70%); bottom: 0; left: 38%; }
.particle-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.4; }

.hero-layout {
  position: relative; z-index: 2;
  display: flex; align-items: center; gap: 64px;
  max-width: 1160px; margin: 0 auto; padding: 0 24px; width: 100%;
}
.hero-text { flex: 1; min-width: 0; }
.hero-terminal { width: 440px; flex-shrink: 0; position: relative; }

/* Reveal animations */
.reveal, .reveal-up, .reveal-left, .reveal-right {
  opacity: 0; transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.55s ease;
  transition-delay: var(--delay, 0s);
}
.reveal-left { transform: translateX(-22px); }
.reveal-right { transform: translateX(22px); }
.reveal.visible, .reveal-up.visible, .reveal-left.visible, .reveal-right.visible {
  opacity: 1; transform: translate(0);
}

.badge-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(30,82,216,0.07); border: 1px solid rgba(30,82,216,0.18);
  border-radius: 6px; padding: 6px 16px;
  font-size: 0.73rem; font-weight: 700; color: var(--accent); margin-bottom: 24px;
  letter-spacing: 0.6px; text-transform: uppercase;
}
.badge-dot {
  width: 6px; height: 6px; background: var(--green); border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.5;transform:scale(.8)} }

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800; line-height: 1.1; letter-spacing: -1.5px; margin-bottom: 20px; min-height: 2.2em;
}
.typed-target { display: inline-block; min-width: 4px; }
.typed-target::after {
  content: "|"; animation: blink 0.8s step-end infinite;
  color: var(--accent); font-weight: 300;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }
.hero-subtitle { font-size: 1.05rem; color: var(--text-muted); line-height: 1.75; margin-bottom: 30px; max-width: 520px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 44px; }
.hero-stats { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.stat { text-align: center; }
.stat-value { display: block; font-size: 1.9rem; font-weight: 800; letter-spacing: -1px; font-family: var(--mono); color: var(--text); }
.stat-label { font-size: 0.66rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: .5px; margin-top: 2px; }
.stat-divider { width: 1px; height: 38px; background: var(--border); }

/* Terminal */
.terminal {
  background: #1a2340; border: 1px solid #2d3a5c;
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: 0 20px 60px rgba(30,82,216,0.15), 0 1px 0 rgba(255,255,255,0.1);
}
.terminal-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 11px 16px; background: #141c32; border-bottom: 1px solid #2d3a5c;
}
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot.red   { background: #ff5f57; }
.dot.yellow{ background: #febc2e; }
.dot.green { background: #28c840; }
.terminal-title { font-family: var(--mono); font-size: .72rem; color: #506080; margin-left: 8px; }
.terminal-body { padding: 20px; font-family: var(--mono); font-size: .78rem; line-height: 1.9; min-height: 180px; }
.t-line { display: flex; gap: 8px; align-items: baseline; }
.t-prompt { color: #4472ef; flex-shrink: 0; }
.t-cmd { color: #dde5f8; }
.t-out { color: #7a90bc; padding-left: 16px; }
.t-green { color: #3dd68c; }
.t-yellow { color: #f5c542; }
.t-cursor { display: inline-block; color: #4472ef; animation: blink .7s step-end infinite; margin-left: 2px; }
.terminal-float {
  position: absolute;
  background: white; border: 1px solid var(--border);
  border-radius: 100px; padding: 6px 14px;
  font-size: .72rem; font-weight: 600; color: var(--text-muted);
  white-space: nowrap; box-shadow: 0 4px 16px rgba(30,82,216,0.12);
  animation: float-badge 4s ease-in-out infinite;
}
.tf-1 { top: -14px; left: -20px; animation-delay: 0s; }
.tf-2 { top: 30%; right: -24px; animation-delay: 1.3s; }
.tf-3 { bottom: -14px; right: 20px; animation-delay: 2.6s; }
@keyframes float-badge { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-6px)} }

/* TRUST STRIP */
.trust-strip {
  background: var(--bg-dark);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 12px 0; overflow: hidden;
}
.trust-marquee { overflow: hidden; }
.trust-track {
  display: flex; align-items: center;
  animation: marquee 28s linear infinite; width: max-content;
}
@keyframes marquee { from{transform:translateX(0)} to{transform:translateX(-50%)} }
.trust-item {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .72rem; font-weight: 700; color: var(--text-muted);
  padding: 0 20px; white-space: nowrap; letter-spacing: 0.5px; text-transform: uppercase;
}
.trust-sep { color: var(--border); font-size: .8rem; }

/* SECTIONS */
.section { padding: 100px 0; }
.dark-section { background: var(--bg-dark); }
.section-label {
  font-size: .66rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 3px; color: var(--accent); margin-bottom: 14px;
  display: inline-flex; align-items: center; gap: 10px;
}
.section-label::before { content: ''; width: 20px; height: 2px; background: var(--accent); border-radius: 1px; }
.section-label.light { color: var(--accent-light); }
.section-title {
  font-size: clamp(1.65rem, 3.4vw, 2.4rem); font-weight: 800;
  letter-spacing: -0.7px; line-height: 1.15; margin-bottom: 16px; color: var(--text);
}
.section-sub { font-size: 1rem; color: var(--text-muted); max-width: 620px; line-height: 1.75; margin-bottom: 48px; }

/* PROBLEM */
.problem-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: 14px; }
.problem-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-left: 3px solid rgba(30,82,216,0.2);
  border-radius: var(--radius); padding: 26px;
  transition: border-color var(--t), transform var(--t), box-shadow var(--t);
}
.problem-card:hover { border-left-color: var(--accent); box-shadow: 0 4px 24px rgba(30,82,216,0.08); transform: translateY(-2px); }
.problem-icon { margin-bottom: 12px; }
.problem-icon svg { width: 26px; height: 26px; stroke: var(--accent); }
.problem-card h3 { font-size: .93rem; font-weight: 700; margin-bottom: 7px; color: var(--text); }
.problem-card p { font-size: .84rem; color: var(--text-muted); line-height: 1.65; }

/* PROXY DIAGRAM */
.pd-perimeter {
  background: linear-gradient(135deg, rgba(30,82,216,0.04), rgba(91,63,212,0.03));
  border: 1px solid rgba(30,82,216,0.18); border-radius: var(--radius-lg);
  padding: 28px; margin-bottom: 40px; position: relative; overflow: hidden;
}
.pd-perimeter::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--accent-light), transparent);
}
.pd-perimeter-label {
  text-align: center; font-size: .68rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1.5px; color: var(--accent); margin-bottom: 28px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.pd-flow {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px; margin-bottom: 20px;
}
.pd-node {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px; text-align: center; min-width: 120px;
  transition: border-color var(--t), transform var(--t);
}
.pd-node:hover { transform: translateY(-2px); }
.pd-client { border-color: rgba(30,82,216,.2); }
.pd-proxy {
  background: rgba(30,82,216,.05); border-color: rgba(30,82,216,.35);
  box-shadow: 0 0 32px rgba(30,82,216,.1); min-width: 200px; padding: 18px 22px;
}
.pd-local { border-color: rgba(14,161,81,.3); }
.pd-cloud { border-color: rgba(176,125,16,.3); }
.pd-node-icon { margin-bottom: 7px; }
.pd-node-icon svg { width: 22px; height: 22px; stroke: var(--accent); }
.pd-node-name { font-size: .83rem; font-weight: 700; margin-bottom: 3px; color: var(--text); }
.pd-node-sub { font-size: .72rem; color: var(--text-muted); }
.pd-node-tag {
  display: inline-block; margin-top: 7px; border-radius: 4px; padding: 2px 10px;
  font-size: .66rem; font-weight: 700; font-family: var(--mono);
}
.pd-node-tag.green { background: rgba(14,161,81,.1); color: var(--green); border: 1px solid rgba(14,161,81,.2); }
.pd-node-tag.yellow { background: rgba(176,125,16,.1); color: var(--yellow); border: 1px solid rgba(176,125,16,.2); }
.pd-proxy-badge { font-size: .92rem; font-weight: 800; color: var(--accent); margin-bottom: 12px; }
.pd-proxy-layers { display: flex; flex-direction: column; gap: 5px; }
.pd-layer {
  display: flex; justify-content: space-between; align-items: center;
  background: rgba(30,82,216,.05); border: 1px solid rgba(30,82,216,.12);
  border-radius: 6px; padding: 5px 10px;
  font-size: .72rem; color: var(--text-muted); transition: background var(--t);
}
.pd-layer.active-layer { background: rgba(30,82,216,.1); border-color: rgba(30,82,216,.28); color: var(--text); }
.pd-layer em { color: var(--accent); font-style: normal; font-size: .68rem; }
.pd-arrow { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 0 6px; flex-shrink: 0; }
.pd-arrow-line { width: 52px; height: 2px; background: rgba(30,82,216,.25); border-radius: 2px; position: relative; overflow: visible; }
.pd-packet {
  position: absolute; top: -3px; left: -6px;
  width: 8px; height: 8px; background: var(--accent); border-radius: 50%;
  animation: packet-flow 2s ease-in-out infinite;
  box-shadow: 0 0 6px rgba(30,82,216,.5);
}
@keyframes packet-flow {
  0%{left:-6px;opacity:0} 15%{opacity:1} 85%{opacity:1} 100%{left:calc(100% + 6px);opacity:0}
}
.pd-arrow-label { font-size: .6rem; color: var(--text-dim); font-family: var(--mono); }
.pd-split { display: flex; flex-direction: column; gap: 10px; padding: 0 6px; }
.pd-split-branch { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.pd-split-line { width: 44px; height: 2px; background: rgba(30,82,216,.2); border-radius: 2px; position: relative; }
.pd-packet-slow { animation: packet-flow 2.8s ease-in-out infinite; animation-delay: .4s; }
.pd-packet-fast { animation: packet-flow 1.6s ease-in-out infinite; animation-delay: 1s; }
.pd-split-label { font-size: .6rem; color: var(--text-dim); font-family: var(--mono); }
.pd-models { display: flex; flex-direction: column; gap: 10px; }
.pd-guarantees {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
  padding-top: 18px; border-top: 1px solid var(--border-subtle);
}
.pd-g {
  background: rgba(30,82,216,.05); border: 1px solid rgba(30,82,216,.14);
  border-radius: 6px; padding: 4px 14px; font-size: .74rem; color: var(--text-muted);
}

/* PROXY NUMBERED CARDS */
.proxy-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: 14px; }
.proxy-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-top: 2px solid rgba(30,82,216,0.2);
  border-radius: var(--radius); padding: 26px;
  transition: all var(--t); position: relative; overflow: hidden;
}
.proxy-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light), transparent);
  opacity: 0; transition: opacity var(--t);
}
.proxy-card:hover { border-color: rgba(30,82,216,.3); box-shadow: 0 4px 20px rgba(30,82,216,.08); transform: translateY(-2px); }
.proxy-card:hover::before { opacity: 1; }
.pc-num { font-family: var(--mono); font-size: 1.8rem; font-weight: 700; color: rgba(30,82,216,.18); margin-bottom: 8px; line-height: 1; }
.proxy-card h3 { font-size: .93rem; font-weight: 700; margin-bottom: 8px; color: var(--text); }
.proxy-card p { font-size: .84rem; color: var(--text-muted); line-height: 1.65; }

/* DATA RESIDENCY */
.residency-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.residency-list { display: flex; flex-direction: column; }
.rl-item {
  display: flex; gap: 14px; padding: 18px 0;
  border-bottom: 1px solid var(--border-subtle); transition: all var(--t);
}
.rl-item:last-child { border-bottom: none; }
.rl-dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; margin-top: 5px; }
.rl-dot.rl-green  { background: var(--green); box-shadow: 0 0 8px rgba(14,161,81,.4); }
.rl-dot.rl-yellow { background: var(--yellow); }
.rl-dot.rl-red    { background: var(--red); }
.rl-dot.rl-purple { background: var(--purple); }
.rl-body h3 { font-size: .91rem; font-weight: 700; margin-bottom: 5px; color: var(--text-muted); }
.rl-body p { font-size: .82rem; color: var(--text-dim); line-height: 1.65; margin-bottom: 7px; }
.rl-tag {
  display: inline-block;
  background: rgba(30,82,216,.07); border: 1px solid rgba(30,82,216,.14);
  border-radius: 4px; padding: 2px 10px;
  font-size: .66rem; color: var(--accent); font-family: var(--mono); font-weight: 600;
}
.active-rl .rl-body h3 { color: var(--text); }

/* GEO MAP */
.residency-map { display: flex; flex-direction: column; gap: 20px; }
.geo-map {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 22px; position: relative;
  box-shadow: 0 2px 12px rgba(30,82,216,.05);
}
.geo-title { font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: var(--text-dim); margin-bottom: 16px; text-align: center; }
.geo-eu {
  background: rgba(30,82,216,.04); border: 1px dashed rgba(30,82,216,.22);
  border-radius: 10px; padding: 14px; margin-bottom: 12px;
}
.geo-eu-label { font-size: .68rem; font-weight: 700; color: var(--accent); margin-bottom: 10px; }
.geo-spain {
  background: rgba(14,161,81,.04); border: 1px dashed rgba(14,161,81,.22);
  border-radius: 8px; padding: 12px; display: flex; flex-direction: column; gap: 8px;
}
.geo-spain-label { font-size: .66rem; font-weight: 700; color: var(--green); margin-bottom: 2px; }
.geo-sweden { font-size: .7rem; color: var(--text-dim); margin-top: 8px; padding: 3px 8px; border: 1px dashed var(--border); border-radius: 6px; display: inline-block; }
.geo-node {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg-dark); border: 1px solid var(--border);
  border-radius: 8px; padding: 9px 12px;
}
.gn-ring {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--green); position: relative; flex-shrink: 0;
  animation: ring-pulse 2s ease-in-out infinite;
}
.gn-ring::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 2px solid var(--green);
  animation: ring-expand 2s ease-in-out infinite;
}
.gn-ring.gn-ring-yellow { background: var(--yellow); }
.gn-ring.gn-ring-yellow::after { border-color: var(--yellow); }
@keyframes ring-pulse { 0%,100%{opacity:1} 50%{opacity:.5} }
@keyframes ring-expand { 0%{transform:scale(1);opacity:.6} 100%{transform:scale(2.5);opacity:0} }
.geo-node span { font-size: 1.1rem; }
.geo-node small { font-size: .7rem; color: var(--text-muted); font-family: var(--mono); }
.geo-blocked {
  background: rgba(196,43,43,.04); border: 1px dashed rgba(196,43,43,.2);
  border-radius: 8px; padding: 10px 14px; display: flex; flex-direction: column; gap: 6px;
}
.geo-blocked-label { font-size: .66rem; font-weight: 700; color: var(--red); }
.geo-blocked-items { display: flex; gap: 14px; font-size: .95rem; }
.geo-wall { display: flex; align-items: center; gap: 8px; }
.geo-wall-line { flex: 1; height: 2px; background: rgba(196,43,43,.2); border-radius: 2px; }
.geo-wall-cross { color: var(--red); font-weight: 700; font-size: 1.1rem; }
.residency-certs { display: flex; flex-direction: column; gap: 10px; }
.rcert {
  display: flex; align-items: flex-start; gap: 12px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 12px 16px; transition: border-color var(--t), box-shadow var(--t);
}
.rcert:hover { border-color: rgba(30,82,216,.3); box-shadow: 0 2px 10px rgba(30,82,216,.07); }
.rcert-icon { flex-shrink: 0; }
.rcert-icon svg { width: 18px; height: 18px; stroke: var(--accent); }
.rcert div { display: flex; flex-direction: column; gap: 2px; }
.rcert strong { font-size: .83rem; font-weight: 700; color: var(--text); }
.rcert span { font-size: .75rem; color: var(--text-muted); }

/* ARCHITECTURE */
.arch-showcase { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 40px; }
.arch-hw-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-l); overflow: hidden; transition: transform .25s, border-color .25s; }
.arch-hw-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.arch-hw-img-wrap { position: relative; height: 220px; overflow: hidden; }
.arch-hw-img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.75) saturate(.8); transition: filter .4s, transform .4s; }
.arch-hw-card:hover .arch-hw-img { filter: brightness(.85) saturate(1); transform: scale(1.03); }
.arch-hw-overlay { position: absolute; bottom: 0; left: 0; right: 0; padding: 12px 16px; background: linear-gradient(transparent, rgba(8,10,15,.85)); }
.arch-hw-badge { font-size: .72rem; font-weight: 700; font-family: var(--mono); color: #fff; background: rgba(99,102,241,.55); border: 1px solid rgba(99,102,241,.4); padding: 3px 10px; border-radius: 20px; backdrop-filter: blur(6px); }
.arch-hw-info { padding: 20px 22px; }
.arch-hw-logo { font-size: .65rem; font-weight: 800; letter-spacing: 2px; color: var(--accent); font-family: var(--mono); text-transform: uppercase; margin-bottom: 6px; }
.arch-hw-info h3 { font-size: 1rem; font-weight: 800; color: var(--text); margin-bottom: 8px; }
.arch-hw-info p { font-size: .82rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 12px; }
.arch-hw-specs { display: flex; flex-wrap: wrap; gap: 6px; }
.arch-hw-specs span { font-size: .66rem; font-weight: 700; font-family: var(--mono); padding: 2px 10px; border-radius: 4px; background: rgba(99,102,241,.08); border: 1px solid rgba(99,102,241,.2); color: var(--accent); }
.arch-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: 14px; margin-bottom: 40px; }
.arch-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px; transition: all var(--t);
  position: relative;
}
.arch-card::after { content: ''; position: absolute; left: 0; top: 16px; bottom: 16px; width: 2px; background: rgba(30,82,216,0.25); border-radius: 1px; }
.arch-card:hover { border-color: rgba(30,82,216,.28); box-shadow: 0 4px 20px rgba(30,82,216,.07); transform: translateY(-2px); }
.arch-icon { margin-bottom: 10px; }
.arch-icon svg { width: 26px; height: 26px; stroke: var(--accent); }
.arch-card h3 { font-size: .92rem; font-weight: 700; margin-bottom: 7px; color: var(--text); }
.arch-card p { font-size: .84rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 12px; }
.arch-tag {
  display: inline-block;
  background: rgba(30,82,216,.07); border: 1px solid rgba(30,82,216,.16);
  border-radius: 4px; padding: 2px 12px;
  font-size: .66rem; color: var(--accent); font-family: var(--mono); font-weight: 600;
}
.deploy-title { font-size: .93rem; font-weight: 700; margin-bottom: 14px; color: var(--text); }
.deploy-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 12px; }
.deploy-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px 20px; transition: border-color var(--t), box-shadow var(--t);
}
.deploy-card:hover { border-color: rgba(30,82,216,.28); box-shadow: 0 2px 10px rgba(30,82,216,.06); }
.deploy-dot { width: 10px; height: 10px; border-radius: 50%; margin-bottom: 9px; }
.deploy-dot.green  { background: var(--green); box-shadow: 0 0 6px rgba(14,161,81,.5); }
.deploy-dot.yellow { background: var(--yellow); }
.deploy-dot.red    { background: var(--red); }
.deploy-card h4 { font-size: .84rem; font-weight: 700; margin-bottom: 5px; color: var(--text); }
.deploy-card p { font-size: .8rem; color: var(--text-muted); }

/* COMPLIANCE */
.compliance-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 14px; margin-bottom: 28px; }
.compliance-item {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px; text-align: center; transition: all var(--t);
  border-top: 2px solid rgba(30,82,216,0.2);
}
.compliance-item:hover { border-color: rgba(30,82,216,.28); box-shadow: 0 4px 20px rgba(30,82,216,.07); transform: translateY(-2px); }
.ci-icon { margin-bottom: 10px; }
.ci-icon svg { width: 28px; height: 28px; stroke: var(--accent); }
.compliance-item h3 { font-size: .92rem; font-weight: 700; margin-bottom: 7px; color: var(--text); }
.compliance-item p { font-size: .82rem; color: var(--text-muted); line-height: 1.6; }
.compliance-note {
  display: flex; align-items: flex-start; gap: 12px;
  background: rgba(176,125,16,.05); border: 1px solid rgba(176,125,16,.2);
  border-left: 3px solid var(--yellow);
  border-radius: var(--radius); padding: 16px 20px;
}
.compliance-note p { font-size: .84rem; color: var(--text-muted); line-height: 1.6; }

/* PRICING */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: 14px; margin-bottom: 20px; align-items: start; }
.pricing-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 30px; position: relative; transition: all var(--t);
}
.pricing-card:hover { transform: translateY(-3px); box-shadow: 0 8px 32px rgba(30,82,216,.1); }
.pricing-card.featured {
  border-color: rgba(30,82,216,.35); background: rgba(30,82,216,.04);
  box-shadow: 0 4px 40px rgba(30,82,216,.12);
}
.plan-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: white;
  font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
  padding: 3px 14px; border-radius: 4px;
}
.plan-name { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: var(--text-dim); margin-bottom: 12px; }
.plan-price { display: flex; align-items: baseline; gap: 4px; margin-bottom: 22px; }
.plan-from { font-size: .7rem; color: var(--text-dim); }
.plan-amount { font-size: 2.6rem; font-weight: 900; letter-spacing: -2px; font-family: var(--mono); color: var(--text); }
.plan-currency { font-size: .85rem; color: var(--text-muted); margin-left: 2px; }
.plan-features { list-style: none; display: flex; flex-direction: column; gap: 8px; margin-bottom: 22px; }
.plan-features li { font-size: .84rem; color: var(--text-muted); }
.setup-fee { text-align: center; padding: 13px; border: 1px dashed var(--border); border-radius: var(--radius); }
.setup-fee p { font-size: .82rem; color: var(--text-dim); }
.setup-fee strong { color: var(--text-muted); }

/* ECONOMICS */
.econ-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 14px; margin-bottom: 36px; }
.scenario { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.scenario.featured-scenario { border-color: rgba(14,161,81,.3); background: rgba(14,161,81,.04); }
.scenario-label { font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--text-dim); margin-bottom: 7px; }
.scenario-value { font-size: 1.75rem; font-weight: 800; font-family: var(--mono); letter-spacing: -1px; margin-bottom: 5px; color: var(--text); }
.scenario-detail { font-size: .78rem; color: var(--text-muted); margin-bottom: 10px; }
.scenario-bar { height: 3px; background: var(--border); border-radius: 2px; margin-bottom: 8px; overflow: hidden; }
.sb-fill {
  height: 100%; background: linear-gradient(90deg, var(--accent), var(--green));
  border-radius: 2px; transform: scaleX(0); transform-origin: left;
  transition: transform 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.sb-fill.animated { transform: scaleX(1); }
.scenario-break { font-size: .72rem; color: var(--green); font-family: var(--mono); font-weight: 600; }
.opex-breakdown h3 { font-size: .93rem; font-weight: 700; margin-bottom: 12px; color: var(--text); }
.opex-items { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.opex-item { display: flex; justify-content: space-between; padding: 11px 16px; font-size: .84rem; color: var(--text-muted); border-bottom: 1px solid var(--border-subtle); }
.opex-item:last-child { border-bottom: none; }
.opex-total { background: rgba(30,82,216,.05); font-weight: 700; color: var(--text); }

/* TARGET */
.target-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: 14px; }
.target-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px; transition: all var(--t);
}
.target-card:hover { border-color: rgba(30,82,216,.28); box-shadow: 0 4px 18px rgba(30,82,216,.07); transform: translateY(-2px); }
.target-icon { margin-bottom: 10px; }
.target-icon svg { width: 26px; height: 26px; stroke: var(--accent); }
.target-card h3 { font-size: .91rem; font-weight: 700; margin-bottom: 7px; color: var(--text); }
.target-card p { font-size: .82rem; color: var(--text-muted); line-height: 1.6; }

/* ROADMAP */
.rm-track { margin-top: 44px; }
.rm-track-bar { height: 2px; background: var(--border); border-radius: 2px; margin-bottom: 0; overflow: hidden; }
.rm-track-progress { height: 100%; width: 25%; background: linear-gradient(90deg, var(--accent), var(--accent-light)); border-radius: 2px; }
.rm-milestones { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; position: relative; }
.rm-milestone { display: flex; flex-direction: column; }
.rm-ms-dot { width: 13px; height: 13px; border-radius: 50%; background: var(--border); border: 2px solid var(--border); margin: -7px auto 16px; position: relative; z-index: 1; flex-shrink: 0; }
.rm-ms-dot.active-dot { background: var(--accent); border-color: var(--accent-light); box-shadow: 0 0 16px rgba(30,82,216,.5); }
.rm-ms-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 20px; flex: 1; transition: all var(--t); }
.rm-ms-card:hover { border-color: rgba(30,82,216,.28); box-shadow: 0 4px 18px rgba(30,82,216,.08); transform: translateY(-2px); }
.rm-ms-card.rm-ms-featured { border-color: rgba(30,82,216,.35); background: rgba(30,82,216,.04); box-shadow: 0 4px 32px rgba(30,82,216,.1); }
.rm-ms-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.rm-ms-phase { font-size: .63rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--accent); font-family: var(--mono); }
.rm-ms-badge { font-size: .58rem; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; padding: 2px 7px; border-radius: 3px; }
.badge-now { background: rgba(30,82,216,.12); color: var(--accent); }
.badge-next { background: rgba(176,125,16,.12); color: var(--yellow); }
.badge-target { background: rgba(14,161,81,.12); color: var(--green); }
.badge-future { background: rgba(90,104,136,.1); color: var(--text-dim); }
.rm-ms-icon { font-size: 1.4rem; margin-bottom: 6px; }
.rm-ms-title { font-size: .89rem; font-weight: 700; margin-bottom: 10px; color: var(--text); }
.rm-ms-list { list-style: none; padding: 0; margin-bottom: 14px; display: flex; flex-direction: column; gap: 4px; }
.rm-ms-list li { font-size: .74rem; color: var(--text-muted); font-family: var(--mono); padding-left: 13px; position: relative; }
.rm-ms-list li::before { content: '→'; position: absolute; left: 0; color: var(--accent); font-size: .6rem; top: 1px; }
.rm-ms-kpi { background: rgba(30,82,216,.06); border-radius: 8px; padding: 10px; text-align: center; border: 1px solid rgba(30,82,216,.12); }
.rm-ms-kpi.featured-kpi { background: rgba(14,161,81,.07); border-color: rgba(14,161,81,.2); }
.rm-kpi-val { display: block; font-size: 1.4rem; font-weight: 900; font-family: var(--mono); letter-spacing: -1px; color: var(--text); }
.rm-ms-kpi.featured-kpi .rm-kpi-val { color: var(--green); }
.rm-kpi-lbl { font-size: .6rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: .5px; }

/* USE CASES */
.uc-tabs { display: flex; gap: 8px; margin-bottom: 28px; flex-wrap: wrap; }
.uc-tab { background: transparent; border: 1px solid var(--border); color: var(--text-muted); padding: 9px 18px; border-radius: 8px; cursor: pointer; font-size: .84rem; font-weight: 500; transition: all var(--t); font-family: var(--font); }
.uc-tab:hover { border-color: rgba(30,82,216,.35); color: var(--text); background: rgba(30,82,216,.04); }
.uc-tab.active { background: rgba(30,82,216,.07); border-color: var(--accent); color: var(--accent); font-weight: 600; }
.uc-panel { display: none; }
.uc-panel.active { display: block; animation: uc-fade .3s ease; }
@keyframes uc-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.uc-context { background: rgba(30,82,216,.05); border-left: 3px solid var(--accent); padding: 12px 16px; border-radius: 0 8px 8px 0; font-size: .82rem; color: var(--text-muted); margin-bottom: 24px; line-height: 1.65; }
.uc-flow { display: flex; align-items: center; overflow-x: auto; padding: 24px 20px; background: var(--bg-dark); border: 1px solid var(--border); border-radius: 16px; margin-bottom: 16px; scrollbar-width: thin; scrollbar-color: var(--border) transparent; gap: 0; }
.ucf-node { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; min-width: 150px; flex-shrink: 0; }
.ucf-node.ucf-proxy { border-color: rgba(30,82,216,.35); background: rgba(30,82,216,.05); min-width: 192px; }
.ucf-node.ucf-model-cloud { border-color: rgba(176,125,16,.3); background: rgba(176,125,16,.04); }
.ucf-node.ucf-result { border-color: rgba(14,161,81,.3); background: rgba(14,161,81,.04); }
.ucf-icon { margin-bottom: 4px; }
.ucf-icon svg { width: 22px; height: 22px; stroke: var(--accent); }
.ucf-name { font-size: .82rem; font-weight: 700; margin-bottom: 6px; color: var(--text); }
.ucf-sub { font-size: .67rem; color: var(--text-dim); font-family: var(--mono); }
.ucf-chips { display: flex; flex-direction: column; gap: 4px; }
.uc-chip { font-size: .67rem; padding: 3px 7px; border-radius: 4px; font-family: var(--mono); white-space: nowrap; }
.uc-chip.red { background: rgba(196,43,43,.08); color: var(--red); border: 1px solid rgba(196,43,43,.18); }
.ucf-proxy-label { font-size: .7rem; font-weight: 700; color: var(--accent); margin-bottom: 8px; }
.ucf-filters { display: flex; flex-direction: column; gap: 5px; }
.ucf-filter { font-size: .67rem; font-family: var(--mono); color: var(--text-muted); padding: 4px 7px; background: var(--bg-dark); border-radius: 4px; white-space: nowrap; }
.ucf-filter code { color: var(--green); }
.ucf-arrow { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; flex: 1; min-width: 56px; max-width: 88px; }
.ucf-arrow span { font-size: .6rem; color: var(--text-dim); font-family: var(--mono); white-space: nowrap; text-align: center; }
.ucf-line { height: 2px; width: 100%; background: rgba(30,82,216,.2); position: relative; overflow: hidden; border-radius: 1px; }
.ucf-line-safe { background: rgba(14,161,81,.35); }
.ucf-line-return { background: rgba(30,82,216,.18); }
.ucf-packet { position: absolute; width: 10px; height: 4px; border-radius: 2px; background: var(--accent); top: -1px; animation: ucf-flow 2s linear infinite; }
.ucf-packet-safe { background: var(--green); animation-duration: 1.6s; }
.ucf-packet-return { background: var(--accent-light); animation-direction: reverse; }
@keyframes ucf-flow { from { left: -10px; } to { left: 100%; } }
.uc-guarantees { display: flex; gap: 10px; flex-wrap: wrap; }
.uc-g { font-size: .75rem; padding: 6px 13px; background: rgba(14,161,81,.07); border: 1px solid rgba(14,161,81,.18); border-radius: 6px; color: var(--green); font-family: var(--mono); font-weight: 600; }

/* CONTACT */
.contact-form { max-width: 700px; display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { grid-column: 1/-1; }
.form-group label { font-size: .78rem; font-weight: 600; color: var(--text-muted); }
.form-group input, .form-group select, .form-group textarea {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 8px; padding: 11px 14px; color: var(--text);
  font-size: .87rem; font-family: var(--font);
  transition: border-color var(--t), box-shadow var(--t); outline: none; -webkit-appearance: none;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--accent); box-shadow: 0 0 0 3px rgba(30,82,216,.12);
}
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--text-dim); }
.form-group select option { background: white; }
.form-group textarea { resize: vertical; }
.form-note { font-size: .72rem; color: var(--text-dim); }

/* FOOTER */
.footer { border-top: 1px solid var(--border); background: var(--bg-dark); padding: 52px 0 0; }
.footer-inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 36px; }
.footer-brand p { font-size: .8rem; color: var(--text-dim); margin-top: 10px; line-height: 1.6; }
.footer-links { display: flex; gap: 48px; }
.footer-col { display: flex; flex-direction: column; gap: 9px; }
.footer-col h4 { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--text-dim); margin-bottom: 4px; }
.footer-col a { font-size: .8rem; color: var(--text-muted); text-decoration: none; transition: color var(--t); }
.footer-col a:hover { color: var(--text); }
.footer-bottom { border-top: 1px solid var(--border); padding: 16px 0; text-align: center; }
.footer-bottom p { font-size: .72rem; color: var(--text-dim); }

/* ── Comparison table ──────────────────────────────────────── */
.compare-section { }
.compare-wrap { overflow-x: auto; margin-top: 40px; border-radius: var(--radius-l); border: 1px solid var(--border); }
.compare-table { width: 100%; min-width: 580px; border-collapse: collapse; }
.ct-head { display: grid; grid-template-columns: 1.8fr 1fr 1fr 1.3fr; background: var(--bg-s); border-bottom: 2px solid var(--border); }
.ct-row  { display: grid; grid-template-columns: 1.8fr 1fr 1fr 1.3fr; border-bottom: 1px solid var(--border-s); transition: background .2s; }
.ct-row:last-child { border-bottom: none; }
.ct-row:hover { background: rgba(99,102,241,.03); }
.ct-head > div, .ct-row > div { padding: 14px 18px; font-size: .84rem; }
.ct-label { font-weight: 600; color: var(--text); }
.ct-col { font-weight: 700; font-size: .8rem; text-align: center; color: var(--text-muted); }
.ct-col small { display: block; font-weight: 400; font-size: .7rem; color: var(--text-dim); margin-top: 2px; }
.ct-col-us { background: rgba(99,102,241,.08); color: var(--accent) !important; border-left: 2px solid var(--accent); font-size: .88rem !important; }
.ct-val { text-align: center; font-size: .82rem; color: var(--text-muted); }
.ct-val.bad  { color: #ef4444; }
.ct-val.warn { color: #f59e0b; }
.ct-val.good { color: var(--green); font-weight: 600; }
.ct-row .ct-val:last-child { background: rgba(99,102,241,.04); border-left: 2px solid rgba(99,102,241,.15); }
.btn-video { border-color: rgba(99,102,241,.35); }
.btn-video:hover { border-color: var(--accent); background: rgba(99,102,241,.06); }

/* ── Testimonials ──────────────────────────────────────────── */
.social-proof-section { }
.testimonial-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-top: 40px; }
.testimonial-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-l); padding: 28px 26px; display: flex; flex-direction: column; gap: 16px; transition: border-color .25s, transform .25s; }
.testimonial-card:hover { border-color: var(--accent); transform: translateY(-4px); }
.tc-stars { color: #f59e0b; font-size: 1rem; letter-spacing: 3px; }
.tc-quote { font-size: .88rem; line-height: 1.68; color: var(--text-muted); font-style: italic; flex: 1; margin: 0; }
.tc-author { display: flex; align-items: center; gap: 12px; }
.tc-avatar { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), #818cf8); display: flex; align-items: center; justify-content: center; font-size: .78rem; font-weight: 700; color: #fff; flex-shrink: 0; }
.tc-info { display: flex; flex-direction: column; }
.tc-info strong { font-size: .83rem; color: var(--text); }
.tc-info span { font-size: .72rem; color: var(--text-dim); font-family: var(--mono); margin-top: 2px; }

/* RESPONSIVE */
@media (max-width: 960px) {
  .hero-layout { flex-direction: column; }
  .hero-terminal { width: 100%; max-width: 480px; }
  .terminal-float { display: none; }
  .residency-layout { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .btn-nav { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 64px; left: 0; right: 0;
    background: rgba(248,249,252,.98); backdrop-filter: blur(20px);
    padding: 24px; gap: 18px;
    border-bottom: 1px solid var(--border); z-index: 99;
  }
  .rm-milestones { grid-template-columns: 1fr 1fr; gap: 12px; }
  .rm-track-bar { display: none; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .ct-head, .ct-row { grid-template-columns: 1.4fr 0.8fr 0.8fr 1.1fr; }
  .ct-head > div, .ct-row > div { padding: 10px 12px; font-size: .76rem; }
  .arch-showcase { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .section { padding: 72px 0; }
  .form-row { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .hero-title { letter-spacing: -1px; }
  .footer-inner { flex-direction: column; }
  .rm-milestones { grid-template-columns: 1fr; }
  .ucf-arrow span { display: none; }
  .uc-flow { padding: 16px 12px; }
}