/* ============================================================
   ClashAutoLoot marketing site
   Aesthetic: dark "loot vault" — obsidian background, molten gold
   accent, HUD-style technical type (Rajdhani + JetBrains Mono).
   ============================================================ */

:root {
  --paper: #0a0908;
  --paper-deep: #100d0a;
  --card: #17130e;
  --card-tint: #1d1811;
  --ink: #f3ecdd;
  --ink-soft: #b3a996;
  --ink-faint: #7a715f;
  --line: rgba(242, 183, 60, 0.14);
  --line-strong: rgba(242, 183, 60, 0.34);
  --coral: #f2b73c;
  --coral-deep: #d99a1f;
  --coral-tint: rgba(242, 183, 60, 0.16);
  --coral-tint-soft: rgba(242, 183, 60, 0.08);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 30px 70px rgba(0, 0, 0, 0.6);
  --glow: 0 0 50px rgba(242, 183, 60, 0.16);
  --font-display: "Rajdhani", sans-serif;
  --font-body: "Manrope", sans-serif;
  --font-mono: "JetBrains Mono", monospace;
  --container: 1160px;
  --radius: 20px;
  --radius-sm: 12px;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { margin: 0; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 1;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.01em;
  margin: 0;
  color: var(--ink);
}

.text-soft { color: var(--ink-soft); }

/* ---------------- decorative blobs ---------------- */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  z-index: 0;
  pointer-events: none;
}
.blob-coral { background: radial-gradient(circle at 30% 30%, #f8d488, #f2b73c 70%); }
.blob-sand { background: radial-gradient(circle at 30% 30%, #c98a2e, #7a4d12 70%); }

/* ---------------- Nav ---------------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 9, 8, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.brand img {
  height: 58px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.nav-links a {
  color: var(--ink-soft);
  transition: color 0.2s ease;
}
.nav-links a:hover,
.nav-links a.active { color: var(--coral); }

.nav-cta-group { display: flex; align-items: center; gap: 16px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 13px 24px;
  border-radius: 4px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}
.btn-coral {
  background: linear-gradient(180deg, #ffd166, var(--coral-deep));
  color: #1a1206;
  font-weight: 700;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.3) inset, 0 8px 22px rgba(242, 183, 60, 0.22);
}
.btn-coral:hover { transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.35) inset, 0 12px 30px rgba(242, 183, 60, 0.36); }
.btn-ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--coral); color: var(--coral); background: var(--coral-tint-soft); }
.btn-block { width: 100%; }
.btn-lg { padding: 16px 30px; font-size: 14.5px; }

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: transparent;
  color: var(--coral);
  font-size: 18px;
  cursor: pointer;
}

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  padding: 120px 0 140px;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(42px, 5.2vw, 72px);
  line-height: 1.02;
  margin: 22px 0 24px;
  text-transform: uppercase;
}
.hero h1 em {
  font-style: normal;
  color: var(--coral);
  text-shadow: 0 0 44px rgba(242, 183, 60, 0.5);
}
.hero p.lede {
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 46ch;
  margin-bottom: 38px;
}
.hero-ctas { display: flex; gap: 16px; margin-bottom: 30px; flex-wrap: wrap; }
.hero-note {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink-faint);
}

.hero-visual {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-lg), var(--glow);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  animation: floatCard 8s ease-in-out infinite;
}
.hero-visual video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-visual .grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 34px 34px;
  opacity: 0.9;
}
.hero-visual .pulse-dot {
  position: absolute;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 6px var(--coral-tint), 0 0 18px rgba(242, 183, 60, 0.6);
}
.hero-visual .p1 { top: 20%; left: 18%; animation: dotPulse 2.4s ease-in-out infinite; }
.hero-visual .p2 { bottom: 24%; right: 22%; animation: dotPulse 2.4s ease-in-out infinite 1s; }
.hero-visual .chip {
  position: absolute;
  bottom: 22px; left: 22px;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 8px 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-sm);
}
.hero-visual .chip::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #5fe391;
  box-shadow: 0 0 10px rgba(95, 227, 145, 0.7);
}

@keyframes floatCard { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes dotPulse { 0%, 100% { transform: scale(0.85); opacity: 0.7; } 50% { transform: scale(1.15); opacity: 1; } }

/* ---------------- Stat strip ---------------- */
.stat-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper-deep);
}
.stat-strip .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 34px 32px;
}
.stat {
  text-align: center;
  border-right: 1px solid var(--line);
  padding: 4px 12px;
}
.stat:last-child { border-right: none; }
.stat .num {
  font-family: var(--font-mono);
  font-size: 28px;
  color: var(--coral);
  font-weight: 600;
}
.stat .label {
  font-size: 12.5px;
  color: var(--ink-faint);
  margin-top: 6px;
  letter-spacing: 0.02em;
}

/* ---------------- Section shell ---------------- */
.section { position: relative; padding: 116px 0; }
.section-head {
  max-width: 640px;
  margin: 16px 0 60px;
}
.section-head h2 {
  font-size: clamp(30px, 3.4vw, 44px);
  margin-top: 14px;
  line-height: 1.1;
  text-transform: uppercase;
}
.section-head p { color: var(--ink-soft); font-size: 16.5px; margin-top: 16px; max-width: 54ch; }
.section-alt { background: var(--paper-deep); }

/* ---------------- Feature grid ---------------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.feature-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 32px 28px;
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.feature-card:hover { box-shadow: var(--shadow-md), 0 0 0 1px var(--line-strong); transform: translateY(-3px); border-color: var(--line-strong); }
.feature-card .icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--coral-tint-soft);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  color: var(--coral);
  margin-bottom: 20px;
}
.feature-card .icon svg { width: 22px; height: 22px; }
.feature-card h3 {
  font-size: 19px;
  margin-bottom: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.feature-card p { color: var(--ink-soft); font-size: 14.5px; margin: 0; }

/* ---------------- How it works ---------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  counter-reset: step;
}
.step { position: relative; padding-top: 4px; }
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  font-family: var(--font-mono);
  font-size: 38px;
  font-weight: 600;
  color: transparent;
  -webkit-text-stroke: 1px var(--line-strong);
  display: block;
  margin-bottom: 16px;
}
.step h4 { font-size: 17px; margin-bottom: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.01em; }
.step p { color: var(--ink-soft); font-size: 14.5px; }

/* ---------------- Pricing preview / cards ---------------- */
.currency-toggle-wrap { display: flex; justify-content: center; margin-bottom: 32px; }
.currency-toggle {
  display: inline-flex;
  gap: 2px;
  padding: 4px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.currency-btn {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-faint);
  background: transparent;
  border: none;
  padding: 8px 22px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.currency-btn:hover { color: var(--ink-soft); }
.currency-btn.active { background: var(--coral); color: #1a1206; }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  max-width: 760px;
  margin: 0 auto;
  gap: 24px;
}
.plan-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.plan-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.plan-card.featured {
  border-color: var(--coral);
  box-shadow: var(--shadow-lg), var(--glow);
  background: linear-gradient(180deg, var(--coral-tint-soft), var(--card) 45%);
}
.plan-tag {
  position: absolute;
  top: -13px; left: 32px;
  background: var(--coral);
  color: #1a1206;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 700;
}
.plan-name {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 14px;
}
.plan-price {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.plan-price .cadence { font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-faint); font-weight: 500; text-transform: uppercase; }
.price-num { display: inline-block; font-variant-numeric: tabular-nums; }
.price-num[data-price-plan="lite"] { min-width: 5ch; }
.price-num[data-price-plan="prime"] { min-width: 6ch; }
.plan-desc { color: var(--ink-soft); font-size: 14px; margin: 14px 0 28px; }
.plan-features { list-style: none; padding: 0; margin: 0 0 32px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.plan-features li {
  font-size: 14px;
  color: var(--ink-soft);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.plan-features li::before {
  content: "▸";
  color: var(--coral);
  font-weight: 700;
  flex-shrink: 0;
}

.billing-note {
  display: none;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-faint);
  margin: 14px 0 0;
}
.billing-note.is-visible { display: block; }

/* ---------------- Payment badges ---------------- */
.payment-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.payment-badges .label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* ---------------- CTA banner ---------------- */
.cta-banner {
  border: 1px solid var(--line-strong);
  background: radial-gradient(ellipse 90% 100% at 50% 0%, var(--coral-tint-soft), var(--card));
  border-radius: var(--radius);
  padding: 72px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner h2 { font-size: clamp(28px, 3.2vw, 38px); margin-bottom: 18px; text-transform: uppercase; }
.cta-banner p { color: var(--ink-soft); max-width: 52ch; margin: 0 auto 34px; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; position: relative; }

/* ---------------- FAQ ---------------- */
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); padding: 26px 0; }
.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-family: var(--font-mono);
  color: var(--coral);
  font-size: 22px;
  font-weight: 400;
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-answer { color: var(--ink-soft); font-size: 14.5px; margin-top: 16px; max-width: 68ch; }

/* ---------------- Disclaimer + footer ---------------- */
.disclaimer-bar {
  background: var(--paper-deep);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}
.disclaimer-bar .container {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink-faint);
  line-height: 1.7;
}
.disclaimer-bar .mark { color: var(--coral); flex-shrink: 0; }

/* ---------------- Legal pages (terms / refund) ---------------- */
.legal-content { max-width: 760px; margin: 0 auto; }
.legal-content .updated {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 40px;
}
.legal-content h2 { font-size: 22px; margin: 48px 0 16px; }
.legal-content h2:first-of-type { margin-top: 0; }
.legal-content p { color: var(--ink-soft); font-size: 15px; margin: 0 0 16px; }
.legal-content ul { color: var(--ink-soft); font-size: 15px; margin: 0 0 16px; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.legal-content a { color: var(--coral); }
.legal-content a:hover { color: var(--coral-deep); }
.legal-content strong { color: var(--ink); }

footer.site-footer { padding: 64px 0 40px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line);
}
.footer-brand .brand { margin-bottom: 14px; }
.footer-brand p { color: var(--ink-faint); font-size: 13.5px; max-width: 34ch; }
.footer-col h5 {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--coral-deep);
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.footer-col a { color: var(--ink-soft); font-size: 14px; transition: color 0.2s ease; }
.footer-col a:hover { color: var(--coral); }
.footer-bottom {
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-faint);
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------------- Reveal-on-scroll ---------------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal-stagger.in-view > * { animation: staggerIn 0.6s ease both; }
.reveal-stagger.in-view > *:nth-child(1) { animation-delay: 0.04s; }
.reveal-stagger.in-view > *:nth-child(2) { animation-delay: 0.12s; }
.reveal-stagger.in-view > *:nth-child(3) { animation-delay: 0.2s; }
.reveal-stagger.in-view > *:nth-child(4) { animation-delay: 0.28s; }
.reveal-stagger.in-view > *:nth-child(5) { animation-delay: 0.36s; }
.reveal-stagger.in-view > *:nth-child(6) { animation-delay: 0.44s; }
@keyframes staggerIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }

/* ---------------- Responsive ---------------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; width: 100%; max-width: 460px; margin: 0 auto; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stat-strip .container { grid-template-columns: repeat(2, 1fr); row-gap: 22px; }
}
@media (max-width: 720px) {
  .nav-links, .nav-cta-group { display: none; }
  .nav-toggle { display: block; }
  .feature-grid, .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .container { padding: 0 20px; }
  .section { padding: 80px 0; }
}
