:root {
  --bg: #0a0e1a;
  --accent: #c9a84c;
  --accent-light: #e8c97a;
  --text: #f0ede6;
  --muted: #8a9bb0;
  --border: #1e2d45;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  background: var(--bg);
  color: var(--text);
  font-family:
    "Inter",
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    Helvetica,
    Arial,
    sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.55;
  overflow-x: hidden;
}
/* Warm radial glow rising from behind the flame. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(
      700px 460px at 50% 30%,
      rgba(201, 168, 76, 0.16) 0%,
      transparent 70%
    ),
    radial-gradient(1200px 700px at 50% -10%, #16213c 0%, var(--bg) 60%);
  pointer-events: none;
}

/* ── Header ─────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  width: 100%;
  background: rgba(10, 14, 26, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}
.brand img {
  width: 26px;
  height: auto;
  filter: drop-shadow(0 2px 8px rgba(201, 168, 76, 0.4));
}
.brand span {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

/* ── Download button ────────────────────────────────────── */
.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: linear-gradient(135deg, #f0d68a 0%, #c9a84c 55%, #b8942f 100%);
  color: #1c1606;
  font-weight: 600;
  font-size: 13.5px;
  letter-spacing: 0.2px;
  padding: 5px 10px;
  border-radius: 10px;
  text-decoration: none;
  white-space: nowrap;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 4px 14px rgba(201, 168, 76, 0.25);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    filter 0.18s ease;
}
.btn-download:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    0 7px 20px rgba(201, 168, 76, 0.38);
}
.btn-download svg {
  width: 15px;
  height: 15px;
}

/* ── Hero ───────────────────────────────────────────────── */
main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 20px 48px;
  position: relative;
}
.card {
  width: 100%;
  max-width: 860px;
  text-align: center;
}
.flame-wrap {
  position: relative;
  display: inline-block;
  margin-bottom: 14px;
}
.flame-wrap::after {
  content: "";
  position: absolute;
  inset: -30% -30% -10%;
  background: radial-gradient(
    closest-side,
    rgba(232, 201, 122, 0.35),
    transparent 75%
  );
  filter: blur(8px);
  z-index: 0;
  animation: flicker 4.5s ease-in-out infinite;
}
.flame {
  position: relative;
  z-index: 1;
  width: clamp(120px, 30vw, 168px);
  height: auto;
  display: block;
  filter: drop-shadow(0 10px 36px rgba(201, 168, 76, 0.3));
}
@keyframes flicker {
  0%,
  100% {
    opacity: 0.85;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
}
h1 {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: clamp(44px, 10vw, 72px);
  letter-spacing: -0.5px;
  font-weight: 700;
  margin-bottom: 16px;
}
.tagline {
  font-size: clamp(18px, 4.4vw, 22px);
  color: var(--text);
  max-width: 26ch;
  margin: 0 auto 14px;
}
.sub {
  font-size: 15px;
  color: var(--muted);
  max-width: 46ch;
  margin: 0 auto 30px;
}
.badge {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent-light);
  border: 1px solid var(--border);
  background: rgba(201, 168, 76, 0.06);
  padding: 8px 18px;
  border-radius: 999px;
  margin-bottom: 44px;
}

/* ── Feature cards ──────────────────────────────────────── */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  width: 100%;
  margin: 0 auto;
  scroll-margin-top: 90px;
}
@media (max-width: 820px) {
  .features {
    grid-template-columns: repeat(2, 1fr);
    max-width: 560px;
  }
}
@media (max-width: 520px) {
  .features {
    grid-template-columns: 1fr;
    max-width: 420px;
  }
  .feature.hide-mobile {
    display: none;
  }
}
.feature {
  position: relative;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px 18px 20px;
  background: rgba(255, 255, 255, 0.018);
  overflow: hidden;
  transition:
    transform 0.25s ease,
    border-color 0.25s ease;
}
/* Soft gold glow blooming from the top of each card. */
.feature::before {
  content: "";
  position: absolute;
  top: -40%;
  left: 50%;
  width: 150%;
  height: 120%;
  transform: translateX(-50%);
  background: radial-gradient(
    closest-side,
    rgba(201, 168, 76, 0.16),
    transparent 70%
  );
  pointer-events: none;
  opacity: 0.7;
  transition: opacity 0.25s ease;
}
.feature:hover {
  transform: translateY(-3px);
  border-color: rgba(201, 168, 76, 0.4);
}
.feature:hover::before {
  opacity: 1;
}
.feature .icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(201, 168, 76, 0.1);
  border: 1px solid rgba(201, 168, 76, 0.25);
  color: var(--accent-light);
  margin-bottom: 14px;
}
.feature .icon svg {
  width: 22px;
  height: 22px;
}
.feature h3 {
  position: relative;
  font-size: 15.5px;
  font-weight: 600;
  margin-bottom: 5px;
  color: var(--text);
}
.feature p {
  position: relative;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

/* ── Legal pages ────────────────────────────────────────── */
.legal {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  text-align: left;
}
.legal h1 {
  font-size: clamp(32px, 7vw, 46px);
  margin-bottom: 8px;
}
.legal .updated {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 28px;
}
.legal .intro {
  color: var(--text);
  font-size: 16px;
  margin-bottom: 28px;
}
.legal section {
  margin-bottom: 24px;
}
.legal h2 {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: 21px;
  font-weight: 700;
  color: var(--accent-light);
  margin-bottom: 8px;
}
.legal p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}
.legal a {
  color: var(--accent-light);
  text-decoration: none;
}
.legal a:hover {
  text-decoration: underline;
}
/* Round back-to-home icon at the top of inner pages. */
.back-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--muted);
  margin-bottom: 22px;
  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}
.back-icon:hover {
  color: var(--accent-light);
  border-color: rgba(201, 168, 76, 0.4);
  transform: translateX(-2px);
}
.back-icon svg {
  width: 20px;
  height: 20px;
}
/* Top row of the legal page: back icon + tab switcher, vertically aligned. */
.legal-top {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}
.legal-top .back-icon,
.legal-top .legal-tabs {
  margin-bottom: 0;
}
/* Privacy / Terms tab switcher. */
.legal-tabs {
  display: inline-flex;
  gap: 6px;
  padding: 5px;
  border: 1px solid var(--border);
  border-radius: 999px;
  margin-bottom: 30px;
}
.legal-tabs button {
  font: inherit;
  font-size: 14px;
  color: var(--muted);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px 18px;
  border-radius: 999px;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}
.legal-tabs button.active {
  background: rgba(201, 168, 76, 0.14);
  color: var(--accent-light);
}
.legal-doc[hidden] {
  display: none;
}
/* Highlighted note (e.g. account deletion link). */
.callout {
  border: 1px solid rgba(201, 168, 76, 0.3);
  background: rgba(201, 168, 76, 0.06);
  border-radius: 12px;
  padding: 14px 16px;
  margin: 4px 0 24px;
  font-size: 14.5px;
  color: var(--text);
}

/* ── Footer ─────────────────────────────────────────────── */
footer {
  text-align: center;
  padding: 34px 20px 30px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 13px;
  position: relative;
  border-top: 1px solid var(--border);
}
footer a {
  color: var(--muted);
  text-decoration: none;
}
footer a:hover {
  color: var(--text);
}
footer .copyright {
  display: block;
  margin-top: 4px;
  font-size: 12.5px;
  letter-spacing: 0.2px;
  opacity: 0.8;
}
.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 16px;
}
.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  padding: 2px 16px;
  line-height: 1.1;
}
.footer-links a:not(:last-child) {
  border-right: 1px solid var(--border);
}
.footer-links a:hover {
  color: var(--accent-light);
}
.socials {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 16px;
}
.socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border);
  color: var(--muted);
  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}
.socials a:hover {
  color: var(--accent-light);
  border-color: rgba(201, 168, 76, 0.4);
  transform: translateY(-2px);
}
.socials svg {
  width: 18px;
  height: 18px;
}
