/* Survivor — marketing & legal site.
   "Sunset Arena" design language, matching the app: coral/orange primary, indigo accent,
   green success, rose danger, over warm stone neutrals. Rounded cards, warm shadows,
   gradient hero and lively (but tasteful) motion. No build, no dependencies. */

:root {
  /* Primary — coral / orange */
  --primary-50: #fff7ed;
  --primary-100: #ffedd5;
  --primary-300: #fdba74;
  --primary-400: #fb923c;
  --primary-500: #f97316;
  --primary-600: #ea580c;
  --primary-700: #c2410c;
  --primary-900: #7c2d12;
  /* Secondary — indigo */
  --indigo-500: #6366f1;
  --indigo-600: #4f46e5;
  /* Accent state colours */
  --success: #10b981;
  --danger: #fb7185;
  /* Warm stone neutrals */
  --ink: #1c1917;
  --stone-700: #44403c;
  --stone-600: #57534e;
  --stone-400: #a8a29e;
  --stone-200: #e7e5e4;
  --stone-100: #f5f5f4;
  --stone-50: #fafaf9;

  --sunset: linear-gradient(135deg, #fb923c 0%, #f97316 45%, #fb7185 100%);
  --radius: 24px;
  --radius-sm: 14px;
  --shadow-warm: 0 18px 40px -18px rgba(154, 52, 18, 0.35);
  --shadow-soft: 0 6px 22px -12px rgba(28, 25, 23, 0.18);
  --max-width: 1080px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter,
    "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--stone-50);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary-600); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* ───── Header ───── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(250, 250, 249, 0.8);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--stone-200);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--ink);
}
.brand:hover { text-decoration: none; }
.brand .ball {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: var(--sunset);
  box-shadow: 0 6px 16px -6px rgba(249, 115, 22, 0.6);
  display: grid;
  place-items: center;
  font-size: 18px;
  transition: transform 0.25s ease;
}
.brand:hover .ball { transform: rotate(-12deg) scale(1.06); }
.site-nav { display: flex; gap: 24px; align-items: center; }
.site-nav a { color: var(--stone-600); font-weight: 500; font-size: 0.95rem; }
.site-nav a:hover { color: var(--primary-700); text-decoration: none; }

/* ───── Hero ───── */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1100px 520px at 82% -12%, var(--primary-100), transparent 70%),
    radial-gradient(820px 420px at 8% 8%, #ffe4e6, transparent 70%),
    radial-gradient(700px 500px at 50% 120%, #e0e7ff, transparent 70%);
  padding: 110px 0 92px;
  text-align: center;
}
/* Soft drifting glow behind the hero. */
.hero::before {
  content: "";
  position: absolute;
  inset: -30% -10% auto auto;
  width: 540px;
  height: 540px;
  background: var(--sunset);
  filter: blur(120px);
  opacity: 0.22;
  border-radius: 50%;
  animation: drift 16s ease-in-out infinite alternate;
  z-index: 0;
}
.hero .container { position: relative; z-index: 1; }
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 850;
  letter-spacing: -0.03em;
  line-height: 1.08;
  animation: fadeUp 0.7s ease both;
}
.hero h1 .accent {
  background: var(--sunset);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.hero p.lead {
  max-width: 620px;
  margin: 22px auto 0;
  font-size: 1.2rem;
  color: var(--stone-600);
  animation: fadeUp 0.7s ease 0.12s both;
}
.store-badges {
  margin-top: 38px;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeUp 0.7s ease 0.24s both;
}
.store-badge {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ink);
  color: #fff;
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: var(--shadow-soft);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
/* Sheen sweep on hover. */
.store-badge:not(.soon)::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-18deg);
  transition: left 0.6s ease;
}
.store-badge:not(.soon):hover {
  transform: translateY(-3px);
  text-decoration: none;
  box-shadow: 0 16px 30px -14px rgba(28, 25, 23, 0.5);
}
.store-badge:not(.soon):hover::after { left: 140%; }
.store-badge.soon { opacity: 0.5; cursor: default; }
.store-badge small { display: block; font-weight: 400; font-size: 0.7rem; opacity: 0.7; }

/* ───── Sections ───── */
section { padding: 80px 0; }
section.alt { background: #fff; border-block: 1px solid var(--stone-100); }
.section-title { text-align: center; margin-bottom: 12px; font-size: 2.1rem; font-weight: 800; letter-spacing: -0.02em; }
.section-sub { text-align: center; color: var(--stone-600); max-width: 560px; margin: 0 auto 52px; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.step {
  background: #fff;
  border: 1px solid var(--stone-200);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.step:hover { transform: translateY(-5px); box-shadow: var(--shadow-warm); }
.step .num {
  width: 44px; height: 44px;
  border-radius: 13px;
  background: var(--sunset);
  color: #fff;
  display: grid; place-items: center;
  font-weight: 800;
  font-size: 1.05rem;
  margin-bottom: 16px;
  box-shadow: 0 8px 18px -8px rgba(249, 115, 22, 0.7);
}
.step h3 { font-size: 1.05rem; margin-bottom: 6px; }
.step p { color: var(--stone-600); font-size: 0.95rem; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.feature {
  display: flex; gap: 16px;
  background: #fff;
  border: 1px solid var(--stone-200);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-warm); }
.feature .icon {
  font-size: 1.5rem;
  flex: none;
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 13px;
  background: var(--primary-50);
}
.feature h3 { font-size: 1rem; margin-bottom: 4px; }
.feature p { color: var(--stone-600); font-size: 0.92rem; }

/* FAQ */
.faq { max-width: 720px; margin: 0 auto; }
.faq details {
  background: #fff;
  border: 1px solid var(--stone-200);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  margin-bottom: 12px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.faq details[open] { border-color: var(--primary-300); box-shadow: var(--shadow-soft); }
.faq summary {
  font-weight: 600; cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 1.4rem; line-height: 1;
  color: var(--primary-500);
  transition: transform 0.25s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: 10px; color: var(--stone-600); font-size: 0.95rem; }

/* CTA band */
.cta-band {
  position: relative;
  overflow: hidden;
  background: var(--sunset);
  border-radius: var(--radius);
  padding: 60px 32px;
  text-align: center;
  color: #fff;
  box-shadow: var(--shadow-warm);
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: -50% 40% auto -20%;
  height: 320px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.35), transparent 60%);
  animation: drift 14s ease-in-out infinite alternate;
}
.cta-band > * { position: relative; }
.cta-band h2 { font-size: 1.9rem; font-weight: 800; letter-spacing: -0.02em; }
.cta-band p { opacity: 0.92; margin: 10px 0 26px; }
.cta-band .store-badge { background: #fff; color: var(--ink); }
.cta-band .store-badge.soon { background: rgba(255, 255, 255, 0.85); }

/* ───── Legal / prose pages ───── */
.prose { max-width: 760px; margin: 0 auto; padding: 72px 24px 96px; }
.prose h1 { font-size: 2.3rem; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 8px; }
.prose .updated { color: var(--stone-400); font-size: 0.9rem; margin-bottom: 40px; }
.prose h2 { font-size: 1.25rem; margin: 36px 0 10px; }
.prose p, .prose li { color: var(--stone-600); font-size: 0.98rem; }
.prose ul { padding-left: 22px; margin: 10px 0; }
.prose .notice {
  background: var(--primary-50);
  border: 1px solid var(--primary-100);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin: 24px 0;
}
.prose .notice p { color: var(--primary-900); margin: 0; }

/* ───── Footer ───── */
.site-footer {
  background: var(--ink);
  color: var(--stone-400);
  padding: 48px 0 40px;
  font-size: 0.9rem;
}
.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  align-items: center;
}
.site-footer a { color: var(--stone-200); }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }

/* Language switcher */
.lang-switch {
  border: 1px solid var(--stone-200);
  border-radius: 10px;
  padding: 4px 10px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--stone-600) !important;
  letter-spacing: 0.04em;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.lang-switch:hover {
  border-color: var(--primary-500);
  color: var(--primary-700) !important;
  text-decoration: none;
}

/* ───── Motion ───── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-40px, 30px, 0) scale(1.12); }
}

/* Scroll-reveal: the hidden start state only applies when reveal.js is active
   (html.reveal-ready). Without JS, content is fully visible. */
html.reveal-ready .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s ease; }
html.reveal-ready .reveal.in { opacity: 1; transform: none; }
/* Gentle cascade for grids. */
.steps .step:nth-child(2), .features .feature:nth-child(2) { transition-delay: 0.06s; }
.steps .step:nth-child(3), .features .feature:nth-child(3) { transition-delay: 0.12s; }
.steps .step:nth-child(4), .features .feature:nth-child(4) { transition-delay: 0.18s; }
.features .feature:nth-child(5) { transition-delay: 0.24s; }
.features .feature:nth-child(6) { transition-delay: 0.30s; }

@media (max-width: 640px) {
  .hero { padding: 72px 0 60px; }
  section { padding: 60px 0; }
  .site-nav { gap: 14px; font-size: 0.85rem; }
}

/* Respect users who prefer less motion. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html.reveal-ready .reveal { opacity: 1; transform: none; }
}
