:root {
  --bg: #000000;
  --bg-alt: #0A0A0A;
  --card: #141414;
  --card-hover: #1C1C1C;
  --border: #2A2A2A;
  --text: #FFFFFF;
  --muted: #A3A3A3;
  --accent: #DC2626;
  --accent-soft: rgba(220,38,38,0.14);
  --accent-hover: #B91C1C;
  --danger: #EF4444;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

a { color: inherit; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11,15,26,0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand { font-weight: 800; font-size: 1.15rem; text-decoration: none; color: var(--text); }

.main-nav { display: flex; gap: 28px; }
.main-nav a { text-decoration: none; color: var(--muted); font-size: 0.92rem; font-weight: 500; }
.main-nav a:hover { color: var(--text); }

.header-actions { display: flex; gap: 10px; align-items: center; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 9px 18px; border-radius: 10px; font-size: 0.9rem; font-weight: 600;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
}
.btn-primary { background: var(--accent); color: #FFFFFF; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--accent); }
.btn-block { width: 100%; }

/* ---------- Hero / Simulator ---------- */
.hero {
  padding: 72px 0 40px;
  text-align: center;
}
.hero h1 { font-size: 2.4rem; margin: 0 0 14px; letter-spacing: -0.02em; }
.hero h1 span { color: var(--accent); }
.hero p.lead { color: var(--muted); max-width: 560px; margin: 0 auto 8px; font-size: 1.05rem; }
.badge-simulation {
  display: inline-block; margin-top: 18px; padding: 6px 14px; border-radius: 999px;
  background: rgba(248,113,113,0.1); border: 1px solid rgba(248,113,113,0.3);
  color: var(--danger); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.02em;
}

section { padding: 64px 0; }
.section-title { text-align: center; margin-bottom: 12px; font-size: 1.8rem; }
.section-subtitle { text-align: center; color: var(--muted); max-width: 520px; margin: 0 auto 44px; }

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

.simulator-grid-new {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.85rem; color: var(--muted); margin-bottom: 6px; }
.field .input-wrap { position: relative; }
.field input {
  width: 100%; padding: 11px 14px; background: #000000; border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text); font-size: 0.95rem; outline: none;
}
.field input:focus { border-color: var(--accent); }

.sim-tier-label { font-size: 0.85rem; color: var(--muted); margin-bottom: 10px; }

.sim-tiers {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 24px;
}
.sim-tier {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 16px 10px; background: var(--bg-alt); border: 1px solid var(--border);
  border-radius: var(--radius-md); cursor: pointer; font-family: inherit;
  transition: border-color .15s ease, background .15s ease;
}
.sim-tier:hover { border-color: var(--accent); }
.sim-tier.active { background: var(--accent-soft); border-color: var(--accent); }
.sim-tier-name { color: var(--text); font-weight: 700; font-size: 0.92rem; }
.sim-tier-pct { color: var(--muted); font-size: 0.8rem; }
.sim-tier.active .sim-tier-pct { color: var(--accent); }

.sim-results {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 4px;
}
.sim-result-box {
  background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 16px; text-align: center;
}
.sim-result-box .label { color: var(--muted); font-size: 0.8rem; margin-bottom: 4px; }
.sim-result-box .value { font-size: 1.5rem; font-weight: 700; }
.sim-result-box .value.accent { color: var(--accent); }

.sim-disclaimer {
  margin-top: 16px; font-size: 0.8rem; color: var(--muted); text-align: center;
}

/* ---------- Packages ---------- */
.packages-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px;
}
.package-card {
  position: relative; overflow: hidden;
}
.package-card.featured { border-color: var(--accent); }
.package-card .ribbon {
  position: absolute; top: 18px; right: -34px; background: var(--accent); color: #FFFFFF;
  font-size: 0.72rem; font-weight: 700; padding: 4px 40px; transform: rotate(40deg);
}
.package-name { font-size: 1.1rem; font-weight: 700; margin-bottom: 4px; }
.package-price { font-size: 2.2rem; font-weight: 800; margin: 12px 0 2px; }
.package-price small { font-size: 0.95rem; color: var(--muted); font-weight: 500; }
.package-features { list-style: none; padding: 0; margin: 20px 0 24px; }
.package-features li { padding: 8px 0; border-top: 1px solid var(--border); color: var(--muted); font-size: 0.92rem; }
.package-features li:first-child { border-top: none; }
.package-features li::before { content: "✓ "; color: var(--accent); font-weight: 700; }

/* ---------- Demo ---------- */
.demo-card { max-width: 460px; margin: 0 auto; }
.alert { padding: 12px 14px; border-radius: 10px; font-size: 0.88rem; margin-bottom: 18px; }
.alert-error { background: rgba(248,113,113,0.1); border: 1px solid rgba(248,113,113,0.35); color: var(--danger); }
.alert-success { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.25); color: var(--text); }

/* ---------- Performance ---------- */
.perf-table { width: 100%; border-collapse: collapse; }
.perf-table th, .perf-table td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: 0.92rem; }
.perf-table th { color: var(--muted); font-weight: 600; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.03em; }
.perf-positive { color: var(--text); font-weight: 600; }
.perf-negative { color: var(--danger); font-weight: 600; }

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question {
  width: 100%; text-align: left; background: none; border: none; color: var(--text);
  padding: 18px 4px; font-size: 1rem; font-weight: 600; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
}
.faq-question .icon { color: var(--accent); transition: transform 0.2s ease; }
.faq-item.open .faq-question .icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0; overflow: hidden; color: var(--muted); font-size: 0.92rem; transition: max-height 0.25s ease;
}
.faq-item.open .faq-answer { max-height: 300px; padding-bottom: 18px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-alt); padding-top: 48px; }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 40px; padding-bottom: 32px; }
.footer-tagline { color: var(--muted); font-size: 0.88rem; margin-top: 6px; }
.footer-links { display: flex; gap: 56px; }
.footer-col h4 { font-size: 0.8rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 12px; }
.footer-col a { display: block; text-decoration: none; color: var(--text); font-size: 0.9rem; padding: 5px 0; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid var(--border); padding: 18px 0; color: var(--muted); font-size: 0.82rem; }

/* ---------- Static content pages ---------- */
.content-page { padding: 64px 0; max-width: 760px; margin: 0 auto; }
.content-page h1 { font-size: 2rem; margin-bottom: 8px; }
.content-page h2 { font-size: 1.2rem; margin-top: 32px; }
.content-page p, .content-page li { color: var(--muted); font-size: 0.95rem; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .main-nav { display: none; }
  .sim-tiers { grid-template-columns: 1fr; }
  .sim-results { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.8rem; }
  .footer-inner { flex-direction: column; }
}
