/* ---------- Features Config & Roots ---------- */
*, *::before, *::after { box-sizing: border-box; }

:root {
  --bg: #05080f;
  --bg-card: rgba(255, 255, 255, 0.03);
  --bg-card-hover: rgba(255, 255, 255, 0.06);
  --stroke: rgba(255, 255, 255, 0.08);
  --stroke-glow: rgba(0, 229, 255, 0.2);
  --text: #e6f1ff;
  --text-muted: #9aa7b8;
  --accent1: #7c6cff;
  --accent2: #00e5ff;
  --accent3: #00ffa3;
  --danger: #ff4757;
  --warning: #ffa502;
  --radius: 20px;
  --glow: 0 0 30px rgba(0, 229, 255, 0.25);
  --font-main: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}



html { scroll-behavior: smooth; }
body {
  margin: 0; padding: 0;
  font-family: var(--font-main);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

/* Background Gradients */
body::before {
  content: ""; position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  pointer-events: none; z-index: -1;
  background: 
    radial-gradient(100vw 600px at 0% 0%, rgba(124,108,255,0.1) 0%, transparent 60%),
    radial-gradient(80vw 800px at 100% 50%, rgba(0,229,255,0.06) 0%, transparent 50%),
    radial-gradient(100vw 600px at 50% 100%, rgba(0,255,163,0.04) 0%, transparent 70%);
}

.container { width: min(1200px, 92%); margin: 0 auto; }

/* ---------- Header ---------- */
header {
  position: fixed; top: 0; width: 100%; z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(5, 8, 15, 0.65);
  border-bottom: 1px solid var(--stroke);
  transition: all 0.3s ease;
}


.bar {
  display: flex; justify-content: space-between; align-items: center; padding: 14px 0;
}
.brand-link { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
#logo { height: 38px; filter: drop-shadow(0 2px 10px rgba(124,108,255,0.3)); }
.brand-title { font-size: 1.3rem; font-weight: 800; letter-spacing: -0.5px; }

nav { display: flex; gap: 8px; align-items: center; }
.nav-link {
  color: var(--text-muted); text-decoration: none;
  font-weight: 500; font-size: 0.95rem;
  padding: 8px 14px; border-radius: 999px;
  transition: color 0.2s, background 0.2s;
}
.nav-link:hover { color: var(--text); background: var(--bg-card); }
.nav-link.active { color: var(--text); background: var(--bg-card-hover); border: 1px solid var(--stroke); }

.button, .login-button {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; border: 1px solid var(--stroke);
  color: var(--text); font-weight: 600; font-size: 0.95rem;
  padding: 10px 20px; border-radius: 999px;
  cursor: pointer; text-decoration: none;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.button:hover, .login-button:hover { background: var(--bg-card-hover); transform: translateY(-1px); }

.button.primary, .login-button {
  background: linear-gradient(135deg, var(--accent2), var(--accent1));
  color: #05080f; border: none; font-weight: 700;
  box-shadow: 0 4px 15px rgba(0,229,255,0.25);
}
.button.primary:hover, .login-button.glow-fx:hover {
  box-shadow: 0 8px 25px rgba(124,108,255,0.45);
  transform: translateY(-2px);
}

/* ---------- Hero ---------- */
.features-hero {
  padding: 150px 0 80px;
  text-align: center; position: relative;
}
.hero-bg-glow {
  position: absolute; top: 100px; left: 50%; transform: translateX(-50%);
  width: 600px; height: 300px;
  background: radial-gradient(ellipse at center, rgba(124,108,255,0.15) 0%, transparent 70%);
  z-index: -1; pointer-events: none;
}
.badge {
  display: inline-block; padding: 6px 14px;
  background: rgba(0, 229, 255, 0.1); border: 1px solid rgba(0, 229, 255, 0.25);
  color: var(--accent2); font-size: 0.85rem; font-weight: 700;
  border-radius: 99px; margin-bottom: 24px; text-transform: uppercase; letter-spacing: 1px;
}
.features-hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 800;
  margin: 0 0 20px; line-height: 1.1; letter-spacing: -1px;
  background: linear-gradient(to right, #fff, var(--text-muted));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

.features-hero p {
  font-size: 1.15rem; color: var(--text-muted); max-width: 650px;
  margin: 0 auto; line-height: 1.6;
}

/* ---------- Layout Grids (Sidebar + Main) ---------- */
.features-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px; margin-bottom: 100px;
  align-items: start;
}

@media (max-width: 900px) {
  .features-layout { grid-template-columns: 1fr; }
}

/* Sidebar TOC */
.toc-sidebar { position: sticky; top: 100px; }
.toc-nav {
  display: flex; flex-direction: column; gap: 8px;
  padding: 24px; border-radius: var(--radius);
  background: var(--bg-card); border: 1px solid var(--stroke);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
}
@media (max-width: 900px) {
  .toc-sidebar {
    position: relative; top: 0; z-index: 10; margin-bottom: 20px;
  }
  .toc-nav {
    flex-direction: row; overflow-x: auto; padding: 12px;
    white-space: nowrap; border-radius: 12px;
  }
}
.toc-pill {
  color: var(--text-muted); text-decoration: none;
  font-weight: 600; font-size: 0.95rem; padding: 12px 16px;
  border-radius: 12px; display: flex; align-items: center; justify-content: flex-start; gap: 12px;
  transition: all 0.2s; border: 1px solid transparent; text-align: left;
}
.toc-pill i { opacity: 0.7; width: 20px; text-align: center; }
.toc-pill:hover { background: rgba(255,255,255,0.04); color: var(--text); }
.toc-pill.active {
  background: rgba(0, 229, 255, 0.08); border-color: rgba(0, 229, 255, 0.2);
  color: var(--accent2); box-shadow: inset 0 0 20px rgba(0,229,255,0.05);
}
.toc-pill.active i { opacity: 1; color: var(--accent2); }

/* ---------- Feature Cards ---------- */
.features-content { display: flex; flex-direction: column; gap: 60px; }
.feature-card {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
  align-items: center; padding: 40px; border-radius: var(--radius);
  background: var(--bg-card); border: 1px solid var(--stroke);
  box-shadow: 0 20px 60px rgba(0,0,0,0.1); scroll-margin-top: 100px;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.feature-card:hover { border-color: var(--stroke-glow); box-shadow: var(--glow); transform: translateY(-2px); }
.feature-card.reverse { grid-template-columns: 1.1fr 0.9fr; }
.feature-card.reverse .fc-text { order: 2; }
.feature-card.reverse .fc-visual { order: 1; }

@media (max-width: 900px) {
  .feature-card, .feature-card.reverse { grid-template-columns: 1fr; gap: 40px; padding: 32px 24px; }
  .feature-card.reverse .fc-text { order: 1; }
  .feature-card.reverse .fc-visual { order: 2; }
}

.fc-text h2 { margin: 0 0 16px; font-size: 2rem; font-weight: 700; letter-spacing: -0.5px; }
.fc-text p { color: var(--text-muted); line-height: 1.6; font-size: 1.05rem; margin-bottom: 24px; }
.fc-icon {
  width: 50px; height: 50px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: var(--accent1); margin-bottom: 20px;
  background: rgba(124,108,255,0.1); border: 1px solid rgba(124,108,255,0.25);
  box-shadow: inset 0 0 10px rgba(124,108,255,0.1);
}
.fc-icon.accent2 { color: var(--accent2); background: rgba(0,229,255,0.1); border-color: rgba(0,229,255,0.25); }
.fc-icon.accent3 { color: var(--accent3); background: rgba(0,255,163,0.1); border-color: rgba(0,255,163,0.25); }

.clean-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.clean-list li { display: flex; align-items: flex-start; gap: 12px; color: var(--text-muted); line-height: 1.5; font-size: 0.95rem; }
.clean-list li i { color: var(--accent2); margin-top: 4px; font-size: 0.85rem; }

/* ---------- Visual Mockups (CSS Art & Animations) ---------- */
.fc-visual {
  position: relative; width: 100%; height: 320px; border-radius: calc(var(--radius) - 4px);
  background: rgba(0,0,0,0.2); border: 1px solid rgba(255,255,255,0.04);
  overflow: hidden; display: flex; align-items: center; justify-content: center;
  box-shadow: inset 0 0 30px rgba(0,0,0,0.5);
}


/* 1. Dashboard Mockup */
.dash-window { width: 85%; height: 75%; background: var(--bg); border: 1px solid var(--stroke); border-radius: 8px; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 20px 40px rgba(0,0,0,0.4); }
.dash-header { height: 24px; background: rgba(255,255,255,0.05); display: flex; align-items: center; padding: 0 10px; gap: 6px; border-bottom: 1px solid var(--stroke); }
.dot { width: 10px; height: 10px; border-radius: 50%; opacity: 0.8; }
.dot.r { background: var(--danger); } .dot.y { background: var(--warning); } .dot.g { background: var(--accent3); }
.dash-body { display: flex; flex: 1; overflow: hidden; }
.dash-sidebar { width: 25%; background: rgba(255,255,255,0.02); border-right: 1px solid var(--stroke); }
.dash-main { flex: 1; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.dash-row { display: flex; gap: 12px; flex: 1; }
.dash-card { background: rgba(255,255,255,0.05); border-radius: 6px; border: 1px solid rgba(255,255,255,0.03); }
.dash-card.wide { height: 60px; }
.flex-1 { flex: 1; }
.skeleton-pulse { animation: pulse 2s infinite ease-in-out; }
.anim-delay-1 { animation-delay: 0.3s; } .anim-delay-2 { animation-delay: 0.6s; }

/* 2. Detection Mockup */
.fc-detection-mockup { background: radial-gradient(circle at center, rgba(0,229,255,0.1), transparent 70%); }
.floating-bubble { position: absolute; padding: 12px 20px; border-radius: 99px; background: rgba(0,255,163,0.15); border: 1px solid rgba(0,255,163,0.3); color: var(--accent3); font-weight: 600; font-size: 0.9rem; display: flex; gap: 8px; align-items: center; box-shadow: 0 10px 20px rgba(0,0,0,0.3); backdrop-filter: blur(5px); }
.floating-bubble.danger { background: rgba(255,71,87,0.15); border-color: rgba(255,71,87,0.3); color: var(--danger); }
.bubble-1 { top: 20%; left: 20%; animation: float 6s infinite ease-in-out; }
.bubble-2 { top: 60%; right: 15%; animation: float 5s infinite ease-in-out 1s; }
.bubble-3 { top: 50%; left: 45%; transform: translate(-50%, -50%); background: rgba(0,229,255,0.1); border-color: var(--accent2); color: var(--accent2); animation: pulseFloat 4s infinite ease-in-out; z-index: 2; }
.scan-beam { position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: rgba(0,229,255,0.8); box-shadow: 0 0 20px var(--accent2), 0 20px 40px rgba(0,229,255,0.2); animation: scan 3s infinite linear; z-index: 1; }

/* 3. Actions Mockup */
.action-cascade { display: flex; flex-direction: column; align-items: center; gap: 15px; width: 100%; }
.action-item { padding: 12px 24px; background: rgba(255,255,255,0.05); border: 1px solid var(--stroke); border-radius: 12px; font-weight: 600; font-size: 0.95rem; display: flex; align-items: center; gap: 10px; width: 80%; transform: translateY(0); transition: all 0.3s; }
.action-item.danger { background: rgba(255,71,87,0.1); border-color: var(--danger); color: var(--danger); }
.action-item.warning { background: rgba(255,165,2,0.1); border-color: var(--warning); color: var(--warning); }
.action-arrow { color: var(--text-muted); font-size: 1.2rem; animation: arrowBounce 2s infinite; }

/* 4. Discord Mockup */
.fc-discord-mockup { background: #313338; } /* discord dark gray */
.embed-box { width: 85%; background: #2b2d31; border-radius: 8px; position: relative; padding: 16px; border-left: 4px solid var(--danger); font-family: "gg sans", -apple-system, sans-serif; }
.embed-author { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; font-weight: 600; color: #fff; margin-bottom: 8px; }
.embed-author .avatar { width: 24px; height: 24px; border-radius: 50%; }
.embed-author span { font-size: 0.7rem; background: #5865F2; padding: 2px 4px; border-radius: 4px; }
.embed-title { font-weight: 700; color: #fff; margin-bottom: 8px; font-size: 1rem; }
.embed-desc { color: #dbdee1; font-size: 0.9rem; margin-bottom: 16px; }
.embed-buttons { display: flex; gap: 10px; }
.btn { padding: 8px 16px; border-radius: 4px; font-size: 0.85rem; font-weight: 500; cursor: pointer; color: #fff; }
.btn.discord-red { background: #da373c; } .btn.discord-red:hover { background: #c92f33; }
.btn.discord-gray { background: #4e5058; }

/* 5. Chart Mockup */
.chart-container { width: 80%; height: 70%; display: flex; align-items: flex-end; position: relative; border-bottom: 2px solid var(--stroke); border-left: 2px solid var(--stroke); padding-bottom: 0px; padding-left: 10px; gap: 10px; }
.bar-chart { display: flex; align-items: flex-end; gap: 15px; width: 100%; height: 100%; padding: 0 10px; z-index: 1; }
.bar { flex: 1; background: rgba(255,255,255,0.1); border-radius: 4px 4px 0 0; animation: barGrow 1.5s ease-out forwards; transform-origin: bottom; opacity: 0; }
.bar.accent { background: linear-gradient(to top, var(--accent1), var(--accent2)); }
.bar.danger { background: linear-gradient(to top, var(--warning), var(--danger)); }
.chart-line { position: absolute; left: 0; bottom: 20%; width: 100%; height: 2px; border-top: 2px dashed rgba(255,255,255,0.2); z-index: 0; }

/* 6. Intel Mockup */
.fingerprint-scan { position: relative; font-size: 100px; color: rgba(255,255,255,0.1); }
.fingerprint-scan i { background: linear-gradient(to bottom, var(--accent2), var(--accent1)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; opacity: 0.6; }
.scan-line-horizontal { position: absolute; top: 0; left: -20px; width: calc(100% + 40px); height: 3px; background: var(--accent3); box-shadow: 0 0 20px var(--accent3), 0 -20px 40px rgba(0,255,163,0.2); animation: scanLine 3s infinite linear alternate; }

/* ---------- CTA ---------- */
.features-cta { text-align: center; padding: 60px 40px; margin-top: 40px; background: linear-gradient(135deg, rgba(124,108,255,0.15), rgba(0,229,255,0.15)); border: 1px solid var(--stroke); border-radius: var(--radius); }
.features-cta h2 { font-size: 2.2rem; margin: 0 0 16px; background: linear-gradient(to right, #fff, var(--accent2)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.features-cta p { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 30px; }
.cta-actions { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.mt-15 { margin-top: 24px; }

/* ---------- Footer ---------- */
footer { padding: 40px 0; border-top: 1px solid var(--stroke); background: rgba(0,0,0,0.2); margin-top: auto; }
.footer-content { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.footer-brand { display: flex; align-items: center; gap: 12px; font-weight: 700; color: var(--text); }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; }
.footer-links a { color: var(--text-muted); text-decoration: none; font-size: 0.9rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--accent2); }
.footer-copyright { font-size: 0.85rem; color: rgba(255,255,255,0.4); margin-top: 10px; }

/* ---------- Animations ---------- */
.fade-in { opacity: 0; animation: fadeIn 0.8s forwards ease-out; transform: translateY(20px); }
.fade-in.delay-1 { animation-delay: 0.2s; }
.fade-in.delay-2 { animation-delay: 0.4s; }
@keyframes fadeIn { to { opacity: 1; transform: translateY(0); } }

.scroll-reveal { opacity: 1; transform: translateY(0); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.scroll-reveal.visible { opacity: 1; transform: translateY(0); }

@keyframes pulse { 0% { opacity: 0.5; } 50% { opacity: 0.8; } 100% { opacity: 0.5; } }
@keyframes float { 0% { transform: translateY(0); } 50% { transform: translateY(-15px); } 100% { transform: translateY(0); } }
@keyframes pulseFloat { 0% { transform: translate(-50%, -50%) scale(1); } 50% { transform: translate(-50%, -55%) scale(1.05); } 100% { transform: translate(-50%, -50%) scale(1); } }
@keyframes scan { 0% { top: 0; opacity: 0;} 10% { opacity: 1;} 90% { opacity: 1;} 100% { top: 100%; opacity: 0;} }
@keyframes arrowBounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }
@keyframes barGrow { to { opacity: 1; } }
.bar:nth-child(1) { animation-delay: 0.1s; } .bar:nth-child(2) { animation-delay: 0.2s; } .bar:nth-child(3) { animation-delay: 0.4s; } .bar:nth-child(4) { animation-delay: 0.5s; } .bar:nth-child(5) { animation-delay: 0.7s; } .bar:nth-child(6) { animation-delay: 0.9s; }
@keyframes scanLine { 0% { top: 0; } 100% { top: 100%; } }
