:root {
  --bg: #0f0b28;
  --bg-alt: #150f36;
  --card: #1c1547;
  --card-border: #322a63;
  --text: #f4f2ff;
  --text-dim: #b6aee0;
  --accent: #ff8a5b;
  --accent2: #7c6bff;
  --success: #37c977;
  --error: #ff6b6b;
  --radius: 16px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Segoe UI', system-ui, -apple-system, Roboto, sans-serif;
  scroll-behavior: smooth;
}

.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

img { max-width: 100%; display: block; }

h1, h2, h3 { line-height: 1.2; margin: 0 0 12px; }
p { line-height: 1.6; color: var(--text-dim); }

.btn {
  display: inline-block;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  box-shadow: 0 8px 24px rgba(124, 107, 255, 0.35);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--card-border);
}
.btn-block { display: block; width: 100%; text-align: center; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(15, 11, 40, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--card-border);
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 16px;
  padding: 14px 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
}
.brand-mark { width: 32px; height: 32px; }
.header-nav { display: flex; align-items: center; gap: 10px; }

/* Per-plan flash-deal timer badge */
.plan-flash-timer {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  align-self: flex-start;
  background: linear-gradient(90deg, #ff5b5b, var(--accent));
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  font-variant-numeric: tabular-nums;
}
.plan-flash-timer[hidden] { display: none; }

/* Video showcase */
.video-showcase { padding: 56px 0; }
.video-showcase h2 { text-align: center; }
.video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  max-width: 560px;
  margin: 0 auto;
}
.showcase-video {
  width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: var(--radius);
  border: 1px solid var(--card-border);
  background: #000;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}
@media (max-width: 560px) {
  .video-grid { grid-template-columns: 1fr; max-width: 280px; }
}

/* Hero */
.hero { padding: 64px 0 40px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}
.hero-copy h1 { font-size: 40px; }
.hero-sub { font-size: 18px; }
.hero-points {
  list-style: none;
  padding: 0;
  margin: 20px 0 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 16px;
  color: var(--text);
}
.hero-art img {
  border-radius: 24px;
  border: 1px solid var(--card-border);
  box-shadow: 0 20px 60px rgba(0,0,0,0.45);
}

/* Features */
.features { padding: 40px 0; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
}
.feature-img {
  border-radius: 12px;
  margin-bottom: 16px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.feature-card h3 { font-size: 19px; }
.feature-card p { font-size: 14.5px; margin: 0; }

/* Pricing */
.pricing { padding: 64px 0; background: var(--bg-alt); }
.pricing h2, .cta h2 { text-align: center; font-size: 32px; }
.section-sub { text-align: center; max-width: 560px; margin: 0 auto 40px; }

.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
}
.loading { text-align: center; grid-column: 1 / -1; }

.plan-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.plan-card:hover { transform: translateY(-4px); border-color: var(--accent2); }
.plan-card.popular {
  border-color: var(--accent);
  background: linear-gradient(160deg, rgba(255,138,91,0.12), var(--card) 60%);
}
.badge-popular {
  position: absolute;
  top: -12px;
  right: 18px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  letter-spacing: 0.03em;
}
.plan-name { font-size: 20px; font-weight: 700; margin: 0; }
.plan-tagline { font-size: 13px; margin: -8px 0 0; color: var(--accent2); }
.plan-price-row { display: flex; align-items: baseline; gap: 8px; }
.plan-price { font-size: 32px; font-weight: 800; color: var(--text); }
.plan-original {
  font-size: 15px;
  color: var(--text-dim);
  text-decoration: line-through;
}
.plan-duration { font-size: 13px; color: var(--text-dim); margin-top: -8px; }
.plan-select { margin-top: auto; }

/* CTA */
.cta { padding: 64px 0; text-align: center; }
.cta .btn { margin-top: 8px; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--card-border);
  padding: 24px 0;
}
.footer-row {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: var(--text-dim);
}
.footer-row a { color: inherit; }

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 4, 20, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 50;
}
.modal-overlay[hidden] { display: none; }
.modal {
  background: var(--bg-alt);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 30px;
  width: 100%;
  max-width: 420px;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
}
.modal-plan {
  background: rgba(124,107,255,0.12);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--text);
}
#leadForm label {
  display: block;
  font-size: 13px;
  margin: 14px 0 6px;
  color: var(--text-dim);
}
#leadForm input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--card-border);
  background: #0f0b28;
  color: var(--text);
  font-size: 15px;
}
#leadForm input:focus { outline: 2px solid var(--accent2); }
.form-error {
  color: var(--error);
  font-size: 13px;
  margin: 12px 0 0;
}
.form-note {
  font-size: 12px;
  text-align: center;
  margin-top: 12px;
}
#leadForm button { margin-top: 18px; }
#successView p { text-align: center; }
#successView h3 { text-align: center; }

@media (max-width: 800px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 320px; margin: 0 auto; }
  .features-grid { grid-template-columns: 1fr; }
  .hero-copy h1 { font-size: 30px; }
}
@media (max-width: 480px) {
  .header-row { justify-content: center; text-align: center; }
  .header-nav .btn { padding: 10px 16px; font-size: 14px; }
}

/* Contact page */
.contact-section { padding: 64px 0 90px; }
.contact-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 34px;
  max-width: 520px;
  margin: 40px auto 0;
}
.contact-section h1 { text-align: center; font-size: 34px; }
.contact-section .section-sub { margin-bottom: 0; }
#contactForm label {
  display: block;
  font-size: 13px;
  margin: 14px 0 6px;
  color: var(--text-dim);
}
#contactForm input,
#contactForm textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--card-border);
  background: #0f0b28;
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
  resize: vertical;
}
#contactForm input:focus,
#contactForm textarea:focus { outline: 2px solid var(--accent2); }
#contactForm button { margin-top: 18px; }
#contactSuccessView { text-align: center; }
#contactSuccessView h2 { font-size: 22px; }
