/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0a0a0f;
  --bg-card: #12121a;
  --bg-card-hover: #1a1a2e;
  --text: #e0e0e0;
  --text-muted: #8888a0;
  --indigo: #6c5ce7;
  --gold: #f9a825;
  --cyan: #00d2ff;
  --border: rgba(108, 92, 231, 0.15);
  --border-hover: rgba(108, 92, 231, 0.4);
  --radius: 16px;
  --radius-sm: 10px;
}

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

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

/* Background pattern */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(108, 92, 231, 0.07) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  z-index: 0;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 { line-height: 1.2; font-weight: 700; }
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }

a { color: var(--indigo); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--cyan); }

.gradient-text {
  background: linear-gradient(135deg, var(--indigo), var(--cyan), var(--gold));
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 4s ease infinite;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* ===== LAYOUT ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }
.section { padding: 100px 0; }
.section-header { text-align: center; margin-bottom: 64px; }
.section-header p { color: var(--text-muted); margin-top: 16px; max-width: 640px; margin-left: auto; margin-right: auto; font-size: 1.1rem; }
.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--indigo);
  margin-bottom: 12px;
}

/* ===== GLASS CARD ===== */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}
.card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--indigo), #8b5cf6);
  color: #fff;
  box-shadow: 0 4px 20px rgba(108, 92, 231, 0.4);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(108, 92, 231, 0.6);
  color: #fff;
}
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-hover);
}
.btn-outline:hover { background: rgba(108, 92, 231, 0.1); color: #fff; }
.btn-gold {
  background: linear-gradient(135deg, var(--gold), #ffb300);
  color: #0a0a0f;
  box-shadow: 0 4px 20px rgba(249, 168, 37, 0.3);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 6px 30px rgba(249, 168, 37, 0.5); color: #0a0a0f; }

/* ===== NAV ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav .container { display: flex; align-items: center; justify-content: space-between; }
.nav-logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.2rem; color: #fff; }
.nav-logo img { height: 32px; border-radius: 6px; }
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a { color: var(--text-muted); font-size: 0.9rem; font-weight: 500; }
.nav-links a:hover { color: #fff; }
.nav-toggle { display: none; background: none; border: none; color: #fff; font-size: 1.5rem; cursor: pointer; }

@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: rgba(10,10,15,0.97); padding: 24px; gap: 16px; border-bottom: 1px solid var(--border); }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 80px;
  position: relative;
}
.hero-content { max-width: 800px; }
.hero h1 { margin-bottom: 24px; }
.hero p { font-size: 1.2rem; color: var(--text-muted); margin-bottom: 40px; max-width: 600px; margin-left: auto; margin-right: auto; }
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: 50px;
  background: rgba(108, 92, 231, 0.1);
  border: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--indigo);
  margin-bottom: 24px;
  font-weight: 500;
}
.hero-glow {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(108, 92, 231, 0.15), transparent 70%);
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 0;
}
.hero-content { position: relative; z-index: 1; }

/* ===== GRID LAYOUTS ===== */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ===== FEATURE CARDS ===== */
.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 20px;
  background: rgba(108, 92, 231, 0.1);
  border: 1px solid var(--border);
}
.card-icon.gold { background: rgba(249, 168, 37, 0.1); border-color: rgba(249, 168, 37, 0.2); }
.card-icon.cyan { background: rgba(0, 210, 255, 0.1); border-color: rgba(0, 210, 255, 0.2); }

.card h3 { margin-bottom: 12px; color: #fff; }
.card p { color: var(--text-muted); font-size: 0.95rem; }

/* ===== PRICING ===== */
.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 1024px) { .pricing-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .pricing-grid { grid-template-columns: 1fr; } }

.pricing-card { text-align: center; padding: 40px 28px; }
.pricing-card.featured { border-color: var(--indigo); position: relative; }
.pricing-card.featured::before {
  content: 'Most Popular';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--indigo), #8b5cf6);
  color: #fff;
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}
.pricing-price { font-size: 2.8rem; font-weight: 800; color: #fff; margin: 16px 0 4px; }
.pricing-price span { font-size: 1rem; font-weight: 400; color: var(--text-muted); }
.pricing-name { font-size: 1.1rem; font-weight: 600; color: var(--indigo); }
.pricing-features { list-style: none; margin: 24px 0; text-align: left; }
.pricing-features li { padding: 8px 0; font-size: 0.9rem; color: var(--text-muted); display: flex; align-items: flex-start; gap: 8px; }
.pricing-features li::before { content: '✓'; color: var(--indigo); font-weight: 700; flex-shrink: 0; }

/* ===== COMPARISON TABLE ===== */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 32px;
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}
.comparison-table th, .comparison-table td {
  padding: 16px 20px;
  text-align: left;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border);
}
.comparison-table th { background: rgba(108, 92, 231, 0.1); color: #fff; font-weight: 600; }
.comparison-table td { color: var(--text-muted); }
.comparison-table tr:last-child td { border-bottom: none; }
.check { color: var(--indigo); font-weight: 700; }
.cross { color: #555; }

@media (max-width: 768px) {
  .comparison-table { font-size: 0.8rem; }
  .comparison-table th, .comparison-table td { padding: 10px; }
}

/* ===== FAQ ===== */
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  overflow: hidden;
  background: var(--bg-card);
}
.faq-q {
  width: 100%;
  background: none;
  border: none;
  color: #fff;
  padding: 20px 24px;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: inherit;
}
.faq-q::after { content: '+'; font-size: 1.4rem; color: var(--indigo); transition: transform 0.3s; }
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a { padding: 0 24px; max-height: 0; overflow: hidden; transition: max-height 0.3s ease, padding 0.3s ease; color: var(--text-muted); font-size: 0.95rem; }
.faq-item.open .faq-a { max-height: 400px; padding: 0 24px 20px; }

/* ===== STEPS ===== */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
@media (max-width: 768px) { .steps { grid-template-columns: 1fr; } }
.step { text-align: center; position: relative; }
.step-num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--indigo), #8b5cf6);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 800;
  margin: 0 auto 20px;
}
.step h3 { color: #fff; margin-bottom: 8px; }
.step p { color: var(--text-muted); font-size: 0.9rem; }

/* ===== FOOTER ===== */
.footer {
  border-top: 1px solid var(--border);
  padding: 60px 0 32px;
  position: relative;
  z-index: 1;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand p { color: var(--text-muted); font-size: 0.9rem; margin-top: 12px; max-width: 300px; }
.footer h4 { color: #fff; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 16px; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 10px; }
.footer ul a { color: var(--text-muted); font-size: 0.9rem; }
.footer ul a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 24px; text-align: center; color: var(--text-muted); font-size: 0.85rem; }

/* ===== ANIMATIONS ===== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== CTA SECTION ===== */
.cta-section {
  text-align: center;
  padding: 100px 0;
  position: relative;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(108, 92, 231, 0.1), transparent 70%);
  pointer-events: none;
}
.cta-section h2 { margin-bottom: 16px; }
.cta-section p { color: var(--text-muted); margin-bottom: 32px; font-size: 1.1rem; }

/* ===== PRODUCT HERO ===== */
.product-hero { padding-top: 120px; }
.product-hero-icon { width: 80px; height: 80px; border-radius: 20px; margin: 0 auto 24px; display: block; }

/* ===== STATS ===== */
.stats { display: flex; gap: 48px; justify-content: center; flex-wrap: wrap; margin-top: 48px; }
.stat { text-align: center; }
.stat-num { font-size: 2.4rem; font-weight: 800; color: #fff; }
.stat-label { font-size: 0.85rem; color: var(--text-muted); margin-top: 4px; }

/* ===== LEGAL PAGES ===== */
.legal { padding-top: 120px; padding-bottom: 80px; }
.legal h1 { margin-bottom: 8px; }
.legal .last-updated { color: var(--text-muted); margin-bottom: 48px; font-size: 0.9rem; }
.legal h2 { color: #fff; margin-top: 48px; margin-bottom: 16px; font-size: 1.4rem; }
.legal h3 { color: #fff; margin-top: 32px; margin-bottom: 12px; font-size: 1.1rem; }
.legal p, .legal li { color: var(--text-muted); margin-bottom: 12px; font-size: 0.95rem; }
.legal ul, .legal ol { padding-left: 24px; margin-bottom: 16px; }
.legal li { margin-bottom: 8px; }
.legal a { color: var(--cyan); }

/* ===== TABLE OVERFLOW ===== */
.table-wrap { overflow-x: auto; border-radius: var(--radius); }
