/* ============================================
   RISK GUARDIAN — LANDING PAGE
   Dark trading aesthetic + glassmorphism
   ============================================ */

:root {
  --bg: #06080f;
  --bg2: #0c1019;
  --surface: rgba(255,255,255,0.03);
  --surface-hover: rgba(255,255,255,0.06);
  --border: rgba(255,255,255,0.06);
  --border-hover: rgba(255,255,255,0.12);
  --text: #e2e8f0;
  --text-dim: #64748b;
  --text-muted: #475569;
  --accent: #00f0ff;
  --accent2: #7c3aed;
  --accent3: #f43f5e;
  --green: #22c55e;
  --red: #ef4444;
  --orange: #f97316;
  --cyan: #06b6d4;
  --gradient: linear-gradient(135deg, #00f0ff 0%, #7c3aed 50%, #f43f5e 100%);
  --gradient-subtle: linear-gradient(135deg, rgba(0,240,255,0.15), rgba(124,58,237,0.15), rgba(244,63,94,0.15));
  --glass: rgba(15,20,35,0.7);
  --glass-border: rgba(255,255,255,0.08);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 6px;
  --font: 'Inter', -apple-system, sans-serif;
  --mono: 'JetBrains Mono', monospace;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ====== CURSOR GLOW ====== */
.cursor-glow {
  position: fixed;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,240,255,0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s;
}

/* ====== GRID BACKGROUND ====== */
.grid-bg {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 0;
  pointer-events: none;
}

/* ====== NAV ====== */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 2rem;
  backdrop-filter: blur(20px);
  background: rgba(6,8,15,0.8);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.logo {
  font-weight: 800; font-size: 1.15rem;
  text-decoration: none; color: var(--text);
  letter-spacing: 0.5px;
  display: flex; align-items: center; gap: 6px;
}
.logo-icon {
  color: var(--accent);
  font-size: 1.3rem;
}
.accent { color: var(--accent); }
.nav-links {
  display: flex; align-items: center; gap: 2rem;
}
.nav-links a {
  color: var(--text-dim); text-decoration: none;
  font-size: 0.9rem; font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }
.btn-nav {
  background: var(--accent) !important;
  color: var(--bg) !important;
  padding: 8px 20px !important;
  border-radius: 8px;
  font-weight: 600 !important;
  transition: all 0.2s !important;
}
.btn-nav:hover { opacity: 0.9; transform: translateY(-1px); }

/* ====== BUTTONS ====== */
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--gradient);
  color: #fff; font-weight: 700;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-size: 1rem;
  border: none; cursor: pointer;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}
.btn-primary::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
  opacity: 0; transition: opacity 0.3s;
}
.btn-primary:hover::before { opacity: 1; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0,240,255,0.25); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 10px;
  background: transparent;
  color: var(--text);
  font-weight: 600;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-hover);
  text-decoration: none; font-size: 1rem;
  cursor: pointer; transition: all 0.3s;
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(0,240,255,0.05);
}

.btn-full { width: 100%; justify-content: center; }
.btn-lg { padding: 18px 40px; font-size: 1.1rem; }

/* ====== SECTIONS ====== */
.section {
  position: relative; z-index: 1;
  padding: 8rem 2rem;
}
.container {
  max-width: 1200px; margin: 0 auto;
}
.section-header {
  text-align: center; margin-bottom: 4rem;
}
.section-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
}
.section-badge {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.75rem; font-weight: 700;
  color: var(--accent);
  letter-spacing: 3px;
  padding: 6px 16px;
  border: 1px solid rgba(0,240,255,0.3);
  border-radius: 100px;
  margin-bottom: 1.5rem;
}

/* ====== GRADIENT TEXT ====== */
.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.text-strike {
  text-decoration: line-through;
  text-decoration-color: var(--red);
  opacity: 0.5;
}

/* ====== HERO ====== */
.hero {
  position: relative; z-index: 1;
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 8rem 2rem 4rem;
}
.hero-badge {
  font-family: var(--mono);
  font-size: 0.75rem; font-weight: 700;
  color: var(--accent);
  letter-spacing: 4px;
  margin-bottom: 2rem;
  padding: 8px 20px;
  border: 1px solid rgba(0,240,255,0.25);
  border-radius: 100px;
  background: rgba(0,240,255,0.05);
}
.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -1px;
}
.hero-sub {
  font-size: 1.2rem;
  color: var(--text-dim);
  max-width: 600px;
  line-height: 1.6;
  margin-bottom: 2.5rem;
}
.hero-cta {
  display: flex; gap: 1rem; flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 4rem;
}

/* HERO STATS */
.hero-stats {
  display: flex; align-items: center; gap: 2.5rem;
  padding: 1.5rem 3rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  backdrop-filter: blur(20px);
  margin-bottom: 4rem;
}
.stat { text-align: center; }
.stat-num {
  display: block;
  font-size: 2rem; font-weight: 800;
  color: var(--accent);
  font-family: var(--mono);
}
.stat-label {
  font-size: 0.8rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.stat-divider {
  width: 1px; height: 40px;
  background: var(--border);
}

/* DASHBOARD MOCKUP */
.hero-visual {
  width: 100%; max-width: 520px;
  perspective: 1000px;
}
.dashboard-mock {
  background: rgba(10,15,30,0.9);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(0,240,255,0.05),
    0 25px 80px rgba(0,0,0,0.5),
    0 0 60px rgba(0,240,255,0.08);
  transform: rotateX(5deg);
  transition: transform 0.5s;
  animation: float 6s ease-in-out infinite;
}
.dashboard-mock:hover {
  transform: rotateX(0deg) scale(1.02);
}
@keyframes float {
  0%, 100% { transform: rotateX(5deg) translateY(0); }
  50% { transform: rotateX(5deg) translateY(-10px); }
}
.dash-header {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 16px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--border);
}
.dash-dot {
  width: 10px; height: 10px; border-radius: 50%;
}
.dash-dot.red { background: #ef4444; }
.dash-dot.yellow { background: #eab308; }
.dash-dot.green { background: #22c55e; }
.dash-title {
  font-family: var(--mono); font-size: 0.7rem;
  color: var(--text-dim); margin-left: 8px;
}
.dash-body { padding: 16px; }
.dash-row {
  display: flex; justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  font-size: 0.85rem;
}
.dash-label { color: var(--text-dim); font-family: var(--mono); font-size: 0.8rem; }
.dash-value { font-weight: 600; font-family: var(--mono); }
.dash-value.ok { color: var(--green); }
.dash-value.green { color: var(--green); }
.dash-value.cyan { color: var(--cyan); }
.dash-value.orange { color: var(--orange); }
.dash-value.red { color: var(--red); }
.dash-value.white { color: var(--text); }

.pulse-glow {
  animation: pulseGlow 2s ease-in-out infinite;
}
@keyframes pulseGlow {
  0%, 100% { text-shadow: 0 0 5px rgba(34,197,94,0.5); }
  50% { text-shadow: 0 0 20px rgba(34,197,94,0.8), 0 0 40px rgba(34,197,94,0.3); }
}

.dash-progress { margin-top: 12px; }
.dash-progress-label {
  font-size: 0.75rem; color: var(--text-dim);
  font-family: var(--mono); margin-bottom: 6px;
}
.dash-progress-bar {
  height: 6px; background: rgba(255,255,255,0.06);
  border-radius: 100px; overflow: hidden;
}
.dash-progress-fill {
  height: 100%;
  background: var(--gradient);
  border-radius: 100px;
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.dash-progress-text {
  font-size: 0.7rem; color: var(--text-muted);
  font-family: var(--mono); margin-top: 4px;
  text-align: right;
}

/* ====== PROBLEM SECTION ====== */
.problem { background: var(--bg2); }
.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}
.problem-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: all 0.3s;
}
.problem-card:hover {
  border-color: var(--accent3);
  background: rgba(244,63,94,0.03);
  transform: translateY(-4px);
}
.problem-icon { font-size: 2rem; margin-bottom: 1rem; }
.problem-card h3 {
  font-size: 1.1rem; margin-bottom: 0.5rem;
  font-weight: 700;
}
.problem-card p { color: var(--text-dim); font-size: 0.95rem; line-height: 1.5; }

.problem-solution { text-align: center; }
.solution-text {
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 700;
  line-height: 1.4;
}

/* ====== FEATURES ====== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: all 0.4s;
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gradient);
  opacity: 0;
  transition: opacity 0.3s;
}
.feature-card:hover::before { opacity: 1; }
.feature-card:hover {
  border-color: var(--border-hover);
  background: var(--surface-hover);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.feature-num {
  font-family: var(--mono);
  font-size: 0.75rem; font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.feature-card h3 { font-size: 1.15rem; margin-bottom: 0.5rem; font-weight: 700; }
.feature-card p { color: var(--text-dim); font-size: 0.9rem; line-height: 1.5; }
.feature-tag {
  display: inline-block; margin-top: 1rem;
  font-family: var(--mono); font-size: 0.65rem;
  font-weight: 700; letter-spacing: 2px;
  padding: 4px 10px; border-radius: 4px;
}
.feature-tag.critical { background: rgba(239,68,68,0.15); color: var(--red); }
.feature-tag.smart { background: rgba(0,240,255,0.1); color: var(--accent); }
.feature-tag.protect { background: rgba(124,58,237,0.15); color: var(--accent2); }

/* ====== HOW IT WORKS ====== */
.how { background: var(--bg2); }
.steps {
  display: flex; align-items: center; justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}
.step {
  text-align: center; padding: 2rem;
  flex: 1; min-width: 200px;
}
.step-num {
  width: 56px; height: 56px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--gradient);
  color: #fff; font-weight: 800; font-size: 1.3rem;
  border-radius: 50%;
  margin-bottom: 1rem;
}
.step h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.step p { color: var(--text-dim); font-size: 0.9rem; }
.step-line {
  width: 80px; height: 2px;
  background: var(--border);
  flex-shrink: 0;
}

/* ====== PLATFORMS ====== */
.platform-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.platform-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  backdrop-filter: blur(10px);
  transition: all 0.4s;
  position: relative;
  overflow: hidden;
}
.platform-card.available {
  border-color: rgba(0,240,255,0.2);
  box-shadow: 0 0 40px rgba(0,240,255,0.05);
}
.platform-card.available:hover {
  border-color: rgba(0,240,255,0.4);
  box-shadow: 0 0 60px rgba(0,240,255,0.1);
  transform: translateY(-6px);
}
.platform-card.coming { opacity: 0.7; }
.platform-card.coming:hover { opacity: 0.85; transform: translateY(-4px); }

.platform-status {
  font-family: var(--mono);
  font-size: 0.65rem; font-weight: 700;
  letter-spacing: 2px;
  padding: 4px 12px;
  border-radius: 100px;
  display: inline-block;
  margin-bottom: 1.5rem;
}
.platform-status.live {
  background: rgba(34,197,94,0.15);
  color: var(--green);
  border: 1px solid rgba(34,197,94,0.3);
}
.platform-status.soon {
  background: rgba(249,115,22,0.1);
  color: var(--orange);
  border: 1px solid rgba(249,115,22,0.2);
}
.platform-logo {
  font-size: 2.5rem; font-weight: 900;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
}
.platform-name {
  font-size: 1.1rem; font-weight: 700;
  margin-bottom: 0.5rem;
}
.platform-desc {
  font-size: 0.85rem; color: var(--text-dim);
  line-height: 1.5; margin-bottom: 1rem;
}
.platform-type {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; margin-bottom: 1.5rem;
  font-size: 0.8rem; color: var(--text-muted);
}
.type-badge {
  font-family: var(--mono);
  font-size: 0.65rem; font-weight: 700;
  padding: 3px 8px; border-radius: 4px;
  letter-spacing: 1px;
}
.type-badge.download { background: rgba(124,58,237,0.15); color: var(--accent2); }
.type-badge.api { background: rgba(0,240,255,0.1); color: var(--accent); }

/* ====== PRICING ====== */
.pricing { background: var(--bg2); }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
}
.price-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 3rem 2.5rem;
  text-align: center;
  backdrop-filter: blur(10px);
  transition: all 0.4s;
  position: relative;
}
.price-card.pro {
  border-color: rgba(0,240,255,0.2);
  box-shadow: 0 0 60px rgba(0,240,255,0.05);
}
.price-card.pro::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px; background: var(--gradient);
}
.price-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 0.65rem; font-weight: 700;
  letter-spacing: 2px;
  background: var(--gradient);
  color: #fff;
  padding: 4px 16px;
  border-radius: 100px;
}
.price-tier {
  font-size: 0.85rem; font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1rem;
}
.price-amount {
  display: flex; align-items: baseline;
  justify-content: center; gap: 2px;
  margin-bottom: 1rem;
}
.price-currency { font-size: 1.5rem; font-weight: 700; color: var(--text-dim); }
.price-number { font-size: 4rem; font-weight: 900; color: var(--text); }
.price-period { font-size: 1rem; color: var(--text-muted); }
.price-desc {
  color: var(--text-dim); font-size: 0.9rem;
  margin-bottom: 2rem; line-height: 1.5;
}
.price-features {
  list-style: none; text-align: left;
  margin-bottom: 2rem;
}
.price-features li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  font-size: 0.9rem;
  color: var(--text-dim);
}
.price-features li::before {
  content: '\2713';
  position: absolute; left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* ====== CTA FINAL ====== */
.cta-final { padding: 6rem 2rem; }
.cta-box {
  text-align: center;
  padding: 5rem 3rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
}
.cta-box::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--gradient-subtle);
  opacity: 0.3;
}
.cta-box h2 {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 800; margin-bottom: 1rem;
  position: relative;
}
.cta-box p {
  color: var(--text-dim); font-size: 1.1rem;
  margin-bottom: 2rem; position: relative;
}
.cta-box .btn-primary { position: relative; }

/* ====== FOOTER ====== */
.footer {
  border-top: 1px solid var(--border);
  padding: 3rem 2rem 2rem;
}
.footer-inner {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 2rem; flex-wrap: wrap; gap: 1rem;
}
.footer-brand p {
  color: var(--text-muted); font-size: 0.85rem; margin-top: 0.5rem;
}
.footer-links {
  display: flex; gap: 2rem;
}
.footer-links a {
  color: var(--text-dim); text-decoration: none;
  font-size: 0.85rem; transition: color 0.2s;
}
.footer-links a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  text-align: center;
}
.footer-bottom p { color: var(--text-muted); font-size: 0.8rem; }

/* ====== TOAST ====== */
.toast {
  position: fixed; bottom: 2rem; left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--glass);
  border: 1px solid rgba(34,197,94,0.3);
  backdrop-filter: blur(20px);
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; gap: 10px;
  font-size: 0.9rem;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 200;
}
.toast.show { transform: translateX(-50%) translateY(0); }
.toast-icon { color: var(--green); font-weight: 700; }

/* ====== REVEAL ANIMATION ====== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.feature-card.reveal {
  transition-delay: calc(var(--delay, 0) * 80ms);
}

/* ====== RESPONSIVE ====== */
@media (max-width: 768px) {
  .nav-links a:not(.btn-nav) { display: none; }
  .hero { padding: 6rem 1.5rem 3rem; }
  .hero-stats { flex-direction: column; gap: 1rem; padding: 1.5rem; }
  .stat-divider { width: 40px; height: 1px; }
  .section { padding: 5rem 1.5rem; }
  .step-line { display: none; }
  .steps { flex-direction: column; }
  .cta-box { padding: 3rem 1.5rem; }
  .platform-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2rem; }
  .hero-cta { flex-direction: column; align-items: center; }
  .features-grid { grid-template-columns: 1fr; }
}
