/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #050d1a;
  color: #e2e8f0;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ===== VARIABLES ===== */
:root {
  --primary: #2563eb;
  --primary-light: #3b82f6;
  --accent: #60a5fa;
  --bg-dark: #050d1a;
  --bg-card: #0f1e35;
  --bg-card2: #162540;
  --border: #1a3050;
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --success: #22c55e;
  --danger: #ef4444;
  --warning: #f59e0b;
  --gradient: linear-gradient(135deg, #1d4ed8, #3b82f6);
}

/* ===== CONTAINER ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(5, 13, 26, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s ease;
}
.nav-container {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.nav-logo { display: flex; align-items: baseline; font-size: 22px; font-weight: 800; letter-spacing: -0.5px; }
.logo-fin { color: var(--accent); }
.logo-nova { color: var(--text-primary); }
.logo-x { color: var(--primary-light); }
.nav-links { display: flex; gap: 32px; }
.nav-links a { color: var(--text-secondary); font-size: 14px; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--accent); }
.nav-auth { display: flex; gap: 12px; align-items: center; }
.hamburger { display: none; background: none; border: none; color: var(--text-primary); font-size: 22px; cursor: pointer; }

/* ===== BUTTONS ===== */
.btn-primary {
  background: var(--gradient); color: white; border: none;
  padding: 10px 22px; border-radius: 8px; font-weight: 600; font-size: 14px;
  cursor: pointer; transition: all 0.2s; white-space: nowrap;
}
.btn-primary:hover { opacity: 0.9; transform: translateY(-1px); box-shadow: 0 4px 20px rgba(37,99,235,0.4); }
.btn-outline {
  background: transparent; color: var(--accent); border: 1.5px solid var(--primary-light);
  padding: 10px 22px; border-radius: 8px; font-weight: 600; font-size: 14px;
  cursor: pointer; transition: all 0.2s;
}
.btn-outline:hover { background: rgba(37,99,235,0.1); }
.btn-ghost {
  background: transparent; color: var(--text-secondary); border: 1.5px solid var(--border);
  padding: 10px 22px; border-radius: 8px; font-weight: 600; font-size: 14px;
  cursor: pointer; transition: all 0.2s;
}
.btn-ghost:hover { color: var(--text-primary); border-color: var(--text-secondary); }
.btn-lg { padding: 14px 32px; font-size: 16px; border-radius: 10px; }
.btn-full { width: 100%; }
.btn-social {
  width: 100%; background: var(--bg-card2); border: 1px solid var(--border);
  color: var(--text-primary); padding: 12px; border-radius: 8px;
  font-size: 14px; font-weight: 500; cursor: pointer; display: flex;
  align-items: center; justify-content: center; gap: 10px; transition: all 0.2s;
}
.btn-social:hover { background: var(--bg-card); }

/* ===== HERO ===== */
.hero {
  min-height: 100vh; padding: 120px 24px 80px;
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; gap: 60px;
}
.hero-content { flex: 1; }
.hero-badge {
  display: inline-block; background: rgba(37,99,235,0.15); color: var(--accent);
  border: 1px solid rgba(37,99,235,0.3); padding: 6px 16px; border-radius: 20px;
  font-size: 13px; font-weight: 600; margin-bottom: 24px;
}
.hero-title { font-size: clamp(32px, 4.5vw, 54px); font-weight: 800; line-height: 1.1; margin-bottom: 20px; }
.gradient-text { background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-subtitle { font-size: 17px; color: var(--text-secondary); max-width: 520px; margin-bottom: 36px; line-height: 1.7; }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 48px; }
.hero-stats { display: flex; gap: 40px; }
.stat { display: flex; flex-direction: column; }
.stat-num { font-size: 28px; font-weight: 800; color: var(--accent); }
.stat-label { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }
.hero-chart { flex: 0 0 420px; }
.chart-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 16px; padding: 20px; box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.chart-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.chart-title { font-size: 13px; font-weight: 600; color: var(--text-primary); }
.chart-badge.live { background: rgba(34,197,94,0.15); color: var(--success); font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 20px; }
.chart-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); }

/* Whale Table */
.whale-table { font-size: 12px; }
.whale-header { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--border); color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; font-size: 10px; }
.whale-row { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 8px; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.03); align-items: center; }
.whale-row:last-child { border-bottom: none; }
.whale-inst { font-weight: 600; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.whale-ticker { color: var(--accent); font-weight: 700; }
.whale-change.up { color: var(--success); }
.whale-change.down { color: var(--danger); }
.whale-value { color: var(--text-secondary); }

/* ===== SECTIONS ===== */
section { padding: 100px 0; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-header h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; margin-bottom: 12px; }
.section-header p { font-size: 17px; color: var(--text-secondary); max-width: 560px; margin: 0 auto; }

/* ===== WHY SECTION ===== */
.why-section { background: var(--bg-card); }
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; margin-bottom: 48px; }
.why-card {
  background: var(--bg-dark); border: 1px solid var(--border);
  border-radius: 12px; padding: 28px; transition: all 0.3s;
}
.why-card:hover { border-color: var(--primary-light); transform: translateY(-4px); }
.why-icon { font-size: 32px; margin-bottom: 16px; }
.why-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.why-card p { color: var(--text-secondary); font-size: 14px; line-height: 1.7; }
.trust-bar { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; padding: 20px 24px; background: var(--bg-dark); border: 1px solid var(--border); border-radius: 12px; }
.trust-label { font-size: 13px; color: var(--text-muted); white-space: nowrap; }
.trust-logos { display: flex; gap: 24px; flex-wrap: wrap; }
.trust-logos span { font-size: 13px; font-weight: 600; color: var(--text-secondary); padding: 4px 12px; background: var(--bg-card2); border-radius: 20px; }

/* ===== PRODUCTS ===== */
.products-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.product-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 16px; padding: 28px; position: relative; transition: all 0.3s;
}
.product-card:hover { border-color: var(--primary-light); transform: translateY(-4px); box-shadow: 0 12px 40px rgba(37,99,235,0.15); }
.product-card.featured { border-color: var(--primary-light); background: linear-gradient(135deg, rgba(37,99,235,0.06), var(--bg-card)); }
.product-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--gradient); color: white; padding: 4px 16px;
  border-radius: 20px; font-size: 11px; font-weight: 700; white-space: nowrap;
}
.product-header { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.product-icon { font-size: 32px; }
.product-tag { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--accent); background: rgba(37,99,235,0.1); padding: 3px 10px; border-radius: 20px; }
.product-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.product-card p { color: var(--text-secondary); font-size: 14px; line-height: 1.7; margin-bottom: 18px; }
.product-highlights { display: flex; gap: 16px; margin-bottom: 18px; }
.highlight { background: var(--bg-card2); border: 1px solid var(--border); border-radius: 8px; padding: 10px 14px; flex: 1; text-align: center; }
.h-num { display: block; font-size: 18px; font-weight: 800; color: var(--accent); }
.h-label { font-size: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.product-features { margin-bottom: 20px; }
.product-features li { font-size: 13px; color: var(--text-secondary); padding: 4px 0; }

/* ===== DEMO SECTION ===== */
.demo-section { background: var(--bg-card); }
.demo-container { display: grid; grid-template-columns: 1fr 300px; gap: 24px; }
.treemap-container {
  background: var(--bg-dark); border: 1px solid var(--border);
  border-radius: 16px; padding: 20px; min-height: 400px;
}
.treemap-grid { display: grid; gap: 4px; height: 360px; }
.treemap-cell {
  border-radius: 6px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; cursor: pointer;
  transition: opacity 0.2s; font-size: 12px; font-weight: 700;
  text-align: center; padding: 4px;
}
.treemap-cell:hover { opacity: 0.85; }
.treemap-cell .cell-name { font-size: 11px; font-weight: 700; }
.treemap-cell .cell-perf { font-size: 13px; font-weight: 800; margin-top: 2px; }
.demo-sidebar { display: flex; flex-direction: column; gap: 16px; }
.sidebar-card { background: var(--bg-dark); border: 1px solid var(--border); border-radius: 12px; padding: 20px; }
.sidebar-card h3 { font-size: 14px; font-weight: 700; margin-bottom: 14px; }
.mover-row { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,0.04); font-size: 13px; }
.mover-row:last-child { border-bottom: none; }
.mover-ticker { font-weight: 700; color: var(--text-primary); }
.mover-change.up { color: var(--success); font-weight: 700; }
.mover-change.down { color: var(--danger); font-weight: 700; }
.sentiment-gauge { text-align: center; }
.gauge-value { font-size: 36px; font-weight: 800; color: var(--success); }
.gauge-label { font-size: 13px; color: var(--text-secondary); margin-bottom: 12px; }
.gauge-bar { background: var(--border); border-radius: 8px; height: 8px; margin-bottom: 6px; overflow: hidden; }
.gauge-fill { height: 100%; background: linear-gradient(90deg, #ef4444, #f59e0b, #22c55e); border-radius: 8px; transition: width 0.5s; }
.gauge-scale { display: flex; justify-content: space-between; font-size: 10px; color: var(--text-muted); }

/* ===== PRICING ===== */
.pricing-toggle { display: flex; align-items: center; justify-content: center; gap: 16px; margin-bottom: 48px; font-size: 15px; font-weight: 500; }
.pricing-note {
  max-width: 760px; margin: 0 auto 28px; padding: 14px 18px;
  border-radius: 12px; border: 1px solid rgba(96,165,250,0.2);
  background: rgba(15,30,53,0.85); color: var(--text-secondary);
  font-size: 14px; line-height: 1.7; text-align: center;
}
.toggle-switch { position: relative; display: inline-block; width: 52px; height: 28px; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background: var(--border); border-radius: 28px; transition: 0.3s; }
.toggle-slider::before { content: ""; position: absolute; height: 20px; width: 20px; left: 4px; bottom: 4px; background: white; border-radius: 50%; transition: 0.3s; }
input:checked + .toggle-slider { background: var(--primary); }
input:checked + .toggle-slider::before { transform: translateX(24px); }
.save-badge { background: rgba(34,197,94,0.15); color: var(--success); padding: 2px 8px; border-radius: 10px; font-size: 11px; font-weight: 700; }
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; margin-bottom: 32px; }
.pricing-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 36px; position: relative; transition: all 0.3s; }
.pricing-card:hover { transform: translateY(-4px); }
.pricing-card.featured { border-color: var(--primary-light); background: linear-gradient(135deg, rgba(37,99,235,0.06), var(--bg-card)); }
.plan-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--gradient); color: white; padding: 4px 16px; border-radius: 20px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.plan-name { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: var(--text-muted); margin-bottom: 12px; }
.plan-price { display: flex; align-items: baseline; gap: 4px; margin-bottom: 8px; }
.price-amount { font-size: 44px; font-weight: 800; color: var(--text-primary); }
.price-period { font-size: 15px; color: var(--text-muted); }
.plan-desc { font-size: 14px; color: var(--text-secondary); margin-bottom: 28px; }
.plan-features { margin-bottom: 32px; }
.plan-features li { font-size: 14px; color: var(--text-secondary); padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,0.04); }
.plan-features li.disabled { color: var(--text-muted); }
.enterprise-cta { background: linear-gradient(135deg, rgba(37,99,235,0.1), rgba(59,130,246,0.05)); border: 1px solid var(--primary-light); border-radius: 16px; padding: 32px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.enterprise-cta h3 { font-size: 20px; font-weight: 700; margin-bottom: 6px; }
.enterprise-cta p { color: var(--text-secondary); font-size: 14px; max-width: 500px; }

/* ===== CONTACT ===== */
.contact-section { background: var(--bg-card); }
.contact-grid { display: grid; grid-template-columns: 300px 1fr; gap: 60px; align-items: start; }
.contact-item { display: flex; gap: 16px; margin-bottom: 28px; }
.contact-icon { font-size: 24px; }
.contact-item strong { display: block; font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.contact-item p { color: var(--text-secondary); font-size: 14px; }
.contact-form { background: var(--bg-dark); border: 1px solid var(--border); border-radius: 16px; padding: 32px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--text-secondary); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.5px; }
.form-group input, .form-group select, .form-group textarea { width: 100%; background: var(--bg-card2); border: 1px solid var(--border); color: var(--text-primary); padding: 10px 14px; border-radius: 8px; font-size: 14px; font-family: inherit; transition: border-color 0.2s; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--primary-light); }
.honeypot-field { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; pointer-events: none !important; }

/* ===== FOOTER ===== */
.footer { background: #020810; border-top: 1px solid var(--border); padding: 60px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-brand p { color: var(--text-muted); font-size: 14px; margin-top: 12px; line-height: 1.7; }
.footer-links h4 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--text-secondary); margin-bottom: 16px; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: var(--text-muted); font-size: 14px; transition: color 0.2s; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-bottom p { font-size: 13px; color: var(--text-muted); }
.disclaimer { max-width: 600px; font-size: 11px !important; line-height: 1.6; }

/* ===== MODALS ===== */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.75); backdrop-filter: blur(4px); z-index: 2000; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal-overlay.active { display: flex; }
.modal { background: var(--bg-card); border: 1px solid var(--border); border-radius: 20px; padding: 40px; width: 100%; max-width: 460px; position: relative; max-height: 90vh; overflow-y: auto; }
.modal-wide { max-width: 720px; }
.modal-close { position: absolute; top: 16px; right: 16px; background: var(--bg-card2); border: none; color: var(--text-secondary); width: 32px; height: 32px; border-radius: 50%; cursor: pointer; font-size: 14px; transition: all 0.2s; }
.modal-close:hover { background: var(--border); color: var(--text-primary); }
.modal-logo { font-size: 24px; font-weight: 800; margin-bottom: 8px; }
.modal h2 { font-size: 24px; font-weight: 800; margin-bottom: 6px; }
.modal-subtitle { color: var(--text-secondary); font-size: 14px; margin-bottom: 28px; }
.form-options { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.checkbox-label { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-secondary); cursor: pointer; }
.checkbox-label input { accent-color: var(--primary); }
.forgot-link { font-size: 13px; color: var(--accent); }
.modal-divider { text-align: center; position: relative; margin: 20px 0; }
.modal-divider::before { content: ""; position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: var(--border); }
.modal-divider span { background: var(--bg-card); padding: 0 12px; color: var(--text-muted); font-size: 13px; position: relative; }
.modal-switch { text-align: center; font-size: 14px; color: var(--text-secondary); margin-top: 20px; }
.modal-switch a { color: var(--accent); font-weight: 600; }

/* ===== TOAST ===== */
.toast { position: fixed; bottom: 24px; right: 24px; z-index: 3000; background: var(--bg-card); border: 1px solid var(--success); color: var(--text-primary); padding: 14px 20px; border-radius: 10px; font-size: 14px; font-weight: 500; transform: translateY(100px); transition: transform 0.3s ease; box-shadow: 0 8px 32px rgba(0,0,0,0.4); }
.toast.show { transform: translateY(0); }

/* ===== LEGAL PAGES ===== */
.legal-page { min-height: 100vh; padding: 40px 0 72px; background: radial-gradient(circle at top, rgba(37,99,235,0.12), transparent 28%), var(--bg-dark); }
.legal-shell { max-width: 960px; margin: 0 auto; padding: 0 24px; }
.legal-home { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 24px; color: var(--text-secondary); font-size: 14px; }
.legal-home:hover { color: var(--accent); }
.legal-logo { display: inline-flex; align-items: baseline; gap: 0; font-size: 20px; font-weight: 800; letter-spacing: -0.5px; }
.legal-back-label { font-size: 14px; color: var(--text-secondary); }
.legal-card { background: linear-gradient(180deg, rgba(15,30,53,0.98), rgba(15,30,53,0.94)); border: 1px solid var(--border); border-radius: 24px; padding: 44px 40px 36px; box-shadow: 0 20px 60px rgba(0,0,0,0.35); }
.legal-eyebrow { display: inline-block; margin-bottom: 14px; padding: 6px 12px; border-radius: 999px; background: rgba(37,99,235,0.12); color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase; }
.legal-card h1 { font-size: clamp(34px, 4vw, 46px); font-weight: 800; margin-bottom: 12px; letter-spacing: -0.03em; }
.legal-meta { color: var(--text-muted); font-size: 13px; margin-bottom: 26px; }
.legal-intro { color: var(--text-secondary); font-size: 16px; line-height: 1.85; margin-bottom: 20px; max-width: 760px; }
.legal-section { margin-top: 24px; padding-top: 24px; border-top: 1px solid rgba(148,163,184,0.12); }
.legal-section h2 { font-size: 20px; font-weight: 700; margin-bottom: 12px; letter-spacing: -0.02em; }
.legal-section p { color: var(--text-secondary); font-size: 15px; line-height: 1.85; margin-bottom: 12px; max-width: 760px; }
.legal-section ul { list-style: disc; padding-left: 20px; max-width: 760px; }
.legal-section li { color: var(--text-secondary); font-size: 14px; line-height: 1.8; margin-bottom: 6px; }
.legal-note { margin-top: 32px; padding: 16px 18px; border-radius: 12px; border: 1px solid rgba(96,165,250,0.16); background: rgba(15,30,53,0.75); color: var(--text-secondary); font-size: 13px; line-height: 1.8; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero { flex-direction: column; padding-top: 100px; }
  .hero-chart { width: 100%; flex: none; }
  .demo-container { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-links, .nav-auth { display: none; }
  .hamburger { display: block; }
  .nav-links.open { display: flex; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0; background: var(--bg-dark); border-bottom: 1px solid var(--border); padding: 20px 24px; gap: 16px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .enterprise-cta { flex-direction: column; text-align: center; }
  .pricing-grid { grid-template-columns: 1fr; }
  .legal-home { gap: 10px; }
  .legal-logo { font-size: 18px; }
  .legal-card { padding: 28px 22px; border-radius: 18px; }
  .legal-section p, .legal-section ul, .legal-intro { max-width: none; }
}
