/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #080b14;
  --bg-2: #0d1120;
  --bg-3: #111827;
  --border: rgba(255,255,255,0.07);
  --border-hover: rgba(255,255,255,0.13);
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #4b5563;
  --accent: #6366f1;
  --accent-2: #8b5cf6;
  --accent-3: #06b6d4;
  --green: #10b981;
  --yellow: #f59e0b;
  --red: #ef4444;
  --r: 6px;
  --r-md: 8px;
  --r-lg: 10px;
  --shadow: 0 2px 16px rgba(0,0,0,0.4);
  --shadow-lg: 0 4px 32px rgba(0,0,0,0.6);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Geist', 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  overflow-x: hidden;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* ===== TYPOGRAPHY ===== */
.gradient-text {
  background: linear-gradient(135deg, var(--accent), var(--accent-2), var(--accent-3));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.mono { font-family: 'Geist Mono', 'Fira Code', monospace; }

.section-label {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--accent);
  background: rgba(99,102,241,0.08);
  border: 1px solid rgba(99,102,241,0.18);
  padding: 3px 10px; border-radius: 100px; margin-bottom: 12px;
}

.section-title {
  font-size: clamp(24px, 3.5vw, 40px);
  font-weight: 800; line-height: 1.12;
  letter-spacing: -0.025em; margin-bottom: 10px;
}

.section-sub {
  font-size: 14px; color: var(--text-muted);
  max-width: 480px; margin-bottom: 40px; line-height: 1.65;
}

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-flex; align-items: center; gap: 6px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff; font-weight: 600; font-size: 13px;
  padding: 7px 14px; border-radius: var(--r);
  text-decoration: none; border: none; cursor: pointer;
  transition: opacity 0.15s, transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 0 14px rgba(99,102,241,0.25);
  letter-spacing: -0.01em; white-space: nowrap;
}
.btn-primary:hover { opacity: 0.88; transform: translateY(-1px); box-shadow: 0 0 22px rgba(99,102,241,0.45); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--text-muted); font-weight: 500; font-size: 13px;
  padding: 7px 14px; border-radius: var(--r);
  text-decoration: none; background: transparent; border: none; cursor: pointer;
  transition: color 0.15s, background 0.15s;
}
.btn-ghost:hover { color: var(--text); background: rgba(255,255,255,0.04); }

.btn-outline {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--text-muted); font-weight: 500; font-size: 13px;
  padding: 7px 14px; border-radius: var(--r);
  text-decoration: none; background: transparent;
  border: 1px solid var(--border-hover); cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.btn-outline:hover { border-color: rgba(99,102,241,0.4); color: var(--text); background: rgba(99,102,241,0.04); }

.btn-lg { padding: 9px 18px; font-size: 14px; }
.btn-full { width: 100%; justify-content: center; margin-top: auto; }

/* ===== NAV ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 0 20px;
  background: rgba(8,11,20,0.75);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}
.nav.scrolled { background: rgba(8,11,20,0.97); }
.nav-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; gap: 24px;
  height: 52px;
}
.logo { display: flex; align-items: center; gap: 7px; text-decoration: none; }
.logo-icon { font-size: 18px; filter: drop-shadow(0 0 6px var(--accent)); }
.logo-text { font-size: 16px; font-weight: 800; color: var(--text); letter-spacing: -0.03em; }

.nav-links { display: flex; gap: 2px; list-style: none; margin-left: auto; }
.nav-links a {
  color: var(--text-muted); font-size: 13px; font-weight: 500;
  text-decoration: none; padding: 5px 10px; border-radius: var(--r);
  transition: color 0.15s, background 0.15s;
}
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,0.04); }

.nav-actions { display: flex; align-items: center; gap: 6px; }
.hamburger { display: none; flex-direction: column; gap: 4px; background: none; border: none; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 18px; height: 1.5px; background: var(--text-muted); border-radius: 2px; transition: 0.2s; }

.mobile-menu {
  display: none; flex-direction: column; gap: 2px;
  padding: 10px 0 14px; border-top: 1px solid var(--border);
}
.mobile-menu a { color: var(--text-muted); text-decoration: none; padding: 8px 0; font-size: 13px; }
.mobile-menu .btn-primary { margin-top: 6px; }

@media (max-width: 768px) {
  .nav-links, .nav-actions { display: none; }
  .hamburger { display: flex; margin-left: auto; }
  .mobile-menu.open { display: flex; }
}

/* ===== HERO ===== */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  padding: 100px 0 60px; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.orb {
  position: absolute; border-radius: 50%;
  filter: blur(90px); opacity: 0.28;
}
.orb-1 { width: 500px; height: 500px; background: var(--accent); top: -180px; left: -80px; animation: float 8s ease-in-out infinite; }
.orb-2 { width: 340px; height: 340px; background: var(--accent-2); top: 80px; right: -80px; animation: float 10s ease-in-out infinite reverse; }
.orb-3 { width: 260px; height: 260px; background: var(--accent-3); bottom: 0; left: 42%; animation: float 12s ease-in-out infinite; }

@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-24px) scale(1.04); }
}

.grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
}

.hero .container { position: relative; z-index: 1; }

.badge {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; font-weight: 500; color: var(--text-muted);
  background: rgba(255,255,255,0.04); border: 1px solid var(--border-hover);
  padding: 4px 12px; border-radius: 100px; margin-bottom: 20px;
}
.badge-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 6px var(--green);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.35} }

.hero-title {
  font-size: clamp(30px, 5.5vw, 60px);
  font-weight: 900; line-height: 1.06;
  letter-spacing: -0.035em; margin-bottom: 14px;
}
.hero-sub {
  font-size: 15px; color: var(--text-muted);
  max-width: 440px; margin-bottom: 28px; line-height: 1.7;
}
.hero-cta { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 44px; }

.hero-stats { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; gap: 1px; }
.stat-num { font-size: 22px; font-weight: 800; letter-spacing: -0.025em; }
.stat-label { font-size: 12px; color: var(--text-dim); }
.stat-divider { width: 1px; height: 28px; background: var(--border); }

/* floating card */
.hero-card {
  position: absolute; right: max(20px, calc(50% - 550px + 20px));
  top: 50%; transform: translateY(-50%);
  width: 228px;
  background: rgba(13,17,32,0.92);
  border: 1px solid var(--border-hover);
  border-radius: var(--r-lg);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(99,102,241,0.08);
  overflow: hidden;
  animation: cardFloat 6s ease-in-out infinite;
}
@keyframes cardFloat {
  0%,100%{transform:translateY(-50%) translateY(0)} 50%{transform:translateY(-50%) translateY(-10px)}
}
.card-header {
  display: flex; align-items: center; gap: 5px;
  padding: 10px 14px; border-bottom: 1px solid var(--border);
  font-size: 12px; font-weight: 600; color: var(--text-muted);
}
.card-dot { width: 8px; height: 8px; border-radius: 50%; }
.card-dot.green { background: var(--green); }
.card-dot.yellow { background: var(--yellow); }
.card-dot.red { background: var(--red); }
.card-title { margin-left: 3px; }
.card-body { padding: 12px 14px; display: flex; flex-direction: column; gap: 9px; }
.card-row { display: flex; justify-content: space-between; align-items: center; font-size: 12px; }
.card-label { color: var(--text-dim); }
.card-value { font-weight: 600; font-family: 'Geist Mono', monospace; font-size: 12px; }
.status-active { color: var(--green); }
.highlight { color: var(--accent-3); font-weight: 700; }
.card-footer {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 14px; background: rgba(99,102,241,0.06);
  border-top: 1px solid var(--border);
  font-size: 12px; color: var(--text-dim);
}

@media (max-width: 900px) { .hero-card { display: none; } }

/* ===== LOGOS ===== */
.logos { padding: 28px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.logos-label { text-align: center; font-size: 12px; color: var(--text-dim); margin-bottom: 16px; letter-spacing: 0.04em; }
.logos-track { overflow: hidden; }
.logos-inner {
  display: flex; gap: 52px; align-items: center;
  animation: scroll 22s linear infinite; width: max-content;
}
.logos-inner span {
  font-size: 13px; font-weight: 700; color: var(--text-dim);
  letter-spacing: -0.01em; white-space: nowrap; opacity: 0.45;
}
@keyframes scroll { from{transform:translateX(0)} to{transform:translateX(-50%)} }

/* ===== FEATURES ===== */
.features { padding: 72px 0; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }

.feature-card {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 20px;
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
  display: flex; flex-direction: column; gap: 8px;
}
.feature-card:hover {
  border-color: var(--border-hover); transform: translateY(-1px); box-shadow: var(--shadow);
}
.feature-card--large { grid-column: span 2; }
.feature-icon { font-size: 20px; line-height: 1; }
.feature-card h3 { font-size: 14px; font-weight: 700; letter-spacing: -0.01em; }
.feature-card p { font-size: 13px; color: var(--text-muted); line-height: 1.6; }

/* speed visual */
.feature-visual { margin-top: 6px; }
.speed-bar {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 11px; color: var(--text-muted); margin-bottom: 6px; gap: 8px;
}
.speed-bar::after {
  content: ''; flex: 1; height: 4px; border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  width: var(--w); max-width: var(--w); order: 1;
}
.speed-bar span:first-child { width: 52px; font-size: 11px; }
.speed-bar span:last-child { width: 36px; text-align: right; color: var(--text); font-weight: 600; font-family: 'Geist Mono', monospace; font-size: 11px; }

/* anomaly visual */
.anomaly-chart { display: flex; align-items: flex-end; gap: 4px; height: 44px; margin-top: 10px; }
.anomaly-bar { flex: 1; height: var(--h); border-radius: 3px 3px 0 0; background: rgba(99,102,241,0.25); }
.anomaly-spike { background: var(--red); box-shadow: 0 0 8px rgba(239,68,68,0.4); }
.anomaly-label { font-size: 10px; color: var(--red); margin-top: 6px; }

@media (max-width: 768px) {
  .features-grid { grid-template-columns: 1fr; }
  .feature-card--large { grid-column: span 1; }
}
@media (min-width: 769px) and (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ===== SECURITY ===== */
.security { padding: 72px 0; background: var(--bg-2); }
.security-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.security-list { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.security-list li { display: flex; gap: 10px; align-items: flex-start; }
.check-icon {
  width: 18px; height: 18px; border-radius: 50%;
  background: rgba(16,185,129,0.12); color: var(--green);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700; flex-shrink: 0; margin-top: 1px;
}
.security-list strong { font-size: 13px; font-weight: 600; display: block; margin-bottom: 1px; }
.security-list p { font-size: 12px; color: var(--text-muted); line-height: 1.5; }

.security-card {
  background: var(--bg-3); border: 1px solid var(--border-hover);
  border-radius: var(--r-lg); padding: 20px; box-shadow: var(--shadow-lg);
}
.sec-header {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; margin-bottom: 18px;
}
.sec-icon { font-size: 16px; }
.sec-score { margin-left: auto; font-size: 16px; font-weight: 900; color: var(--green); }
.sec-items { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.sec-item { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.sec-item span:first-child { width: 88px; color: var(--text-muted); }
.sec-bar { flex: 1; height: 4px; background: rgba(255,255,255,0.06); border-radius: 2px; overflow: hidden; }
.sec-fill {
  height: 100%; width: var(--p);
  background: linear-gradient(90deg, var(--green), var(--accent-3));
  border-radius: 2px; animation: fillBar 1.5s ease-out forwards;
}
@keyframes fillBar { from{width:0} to{width:var(--p)} }
.sec-pct { width: 36px; text-align: right; font-weight: 600; font-size: 11px; font-family: 'Geist Mono', monospace; }
.sec-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.sec-badge {
  font-size: 11px; font-weight: 600; padding: 3px 8px;
  border-radius: 4px; background: rgba(99,102,241,0.08);
  border: 1px solid rgba(99,102,241,0.18); color: var(--accent);
}

@media (max-width: 768px) { .security-inner { grid-template-columns: 1fr; gap: 36px; } }

/* ===== PRICING ===== */
.pricing { padding: 72px 0; }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }

.pricing-card {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 22px;
  display: flex; flex-direction: column; gap: 12px;
  transition: border-color 0.15s, transform 0.15s;
  position: relative;
}
.pricing-card:hover { border-color: var(--border-hover); transform: translateY(-1px); }
.pricing-card--featured {
  border-color: rgba(99,102,241,0.35);
  background: linear-gradient(160deg, rgba(99,102,241,0.06), var(--bg-2));
  box-shadow: 0 0 28px rgba(99,102,241,0.1);
}
.plan-badge {
  position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  font-size: 10px; font-weight: 700; padding: 3px 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-radius: 100px; color: #fff; white-space: nowrap;
}
.plan-name { font-size: 14px; font-weight: 700; }
.plan-price { display: flex; align-items: baseline; gap: 3px; }
.price-num { font-size: 32px; font-weight: 900; letter-spacing: -0.04em; }
.price-period { font-size: 13px; color: var(--text-muted); }
.plan-desc { font-size: 12px; color: var(--text-muted); line-height: 1.55; }
.plan-features { list-style: none; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.plan-features li { font-size: 12px; color: var(--text-dim); }
.plan-features li:first-child,
.plan-features li:nth-child(2),
.plan-features li:nth-child(3),
.plan-features li:nth-child(4) { color: var(--text-muted); }

@media (max-width: 768px) { .pricing-grid { grid-template-columns: 1fr; } }

/* ===== CTA ===== */
.cta-section { padding: 72px 0; }
.cta-inner {
  position: relative; overflow: hidden;
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 56px 40px;
  text-align: center;
}
.orb-cta-1 { width: 320px; height: 320px; background: var(--accent); top: -160px; left: -80px; opacity: 0.18; }
.orb-cta-2 { width: 240px; height: 240px; background: var(--accent-2); bottom: -120px; right: -40px; opacity: 0.18; }
.cta-inner h2 {
  font-size: clamp(22px, 3.5vw, 38px); font-weight: 900;
  letter-spacing: -0.03em; margin-bottom: 8px; position: relative;
}
.cta-inner p {
  font-size: 14px; color: var(--text-muted);
  margin-bottom: 28px; position: relative;
}
.cta-actions { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; position: relative; }

/* ===== FOOTER ===== */
.footer { padding: 44px 0 24px; border-top: 1px solid var(--border); }
.footer-top { display: grid; grid-template-columns: 1fr auto; gap: 48px; margin-bottom: 32px; }
.footer-brand p { font-size: 12px; color: var(--text-dim); margin-top: 8px; max-width: 200px; line-height: 1.6; }
.footer-links { display: flex; gap: 40px; }
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-col h4 { font-size: 12px; font-weight: 700; color: var(--text-muted); margin-bottom: 2px; letter-spacing: 0.04em; text-transform: uppercase; }
.footer-col a { font-size: 13px; color: var(--text-dim); text-decoration: none; transition: color 0.15s; }
.footer-col a:hover { color: var(--text-muted); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 20px; border-top: 1px solid var(--border);
  font-size: 12px; color: var(--text-dim);
}
.footer-legal { display: flex; gap: 16px; }
.footer-legal a { color: var(--text-dim); text-decoration: none; transition: color 0.15s; }
.footer-legal a:hover { color: var(--text-muted); }

@media (max-width: 768px) {
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .footer-links { flex-wrap: wrap; gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
  .cta-inner { padding: 36px 20px; }
  .hero-cta { flex-direction: column; align-items: flex-start; }
}
