/* ============================================
   $CONTROL — Styles
   ============================================ */

:root {
  --bg:         #0a0a0a;
  --bg-card:    #111111;
  --bg-elevated:#161616;
  --border:     #1e1e1e;
  --border-lite: #2a2a2a;
  --text:       #e0e0e0;
  --text-dim:   #888888;
  --text-muted: #555555;
  --accent:     #FF6414;
  --accent-dark:#CC4400;
  --accent-glow: rgba(255, 100, 20, 0.25);
  --red:        #ff3b3b;
  --green:      #34d399;
  --yellow:     #facc15;
  --font:       'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono:       'JetBrains Mono', 'Fira Code', monospace;
  --radius:     8px;
  --radius-lg:  16px;
  --max-w:      1120px;
  --nav-h:      64px;
}

/* ── RESET ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { background: none; border: none; cursor: pointer; color: inherit; font: inherit; }

/* ── UTILITIES ── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.accent { color: var(--accent); }
.section { padding: 100px 0; position: relative; }
.section-dark { background: var(--bg-card); }

.section-label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}
.section-desc {
  color: var(--text-dim);
  max-width: 640px;
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 48px;
}

/* ── NAV ── */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 1000;
  background: rgba(10,10,10,0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}
#nav.scrolled { background: rgba(10,10,10,0.95); }
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-shield { width: 28px; height: 28px; }
.logo-shield svg { width: 100%; height: 100%; }
.logo-text {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 1px;
  color: #fff;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dim);
  letter-spacing: 0.3px;
  transition: color 0.2s;
}
.nav-links a:hover { color: #fff; }
.nav-x {
  display: flex;
  align-items: center;
  padding: 6px;
  border-radius: 6px;
  transition: background 0.2s;
}
.nav-x:hover { background: rgba(255,255,255,0.08); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 4px; }
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: #fff; border-radius: 2px;
  transition: all 0.3s;
}
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    background: rgba(10,10,10,0.97);
    backdrop-filter: blur(16px);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--border);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius);
  transition: all 0.25s;
  letter-spacing: 0.3px;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
  box-shadow: 0 0 20px var(--accent-glow);
}
.btn-primary:hover {
  background: var(--accent-dark);
  box-shadow: 0 0 30px var(--accent-glow), 0 0 60px rgba(255,100,20,0.1);
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-lite);
}
.btn-ghost:hover {
  border-color: var(--text-muted);
  background: rgba(255,255,255,0.03);
  transform: translateY(-1px);
}

/* ── HERO ── */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--nav-h) + 40px);
  padding-bottom: 60px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 60% 50% at 50% 40%, black, transparent);
  -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 40%, black, transparent);
}
.hero-glow {
  position: absolute;
  top: -20%; left: 50%; transform: translateX(-50%);
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(255,100,20,0.08) 0%, transparent 70%);
  border-radius: 50%;
}
.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
}
.hero-badge {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  color: var(--accent);
  border: 1px solid rgba(255,100,20,0.25);
  padding: 6px 18px;
  border-radius: 100px;
  margin-bottom: 28px;
  background: rgba(255,100,20,0.05);
}
.hero-title {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
}
.hero-sub {
  color: var(--text-dim);
  font-size: 17px;
  max-width: 520px;
  margin: 0 auto 36px;
  line-height: 1.7;
}
.hero-sub strong { color: #fff; font-weight: 600; }
.hero-actions { display: flex; gap: 14px; justify-content: center; margin-bottom: 64px; }

/* Risk ring */
.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
}
.hero-stat-ring {
  position: relative;
  width: 190px;
  height: 190px;
}
.hero-stat-ring svg {
  width: 100%; height: 100%;
  filter: drop-shadow(0 0 20px var(--accent-glow));
}
.hero-stat-value {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.hero-stat-num {
  font-family: var(--mono);
  font-size: 56px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}
.hero-stat-label {
  font-family: var(--mono);
  font-size: 16px;
  color: var(--text-muted);
}
.hero-stat-meta { text-align: center; }
.hero-stat-title {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2.8px;
  color: var(--text-dim);
  display: block;
  margin-bottom: 16px;
}

/* Risk bar */
.risk-bar { display: flex; gap: 2px; border-radius: 6px; overflow: hidden; }
.risk-bar-segment {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.1px;
  padding: 10px 20px;
  text-align: center;
  line-height: 1.5;
  color: rgba(255,255,255,0.7);
}
.risk-bar-segment span { font-weight: 400; opacity: 0.6; }
.risk-bar-segment.low       { background: rgba(52,211,153,0.12); color: var(--green); }
.risk-bar-segment.elevated  { background: rgba(250,204,21,0.12); color: var(--yellow); }
.risk-bar-segment.high      { background: rgba(255,100,20,0.15); color: var(--accent); }
.risk-bar-segment.critical  { background: rgba(255,59,59,0.15); color: var(--red); }

/* ── PROBLEM ── */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}
.problem-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: border-color 0.3s, transform 0.3s;
}
.problem-card:hover {
  border-color: var(--border-lite);
  transform: translateY(-2px);
}
.problem-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: rgba(255,100,20,0.08);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  color: var(--accent);
}
.problem-card h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #fff;
}
.problem-card p {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.6;
}
.problem-punchline {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-dim);
  text-align: center;
  padding-top: 16px;
}

/* ── PILLARS ── */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.pillar {
  text-align: center;
  padding: 40px 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg);
  transition: border-color 0.3s, transform 0.3s;
}
.pillar:hover { border-color: var(--border-lite); transform: translateY(-2px); }
.pillar-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: rgba(255,100,20,0.06);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
}
.pillar h4 {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.pillar p { font-size: 14px; color: var(--text-dim); line-height: 1.6; }

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

/* ── INDEX SOURCES ── */
.index-sources {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 48px;
}
.index-source {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dim);
}
.index-source-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
}

/* Trigger cards */
.trigger-examples {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.trigger-card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color 0.3s;
}
.trigger-card:hover { border-color: var(--border-lite); }
.trigger-level {
  flex-shrink: 0;
  width: 64px; height: 64px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.trigger-level.elevated { background: rgba(250,204,21,0.1); }
.trigger-level.critical { background: rgba(255,59,59,0.1); }
.trigger-value {
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 700;
}
.trigger-level.elevated .trigger-value { color: var(--yellow); }
.trigger-level.critical .trigger-value { color: var(--red); }
.trigger-info h4 { font-size: 16px; font-weight: 700; color: #fff; margin-bottom: 6px; }
.trigger-info p { font-size: 14px; color: var(--text-dim); line-height: 1.6; }

/* ── STRATEGIES ── */
.strat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.strat-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: border-color 0.3s, transform 0.3s;
}
.strat-card:hover { border-color: var(--border-lite); transform: translateY(-2px); }
.strat-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.strat-icon.stability { background: rgba(52,211,153,0.1); color: var(--green); }
.strat-icon.privacy   { background: rgba(255,100,20,0.1); color: var(--accent); }
.strat-icon.split     { background: rgba(250,204,21,0.1); color: var(--yellow); }
.strat-icon.custom    { background: rgba(255,255,255,0.06); color: #fff; }
.strat-card h4 { font-size: 16px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.strat-card p { font-size: 14px; color: var(--text-dim); line-height: 1.6; }

/* ── COMPARE ── */
.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 48px;
}
.compare-col {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
}
.compare-col h4 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #fff;
}
.compare-col h4 u { text-decoration: none; border-bottom: 2px solid var(--accent); padding-bottom: 2px; }
.compare-col li {
  font-size: 15px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
}
.compare-col li:last-child { border-bottom: none; }
.x-mark {
  color: var(--red);
  font-size: 18px;
  font-weight: 700;
  width: 24px;
  text-align: center;
  flex-shrink: 0;
}
.check-mark {
  color: var(--green);
  font-size: 16px;
  font-weight: 700;
  width: 24px;
  text-align: center;
  flex-shrink: 0;
}
.compare-not li { color: var(--text-muted); }
.compare-is li { color: var(--text); }

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

/* Definition box */
.definition-box {
  text-align: center;
  padding: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
}
.definition-label {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 3px;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.definition-text {
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 600;
  color: #fff;
  line-height: 1.5;
}

/* ── WALLET ── */
.wallet-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.wallet-feat {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: border-color 0.3s, transform 0.3s;
}
.wallet-feat:hover { border-color: var(--border-lite); transform: translateY(-2px); }
.wallet-feat-num {
  font-family: var(--mono);
  font-size: 32px;
  font-weight: 700;
  color: rgba(255,100,20,0.2);
  margin-bottom: 12px;
  line-height: 1;
}
.wallet-feat h4 { font-size: 16px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.wallet-feat p { font-size: 14px; color: var(--text-dim); line-height: 1.6; }

/* ── ROADMAP ── */
.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.roadmap-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  transition: border-color 0.3s;
}
.roadmap-item:hover { border-color: var(--border-lite); }
.roadmap-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  box-shadow: 0 0 10px var(--accent-glow);
}

/* ── CTA ── */
.section-cta {
  text-align: center;
  padding: 120px 0;
  background:
    radial-gradient(ellipse 50% 60% at 50% 100%, rgba(255,100,20,0.06) 0%, transparent 70%),
    var(--bg);
}
.cta-headline {
  font-size: clamp(28px, 4.5vw, 52px);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 20px;
}
.cta-sub {
  color: var(--text-dim);
  font-size: 16px;
  margin-bottom: 36px;
  line-height: 1.8;
  font-style: italic;
}
.cta-actions { display: flex; justify-content: center; gap: 14px; }

/* ── FOOTER ── */
#footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-left p {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}
.footer-right a {
  display: flex;
  align-items: center;
  color: var(--text-muted);
  transition: color 0.2s;
}
.footer-right a:hover { color: #fff; }

/* ── SCROLL ANIMATIONS ── */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── GLOBAL RESPONSIVE ── */
@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .hero-actions { flex-direction: column; align-items: center; }
  .risk-bar { flex-wrap: wrap; justify-content: center; }
  .hero-stat-ring { width: 170px; height: 170px; }
  .hero-stat-num { font-size: 50px; }
  .hero-stat-label { font-size: 14px; }
  .hero-stat-title { font-size: 12px; }
  .risk-bar-segment { padding: 8px 14px; font-size: 10px; }
  .trigger-examples { grid-template-columns: 1fr; }
}

/* Subtle pulse on risk ring */
@keyframes pulse-glow {
  0%, 100% { filter: drop-shadow(0 0 16px var(--accent-glow)); }
  50%      { filter: drop-shadow(0 0 28px rgba(255,100,20,0.35)); }
}
.hero-stat-ring svg {
  animation: pulse-glow 3s ease-in-out infinite;
}

/* Count-up flash */
@keyframes flash {
  0%   { color: var(--accent); }
  100% { color: #fff; }
}
.hero-stat-num.counted {
  animation: flash 0.6s ease forwards;
}
