:root{
  --bg: #08080d;
  --bg-alt: #0d0d15;
  --glass: rgba(255,255,255,0.045);
  --glass-strong: rgba(255,255,255,0.08);
  --border-glass: rgba(255,255,255,0.09);
  --border-glass-strong: rgba(255,255,255,0.16);

  --purple: #8b5cf6;
  --purple-bright: #a78bfa;
  --purple-dim: #5b3fa8;
  --violet-deep: #2e1a5e;

  --teal: #2dd4bf;
  --coral: #fb7185;
  --amber: #f5a524;

  --text-primary: #f5f4fa;
  --text-secondary: #bdb9d9;
  --text-muted: #948fb8;

  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*{ margin:0; padding:0; box-sizing:border-box; }

html{ scroll-behavior:smooth; }

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *{ animation-duration:0.001ms !important; transition-duration:0.001ms !important; }
}

body{
  background:var(--bg);
  color:var(--text-primary);
  font-family:var(--font-body);
  line-height:1.6;
  overflow-x:hidden;
  position:relative;
}

/* ---------- HIDE NATIVE SCROLLBAR ---------- */
html {
  scrollbar-width: none; /* Firefox */
}
body::-webkit-scrollbar {
  display: none; /* Safari and Chrome */
}
body {
  -ms-overflow-style: none; /* IE and Edge */
}

/* ---------- CUSTOM CANDLE SCROLLBAR ---------- */
.candle-scrollbar-container {
  position: fixed;
  top: 10px; /* Slight padding from top */
  bottom: 10px; /* Slight padding from bottom */
  right: 12px;
  width: 6px; /* Width of the candle body */
  z-index: 9999;
  pointer-events: none; /* Ensures it doesn't interfere with clicks */
}

.candle-wick {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px; /* The fine line */
  height: 100%;
  background: var(--border-glass-strong); /* Subtle grey line */
}

.candle-body {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%; /* This will be dynamically updated by JavaScript */
  background: var(--teal); /* Matches the "never leave the keyboard" text */
  border-radius: 2px;
  box-shadow: 0 0 10px #8e6df4; /* Adds a subtle neon glow */
  transition: height 0.1s ease-out; /* Smooths out fast scrolling */
}


/* ambient glow field behind everything */
.glow-field{
  position:fixed; inset:0; z-index:0; pointer-events:none; overflow:hidden;
}
.glow-field span{
  position:absolute; border-radius:50%; filter:blur(120px); opacity:0.28;
}
.glow-field span:nth-child(1){ width:600px; height:600px; background:var(--purple); top:-200px; left:-100px; }
.glow-field span:nth-child(2){ width:500px; height:500px; background:var(--violet-deep); top:10%; right:-150px; opacity:0.4; }
.glow-field span:nth-child(3){ width:450px; height:450px; background:var(--teal); bottom:5%; left:10%; opacity:0.12; }
.glow-field span:nth-child(4){ width:500px; height:500px; background:var(--purple-dim); bottom:-250px; right:10%; opacity:0.22; }

.grain{
  position:fixed; inset:0; z-index:1; pointer-events:none;
  background-image: radial-gradient(rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 3px 3px;
  opacity:0.5;
}

section, nav, footer{ position:relative; z-index:2; }

.wrap{ max-width:1120px; margin:0 auto; padding:0 32px; }

::selection{ background:var(--purple-dim); color:#fff; }

a{ color:inherit; text-decoration:none; }

/* ---------- NAV ---------- */
nav{
  position:fixed; top:0; left:0; right:0; z-index:100;
  display:flex; justify-content:center;
  padding:18px 24px;
}
.nav-inner{
  width:100%; max-width:1120px;
  display:flex; align-items:center; justify-content:space-between;
  padding:12px 20px;
  background:rgba(10,10,16,0.55);
  backdrop-filter:blur(18px) saturate(160%);
  -webkit-backdrop-filter:blur(18px) saturate(160%);
  border:1px solid var(--border-glass);
  border-radius:16px;
  transition:border-color 0.4s var(--ease), background 0.4s var(--ease);
}
nav.scrolled .nav-inner{
  background:rgba(10,10,16,0.78);
  border-color:var(--border-glass-strong);
}

.brand{ display:flex; align-items:center; gap:10px; font-family:var(--font-display); font-weight:600; font-size:16px; letter-spacing:0.01em; }
.brand svg{ width:26px; height:26px; display:block; }

.nav-links{ display:flex; align-items:center; gap:4px; }
.nav-links a{
  position:relative;
  font-size:14px; font-weight:500; color:var(--text-secondary);
  padding:8px 16px; border-radius:10px;
  transition:color 0.25s var(--ease);
}
.nav-links a:hover{ color:var(--text-primary); }
.nav-links a.active{ color:var(--text-primary); }
.nav-links a .dot{
  position:absolute; bottom:2px; left:50%; transform:translateX(-50%) scale(0);
  width:4px; height:4px; border-radius:50%; background:var(--purple-bright);
  transition:transform 0.3s var(--ease);
}
.nav-links a.active .dot{ transform:translateX(-50%) scale(1); }

@media (max-width:640px){
  .nav-links a span.full{ display:none; }
}

/* ---------- BUTTONS ---------- */
.btn{
  position:relative;
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  font-family:var(--font-body); font-weight:600; font-size:14.5px;
  padding:14px 26px; border-radius:12px;
  cursor:pointer; border:none; outline:none;
  transition:transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
  overflow:hidden;
  isolation:isolate;
}
.btn:active{ transform:scale(0.96); }

.btn-primary{
  color:#0a0a0f;
  background:linear-gradient(135deg, var(--purple-bright), var(--purple));
  box-shadow:0 0 0 0 rgba(139,92,246,0.5), 0 8px 24px -8px rgba(139,92,246,0.6);
}
.btn-primary:hover{
  transform:translateY(-2px);
  box-shadow:0 0 32px 4px rgba(139,92,246,0.45), 0 12px 28px -8px rgba(139,92,246,0.7);
}
/* Animation for when the nav link is clicked */
@keyframes attentionPulse {
  0% { 
    transform: scale(1); 
    box-shadow: 0 0 0 0 rgba(45, 212, 191, 0.8); /* Teal glow */
  }
  50% { 
    transform: scale(1.08); 
    box-shadow: 0 0 0 24px rgba(45, 212, 191, 0); /* Teal expands and fades */
    background: linear-gradient(135deg, var(--teal), var(--purple-bright));
  }
  100% { 
    transform: scale(1); 
    box-shadow: 0 0 0 0 rgba(45, 212, 191, 0); 
  }
}

.highlight-pulse {
  animation: attentionPulse 0.7s cubic-bezier(0.22, 1, 0.36, 1) !important;
}
.btn-primary::before{
  content:''; position:absolute; inset:0; z-index:-1;
  background:linear-gradient(120deg, transparent, rgba(255,255,255,0.5), transparent);
  transform:translateX(-120%) skewX(-20deg);
  transition:transform 0.7s var(--ease);
}
.btn-primary:hover::before{ transform:translateX(120%) skewX(-20deg); }

.btn-ghost{
  color:var(--text-primary);
  background:var(--glass);
  border:1px solid var(--border-glass-strong);
  backdrop-filter:blur(10px);
}
.btn-ghost:hover{
  background:var(--glass-strong);
  border-color:rgba(255,255,255,0.28);
  transform:translateY(-2px);
}

.btn-sm{ padding:10px 18px; font-size:13.5px; }

.btn svg{ width:16px; height:16px; }

/* ---------- GLASS PANEL ---------- */
.glass{
  background:var(--glass);
  border:1px solid var(--border-glass);
  backdrop-filter:blur(20px) saturate(160%);
  -webkit-backdrop-filter:blur(20px) saturate(160%);
  border-radius:20px;
}

/* ---------- HERO ---------- */
.hero{
  padding:180px 0 0;
  text-align:center;
  display:flex; flex-direction:column; align-items:center;
}
.eyebrow{
  font-family:var(--font-mono); font-size:12.5px; letter-spacing:0.14em;
  color:var(--purple-bright); text-transform:uppercase;
  display:inline-flex; align-items:center; gap:8px;
  padding:7px 14px; border-radius:20px;
  background:rgba(139,92,246,0.08);
  border:1px solid rgba(139,92,246,0.25);
  margin-bottom:28px;
}
.eyebrow .pulse{
  width:6px; height:6px; border-radius:50%; background:var(--teal);
  box-shadow:0 0 0 0 rgba(45,212,191,0.6);
  animation:pulse 2s infinite;
}
@keyframes pulse{
  0%{ box-shadow:0 0 0 0 rgba(45,212,191,0.55); }
  70%{ box-shadow:0 0 0 8px rgba(45,212,191,0); }
  100%{ box-shadow:0 0 0 0 rgba(45,212,191,0); }
}

  @keyframes shine {
  to {
      background-position: 200% center;
  }
  }

.hero h1 {
  font-family: var(--font-display); 
  font-weight: 700;
  font-size: clamp(42px, 7vw, 76px); 
  line-height: 1.05;
  letter-spacing: -0.02em;
  max-width: 820px;
  
  /* The Shine Effect */
  background: linear-gradient(120deg, #b3b0c4 20%, #ffffff 45%, #ffffff 55%, #b3b0c4 80%);
  background-size: 200% auto;
  color: transparent;
  -webkit-background-clip: text; 
  background-clip: text;
  animation: shine 4s linear infinite;
 }


.hero p.sub{
  margin-top:22px; font-size:18px; color:var(--text-secondary);
  max-width:520px; font-weight:400;
}
.hero p.sub strong{ color:var(--text-primary); font-weight:600; }

.hero-actions{ display:flex; align-items:center; gap:16px; margin-top:40px; flex-wrap:wrap; justify-content:center; }

.version-tag{
  margin-top:16px; font-family:var(--font-mono); font-size:12px; color:var(--text-muted);
}

.quickstart-link{
  margin-top:22px;
  display:inline-flex; align-items:center; gap:6px;
  font-size:13.5px; color:var(--text-secondary); font-weight:500;
  padding:8px 4px; border-bottom:1px solid transparent;
  transition:color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.quickstart-link:hover{ color:var(--purple-bright); border-color:var(--purple-bright); }
.quickstart-link svg{ width:14px; height:14px; }

/* ---------- MOCK TERMINAL ---------- */
.terminal-wrap{
  margin-top:72px; width:100%; max-width:760px;
  perspective:1400px;
}

.terminal{
  text-align:left;
  border-radius:16px;
  overflow:hidden;
  box-shadow:0 30px 80px -20px rgba(0,0,0,0.7), 0 0 60px -10px rgba(139,92,246,0.15);
}

.terminal:hover{ transform:rotateX(0deg); }

.terminal-bar{
  display:flex; align-items:center; gap:8px;
  padding:12px 16px;
  background:rgba(255,255,255,0.03);
  border-bottom:1px solid var(--border-glass);
}
.terminal-bar span{ width:11px; height:11px; border-radius:50%; }
.terminal-bar span:nth-child(1){ background:#fb7185; }
.terminal-bar span:nth-child(2){ background:#f5a524; }
.terminal-bar span:nth-child(3){ background:#2dd4bf; }
.terminal-bar .path{
  margin-left:12px; font-family:var(--font-mono); font-size:12px; color:var(--text-muted);
}

.terminal-body{
  padding:20px 22px 26px;
  font-family:var(--font-mono);
}
.term-header{
  display:flex; justify-content:space-between; align-items:baseline;
  margin-bottom:16px; flex-wrap:wrap; gap:8px;
}
.term-header .idx{ font-size:15px; font-weight:600; color:var(--text-primary); }
.term-header .stat{ font-size:12.5px; color:var(--text-secondary); }
.term-header .stat b{ color:var(--purple-bright); font-weight:600; }

.term-table{ width:100%; border-collapse:collapse; font-size:12.5px; }
.term-table th{
  text-align:right; font-weight:500; color:var(--text-muted);
  padding:6px 8px; font-size:11px; letter-spacing:0.04em; text-transform:uppercase;
  border-bottom:1px solid var(--border-glass);
}
.term-table th:first-child, .term-table td:first-child{ text-align:left; }
.term-table td{ text-align:right; padding:8px; color:var(--text-secondary); }
.term-table tr:not(:last-child) td{ border-bottom:1px solid rgba(255,255,255,0.04); }
.term-table .strike{ color:var(--text-primary); font-weight:600; }
.up{ color:var(--teal); }
.down{ color:var(--coral); }
.flash-up{ animation:flashUp 2s var(--ease); }
.flash-down{ animation:flashDown 2s var(--ease); }
@keyframes flashUp{ 0%{ background:rgba(45,212,191,0.18); } 100%{ background:transparent; } }
@keyframes flashDown{ 0%{ background:rgba(251,113,133,0.18); } 100%{ background:transparent; } }

/* ---------- SECTION SHARED ---------- */
.section{ 
  padding: 120px 0; 
  position: relative;
 }
 .section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%; /* Keeps it from touching the absolute edges */
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-glass-strong), transparent);
  }
.section-head{ text-align:center; max-width:560px; margin:0 auto 56px; }
.section-head .eyebrow{ margin-bottom:18px; }
.section-head h2 {
  font-family: var(--font-display); 
  font-weight: 600; 
  font-size: clamp(30px, 4vw, 42px);
  letter-spacing: -0.01em;
  
  /* The Shine Effect */
  background: linear-gradient(120deg, #b3b0c4 20%, #ffffff 45%, #ffffff 55%, #b3b0c4 80%);
  background-size: 200% auto;
  color: transparent;
  -webkit-background-clip: text; 
  background-clip: text;
  animation: shine 4s linear infinite;
 }
.section-head p{ margin-top:14px; color:var(--text-secondary); font-size:16px; }

.reveal{ opacity:0; transform:translateY(28px); transition:opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in-view{ opacity:1; transform:translateY(0); }

/* ---------- FEATURES ---------- */
.feature-grid{
  display:grid; grid-template-columns:repeat(3, 1fr); gap:18px;
}
@media (max-width:860px){ .feature-grid{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:560px){ .feature-grid{ grid-template-columns:1fr; } }

.feature-card{
  padding:26px 24px;
  transition:transform 0.4s var(--ease), border-color 0.4s var(--ease), background 0.4s var(--ease);
}
.feature-card:hover{
  transform:translateY(-4px);
  border-color:rgba(139,92,246,0.35);
  background:rgba(139,92,246,0.05);
}
.feature-card .icon{
  width:38px; height:38px; border-radius:10px;
  display:flex; align-items:center; justify-content:center;
  background:rgba(139,92,246,0.12);
  border:1px solid rgba(139,92,246,0.25);
  margin-bottom:16px;
}
.feature-card .icon svg{ width:19px; height:19px; color:var(--purple-bright); stroke:var(--purple-bright); }
.feature-card h3{ font-family:var(--font-display); font-size:16px; font-weight:600; margin-bottom:8px; }
.feature-card p{ font-size:14px; color:var(--text-secondary); line-height:1.6; }

#features::after {
  display: none;
}

/* ---------- ABOUT ---------- */
.about-grid{
  display:grid; grid-template-columns:1.2fr 1fr; gap:48px; align-items:start;
}
@media (max-width:800px){ .about-grid{ grid-template-columns:1fr; } }
.about-text h2{
  font-family:var(--font-display); font-size:clamp(28px,3.6vw,38px); font-weight:600;
  letter-spacing:-0.01em; margin-bottom:20px; line-height:1.2;

  background: linear-gradient(120deg, #b3b0c4 20%, #ffffff 45%, #ffffff 55%, #b3b0c4 80%);
  background-size: 200% auto;
  color: transparent;
  -webkit-background-clip: text; 
  background-clip: text;
  animation: shine 4s linear infinite;
}

.about-text p{ color:var(--text-secondary); font-size:15.5px; margin-bottom:16px; }
.about-text p strong{ color:var(--text-primary); font-weight:600; }

.about-panel{ padding:28px; }
.about-panel h4{
  font-family:var(--font-mono); font-size:11.5px; text-transform:uppercase; letter-spacing:0.1em;
  color:var(--text-muted); margin-bottom:16px;
}
.stack-pills{ display:flex; flex-wrap:wrap; gap:9px; margin-bottom:24px; }
.pill{
  font-family:var(--font-mono); font-size:12.5px; padding:7px 13px; border-radius:8px;
  background:rgba(255,255,255,0.04); border:1px solid var(--border-glass); color:var(--text-secondary);
  transition:border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.pill:hover{ border-color:var(--purple-bright); color:var(--text-primary); }

.about-links{ display:flex; flex-direction:column; gap:12px; }
.about-links a{
  display:flex; align-items:center; justify-content:space-between;
  font-size:13.5px; color:var(--text-secondary); padding:10px 2px;
  border-bottom:1px solid var(--border-glass);
  transition:color 0.25s var(--ease);
}
.about-links a:hover{ color:var(--purple-bright); }
.about-links a svg{ width:14px; height:14px; opacity:0.6; }

/* ---------- DISCLAIMER BOX ---------- */
.disclaimer-box {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-top: 36px;
  padding: 18px 22px;
  background: rgba(251, 113, 133, 0.08); /* Faint coral/red background */
  border: 1px solid rgba(251, 113, 133, 0.3); /* Coral border */
  border-radius: 12px;
}

.disclaimer-box svg {
  width: 24px;
  height: 36px;
  color: var(--coral);
  flex-shrink: 0;
  margin-top: 2px;
}

.disclaimer-box p {
  color: #fb7185 !important; /* Forces the text to be red instead of the default grey */
  font-size: 15px !important;
  margin-bottom: 0 !important;
  line-height: 1.5;
}

.disclaimer-box strong {
  color: #fb7185 !important;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* ---------- COFFEE ---------- */
.coffee-panel{
  max-width:620px; margin:0 auto; text-align:center; padding:52px 40px;
  position:relative; overflow:hidden;
}
.coffee-panel::before{
  content:''; position:absolute; width:280px; height:280px; border-radius:50%;
  background:var(--amber); opacity:0.14; filter:blur(90px);
  top:-100px; left:50%; transform:translateX(-50%);
}
.coffee-panel .icon-lg{
  width:52px; height:52px; margin:0 auto 20px; border-radius:14px;
  display:flex; align-items:center; justify-content:center;
  background:rgba(245,165,36,0.12); border:1px solid rgba(245,165,36,0.3);
}
.coffee-panel .icon-lg svg{ width:26px; height:26px; color:var(--amber); stroke:var(--amber); }
.coffee-panel h2{ font-family:var(--font-display); font-size:28px; font-weight:600; margin-bottom:14px; }
.coffee-panel p{ color:var(--text-secondary); font-size:15.5px; max-width:440px; margin:0 auto 30px; }

.btn-coffee{
  color:#1a1206;
  background:linear-gradient(135deg, #ffcc70, var(--amber));
  box-shadow:0 8px 24px -8px rgba(245,165,36,0.55);
}
.btn-coffee:hover{
  box-shadow:0 0 30px 2px rgba(245,165,36,0.4), 0 12px 28px -8px rgba(245,165,36,0.6);
  transform:translateY(-2px);
}

/* ---------- FOOTER ---------- */
footer{
  padding:36px 0 40px;
  border-top:1px solid var(--border-glass);
}
.footer-inner{
  display:flex; align-items:center; justify-content:space-between;
  flex-wrap:wrap; gap:16px;
}
.footer-inner .left{ display:flex; align-items:center; gap:10px; font-size:13px; color:var(--text-muted); }
.footer-inner .left svg{ width:18px; height:18px; }
.footer-links{ display:flex; gap:22px; font-size:13px; color:var(--text-secondary); }
.footer-links a:hover{ color:var(--purple-bright); }
.footer-version{
  font-family:var(--font-mono); font-size:11.5px; color:var(--text-muted);
  padding:4px 10px; border:1px solid var(--border-glass); border-radius:20px;
}

/* ---------- GRADIENT TEXT ---------- */
.gradient-text{
  background:linear-gradient(120deg, var(--purple-bright), var(--teal));
  -webkit-background-clip:text; background-clip:text; color:transparent;
  font-weight:600;
}

/* ---------- TICKER TAPE ---------- */
.ticker-strip {
  width: 100vw; /* Stretches it across the entire viewport */
  position: relative;
  /* Removed the left: 50% and margin-left: -50vw hack */
  overflow: hidden;
  border-top: 1px solid var(--border-glass);
  border-bottom: 1px solid var(--border-glass);
  background: rgba(255,255,255,0.02);
  padding: 13px 0;
  margin-top: 56px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.ticker-track {
  display: flex; 
  width: max-content;
  animation: ticker 32s linear infinite; /* Keeps your original infinite animation */
}

.ticker-strip:hover .ticker-track { 
  animation-play-state: paused; 
}
@keyframes ticker{
  from{ transform:translateX(0); }
  to{ transform:translateX(-50%); }
}
.ticker-item{
  display:flex; align-items:center; gap:8px;
  font-family:var(--font-mono); font-size:12.5px;
  padding:0 26px; white-space:nowrap;
  border-right:1px solid var(--border-glass);
  color:var(--text-secondary);
}
.ticker-item .sym{ color:var(--text-primary); font-weight:600; }
.ticker-item svg{ width:11px; height:11px; }

/* ---------- HERO DECORATIVE CHART ---------- */
.hero-art{
  position:absolute; top:60px; left:50%; transform:translateX(-50%);
  width:min(1100px, 92vw); height:420px; z-index:0; pointer-events:none;
  opacity:0.5;
}
.hero{ position:relative; overflow:hidden; }
.hero-art .candle{ transform-origin:bottom; animation:candleGrow 3.2s var(--ease) infinite alternate; }
@keyframes candleGrow{
  from{ transform:scaleY(0.85); }
  to{ transform:scaleY(1); }
}

/* ---------- STATS ---------- */
.stats-row{
  display:grid; grid-template-columns:repeat(4,1fr); gap:16px;
  margin-top:64px;
}
@media (max-width:760px){ .stats-row{ grid-template-columns:repeat(2,1fr); } }
.stat-card{
  padding:22px 18px; text-align:center;
  transition:transform 0.4s var(--ease), border-color 0.4s var(--ease);
}
.stat-card:hover{ transform:translateY(-3px); border-color:rgba(139,92,246,0.35); }
.stat-card .num{
  font-family:var(--font-display); font-size:28px; font-weight:700;
  background:linear-gradient(120deg, #fff, var(--purple-bright));
  -webkit-background-clip:text; background-clip:text; color:transparent;
}
.stat-card .label{
  margin-top:6px; font-size:12.5px; color:var(--text-secondary); font-family:var(--font-mono);
  letter-spacing:0.02em;
}



/* ---------- SECTION BACKGROUND IMAGE (PARALLAX) ---------- */
.has-bg-image {
  position: relative;
  /* Replace this URL with the actual path to your screenshot */
  background-image: url('/assets/Terminal_ss.png'); 
  background-size: cover;
  background-position: center center;
  /* This creates the smooth parallax scrolling effect */
  background-attachment: fixed; 
}

.section-overlay {
  position: absolute;
  inset: 0;
  /* This gradient is solid on the left (behind text) and fades to semi-transparent on the right (showing the terminal) */
  background: linear-gradient(90deg, var(--bg) 20%, rgba(8, 8, 13, 0.65) 100%);
  z-index: 0;
}

/* Forces the content to sit on top of the overlay */
.has-bg-image .wrap {
  position: relative;
  z-index: 1;
}

/* ---------- SECTION BACKGROUND IMAGE (PARALLAX) ---------- */
.has-bg-image {
  position: relative;
  background-image: url('/assets/Terminal_ss.png'); 
  background-size: cover;
  background-position: center center;
  background-attachment: fixed; 
}

/* NEW: The gradient transition that removes the hard visual cut */
#features::before {
  content: '';
  position: absolute;
  top: 0; 
  left: 0; 
  right: 0;
  height: 250px;
  background: linear-gradient(to bottom, var(--bg) 0%, transparent 100%);
  z-index: 1;
}

.section-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--bg) 20%, rgba(8, 8, 13, 0.65) 100%);
  z-index: 0;
}

/* ---------- MOBILE RESPONSIVENESS ---------- */
@media (max-width: 768px) {
  /* 1. Hide the interactive demo terminal on small screens */
  #terminal-sim { display: none !important; }
  #mobile-warning { display: block !important; }

  /* 2. Fix the flexbox horizontal stretching bug */
  .wrap { padding: 0 16px; width: 100%; box-sizing: border-box; }
  .terminal-wrap { width: 100%; min-width: 0; } /* Forces the flex child to shrink */
  .terminal { width: 100%; }
  .terminal-body { overflow-x: auto; padding: 16px; -webkit-overflow-scrolling: touch; }
  .term-table { min-width: 500px; } 
  .ticker-strip { width: 100%; }

  /* 3. Compact the navigation bar so it fits on one line */
  .nav-inner { padding: 10px 12px; }
  .brand { font-size: 14px; gap: 6px; }
  .brand img { width: 22px !important; height: 28px !important; }
  .nav-links { gap: 0px; }
  .nav-links a { font-size: 12px; padding: 6px 8px; }

  /* 4. Scale down the massive hero typography */
  .hero { padding-top: 140px; }
  .hero h1 { font-size: clamp(32px, 8vw, 42px); line-height: 1.1; }
  .hero p.sub { font-size: 15px; padding: 0 10px; }
  
  /* 5. Adjust the stats row padding */
  .stats-row { gap: 12px; }
  .stat-card { padding: 16px 8px; }
  .stat-card .num { font-size: 24px; }
}