/* ==========================================================================
   CalmRiverNest — Design System (Dark Luxe)
   HTML5 / CSS3 only. Mobile-first, works from 375px.
   ========================================================================== */

/* ---------- Custom properties ---------- */
:root {
  --bg: #0a0a0f;
  --bg-soft: #12121a;
  --bg-raised: #181824;
  --glass: rgba(255, 255, 255, 0.04);
  --glass-strong: rgba(255, 255, 255, 0.07);
  --line: rgba(212, 175, 55, 0.22);
  --line-soft: rgba(255, 255, 255, 0.08);
  --gold: #d4af37;
  --gold-light: #f5d76e;
  --gold-deep: #a8821f;
  --text: #f2f0eb;
  --text-muted: #9a97a3;
  --text-faint: #6e6b78;
  --danger: #e2655f;
  --grad-gold: linear-gradient(135deg, #f5d76e 0%, #d4af37 45%, #b8902a 100%);
  --shadow-gold: 0 4px 24px rgba(212, 175, 55, 0.28);
  --radius: 16px;
  --radius-sm: 10px;
  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --container: 1140px;
  --header-h: 64px;
}

/* ---------- Reset / base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  line-height: 1.18;
  margin: 0 0 0.6em;
  font-weight: 600;
  letter-spacing: 0.01em;
}

h1 { font-size: clamp(2.1rem, 6vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.3rem); }
h3 { font-size: clamp(1.15rem, 3vw, 1.4rem); }

p {
  margin: 0 0 1em;
}

a {
  color: var(--gold-light);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: var(--gold);
  color: #14110a;
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}

.section {
  padding: 56px 0;
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 36px;
}

.section-head .eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
  font-weight: 600;
}

.section-head p {
  color: var(--text-muted);
}

/* Gold wave divider between sections */
.divider {
  height: 26px;
  width: min(420px, 70%);
  margin: 0 auto;
  background:
    radial-gradient(circle 5px at 50% 50%, var(--gold) 40%, transparent 45%),
    linear-gradient(90deg, transparent, var(--line) 18%, var(--line) 82%, transparent) 50% 50% / 100% 1px no-repeat;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  padding: 16px 30px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  white-space: nowrap;
}

.btn:hover {
  text-decoration: none;
}

.btn-gold {
  background: var(--grad-gold);
  color: #1d1505;
  box-shadow: var(--shadow-gold);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(212, 175, 55, 0.45);
}

.btn-ghost {
  background: transparent;
  color: var(--gold-light);
  border-color: var(--line);
}

.btn-ghost:hover {
  background: var(--glass);
  border-color: var(--gold);
}

.btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-sm {
  padding: 10px 18px;
  font-size: 0.9rem;
}

/* ---------- 18+ badge ---------- */
.badge-18 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  color: var(--gold-light);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  flex: none;
  user-select: none;
}

.badge-18--lg {
  width: 46px;
  height: 46px;
  font-size: 0.95rem;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(10, 10, 15, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: var(--header-h);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.18rem;
  color: var(--text);
  letter-spacing: 0.02em;
  margin-right: auto;
}

.logo:hover {
  text-decoration: none;
}

.logo svg {
  width: 28px;
  height: 28px;
}

.logo span em {
  color: var(--gold-light);
  font-style: normal;
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 4px;
}

.main-nav a {
  display: block;
  padding: 9px 13px;
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 0.93rem;
  font-weight: 500;
}

.main-nav a:hover {
  color: var(--text);
  background: var(--glass);
  text-decoration: none;
}

.main-nav a[aria-current="page"] {
  color: var(--gold-light);
}

.header-coins {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 14px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--gold-light);
}

.coin-icon {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--grad-gold);
  box-shadow: inset 0 -2px 3px rgba(0, 0, 0, 0.35);
  flex: none;
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--gold-light);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav drawer */
@media (max-width: 859px) {
  .main-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: #0c0c12;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.55);
    padding: 12px 20px 20px;
    transform: translateY(-110%);
    transition: transform 0.25s ease;
    visibility: hidden;
  }

  .main-nav.open {
    transform: translateY(0);
    visibility: visible;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 2px;
  }

  .main-nav a {
    font-size: 1.05rem;
    padding: 13px 10px;
  }
}

@media (min-width: 860px) {
  .nav-toggle {
    display: none;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 64px;
  text-align: center;
  background:
    radial-gradient(ellipse 70% 55% at 50% -10%, rgba(212, 175, 55, 0.16), transparent 70%),
    radial-gradient(ellipse 45% 40% at 85% 100%, rgba(212, 175, 55, 0.07), transparent 70%),
    var(--bg);
}

.hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 18px;
  margin-bottom: 22px;
  background: var(--glass);
}

.hero h1 em {
  font-style: normal;
  background: var(--grad-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  max-width: 560px;
  margin: 0 auto 30px;
  color: var(--text-muted);
  font-size: clamp(1rem, 2.5vw, 1.15rem);
}

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

.hero-gems {
  display: flex;
  justify-content: center;
  gap: clamp(10px, 4vw, 26px);
  margin: 38px auto 0;
}

.hero-gems svg {
  width: clamp(48px, 12vw, 76px);
  height: auto;
  filter: drop-shadow(0 6px 18px rgba(212, 175, 55, 0.35));
}

.hero-gems svg:nth-child(2) {
  transform: translateY(-12px) scale(1.15);
}

/* ---------- Trust bar ---------- */
.trust-bar {
  background: var(--bg-soft);
  border-block: 1px solid var(--line-soft);
  padding: 16px 0;
}

.trust-bar ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 28px;
}

.trust-bar li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.trust-bar li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--grad-gold);
  flex: none;
}

/* ---------- Glass cards ---------- */
.card {
  background: var(--glass);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 26px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.card:hover {
  border-color: var(--line);
  transform: translateY(-3px);
}

.card h3 {
  margin-bottom: 8px;
}

.card p {
  color: var(--text-muted);
  margin: 0;
  font-size: 0.95rem;
}

.card-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid var(--line);
  margin-bottom: 16px;
  color: var(--gold-light);
  font-size: 1.3rem;
}

.grid-3 {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 960px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Featured game ---------- */
.featured-game {
  display: grid;
  gap: 30px;
  align-items: center;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: clamp(24px, 5vw, 48px);
  background-image: radial-gradient(ellipse 60% 80% at 100% 0%, rgba(212, 175, 55, 0.1), transparent 60%);
}

.featured-game .game-copy p {
  color: var(--text-muted);
}

.game-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}

.game-meta li {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold-light);
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 13px;
}

.mini-reels {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 7px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
}

.mini-reels span {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  font-size: clamp(1.15rem, 4vw, 1.7rem);
  background: var(--bg-raised);
  border: 1px solid var(--line-soft);
  border-radius: 10px;
}

@media (min-width: 860px) {
  .featured-game {
    grid-template-columns: 1.1fr 1fr;
  }
}

/* ---------- Steps ---------- */
.steps {
  counter-reset: step;
}

.steps .card {
  position: relative;
  padding-top: 34px;
}

.steps .card::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: -16px;
  left: 24px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: #1d1505;
  background: var(--grad-gold);
  border-radius: 999px;
  padding: 5px 14px;
  box-shadow: var(--shadow-gold);
}

/* ---------- Daily bonus banner ---------- */
.bonus-banner {
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: clamp(30px, 6vw, 54px);
  background:
    radial-gradient(ellipse 80% 100% at 50% 0%, rgba(212, 175, 55, 0.14), transparent 70%),
    var(--bg-soft);
}

.bonus-banner .bonus-amount {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 8vw, 3.6rem);
  font-weight: 700;
  background: var(--grad-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: block;
  margin-bottom: 6px;
}

.bonus-banner p {
  color: var(--text-muted);
  max-width: 460px;
  margin-inline: auto;
}

.bonus-note {
  display: block;
  margin-top: 14px;
  font-size: 0.85rem;
  color: var(--text-faint);
}

/* ---------- Stats strip ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.stats .stat {
  text-align: center;
  padding: 22px 12px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--glass);
}

.stat b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 5vw, 2.4rem);
  color: var(--gold-light);
  font-weight: 700;
}

.stat span {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

@media (min-width: 720px) {
  .stats { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Testimonials ---------- */
.quote-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.quote-card blockquote {
  margin: 0;
  font-style: italic;
  color: var(--text);
  font-size: 0.98rem;
}

.quote-card figcaption {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: #1d1505;
  background: var(--grad-gold);
  flex: none;
}

.quote-stars {
  color: var(--gold-light);
  letter-spacing: 3px;
  font-size: 0.85rem;
}

/* ---------- RG block ---------- */
.rg-block {
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: clamp(26px, 5vw, 44px);
  background: var(--bg-soft);
  display: grid;
  gap: 18px;
}

.rg-block h2 {
  margin-bottom: 4px;
}

.rg-block p {
  color: var(--text-muted);
  margin: 0;
}

@media (min-width: 860px) {
  .rg-block {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

.faq-list details {
  background: var(--glass);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.faq-list details[open] {
  border-color: var(--line);
}

.faq-list summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 48px 18px 20px;
  font-weight: 600;
  position: relative;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold-light);
  font-size: 1.4rem;
  font-weight: 400;
  transition: transform 0.2s ease;
}

.faq-list details[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}

.faq-list .faq-body {
  padding: 0 20px 18px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.faq-list .faq-body p {
  margin: 0;
}

/* ---------- Disclaimer block ---------- */
.disclaimer-block {
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 24px;
  background: rgba(212, 175, 55, 0.04);
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.disclaimer-block p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ---------- CTA final ---------- */
.cta-final {
  text-align: center;
}

.cta-final h2 {
  margin-bottom: 12px;
}

.cta-final p {
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 26px;
}

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 40px;
  border-top: 1px solid var(--line-soft);
  background: var(--bg-soft);
  padding: 44px 0 28px;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  gap: 30px;
  margin-bottom: 30px;
}

.footer-brand p {
  color: var(--text-muted);
  margin: 12px 0 0;
  max-width: 320px;
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gold);
  margin-bottom: 14px;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
}

.footer-col a {
  color: var(--text-muted);
}

.footer-col a:hover {
  color: var(--gold-light);
}

.footer-disclaimer {
  border-top: 1px solid var(--line-soft);
  padding-top: 22px;
  display: grid;
  gap: 14px;
}

.footer-disclaimer p {
  margin: 0;
  color: var(--text-faint);
  font-size: 0.82rem;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  color: var(--text-faint);
  font-size: 0.82rem;
}

@media (min-width: 720px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
  }
}

/* ---------- Age gate modal ---------- */
.age-gate {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(5, 5, 8, 0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.age-gate.visible {
  display: flex;
}

.age-gate-card {
  width: min(440px, 100%);
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 34px 28px;
  text-align: center;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}

.age-gate-card .badge-18--lg {
  margin: 0 auto 18px;
}

.age-gate-card h2 {
  font-size: 1.5rem;
}

.age-gate-card p {
  color: var(--text-muted);
  font-size: 0.93rem;
}

.age-gate-actions {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.age-gate-denied {
  display: none;
  margin-top: 18px;
  padding: 14px;
  border-radius: var(--radius-sm);
  background: rgba(226, 101, 95, 0.1);
  border: 1px solid rgba(226, 101, 95, 0.35);
  color: var(--danger);
  font-size: 0.9rem;
}

.age-gate-denied.visible {
  display: block;
}

body.age-locked {
  overflow: hidden;
}

/* ---------- Inner pages ---------- */
.page-hero {
  padding: 56px 0 40px;
  text-align: center;
  background:
    radial-gradient(ellipse 60% 70% at 50% -20%, rgba(212, 175, 55, 0.12), transparent 70%),
    var(--bg);
  border-bottom: 1px solid var(--line-soft);
}

.page-hero p {
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto;
}

.prose {
  max-width: 760px;
  margin: 0 auto;
}

.prose h2 {
  font-size: 1.5rem;
  margin-top: 2em;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  font-size: 1.15rem;
  margin-top: 1.6em;
}

.prose p,
.prose li {
  color: var(--text-muted);
}

.prose ul {
  padding-left: 22px;
}

.prose li {
  margin-bottom: 8px;
}

.prose strong {
  color: var(--text);
}

.updated-date {
  font-size: 0.85rem;
  color: var(--text-faint);
  text-align: center;
  margin-top: 8px;
}

.help-resources {
  display: grid;
  gap: 14px;
  margin: 24px 0;
}

.help-resources .card {
  padding: 20px;
}

.help-resources .card b {
  display: block;
  color: var(--text);
  margin-bottom: 4px;
}

@media (min-width: 720px) {
  .help-resources { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Contact form ---------- */
.contact-layout {
  display: grid;
  gap: 28px;
  max-width: 920px;
  margin: 0 auto;
}

@media (min-width: 860px) {
  .contact-layout {
    grid-template-columns: 1.4fr 1fr;
    align-items: start;
  }
}

.form-card {
  background: var(--glass);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: clamp(22px, 4vw, 34px);
}

.form-field {
  margin-bottom: 18px;
}

.form-field label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 7px;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  background: var(--bg-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 13px 14px;
  transition: border-color 0.15s ease;
}

.form-field textarea {
  resize: vertical;
  min-height: 130px;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--gold);
}

.form-field .field-error {
  display: none;
  color: var(--danger);
  font-size: 0.82rem;
  margin-top: 6px;
}

.form-field.invalid input,
.form-field.invalid select,
.form-field.invalid textarea {
  border-color: var(--danger);
}

.form-field.invalid .field-error {
  display: block;
}

.form-success {
  display: none;
  text-align: center;
  padding: 30px 16px;
}

.form-success.visible {
  display: block;
}

.form-success .success-icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  background: rgba(212, 175, 55, 0.14);
  border: 1px solid var(--line);
  color: var(--gold-light);
}

/* ---------- 404 ---------- */
.error-page {
  min-height: 60vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 60px 20px;
}

.error-page .error-code {
  font-family: var(--font-display);
  font-size: clamp(5rem, 18vw, 8rem);
  font-weight: 700;
  line-height: 1;
  background: var(--grad-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Reveal on scroll (hidden only when JS is active) ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.js .reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
