/* ═══════════════════════════════════════════
   Crown Analyzer – Website Styles
   ═══════════════════════════════════════════ */

:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #111827;
  --bg-card: #1a1a2e;
  --border: #1f2937;
  --text-primary: #f9fafb;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  --accent-blue: #3b82f6;
  --accent-purple: #8b5cf6;
  --accent-green: #10b981;
  --gradient-brand: linear-gradient(135deg, #3b82f6, #8b5cf6);
  --radius: 12px;
  --radius-lg: 16px;
  --max-width: 1100px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-blue); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; }

/* ── Navigation ─────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(31, 41, 55, 0.5);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 22px;
  font-weight: 700;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  letter-spacing: -0.5px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover {
  color: var(--text-primary);
  text-decoration: none;
}

.nav-cta {
  padding: 8px 20px;
  background: var(--gradient-brand);
  border-radius: 8px;
  color: white !important;
  font-weight: 600;
  font-size: 14px;
  transition: opacity 0.2s;
}
.nav-cta:hover { opacity: 0.9; text-decoration: none !important; }

.nav-lang {
  font-size: 13px;
  color: var(--text-muted);
  cursor: pointer;
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 6px;
}
.nav-lang:hover { border-color: var(--text-muted); }

/* Mobile menu */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 24px;
  cursor: pointer;
}

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border);
    padding: 20px 24px;
    gap: 16px;
  }
  .nav-links.open { display: flex; }
}

/* ── Sections ───────────────────────────── */
.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 100px 24px;
}

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

.section-title {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.2;
}

.section-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.6;
}

/* ── Hero ────────────────────────────────── */
.hero {
  padding-top: 160px;
  padding-bottom: 100px;
  text-align: center;
  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(59, 130, 246, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero h1 {
  font-size: 56px;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 20px;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.1s;
  text-decoration: none !important;
}
.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--gradient-brand);
  color: white;
}
.btn-primary:hover { opacity: 0.9; }

.btn-secondary {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border);
}
.btn-secondary:hover { border-color: var(--text-muted); }

/* Prelaunch badge */
.prelaunch-badge {
  display: inline-block;
  background: linear-gradient(135deg, #065f46, #064e3b);
  border: 1px solid #10b981;
  color: #6ee7b7;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: 20px;
  margin-bottom: 20px;
}

/* ── Features ────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.feature-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  transition: border-color 0.2s, transform 0.2s;
}
.feature-card:hover {
  border-color: var(--accent-blue);
  transform: translateY(-2px);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(59, 130, 246, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 16px;
  color: var(--accent-blue);
}

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

.feature-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .features-grid { grid-template-columns: 1fr; }
}

/* ── Pricing ─────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 48px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.price-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  position: relative;
  transition: border-color 0.2s, transform 0.2s;
}
.price-card:hover {
  border-color: var(--accent-blue);
  transform: translateY(-2px);
}
.price-card.featured { border-color: var(--accent-purple); }

.price-card.featured::before {
  content: attr(data-badge);
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #8b5cf6, #6d28d9);
  color: white;
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.price-card h3 {
  font-size: 15px;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.price-amount {
  font-size: 48px;
  font-weight: 700;
  line-height: 1;
}
.price-amount span {
  font-size: 18px;
  color: var(--text-muted);
  font-weight: 400;
}

.price-period {
  font-size: 14px;
  color: var(--text-muted);
  margin: 4px 0 24px;
}

.price-features {
  text-align: left;
  list-style: none;
  margin-bottom: 24px;
}
.price-features li {
  padding: 6px 0;
  font-size: 14px;
  color: #d1d5db;
}
.price-features li::before {
  content: '\2713\0020';
  color: var(--accent-green);
  font-weight: 700;
}

.price-btn {
  display: block;
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  color: white;
  transition: opacity 0.2s;
}
.price-btn:hover { opacity: 0.9; }
.price-btn.monthly { background: #2563eb; }
.price-btn.annual { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }

@media (max-width: 600px) {
  .pricing-grid { grid-template-columns: 1fr; }
}

/* ── Prelaunch pricing overlay ────────── */
.pricing-prelaunch {
  text-align: center;
  margin-top: 48px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.prelaunch-box {
  background: linear-gradient(135deg, #065f46, #064e3b);
  border: 1px solid var(--accent-green);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
}

.prelaunch-box h3 {
  font-size: 22px;
  font-weight: 700;
  color: #f0fdf4;
  margin-bottom: 8px;
}

.prelaunch-box p {
  font-size: 15px;
  color: #a7f3d0;
  line-height: 1.6;
}

.prelaunch-box .countdown {
  margin-top: 16px;
  font-size: 14px;
  color: #6ee7b7;
}

/* ── Contact ─────────────────────────────── */
.contact-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  max-width: 600px;
}

.contact-card p {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.6;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-blue);
  font-size: 16px;
  font-weight: 500;
}

/* ── Footer ──────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 24px;
  text-align: center;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links {
  display: flex;
  gap: 20px;
  list-style: none;
}
.footer-links a {
  color: var(--text-muted);
  font-size: 13px;
}
.footer-links a:hover { color: var(--text-secondary); }

.footer-copy {
  color: var(--text-muted);
  font-size: 13px;
}

@media (max-width: 600px) {
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
  .hero h1 { font-size: 36px; }
  .hero p { font-size: 17px; }
  .section-title { font-size: 28px; }
  .section { padding: 60px 20px; }
}

/* ── Legal pages ──────────────────────────── */
.legal-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 120px 24px 80px;
}

.legal-page h1 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 8px;
}

.legal-page .updated {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.legal-page h2 {
  font-size: 20px;
  font-weight: 600;
  margin-top: 32px;
  margin-bottom: 12px;
}

.legal-page p, .legal-page li {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 12px;
}

.legal-page ul {
  padding-left: 24px;
  margin-bottom: 16px;
}

/* ── FAQ ──────────────────────────────────── */
.faq-list {
  max-width: 700px;
  margin: 48px auto 0;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 600;
  text-align: left;
  padding: 20px 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-question::after {
  content: '+';
  font-size: 22px;
  color: var(--text-muted);
  transition: transform 0.2s;
}
.faq-item.open .faq-question::after {
  content: '\2212';
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-item.open .faq-answer {
  max-height: 300px;
}

.faq-answer p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  padding-bottom: 20px;
}
