:root {
  --primary: #bd0400;
  --primary-dark: #8c0300;
  --dark: #111827;
  --dark-2: #1f2937;
  --dark-3: #374151;
  --gray: #6b7280;
  --gray-light: #9ca3af;
  --border: #e5e7eb;
  --light: #f9fafb;
  --white: #fff;
  --radius: 12px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--white);
  color: var(--dark);
  line-height: 1.6;
}

a { text-decoration: none; }
ul { list-style: none; }

/* ── Scroll Reveal ───────────────────────────────── */
/* hidden only when JS is running — no-JS users see content immediately */
html.js .reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}
/* must out-specify "html.js .reveal" above, so scope under html.js too */
html.js .reveal.visible { opacity: 1; transform: none; }
.d1 { transition-delay: 0.08s; }
.d2 { transition-delay: 0.16s; }
.d3 { transition-delay: 0.24s; }
.d4 { transition-delay: 0.32s; }
.d5 { transition-delay: 0.40s; }
.d6 { transition-delay: 0.48s; }

/* ── Navbar ─────────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s ease;
}
.navbar.scrolled {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

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

.logo {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.3px;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--dark);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  transition: color 0.2s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.25s ease;
}

.nav-links a:hover { color: var(--primary); }
.nav-links a:hover::after { width: 100%; }

/* ── Hero ────────────────────────────────────────── */
@keyframes gradientFlow {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: none; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-7px); }
}

.hero {
  background: linear-gradient(-45deg, #0f172a, #1a0505, #111827, #200606);
  background-size: 400% 400%;
  animation: gradientFlow 10s ease infinite;
  color: var(--white);
  padding: 110px 20px 120px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 420px;
  background: radial-gradient(ellipse, rgba(189, 4, 0, 0.2) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}

.hero-inner {
  max-width: 680px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  color: var(--gray-light);
  margin-bottom: 1rem;
}
.eyebrow.red   { color: var(--primary); }
.eyebrow.muted { color: #f87171; }

.hero .eyebrow  { animation: heroFadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.10s both; }
.hero h1        { animation: heroFadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.25s both; }
.hero .hero-sub { animation: heroFadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.40s both; }
.hero-actions   { animation: heroFadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.55s both; }

.hero h1 {
  font-size: 3.75rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 1.25rem;
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.5);
}

/* red gradient accent on the second line — fallback solid for old browsers */
.hero h1 .accent { color: #ff5630; }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero h1 .accent {
    background: linear-gradient(90deg, #ff6a4d, #bd0400);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
  }
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--gray-light);
  max-width: 500px;
  margin: 0 auto 2.25rem;
}

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

/* ── Buttons ─────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  position: relative;
  overflow: hidden;
}

.btn .ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  transform: scale(0);
  animation: rippleAnim 0.55s linear;
  pointer-events: none;
}

@keyframes rippleAnim {
  to { transform: scale(4); opacity: 0; }
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(189, 4, 0, 0.4);
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(189, 4, 0, 0.5);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.3);
}
.btn-ghost:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

.btn-white {
  background: var(--white);
  color: var(--primary);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}
.btn-white:hover {
  background: #f3f4f6;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.2);
}

/* ── Sections ────────────────────────────────────── */
.section { padding: 90px 20px; }

/* utilities.css sets ".container { overflow: auto }", which clips the featured
   card's glow. style.css loads on this page only, so lift the clip for sections. */
.section .container { overflow: visible; }

.section-dark {
  background: linear-gradient(-45deg, #0f172a, #1a0505, #111827, #200606);
  background-size: 400% 400%;
  animation: gradientFlow 12s ease infinite;
  color: var(--white);
}

#spiral-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header h2 {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 0.6rem;
}

.section-sub { color: #4b5563; font-size: 1.05rem; }
.section-sub.muted { color: var(--gray-light); }

/* ── Pricing ─────────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  max-width: 900px;
  margin: 0 auto;
  perspective: 1200px;
  /* breathing room so the featured card's glow is never visually cut off */
  padding: 16px 8px 44px;
}

.pricing-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  position: relative;
  transform-style: preserve-3d;
  transform: perspective(1200px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: box-shadow 0.3s ease;
  will-change: transform;
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.06),
    0 8px 24px rgba(0, 0, 0, 0.04);
}

/* shine overlay follows mouse */
.pricing-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  background: radial-gradient(
    circle at var(--mx, 50%) var(--my, 50%),
    rgba(255, 255, 255, 0.12) 0%,
    transparent 55%
  );
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
  z-index: 1;
}
.pricing-card:hover::after { opacity: 1; }

.pricing-card:hover {
  box-shadow:
    0 8px 30px rgba(0, 0, 0, 0.1),
    0 30px 60px rgba(0, 0, 0, 0.08);
}

@keyframes borderGlow {
  0%, 100% { box-shadow: 0 0 0 2px var(--primary), 0 0 28px rgba(189,4,0,0.22), 0 18px 44px rgba(189,4,0,0.16); }
  50%       { box-shadow: 0 0 0 2px var(--primary), 0 0 46px rgba(189,4,0,0.42), 0 22px 54px rgba(189,4,0,0.26); }
}

.featured-card {
  border-color: var(--primary);
  animation: borderGlow 3s ease-in-out infinite;
}

.pricing-badge {
  display: inline-block;
  background: var(--light);
  color: var(--gray);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.featured-badge {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 2px 10px rgba(189, 4, 0, 0.4);
  animation: float 3s ease-in-out infinite;
}

.pricing-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 2;
}

.pricing-desc {
  color: var(--gray);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 2;
}

.feature-list {
  list-style: none;
  margin-bottom: 1.75rem;
  position: relative;
  z-index: 2;
}

.feature-list li {
  padding: 6px 0 6px 1.5rem;
  position: relative;
  color: #374151;
  font-size: 0.95rem;
}

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

.pricing-options {
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  z-index: 2;
}

.pricing-option {
  background: var(--light);
  border-radius: 8px;
  padding: 16px;
  transition: transform 0.2s ease;
}
.pricing-option:hover { transform: translateX(4px); }

.pricing-option.highlight {
  background: #fff5f3;
  border: 1px solid #f6cfc9;
  border-left: 3px solid var(--primary);
}

.price {
  display: block;
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.5px;
}

.price-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--gray);
  margin-bottom: 4px;
}

.pricing-option p {
  font-size: 0.85rem;
  color: var(--gray);
  margin-top: 4px;
}

/* ── Add-ons ─────────────────────────────────────── */
.addons-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.addon-card {
  background: var(--dark-2);
  border: 1px solid var(--dark-3);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.3s ease,
              box-shadow 0.3s ease;
}

/* light sweep on hover */
.addon-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
  transition: left 0.5s ease;
  pointer-events: none;
}
.addon-card:hover::before { left: 150%; }

.addon-card:hover {
  transform: translateY(-6px);
  border-color: rgba(248, 113, 113, 0.4);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(248, 113, 113, 0.15);
}

.addon-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 1rem;
  color: #f87171;
  transition: transform 0.3s ease, color 0.3s ease;
}
.addon-card:hover .addon-icon {
  transform: scale(1.15) rotate(-5deg);
  color: #fca5a5;
}
.addon-icon svg { width: 40px; height: 40px; }

.addon-card h3 {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.45;
  margin-bottom: 0.75rem;
}
.addon-price { color: #f87171; }

.addon-card ul {
  list-style: disc;
  padding-left: 1.1rem;
  margin-top: 0.5rem;
}
.addon-card li {
  color: #d1d5db;
  font-size: 0.875rem;
  margin: 5px 0;
}
.addon-card p {
  color: var(--gray-light);
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}
.addon-note   { color: #f87171 !important; font-weight: 600; }
.addon-bundle { margin-top: 0.75rem !important; color: var(--white) !important; font-weight: 600; }

/* ── CTA ─────────────────────────────────────────── */
.cta-section {
  background: var(--primary);
  color: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.07) 0%, transparent 50%, rgba(255,255,255,0.07) 100%);
  background-size: 200% 200%;
  animation: gradientFlow 6s ease infinite;
  pointer-events: none;
}

.cta-inner { position: relative; }

.cta-inner h2 {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 0.5rem;
}
.cta-inner > p {
  opacity: 0.85;
  font-size: 1.05rem;
  margin-bottom: 1.75rem;
}

.contact-chips {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.contact-chips span {
  background: rgba(0, 0, 0, 0.15);
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.9rem;
  backdrop-filter: blur(4px);
  transition: background 0.2s, transform 0.2s;
}
.contact-chips span:hover {
  background: rgba(0, 0, 0, 0.28);
  transform: translateY(-2px);
}
.contact-chips a {
  background: rgba(0, 0, 0, 0.15);
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.9rem;
  color: inherit;
  backdrop-filter: blur(4px);
  transition: background 0.2s, transform 0.2s;
  text-decoration: none;
}
.contact-chips a:hover {
  background: rgba(0, 0, 0, 0.28);
  transform: translateY(-2px);
}

/* ── Footer ──────────────────────────────────────── */
.footer {
  background: var(--dark);
  color: var(--gray);
  padding: 28px 20px;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer .logo { color: var(--white); }
.footer p { font-size: 0.85rem; }
.footer-link {
  color: var(--gray);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}
.footer-link:hover { color: var(--white); }

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 900px) {
  .addons-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .hero h1 { font-size: 2.5rem; }
  .pricing-grid, .addons-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .footer-inner { flex-direction: column; gap: 8px; text-align: center; }
}

/* ── Focus visible ───────────────────────────────── */
/* Default ring for light backgrounds */
a:focus-visible,
.btn:focus-visible,
.nav-links a:focus-visible,
.footer-link:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}
/* White ring on dark/red backgrounds where brand red would be invisible */
.btn-ghost:focus-visible,
.btn-white:focus-visible,
.contact-chips a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── Reduced motion ──────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html.js .reveal, .reveal.visible { transform: none !important; opacity: 1 !important; }
}
