/* =========================================================
   CGC Quant Trading — Dark Design System
   Precision. Automation. Edge.
   ========================================================= */

/* ── Custom properties ──────────────────────────────────── */
:root {
  /* Brand palette */
  --void:          #050608;
  --surface:       #0c0e12;
  --surface-2:     #141720;
  --surface-3:     #1c2028;
  --border:        #252830;
  --border-bright: #2e333d;
  --cyan:          #00c8e0;
  --cyan-dim:      #008fa0;
  --green:         #00e676;
  --red:           #ff4444;
  --amber:         #ffab00;
  --white:         #e8eaed;
  --muted:         #8b9099;
  --very-muted:    #555a64;

  /* CMS/semantic aliases — full 20-var set */
  --bg:            var(--void);
  --bg-alt:        var(--surface);
  --bg-nav:        rgba(5, 6, 8, 0.94);
  --bg-card:       var(--surface-2);
  --ink:           var(--white);
  --ink-2:         var(--muted);
  --border-strong: var(--border-bright);
  --accent:        var(--cyan);
  --accent-deep:   var(--cyan-dim);
  --accent-soft:   rgba(0, 200, 224, 0.12);
  --warm-tint:     rgba(0, 200, 224, 0.06);
  --accent-tint:   rgba(0, 200, 224, 0.05);
  --cta-bg:        var(--cyan);
  --cta-text:      var(--void);
  --cta-text-muted: rgba(5, 6, 8, 0.65);
  --cta-border:    rgba(5, 6, 8, 0.20);
  --btn-primary-bg:    var(--accent);
  --btn-primary-text:  var(--void);
  --btn-primary-hover: var(--cyan-dim);
  --positive:      var(--green);
  --negative:      var(--red);
  --warning:       var(--amber);

  /* Layout */
  --max:      1200px;
  --content:  960px;
  --radius:   6px;
  --radius-lg:10px;

  /* Transitions */
  --t-fast: 150ms cubic-bezier(.4,0,.2,1);
  --t-med:  300ms cubic-bezier(.4,0,.2,1);
  --t-slow: 500ms cubic-bezier(.16,.84,.44,1);

  /* Fonts */
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "Courier New", "Courier", Lucida Console, monospace;
}

/* ── Reset & base ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
body { overflow-x: hidden; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--white); }
img { max-width: 100%; display: block; }
h1,h2,h3,h4,h5,h6 {
  margin: 0 0 .5em;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -.02em;
}
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

/* ── Keyframe animations ────────────────────────────────── */
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideInRow {
  from { opacity: 0; transform: translateX(-8px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes dotPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .4; transform: scale(.85); }
}
@keyframes particleDrift {
  0%   { transform: translate(0, 0) scale(1); opacity: .18; }
  33%  { transform: translate(var(--dx1, 20px), var(--dy1, -15px)) scale(.9); opacity: .28; }
  66%  { transform: translate(var(--dx2, -10px), var(--dy2, 25px)) scale(1.1); opacity: .14; }
  100% { transform: translate(0, 0) scale(1); opacity: .18; }
}
@keyframes countUp {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── Utility ────────────────────────────────────────────── */
.mono        { font-family: var(--font-mono); }
.muted       { color: var(--muted); }
.very-muted  { color: var(--very-muted); }
.accent-text { color: var(--accent); }
.positive-text { color: var(--positive); }
.negative-text { color: var(--negative); }
.amber-text  { color: var(--amber); }
.container   { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.content     { max-width: var(--content); margin: 0 auto; padding: 0 24px; }
.section-rule { border: none; border-top: 1px solid var(--border); margin: 0; }
.reveal { opacity: 0; transform: translateY(16px); transition: opacity var(--t-slow), transform var(--t-slow); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.text-center { text-align: center; }

/* ── Navigation ─────────────────────────────────────────── */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  background: transparent;
  transition: background var(--t-med), border-bottom var(--t-med);
  border-bottom: 1px solid transparent;
}
#nav.scrolled {
  background: var(--bg-nav, rgba(5,6,8,.94));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--border);
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-brand {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-brand img { height: 24px; width: auto; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0; padding: 0;
  list-style: none;
}
.nav-links a {
  display: block;
  padding: 6px 14px;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: .02em;
  color: var(--muted);
  border-radius: var(--radius);
  transition: color var(--t-fast), background var(--t-fast);
}
.nav-links a:hover,
.nav-links a.active { color: var(--white); background: var(--surface-2); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
#navToggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  color: var(--white);
}
#navMobile {
  display: none;
  flex-direction: column;
  gap: 2px;
  padding: 12px 16px 16px;
  border-top: 1px solid var(--border);
  background: rgba(5,6,8,.97);
}
#navMobile.open { display: flex; }
#navMobile a {
  padding: 10px 12px;
  font-size: 14px;
  color: var(--muted);
  border-radius: var(--radius);
  transition: color var(--t-fast), background var(--t-fast);
}
#navMobile a:hover { color: var(--white); background: var(--surface-2); }
#navMobile .btn { margin-top: 8px; text-align: center; justify-content: center; }

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: .04em;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
  text-decoration: none;
  white-space: nowrap;
  font-family: var(--font-sans);
}
.btn-primary {
  background: var(--btn-primary-bg, var(--accent));
  color: var(--btn-primary-text, #050608);
  border-color: var(--btn-primary-bg, var(--accent));
}
.btn-primary:hover {
  background: transparent;
  color: var(--btn-primary-bg, var(--accent));
  border-color: var(--btn-primary-bg, var(--accent));
}
.btn-outline {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}
.btn-outline:hover {
  background: var(--accent);
  color: #050608;
}
.btn-ghost {
  background: var(--surface-2);
  color: var(--white);
  border-color: var(--border-bright);
}
.btn-ghost:hover { background: var(--surface-3); border-color: var(--muted); }
.btn-sm  { padding: 7px 16px; font-size: 12.5px; }
.btn-lg  { padding: 14px 32px; font-size: 15px; }

/* ── Hero ───────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 60px;
  background: linear-gradient(180deg, var(--void) 0%, var(--surface) 100%);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,200,224,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,200,224,.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  top: -10%;
  left: -5%;
  width: 60%;
  height: 70%;
  background: radial-gradient(ellipse at center, rgba(0,200,224,.04) 0%, transparent 60%);
  pointer-events: none;
}
.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--cyan);
  animation: particleDrift var(--dur, 8s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}
.hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 80px 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
  width: 100%;
}
.hero-left { max-width: 560px; }
.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-eyebrow::before {
  content: "";
  display: inline-block;
  width: 24px; height: 1px;
  background: var(--accent);
}
.hero-headline {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -.03em;
  margin-bottom: 24px;
  color: var(--white);
  min-height: 2.3em;
}
.hero-headline .cursor {
  display: inline-block;
  width: 3px;
  height: .85em;
  background: var(--accent);
  margin-left: 2px;
  vertical-align: middle;
  animation: blink 1s step-end infinite;
}
.hero-subhead {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 36px;
  max-width: 460px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Metric panel */
.hero-metrics {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-top: 2px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 0;
  overflow: hidden;
}
.metrics-header {
  padding: 14px 20px;
  background: var(--surface-3);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.metrics-header-title {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--very-muted);
}
.metrics-header-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--green);
}
.metric-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.metric-row:last-child { border-bottom: none; }
.metric-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--very-muted);
}
.metric-value {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -.02em;
  line-height: 1;
}
.metric-value.positive { color: var(--green); }
.metric-value.negative { color: var(--red); }
.metric-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--green);
}
.status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  animation: dotPulse 2s ease-in-out infinite;
  display: inline-block;
}

/* ── Live Feed ──────────────────────────────────────────── */
.live-feed-section {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 64px 0;
}
.feed-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}
.feed-title {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 10px;
}
.live-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--green);
  animation: dotPulse 1.5s ease-in-out infinite;
  flex-shrink: 0;
}
.feed-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--very-muted);
}
.feed-table-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  overflow-x: auto;
}
.feed-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: 13px;
}
.feed-table th {
  padding: 10px 14px;
  text-align: left;
  font-size: 10.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--very-muted);
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.feed-table td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  color: var(--white);
  background: var(--surface);
  transition: background var(--t-fast);
}
.feed-table tr:last-child td { border-bottom: none; }
.feed-table tr:hover td { background: var(--surface-2); }
.feed-table tr { animation: slideInRow .3s ease both; }
.td-right { text-align: right; }
.td-muted { color: var(--very-muted); }
.direction-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
}
.direction-long  { background: rgba(0,230,118,.1); color: var(--green); border: 1px solid rgba(0,230,118,.2); }
.direction-short { background: rgba(255,68,68,.1); color: var(--red); border: 1px solid rgba(255,68,68,.2); }
.pnl-positive { color: var(--green); }
.pnl-negative { color: var(--red); }
.feed-footer {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.feed-disclaimer {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--very-muted);
}
.feed-timestamp {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--very-muted);
}

/* ── Section headers ────────────────────────────────────── */
.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -.025em;
  color: var(--white);
  margin-bottom: 16px;
}
.section-desc {
  font-size: 16.5px;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.65;
}

/* ── Strategy cards ─────────────────────────────────────── */
.strategy-section {
  padding: 96px 0;
  background: var(--void);
}
.strategy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.strategy-card {
  background: var(--surface-2);
  padding: 32px 28px;
  border-left: 3px solid transparent;
  transition: background var(--t-fast), border-left-color var(--t-fast);
}
.strategy-card:hover {
  background: var(--surface-3);
  border-left-color: var(--accent);
}
.strategy-icon {
  font-size: 22px;
  margin-bottom: 16px;
  line-height: 1;
}
.strategy-title {
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: .01em;
  color: var(--white);
  margin-bottom: 10px;
}
.strategy-desc {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

/* ── How it works ───────────────────────────────────────── */
.how-section {
  padding: 96px 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.steps-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  position: relative;
}
.steps-grid::before {
  content: "";
  position: absolute;
  top: 27px;
  left: calc(100% / 12);
  right: calc(100% / 12);
  height: 1px;
  background: var(--border-bright);
}
.step-item {
  text-align: center;
  padding: 0 12px;
  position: relative;
}
.step-number {
  width: 56px; height: 56px;
  border-radius: 50%;
  border: 1.5px solid var(--border-bright);
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  margin: 0 auto 20px;
  position: relative;
  z-index: 1;
  transition: border-color var(--t-fast), background var(--t-fast);
}
.step-item:hover .step-number {
  border-color: var(--accent);
  background: var(--surface-3);
}
.step-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 8px;
  letter-spacing: .01em;
}
.step-desc {
  font-size: 12px;
  color: var(--very-muted);
  line-height: 1.55;
  margin: 0;
}

/* ── Terminal component ─────────────────────────────────── */
.terminal {
  background: #050608;
  border: 1px solid var(--border);
  border-top: 2px solid var(--green);
  border-radius: var(--radius-lg);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--green);
  overflow: hidden;
}
.terminal-bar {
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.terminal-dot { width: 11px; height: 11px; border-radius: 50%; }
.terminal-dot.red    { background: #ff5f57; }
.terminal-dot.yellow { background: #febc2e; }
.terminal-dot.green  { background: #28c840; }
.terminal-label {
  margin-left: 8px;
  font-size: 11px;
  color: var(--very-muted);
  letter-spacing: .06em;
}
.terminal-body { padding: 20px; }
.terminal-line { margin-bottom: 4px; line-height: 1.6; }
.terminal-line .prompt  { color: var(--cyan); }
.terminal-line .comment { color: var(--very-muted); }
.terminal-cursor {
  display: inline-block;
  width: 9px;
  height: 1.1em;
  background: var(--green);
  animation: blink .9s step-end infinite;
  vertical-align: text-bottom;
  margin-left: 2px;
}

/* ── Risk disclosure ────────────────────────────────────── */
.risk-section {
  padding: 56px 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.risk-block {
  border: 1px solid var(--border-bright);
  border-top: 3px solid var(--amber);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  background: var(--surface-2);
}
.risk-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.risk-icon { font-size: 20px; flex-shrink: 0; }
.risk-title {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--amber);
}
.risk-text {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 12px;
}
.risk-text:last-child { margin-bottom: 0; }

/* ── Final CTA ──────────────────────────────────────────── */
.cta-section {
  padding: 120px 0;
  background: var(--void);
  text-align: center;
  border-top: 1px solid var(--border);
}
.cta-headline {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  letter-spacing: -.03em;
  color: var(--accent);
  margin-bottom: 20px;
}
.cta-sub {
  font-size: 17px;
  color: var(--muted);
  margin-bottom: 40px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ── Team ───────────────────────────────────────────────── */
.team-section {
  padding: 80px 0;
  background: var(--surface);
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.team-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-top: 2px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: background var(--t-fast);
}
.team-card:hover { background: var(--surface-3); }
.team-avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--surface-3);
  border: 1.5px solid var(--border-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 20px;
  letter-spacing: .04em;
}
.team-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 4px;
}
.team-title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.team-bio {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 20px;
}
.team-link {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--very-muted);
  text-transform: uppercase;
  letter-spacing: .08em;
  border: 1px solid var(--border);
  padding: 5px 12px;
  border-radius: 3px;
  display: inline-block;
  transition: color var(--t-fast), border-color var(--t-fast);
}
.team-link:hover { color: var(--accent); border-color: var(--accent); }

/* ── Philosophy ─────────────────────────────────────────── */
.philosophy-section {
  padding: 80px 0;
  background: var(--void);
  border-top: 1px solid var(--border);
}
.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.philosophy-item {
  display: flex;
  gap: 20px;
  padding: 24px 28px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color var(--t-fast);
}
.philosophy-item:hover { border-color: var(--border-bright); }
.philosophy-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: .08em;
  flex-shrink: 0;
  padding-top: 3px;
}
.philosophy-text strong {
  display: block;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 6px;
}
.philosophy-text p {
  font-size: 13.5px;
  color: var(--muted);
  margin: 0;
  line-height: 1.6;
}

/* ── Partners grid ──────────────────────────────────────── */
.partners-section {
  padding: 64px 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.partners-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.partner-item {
  background: var(--surface-2);
  padding: 28px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  transition: background var(--t-fast);
}
.partner-item:hover { background: var(--surface-3); }
.partner-logo-placeholder {
  width: 80px; height: 30px;
  background: var(--surface-3);
  border-radius: 4px;
  border: 1px solid var(--border-bright);
}
.partner-name {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--very-muted);
}

/* ── Contact / Form ─────────────────────────────────────── */
.contact-section {
  padding: 96px 0;
  background: var(--void);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 56px;
  align-items: start;
}
.form-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-top: 2px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
}
.form-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 28px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 7px;
}
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 11px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--white);
  font-size: 14px;
  font-family: var(--font-sans);
  line-height: 1.4;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  -webkit-appearance: none;
  appearance: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0,200,224,.1);
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--very-muted); }
.form-select { cursor: pointer; }
.form-select option { background: var(--surface-2); color: var(--white); }
.form-textarea { resize: vertical; min-height: 110px; }
.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  margin-bottom: 24px;
}
.form-checkbox input { margin-top: 3px; accent-color: var(--accent); cursor: pointer; flex-shrink: 0; }
.form-checkbox span { font-size: 13px; color: var(--muted); line-height: 1.5; }
.form-submit .btn { width: 100%; }
.form-legal {
  font-size: 11.5px;
  color: var(--very-muted);
  margin-top: 16px;
  text-align: center;
  line-height: 1.6;
}
.form-success {
  text-align: center;
  padding: 40px 20px;
  display: none;
}
.form-success.visible { display: block; }
.form-success-icon { font-size: 40px; margin-bottom: 16px; }
.form-success h3 { color: var(--green); margin-bottom: 8px; }
.form-success p { color: var(--muted); font-size: 14px; }

/* Contact sidebar */
.contact-info { display: flex; flex-direction: column; gap: 20px; }
.contact-detail-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
}
.contact-detail-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.contact-detail-value {
  font-size: 14px;
  color: var(--white);
  line-height: 1.55;
}

/* ── FAQ Accordion ──────────────────────────────────────── */
.faq-section {
  padding: 80px 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
}
.faq-list { list-style: none; margin: 0; padding: 0; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  color: var(--white);
  font-size: 15px;
  font-weight: 500;
  font-family: var(--font-sans);
  transition: color var(--t-fast);
}
.faq-question:hover { color: var(--accent); }
.faq-icon {
  font-family: var(--font-mono);
  font-size: 20px;
  color: var(--accent);
  transition: transform var(--t-med);
  flex-shrink: 0;
  line-height: 1;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--t-slow);
}
.faq-item.open .faq-answer { max-height: 400px; }
.faq-answer-inner {
  padding-bottom: 20px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

/* ── Legal block ────────────────────────────────────────── */
.legal-section {
  padding: 40px 0;
  background: var(--void);
  border-top: 1px solid var(--border);
}
.legal-block {
  border: 1px solid var(--border);
  border-top: 2px solid var(--amber);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  background: var(--surface-2);
}
.legal-text {
  font-size: 12.5px;
  color: var(--very-muted);
  line-height: 1.7;
}

/* ── Page hero (inner pages) ────────────────────────────── */
.page-hero {
  padding: 110px 0 60px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,200,224,.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,200,224,.02) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
.page-hero-inner { position: relative; z-index: 1; }
.page-hero-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  letter-spacing: -.03em;
  color: var(--white);
  margin-bottom: 16px;
}
.page-hero-desc {
  font-size: 17px;
  color: var(--muted);
  max-width: 560px;
}

/* ── Stats bar ───────────────────────────────────────────── */
.stats-bar {
  background: var(--surface-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stats-bar-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: stretch;
}
.stat-item {
  flex: 1;
  padding: 24px 28px;
  border-right: 1px solid var(--border);
  text-align: center;
}
.stat-item:last-child { border-right: none; }
.stat-value {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--very-muted);
}

/* ── Footer ─────────────────────────────────────────────── */
footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 48px 0 28px;
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--border);
}
.footer-brand-name {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 12px;
}
.footer-brand-desc {
  font-size: 13px;
  color: var(--very-muted);
  line-height: 1.65;
}
.footer-col-title {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.footer-col-links {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-col-links a {
  font-size: 13.5px;
  color: var(--very-muted);
  transition: color var(--t-fast);
}
.footer-col-links a:hover { color: var(--white); }
.footer-bottom {
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-copy {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--very-muted);
  letter-spacing: .04em;
}
.footer-legal {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--very-muted);
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .strategy-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .steps-grid::before { display: none; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .partners-grid { grid-template-columns: repeat(3, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-grid .contact-info { order: -1; }
}
@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  #navToggle { display: flex; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-left { max-width: none; }
  .hero-headline { font-size: 2.2rem; min-height: auto; }
  .hero-metrics { order: -1; }
  .strategy-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .philosophy-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 24px; }
  .partners-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-bar-inner { flex-wrap: wrap; }
  .stat-item { min-width: 50%; border-bottom: 1px solid var(--border); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .risk-block { padding: 24px 20px; }
  .form-card { padding: 28px 20px; }
  .cta-section { padding: 72px 0; }
}
@media (max-width: 480px) {
  .hero-headline { font-size: 1.9rem; }
  .section-title { font-size: 1.7rem; }
  .steps-grid { grid-template-columns: 1fr; }
  .stat-item { min-width: 100%; }
  .partners-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { gap: 28px; }
  .hero-inner { padding: 60px 24px; }
}
