/* ===== LANDING PAGE STYLES ===== */
:root {
  --bg: #0a0e1a;
  --bg2: #0f1526;
  --bg3: #151d35;
  --card: #111827;
  --border: #1e2d4a;
  --accent: #6c63ff;
  --accent2: #00d4aa;
  --accent-glow: rgba(108, 99, 255, 0.3);
  --text: #f0f4ff;
  --text2: #8892a4;
  --text3: #4a5568;
  --green: #00d4aa;
  --red: #ff4d6d;
  --yellow: #ffd166;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }

/* ===== NAV ===== */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 16px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(10, 14, 26, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(30, 45, 74, 0.5);
}

.nav-logo {
  font-size: 22px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--text2);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--text); }

.nav-cta {
  display: flex;
  gap: 12px;
  align-items: center;
}

.btn {
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-ghost {
  background: transparent;
  color: var(--text2);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  background: var(--bg3);
  color: var(--text);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #8b5cf6);
  color: #fff;
  box-shadow: 0 0 20px var(--accent-glow);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 28px var(--accent-glow);
}

.btn-lg {
  padding: 14px 32px;
  font-size: 16px;
  border-radius: 10px;
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}

.btn-outline:hover {
  background: var(--accent);
  color: #fff;
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px; left: 50%;
  transform: translateX(-50%);
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(108,99,255,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(108, 99, 255, 0.1);
  border: 1px solid rgba(108, 99, 255, 0.3);
  color: var(--accent);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 28px;
}

.hero h1 {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -1.5px;
  max-width: 900px;
  margin-bottom: 24px;
}

.hero h1 span {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 18px;
  color: var(--text2);
  max-width: 560px;
  margin-bottom: 40px;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 64px;
}

.hero-note {
  font-size: 13px;
  color: var(--text3);
  margin-top: 12px;
}

/* ===== STATS BAR ===== */
.stats-bar {
  display: flex;
  gap: 48px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 16px;
}

.stat-item {
  text-align: center;
}

.stat-item .num {
  font-size: 28px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-item .label {
  font-size: 13px;
  color: var(--text3);
  margin-top: 2px;
}

/* ===== DASHBOARD PREVIEW ===== */
.dashboard-preview {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

.preview-wrapper {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(108,99,255,0.1);
}

.preview-topbar {
  background: var(--bg2);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--border);
}

.dot {
  width: 12px; height: 12px;
  border-radius: 50%;
}
.dot-red { background: #ff5f57; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #28ca41; }

.preview-body {
  display: grid;
  grid-template-columns: 200px 1fr;
  min-height: 380px;
}

.preview-sidebar {
  background: var(--bg2);
  border-right: 1px solid var(--border);
  padding: 20px 0;
}

.preview-nav-item {
  padding: 10px 20px;
  font-size: 13px;
  color: var(--text3);
  display: flex;
  align-items: center;
  gap: 10px;
}

.preview-nav-item.active {
  color: var(--accent);
  background: rgba(108,99,255,0.08);
  border-right: 2px solid var(--accent);
}

.preview-content {
  padding: 24px;
}

.preview-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.preview-metric {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px;
}

.preview-metric .pm-label {
  font-size: 11px;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.preview-metric .pm-value {
  font-size: 20px;
  font-weight: 700;
  margin-top: 4px;
}

.preview-metric .pm-value.green { color: var(--green); }
.preview-metric .pm-value.red { color: var(--red); }
.preview-metric .pm-value.purple { color: var(--accent); }

.preview-chart {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  height: 160px;
  padding: 16px;
  display: flex;
  align-items: flex-end;
  gap: 6px;
}

.chart-bar {
  flex: 1;
  border-radius: 4px 4px 0 0;
  min-height: 8px;
}

.chart-bar.pos { background: linear-gradient(to top, var(--green), rgba(0,212,170,0.3)); }
.chart-bar.neg { background: linear-gradient(to top, var(--red), rgba(255,77,109,0.3)); }

/* ===== SECTIONS ===== */
section { padding: 80px 24px; }

.section-label {
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 16px;
}

.section-title {
  text-align: center;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}

.section-sub {
  text-align: center;
  color: var(--text2);
  font-size: 17px;
  max-width: 560px;
  margin: 0 auto 60px;
}

/* ===== FEATURES ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  opacity: 0;
  transition: opacity 0.3s;
}

.feature-card:hover {
  border-color: rgba(108,99,255,0.3);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.3);
}

.feature-card:hover::before { opacity: 1; }

.feature-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: rgba(108, 99, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.feature-card p {
  color: var(--text2);
  font-size: 14px;
  line-height: 1.7;
}

/* ===== HOW IT WORKS ===== */
.how-bg { background: var(--bg2); }

.steps {
  display: flex;
  gap: 0;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

.steps::before {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(16.6% + 28px);
  right: calc(16.6% + 28px);
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
}

.step {
  flex: 1;
  text-align: center;
  padding: 0 16px;
}

.step-num {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  position: relative;
  z-index: 1;
}

.step h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

.step p {
  font-size: 13px;
  color: var(--text2);
}

/* ===== PRICING ===== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  position: relative;
}

.pricing-card.popular {
  border-color: var(--accent);
  box-shadow: 0 0 40px rgba(108,99,255,0.15);
}

.popular-badge {
  position: absolute;
  top: -12px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 100px;
  white-space: nowrap;
}

.plan-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text2);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 8px;
}

.plan-price .currency { font-size: 20px; font-weight: 700; color: var(--text2); }
.plan-price .amount { font-size: 52px; font-weight: 900; line-height: 1; }
.plan-price .period { font-size: 14px; color: var(--text2); }

.plan-desc {
  font-size: 13px;
  color: var(--text3);
  margin-bottom: 28px;
}

.plan-features {
  list-style: none;
  margin-bottom: 32px;
}

.plan-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text2);
  padding: 7px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.plan-features li .check { color: var(--green); font-size: 16px; }
.plan-features li .cross { color: var(--text3); }

/* ===== TESTIMONIALS ===== */
.testimonials-bg { background: var(--bg2); }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.testimonial-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.testimonial-stars {
  color: var(--yellow);
  font-size: 14px;
  margin-bottom: 16px;
}

.testimonial-text {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.8;
  margin-bottom: 20px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}

.author-name { font-size: 14px; font-weight: 600; }
.author-role { font-size: 12px; color: var(--text3); }

/* ===== CTA SECTION ===== */
.cta-section {
  text-align: center;
  padding: 100px 24px;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 600px; height: 400px;
  background: radial-gradient(ellipse, rgba(108,99,255,0.1) 0%, transparent 70%);
  pointer-events: none;
}

.cta-section h2 {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 900;
  margin-bottom: 20px;
}

.cta-section p {
  color: var(--text2);
  font-size: 17px;
  margin-bottom: 40px;
}

/* ===== FOOTER ===== */
footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 60px 40px 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto 48px;
}

.footer-brand p {
  font-size: 14px;
  color: var(--text2);
  margin-top: 12px;
  max-width: 260px;
  line-height: 1.7;
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text3);
  margin-bottom: 16px;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { font-size: 14px; color: var(--text2); transition: color 0.2s; }
.footer-col a:hover { color: var(--text); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}

.footer-bottom p { font-size: 13px; color: var(--text3); }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  nav { padding: 12px 20px; }
  .nav-links { display: none; }
  .preview-body { grid-template-columns: 1fr; }
  .preview-sidebar { display: none; }
  .preview-metrics { grid-template-columns: repeat(2, 1fr); }
  .steps { flex-direction: column; gap: 32px; }
  .steps::before { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .hero-cta { flex-direction: column; align-items: center; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}
