/* ============================================================
   Respawn — Landing Page Styles
   Dark gaming aesthetic, ember-orange accent
   ============================================================ */

:root {
  --bg: #0a0a0c;
  --bg-soft: #101014;
  --surface: #141419;
  --surface-2: #1a1a21;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #f5f5f4;
  --text-muted: #a1a1aa;
  --text-dim: #71717a;
  --ember: #22d3ee;
  --ember-soft: #38bdf8;
  --ember-glow: rgba(34, 211, 238, 0.35);
  --radius: 16px;
  --radius-lg: 24px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --container: 1160px;
}

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

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.5;
  mix-blend-mode: overlay;
  background-repeat: repeat;
  background-size: 200px 200px;
  background-image: url("grain.png");
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

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

.container-narrow { max-width: 820px; }

.section { padding: 96px 0; }

/* ---------- Type helpers ---------- */
.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ember);
  text-align: center;
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(30px, 4.5vw, 48px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.12;
  text-align: center;
  margin-bottom: 56px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--ember), var(--ember-soft));
  color: #0a0a0c;
  box-shadow: 0 0 24px var(--ember-glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 36px var(--ember-glow); }

.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-outline:hover { background: rgba(255, 255, 255, 0.06); }

.btn-sm { padding: 9px 20px; font-size: 14px; }
.btn-lg { padding: 15px 36px; font-size: 16px; }
.btn-block { width: 100%; padding: 12px 20px; font-size: 15px; }

.badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--ember);
  color: #0a0a0c;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: transparent;
  border-bottom: none;
}

[id] { scroll-margin-top: 88px; }

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
}
.nav-logo img {
  height: 30px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  gap: 28px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-muted);
}
.nav-links a { transition: color 0.15s ease; }
.nav-links a:hover { color: var(--text); }

.nav-actions { display: flex; align-items: center; gap: 14px; }

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
}
.nav-burger span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.is-open span:nth-child(2) { opacity: 0; }
.nav-burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 160px 0 100px;
  text-align: center;
  overflow: hidden;
}

.hero-shot {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 32%;
  display: block;
  opacity: 0.85;
}
.hero-shot::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10, 10, 12, 0.7) 0%,
    rgba(10, 10, 12, 0.1) 28%,
    rgba(10, 10, 12, 0.15) 55%,
    rgba(10, 10, 12, 0.96) 100%
  );
}

.hero-glow {
  position: absolute;
  top: -220px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 600px;
  background: radial-gradient(ellipse at center, var(--ember-glow), transparent 65%);
  filter: blur(60px);
  pointer-events: none;
}

.hero-inner { position: relative; z-index: 1; width: 100%; }

.hero-title {
  font-size: clamp(42px, 7vw, 76px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 22px;
}

.hero-sub {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 34px;
}

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee-section { padding: 40px 0 72px; }

.marquee-label {
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dim);
  margin-bottom: 30px;
}

.marquee {
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent);
}

.marquee-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: marquee 36s linear infinite;
}

.marquee-track img {
  height: 30px;
  width: auto;
  margin-right: 72px;
  opacity: 0.55;
  filter: grayscale(1) brightness(1.6);
  transition: opacity 0.2s ease;
}
.marquee-track img:hover { opacity: 1; }

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============================================================
   BENTO FEATURES
   ============================================================ */
.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.bento-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.bento-card:hover { border-color: var(--border-strong); transform: translateY(-4px); }

.bento-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-soft);
}
.bento-media img { width: 100%; height: 100%; object-fit: cover; }

.bento-body { padding: 26px 26px 30px; }

.pill {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ember);
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.25);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.bento-body h3 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.bento-body p { font-size: 15px; color: var(--text-muted); }

/* Ren rotating ticker */
.ren-ticker {
  position: relative;
  height: 22px;
  margin-bottom: 10px;
  overflow: hidden;
}
.ren-line {
  position: absolute;
  inset: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--ember-soft);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.ren-line.is-active { opacity: 1; transform: translateY(0); }

/* ============================================================
   TABBED SHOWCASE
   ============================================================ */
.tabs-section { background: var(--bg-soft); border-block: 1px solid var(--border); }

.tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 48px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px;
  width: max-content;
  margin-inline: auto;
}

.tab {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 600;
  padding: 10px 28px;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
}
.tab:hover { color: var(--text); }
.tab.is-active {
  background: linear-gradient(135deg, var(--ember), var(--ember-soft));
  color: #0a0a0c;
}

.tab-panel { display: none; }
.tab-panel.is-active { display: block; animation: fadeUp 0.4s ease; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.tab-headline {
  font-size: clamp(20px, 2.8vw, 30px);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--text-dim);
  max-width: 900px;
  margin: 0 auto 48px;
  text-align: center;
}
.tab-headline .hl { color: var(--text); }

.tab-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  max-width: 900px;
  margin: 0 auto;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.5);
}

/* ============================================================
   FEATURE HIGHLIGHT
   ============================================================ */
.highlight-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 64px;
  align-items: center;
}

.highlight-title {
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}

.highlight-desc {
  font-size: 16.5px;
  color: var(--text-muted);
  margin-bottom: 26px;
}

.highlight-list { list-style: none; display: grid; gap: 12px; }
.highlight-list li {
  position: relative;
  padding-left: 30px;
  font-size: 15.5px;
  font-weight: 600;
}
.highlight-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(34, 211, 238, 0.15);
  border: 1px solid var(--ember);
}
.highlight-list li::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 8px;
  width: 8px;
  height: 5px;
  border-left: 2px solid var(--ember);
  border-bottom: 2px solid var(--ember);
  transform: rotate(-45deg);
}

.highlight-media { position: relative; }
.hm-main {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
.hm-float {
  position: absolute;
  width: 42%;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}
.hm-float-1 { bottom: -8%; left: -6%; }
.hm-float-2 { top: -8%; right: -5%; }

/* ============================================================
   FEATURES GRID
   ============================================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.feature-card:hover { border-color: rgba(34, 211, 238, 0.35); background: var(--surface-2); }

.feature-icon {
  font-size: 26px;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.22);
  border-radius: 14px;
  margin-bottom: 18px;
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.feature-card p { font-size: 14.5px; color: var(--text-muted); }

.grid-banner {
  margin-top: 32px;
  display: flex;
  justify-content: center;
}
.grid-banner img {
  width: 88px;
  height: auto;
  opacity: 0.9;
}

/* ============================================================
   PRICING
   ============================================================ */
.billing-toggle {
  display: flex;
  justify-content: center;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px;
  width: max-content;
  margin: 0 auto 52px;
}

.billing-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 14.5px;
  font-weight: 600;
  padding: 9px 22px;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
}
.billing-btn.is-active { background: var(--surface-2); color: var(--text); }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
}

.price-card--popular {
  border-color: rgba(34, 211, 238, 0.5);
  background: linear-gradient(180deg, rgba(34, 211, 238, 0.07), var(--surface) 40%);
  box-shadow: 0 0 60px rgba(34, 211, 238, 0.12);
}

.plan-head { display: flex; align-items: center; justify-content: space-between; }
.plan-name { font-size: 17px; font-weight: 700; margin-bottom: 14px; }
.badge-popular { margin-bottom: 14px; }

.plan-price { display: flex; align-items: baseline; gap: 8px; margin-bottom: 14px; }
.amount { font-size: 42px; font-weight: 800; letter-spacing: -0.03em; }
.amount-strike {
  font-size: 24px;
  color: var(--text-dim);
  text-decoration: line-through;
  font-weight: 600;
}
.per { font-size: 15px; color: var(--text-dim); }

.plan-desc { font-size: 14.5px; color: var(--text-muted); margin-bottom: 24px; flex-grow: 0; }

.plan-features-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin: 26px 0 14px;
}

.plan-features { list-style: none; display: grid; gap: 11px; }
.plan-features li {
  position: relative;
  padding-left: 26px;
  font-size: 14.5px;
  color: var(--text-muted);
}
.plan-features li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 7px;
  width: 8px;
  height: 5px;
  border-left: 2px solid var(--ember);
  border-bottom: 2px solid var(--ember);
  transform: rotate(-45deg);
}

/* ============================================================
   FAQ
   ============================================================ */
.faq-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
  align-items: start;
}

.faq-intro { position: sticky; top: 120px; }

.eyebrow-left {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-align: left;
  margin-bottom: 18px;
}
.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--ember);
  display: inline-block;
}

.faq-heading {
  text-align: left;
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 0;
}
.faq-heading-sub {
  display: block;
  font-weight: 500;
  color: var(--text-muted);
  margin-top: 6px;
}

@media (max-width: 860px) {
  .faq-grid { grid-template-columns: 1fr; gap: 28px; }
  .faq-intro { position: static; }
}

.faq-list { display: grid; gap: 12px; }

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s ease;
}
.faq-item[open] { border-color: rgba(34, 211, 238, 0.35); }

.faq-item summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }

.faq-icon {
  position: relative;
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
}
.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  background: var(--ember);
  border-radius: 2px;
  transition: transform 0.2s ease;
}
.faq-icon::before { top: 6px; left: 0; width: 14px; height: 2px; }
.faq-icon::after { top: 0; left: 6px; width: 2px; height: 14px; }
.faq-item[open] .faq-icon::after { transform: rotate(90deg); }

.faq-answer { padding: 0 24px 22px; }
.faq-answer p { font-size: 15px; color: var(--text-muted); }

/* ============================================================
   FINAL CTA
   ============================================================ */
.cta-section {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  text-align: center;
  overflow: hidden;
  padding: 130px 0;
}
.cta-inner { position: relative; z-index: 1; width: 100%; }

.cta-title {
  font-size: clamp(32px, 5vw, 54px);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 14px;
}

.cta-sub {
  font-size: 17px;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.cta-shot {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.cta-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
  display: block;
  opacity: 0.85;
}
.cta-shot::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10, 10, 12, 0.75) 0%,
    rgba(10, 10, 12, 0.2) 25%,
    rgba(10, 10, 12, 0.2) 75%,
    rgba(10, 10, 12, 0.85) 100%
  );
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}

.footer-brand .nav-logo { display: inline-block; margin-bottom: 16px; }
.footer-brand .nav-logo img { height: 40px; }

.footer-disclaimer {
  font-size: 13.5px;
  color: var(--text-dim);
  max-width: 340px;
  margin-bottom: 20px;
}

.footer-socials { display: flex; gap: 14px; }
.footer-socials a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: color 0.15s ease, border-color 0.15s ease;
}
.footer-socials a:hover { color: var(--ember); border-color: rgba(34, 211, 238, 0.4); }

.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  font-size: 14.5px;
  color: var(--text-muted);
  padding: 5px 0;
  transition: color 0.15s ease;
}
.footer-col a:hover { color: var(--text); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .bento { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .highlight-grid { grid-template-columns: 1fr; gap: 72px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .section { padding: 72px 0; }
  .features-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }

  .nav-links {
    position: fixed;
    inset: 68px 0 auto 0;
    flex-direction: column;
    gap: 0;
    background: rgba(10, 10, 12, 0.97);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: 12px 24px 20px;
    transform: translateY(-16px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }
  .nav-links.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-links a { padding: 13px 0; font-size: 16px; border-bottom: 1px solid var(--border); }
  .nav-links a:last-child { border-bottom: none; }
  .nav-burger { display: flex; }

  .tabs { width: 100%; }
  .tab { flex: 1; padding: 10px 0; }

  .hm-float-1 { left: 0; }
  .hm-float-2 { right: 0; }
}

/* Visible keyboard focus */
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--ember);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ============================================================
   LEGAL PAGES
   ============================================================ */
.legal-hero { padding: 168px 0 32px; }
.legal-hero .eyebrow { text-align: left; margin-bottom: 14px; }

.legal-title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.legal-updated { font-size: 14px; color: var(--text-dim); }

.legal-content { padding: 0 0 100px; }

.legal-content h2 {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 40px 0 12px;
}
.legal-content h2:first-of-type { margin-top: 0; }

.legal-content p { font-size: 15.5px; color: var(--text-muted); margin-bottom: 14px; }

.legal-content ul { margin: 0 0 14px 20px; color: var(--text-muted); font-size: 15.5px; }
.legal-content ul li { margin-bottom: 6px; }

.legal-content strong { color: var(--text); }
.legal-content a { color: var(--ember); }
.legal-content a:hover { text-decoration: underline; }

.legal-highlight {
  background: rgba(34, 211, 238, 0.06);
  border-left: 3px solid var(--ember);
  border-radius: 0 10px 10px 0;
  padding: 14px 18px;
  margin-bottom: 20px;
  font-size: 15.5px;
  color: var(--text);
}
