:root {
  --bg-dark: #070709;
  --bg-panel: rgba(15, 15, 18, 0.7);
  --text-main: #FFFFFF;
  --text-muted: #A1A1AA;
  
  --neon-blue: #00E5FF;
  --neon-blue-dim: rgba(0, 229, 255, 0.2);
  --neon-green: #00FF9D;
  --neon-purple: #9D00FF;
  
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(0, 229, 255, 0.5);
  
  --font-sans: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  --transition-fast: 0.2s ease;
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-sans);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Typography & Utils */
h1, h2, h3, h4 { line-height: 1.2; letter-spacing: 0; }
.text-gradient {
  background: linear-gradient(135deg, var(--neon-blue), var(--neon-green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.neon-text { color: var(--neon-blue); text-shadow: 0 0 12px var(--neon-blue-dim); font-weight: 800; }
.dim-text { color: var(--text-muted); font-weight: 300; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* Background Glows */
.bg-glow {
  position: fixed; width: 800px; height: 800px; border-radius: 50%; filter: blur(150px); z-index: -1; opacity: 0.12;
}
.bg-glow-left { top: -200px; left: -300px; background: var(--neon-blue); }
.bg-glow-right { bottom: -200px; right: -300px; background: var(--neon-purple); }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

/* Navbar */
.navbar {
  position: fixed; top: 0; width: 100%; background: rgba(7, 7, 9, 0.85);
  backdrop-filter: blur(16px); border-bottom: 1px solid var(--border-glass); z-index: 100;
}
.nav-content { display: flex; justify-content: space-between; align-items: center; height: 5rem; }
.logo { font-size: 1.4rem; letter-spacing: 0.05em; }
.nav-links { display: flex; gap: 2.5rem; list-style: none; }
.nav-links a { color: var(--text-muted); text-decoration: none; font-size: 0.95rem; font-weight: 500; transition: color var(--transition-fast); }
.nav-links a:hover { color: var(--text-main); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.7rem 1.4rem; border-radius: 8px; font-weight: 600; font-size: 0.95rem;
  text-decoration: none; cursor: pointer; transition: all var(--transition-fast); border: none;
}
.btn:focus-visible { outline: 2px solid var(--neon-blue); outline-offset: 2px; }
.btn-primary { background: rgba(0, 229, 255, 0.1); color: var(--neon-blue); border: 1px solid var(--neon-blue-dim); }
.btn-primary:hover { background: rgba(0, 229, 255, 0.15); box-shadow: 0 0 20px var(--neon-blue-dim); transform: translateY(-1px); }
.btn-large { padding: 1rem 2rem; font-size: 1.05rem; }

/* Badges */
.badge-wrapper { display: flex; gap: 1rem; margin-bottom: 2rem; }
.badge, .badge-secondary {
  padding: 0.4rem 1rem; border-radius: 100px; font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em;
}
.badge { background: rgba(0, 255, 157, 0.1); color: var(--neon-green); border: 1px solid rgba(0, 255, 157, 0.2); }
.pulse-badge { position: relative; }
.pulse-badge::before {
  content: ''; position: absolute; left: 10px; top: 50%; transform: translateY(-50%); width: 6px; height: 6px;
  background: var(--neon-green); border-radius: 50%; box-shadow: 0 0 8px var(--neon-green); animation: pulse 2s infinite;
}
.pulse-badge { padding-left: 2rem; }
.badge-secondary { background: rgba(255, 255, 255, 0.05); color: var(--text-muted); border: 1px solid var(--border-glass); }

@keyframes pulse { 0% { opacity: 1; } 50% { opacity: 0.4; } 100% { opacity: 1; } }

/* Hero & Threat Map (Layout) */
.hero { padding: 9rem 0 6rem; }
.hero-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.hero h1 { font-size: clamp(2.5rem, 4vw, 3.5rem); font-weight: 800; margin-bottom: 1.5rem; }
.subtitle { font-size: 1.15rem; color: var(--text-muted); margin-bottom: 2.5rem; max-width: 90%; }

.glass-card, .glass-panel {
  background: var(--bg-panel); backdrop-filter: blur(20px); border: 1px solid var(--border-glass); border-radius: 16px;
}

/* Agentic Threat Map (Pure CSS Radar) */
.radar-container { padding: 1.5rem; position: relative; overflow: hidden; height: 400px; display: flex; flex-direction: column; }
.radar-header { font-family: var(--font-mono); font-size: 0.85rem; color: var(--neon-blue); display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1rem; }
.live-dot { width: 8px; height: 8px; background: var(--neon-blue); border-radius: 50%; animation: pulse 1s infinite; }
.radar-screen { position: relative; flex: 1; background: radial-gradient(circle at center, rgba(0,229,255,0.05) 0%, transparent 70%); border: 1px solid rgba(0,229,255,0.1); border-radius: 50%; margin: 0 auto; width: 280px; height: 280px; overflow: hidden; }
.radar-grid {
  position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(0,229,255,0.2);
  background-image: 
    linear-gradient(90deg, transparent 49.5%, rgba(0,229,255,0.2) 50%, transparent 50.5%),
    linear-gradient(0deg, transparent 49.5%, rgba(0,229,255,0.2) 50%, transparent 50.5%);
}
.radar-grid::before { content: ''; position: absolute; inset: 25%; border-radius: 50%; border: 1px solid rgba(0,229,255,0.2); }
.radar-sweep {
  position: absolute; top: 0; left: 50%; width: 50%; height: 50%;
  background: linear-gradient(90deg, rgba(0,229,255,0.8), transparent);
  transform-origin: bottom left; animation: sweep 4s infinite linear;
}
@keyframes sweep { to { transform: rotate(360deg); } }
.radar-node {
  position: absolute; width: 6px; height: 6px; background: #ff3366; border-radius: 50%;
  box-shadow: 0 0 10px #ff3366; opacity: 0; transform: translate(-50%, -50%);
}
.radar-node.active { animation: node-fade 3s ease-out forwards; }
@keyframes node-fade { 0% { opacity: 1; transform: translate(-50%, -50%) scale(1); } 20% { opacity: 1; transform: translate(-50%, -50%) scale(2); } 100% { opacity: 0; transform: translate(-50%, -50%) scale(1); } }
.radar-logs { font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-muted); margin-top: 1rem; height: 20px; overflow: hidden; text-align: center;}

/* Scorecard Section */
.scorecard-section { padding: 6rem 0; }
.scorecard-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 3rem; padding: 3rem; }
.scorecard-info h2 { font-size: 2.2rem; margin-bottom: 1rem; }
.scorecard-info p { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 2rem; }

.audit-form .input-group { display: flex; gap: 1rem; }
input[type="url"], input[type="text"] {
  flex: 1; background: rgba(0, 0, 0, 0.4); border: 1px solid var(--border-glass);
  color: var(--text-main); padding: 1rem 1.2rem; border-radius: 8px; font-family: var(--font-mono);
  font-size: 0.95rem; transition: border-color var(--transition-fast);
}
input[type="url"]:focus, input[type="text"]:focus { outline: none; border-color: var(--border-focus); }
.micro-copy { font-size: 0.85rem; color: var(--text-muted); margin-top: 0.8rem; opacity: 0.8; }

/* SVG Gauge Chart */
.scorecard-visual { display: flex; flex-direction: column; align-items: center; justify-content: center; background: rgba(0,0,0,0.2); border-radius: 12px; padding: 2rem; border: 1px solid rgba(255,255,255,0.03); }
.gauge-container { position: relative; width: 160px; height: 160px; margin-bottom: 1.5rem; }
.gauge { width: 100%; height: 100%; transform: rotate(-90deg); }
.gauge-bg { stroke: rgba(255,255,255,0.05); }
.gauge-progress { stroke: var(--neon-green); transition: stroke-dashoffset 1.5s cubic-bezier(0.16, 1, 0.3, 1), stroke 0.5s; }
.gauge-text { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.score-value { font-size: 2.5rem; font-weight: 800; font-family: var(--font-mono); line-height: 1; }
.score-label { font-size: 0.7rem; color: var(--text-muted); letter-spacing: 0.1em; margin-top: 0.2rem; }

/* Risk Flags */
.risk-flags { width: 100%; display: flex; flex-direction: column; gap: 0.8rem; }
.flag { display: flex; align-items: center; gap: 0.8rem; font-family: var(--font-mono); font-size: 0.85rem; color: #ccc; }
.status-dot { width: 10px; height: 10px; border-radius: 50%; }
.status-dot.grey { background: #333; }
.status-dot.green { background: var(--neon-green); box-shadow: 0 0 8px var(--neon-green); }
.status-dot.red { background: #ff3366; box-shadow: 0 0 8px #ff3366; }
.status-dot.yellow { background: #ffcc00; box-shadow: 0 0 8px #ffcc00; }

/* Integration SDK */
.integration { padding: 6rem 0; }
.integration-header { text-align: center; max-width: 700px; margin: 0 auto 4rem; }
.integration-header h2 { font-size: 2.5rem; margin-bottom: 1rem; }
.integration-header p { color: var(--text-muted); font-size: 1.1rem; }

.code-showcase { max-width: 900px; margin: 0 auto; overflow: hidden; }
.code-tabs { display: flex; background: rgba(0, 0, 0, 0.4); border-bottom: 1px solid var(--border-glass); }
.tab-btn { background: transparent; border: none; color: var(--text-muted); padding: 1.2rem 2rem; font-family: var(--font-mono); font-size: 0.9rem; cursor: pointer; border-bottom: 2px solid transparent; transition: all var(--transition-fast); }
.tab-btn:hover { color: var(--text-main); background: rgba(255,255,255,0.02); }
.tab-btn.active { color: var(--neon-blue); border-bottom-color: var(--neon-blue); background: rgba(0, 229, 255, 0.05); }
.code-content { padding: 2rem; background: #050505; }
.code-content pre { margin: 0; }
.code-content code { font-family: var(--font-mono); font-size: 0.95rem; color: #e2e8f0; line-height: 1.6; white-space: pre-wrap; word-wrap: break-word; }

.spinner { width: 16px; height: 16px; border: 2px solid rgba(0, 229, 255, 0.3); border-top-color: var(--neon-blue); border-radius: 50%; animation: spin 0.8s linear infinite; }
.hidden { display: none !important; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Dual Path Selector */
.dual-path-container { display: flex; justify-content: center; padding-top: 7rem; margin: 0 auto 1rem auto; position: relative; z-index: 10; }
.toggle-track { display: inline-flex; background: rgba(0, 0, 0, 0.5); padding: 0.4rem; border-radius: 50px; border: 1px solid var(--border-glass); box-shadow: inset 0 2px 10px rgba(0,0,0,0.5); }
.toggle-btn { background: transparent; border: none; color: var(--text-muted); padding: 0.8rem 2rem; font-family: var(--font-sans); font-size: 0.95rem; font-weight: 500; cursor: pointer; border-radius: 40px; transition: all var(--transition-fast); }
.toggle-btn:hover { color: var(--text-main); }
.toggle-btn.active { background: rgba(0, 229, 255, 0.1); color: var(--neon-blue); box-shadow: 0 0 15px rgba(0, 229, 255, 0.2); border: 1px solid rgba(0, 229, 255, 0.2); }

/* Subscription Panel (Traders) */
.subscription-panel { max-width: 600px; margin: 0 auto; text-align: center; padding: 3rem 2rem; }
.pricing-tier h3 { font-size: 1.8rem; color: var(--text-main); margin-bottom: 1rem; }
.pricing-tier .price { font-size: 1.2rem; color: var(--text-muted); margin-bottom: 2rem; }
.pricing-tier .price span { font-size: 3.5rem; font-weight: 800; color: var(--text-main); }
.features-list { list-style: none; padding: 0; margin: 0 0 3rem 0; text-align: left; display: inline-block; }
.features-list li { padding: 0.5rem 0; font-size: 1.05rem; color: #cbd5e1; border-bottom: 1px solid rgba(255,255,255,0.05); }
.mt-4 { margin-top: 2rem; }

.subscription-fields { flex-direction: column; gap: 0.75rem !important; text-align: left; }
.subscription-fields label, .payment-details label {
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
}
.subscription-fields input, .payment-details input { width: 100%; min-width: 0; }
.btn-secondary { background: rgba(255,255,255,0.05); color: var(--text-main); border: 1px solid var(--border-glass); }
.btn-secondary:hover { border-color: var(--neon-blue); color: var(--neon-blue); }
.btn-danger { background: transparent; color: #ff6b8a; border: 1px solid rgba(255,51,102,0.55); }
.btn-danger:hover { background: rgba(255,51,102,0.1); }
.payment-details {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-glass);
  text-align: left;
}
.payment-details h4 { margin-bottom: 1rem; font-size: 1.15rem; }
.payment-details dl { margin: 0 0 1.5rem; }
.payment-details dl div { padding: 0.65rem 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
.payment-details dt { color: var(--text-muted); font-size: 0.75rem; margin-bottom: 0.25rem; }
.payment-details dd { margin: 0; overflow-wrap: anywhere; }
.payment-details > .btn { width: 100%; justify-content: center; margin-top: 0.8rem; }
.subscription-actions { display: flex; gap: 0.75rem; margin-top: 1rem; }
.subscription-actions .btn { flex: 1; justify-content: center; }
#subscription-status-output {
  margin-top: 1rem;
  padding: 1rem;
  max-height: 220px;
  overflow: auto;
  border: 1px solid var(--border-glass);
  background: rgba(0,0,0,0.4);
  color: #cbd5e1;
  font-size: 0.75rem;
  white-space: pre-wrap;
}
.legal-copy { margin-top: 2rem; text-align: left; line-height: 1.55; }

/* Discord Live Radar (Social Proof) */
.threat-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 2rem; margin-bottom: 2rem; }
.discord-embed { background: #2b2d31; border-left: 4px solid #ff3366; padding: 1.2rem 1.5rem; display: flex; flex-direction: column; gap: 1rem; text-align: left; width: 100%; max-width: 420px; border-radius: 4px; box-shadow: 0 8px 24px rgba(0,0,0,0.6); }
.discord-header { display: flex; align-items: center; gap: 0.5rem; font-weight: 600; font-size: 0.95rem; color: #fff; font-family: var(--font-sans); }
.discord-body { display: flex; flex-direction: column; gap: 0.3rem; }
.discord-label { font-size: 0.75rem; color: #b5bac1; text-transform: uppercase; letter-spacing: 0; font-weight: 700; }
.discord-code { color: #00e5ff; font-size: 0.85rem; padding: 0.2rem 0; font-family: var(--font-mono); word-break: break-all; background: transparent; }
.discord-footer { display: flex; gap: 3rem; align-items: center; border-top: 1px solid rgba(255,255,255,0.05); padding-top: 1rem; margin-top: 0.5rem; }
.discord-score { font-family: var(--font-mono); font-weight: 700; font-size: 1.1rem; color: #fff; margin-top: 0.2rem; }
.discord-score.danger { color: #ff3366; }
.discord-micro { font-size: 0.7rem; color: #80848e; margin-top: 0.5rem; }

.discord-btn { display: inline-flex !important; flex-direction: row !important; align-items: center !important; justify-content: center; gap: 0.8rem; padding: 0.8rem 2rem !important; background: #5865F2 !important; color: #fff !important; border: none !important; border-radius: 8px; font-weight: 600; text-decoration: none; font-size: 1rem; }
.discord-btn:hover { background: #4752C4 !important; }
.discord-btn svg { width: 24px !important; height: 24px !important; fill: #fff !important; margin: 0 !important; display: block !important; }
.discord-btn span { color: #fff !important; margin: 0 !important; }

/* Footer */
.footer { padding: 4rem 0; border-top: 1px solid var(--border-glass); margin-top: 6rem; background: rgba(0,0,0,0.3); }
.footer-content { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1rem; }
.footer p { color: var(--text-muted); font-size: 0.95rem; }
.footer-meta { font-size: 0.85rem; opacity: 0.5; font-family: var(--font-mono); }

/* Responsive Adjustments */
@media (max-width: 968px) {
  .hero-layout, .scorecard-layout { grid-template-columns: 1fr; gap: 3rem; }
  .radar-container { margin: 0 auto; width: 100%; max-width: 400px; }
  .nav-links { display: none; }
  .hero { padding: 7rem 0 4rem; text-align: center; }
  .hero-cta, .badge-wrapper { justify-content: center; }
  .subtitle { margin-inline: auto; }
  .toggle-btn { padding: 0.8rem 1rem; font-size: 0.85rem; }
  .subscription-panel { padding: 2rem 1rem; }
  .pricing-tier .price span { display: block; font-size: 2.5rem; }
  .subscription-actions { flex-direction: column; }
}
