:root {
  --bg: #0a0a0b;
  --surface: #121214;
  --surface-2: #1a1a1e;
  --border: rgba(255, 255, 255, 0.08);
  --primary: #e10600;
  --primary-light: #ff2d20;
  --text: #f5f5f7;
  --text-muted: #a1a1aa;
  --text-secondary: #c0c0c8;
  --gradient: linear-gradient(135deg, #e10600 0%, #ff2d20 100%);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --header-h: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

.container {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.text-gradient {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 16px;
}

.brand__logo {
  height: 36px;
  width: auto;
}

.nav {
  display: none;
  gap: 28px;
}

.nav a {
  color: var(--text-secondary);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s;
}

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

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

.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 20px 24px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.mobile-nav[hidden] {
  display: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  border: 1px solid transparent;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
  cursor: pointer;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 8px 24px rgba(225, 6, 0, 0.35);
}

.btn--ghost {
  color: var(--text-secondary);
  background: transparent;
}

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

.btn--outline {
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}

.btn--lg {
  padding: 14px 28px;
  font-size: 1rem;
}

/* Hero */
.hero {
  padding: 64px 0 48px;
  overflow: hidden;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

.badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(225, 6, 0, 0.12);
  color: #ff6b63;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 20px;
}

.hero__lead {
  font-size: 1.12rem;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 0 28px;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.hero__stats {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.hero__stats li {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.hero__stats strong {
  color: var(--text);
  display: block;
  font-size: 1rem;
}

.hero__visual {
  position: relative;
}

.hero__glow {
  position: absolute;
  inset: 10% 0;
  background: radial-gradient(circle at 50% 50%, rgba(225, 6, 0, 0.25), transparent 65%);
  filter: blur(40px);
  pointer-events: none;
}

.hero__image {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

/* Trust */
.trust {
  padding: 24px 0 48px;
}

.trust__inner {
  text-align: center;
  color: var(--text-muted);
  font-size: 1rem;
}

.trust strong {
  color: var(--text-secondary);
}

/* Sections */
.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

.section-label {
  display: inline-block;
  color: var(--primary-light);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-head h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}

.section-head p {
  color: var(--text-muted);
  margin: 0;
}

/* Features */
.features {
  padding: 80px 0;
  background: linear-gradient(180deg, var(--bg) 0%, var(--surface) 50%, var(--bg) 100%);
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.feature-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color 0.2s, transform 0.2s;
}

.feature-card:hover {
  border-color: rgba(225, 6, 0, 0.35);
  transform: translateY(-2px);
}

.feature-card__icon {
  font-size: 1.75rem;
  margin-bottom: 12px;
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.feature-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* Steps */
.steps {
  padding: 80px 0;
}

.steps__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 24px;
  max-width: 720px;
  margin-inline: auto;
}

.steps__list li {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.steps__num {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--gradient);
  font-weight: 800;
  font-size: 1.1rem;
}

.steps__list h3 {
  margin: 0 0 6px;
}

.steps__list p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Pricing */
.pricing {
  padding: 80px 0;
  background: var(--surface);
}

.pricing__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  align-items: stretch;
}

.plans-loading,
.plans-error {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 20px;
  color: var(--text-muted);
}

.spinner {
  width: 36px;
  height: 36px;
  margin: 0 auto 16px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 24px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.plan-card--featured {
  border-color: rgba(225, 6, 0, 0.5);
  box-shadow: 0 0 0 1px rgba(225, 6, 0, 0.2), var(--shadow);
}

.plan-card__badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--gradient);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.plan-card h3 {
  margin: 0 0 8px;
  font-size: 1.25rem;
}

.plan-card__price {
  margin-bottom: 4px;
}

.plan-card__price strong {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary-light);
}

.plan-card__price span {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.plan-card__limits {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 20px;
}

.plan-card__features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  flex: 1;
}

.plan-card__features li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.plan-card__features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary-light);
  font-weight: 700;
}

.plan-card .btn {
  width: 100%;
}

.pricing__note {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.82rem;
  margin-top: 24px;
}

/* FAQ */
.faq {
  padding: 80px 0;
}

.faq__list {
  max-width: 720px;
  margin-inline: auto;
}

.faq__item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
}

.faq__item summary {
  padding: 18px 20px;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__item p {
  padding: 0 20px 18px;
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* CTA */
.cta {
  padding: 40px 0 80px;
}

.cta__box {
  text-align: center;
  padding: 56px 32px;
  border-radius: calc(var(--radius) + 4px);
  background: linear-gradient(145deg, rgba(225, 6, 0, 0.12), rgba(18, 18, 20, 0.95));
  border: 1px solid rgba(225, 6, 0, 0.25);
}

.cta__icon {
  margin: 0 auto 20px;
  border-radius: 16px;
}

.cta__box h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 12px;
}

.cta__box p {
  color: var(--text-muted);
  margin: 0 0 28px;
}

.cta__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 24px;
  background: var(--bg);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

.footer__logo {
  height: 32px;
  width: auto;
  margin-bottom: 12px;
}

.footer__tagline {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0;
}

.footer h4 {
  margin: 0 0 12px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
}

.footer a {
  display: block;
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 8px;
}

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

.footer__bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Responsive */
@media (min-width: 900px) {
  .nav {
    display: flex;
  }

  .nav-toggle {
    display: none;
  }

  .hero__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 700px) {
  .header__actions .btn--ghost {
    display: none;
  }

  .footer__grid {
    grid-template-columns: 1fr;
  }
}
