/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  --bg:           #070707;
  --bg-soft:      #0c0b09;
  --ink:          #f6f3ea;
  --muted:        #a39c8c;
  --muted-dim:    #6f6a5e;

  /* golden gradient (headline + button) */
  --gold-1:       #fbe9a8;
  --gold-2:       #e9c45c;
  --gold-3:       #c8941f;
  --gold-core:    #e8c25a;
  --gold-glow:    rgba(232, 194, 90, 0.45);
  --gold-line:    rgba(232, 200, 120, 0.16);

  --grid-line:    rgba(255, 244, 205, 0.045);
  --grid-size:    52px;

  --maxw:         1120px;
  --radius:       18px;
  --ease:         cubic-bezier(0.22, 0.61, 0.36, 1);

  --font-sans:    "Plus Jakarta Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-serif:   "Amiri", Georgia, "Times New Roman", serif;
}

/* ============================================================
   RESET / BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background-color: var(--bg);
  /* soft white-yellow square grid over black */
  background-image:
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: var(--grid-size) var(--grid-size);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

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

/* gold gradient text helper */
.gold-text {
  background: linear-gradient(100deg, var(--gold-1) 0%, var(--gold-2) 42%, var(--gold-3) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* 8-point star accent (Rub el Hizb glyph) */
.star {
  color: var(--gold-core);
  font-family: var(--font-serif);
}
.star--lg { font-size: 2rem; display: block; margin-bottom: 1rem; line-height: 1; }

/* ============================================================
   LOGO
   ============================================================ */
.logo__mark { height: 100%; width: auto; }
.topbar {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: center;
  padding: 30px 24px 0;
}
.logo { height: 46px; color: var(--ink); transition: color .3s var(--ease); }
.logo:hover { color: var(--gold-core); }

/* ============================================================
   SECTION 1 — HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  isolation: isolate;
}

/* darkened background image */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("assets/hero.png") center 28% / cover no-repeat;
  /* lower the exposure so the type reads cleanly */
  filter: brightness(0.42) saturate(0.9) contrast(1.02);
}
/* vignette + readability + fade into the grid below */
.hero__fade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(120% 80% at 50% 22%, rgba(232,194,90,0.10), transparent 55%),
    linear-gradient(to bottom,
      rgba(7,7,7,0.55) 0%,
      rgba(7,7,7,0.30) 30%,
      rgba(7,7,7,0.55) 62%,
      rgba(7,7,7,0.92) 86%,
      var(--bg) 100%);
}

.hero__inner {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 24px 96px;
  max-width: 920px;
  margin-inline: auto;
}

.eyebrow {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(0.95rem, 1.6vw, 1.15rem);
  letter-spacing: 0.04em;
  color: var(--gold-core);
  margin-bottom: 1.1rem;
}
.eyebrow .star { font-style: normal; margin-right: .35em; }

.hero__title {
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.02em;
  font-size: clamp(2.6rem, 6.4vw, 5.1rem);
  margin-bottom: 1.4rem;
  text-wrap: balance;
}
.hero__title-sub {
  display: block;
  color: var(--ink);
  font-size: 0.82em;
  margin-top: 0.18em;
}

.hero__desc {
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  max-width: 640px;
  margin-bottom: 2.4rem;
}

.hero__scroll {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color .3s var(--ease);
}
.hero__scroll:hover { color: var(--gold-core); }
.hero__chevron {
  width: 9px; height: 9px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  animation: bob 1.8s var(--ease) infinite;
}
@keyframes bob {
  0%, 100% { transform: rotate(45deg) translate(0,0); }
  50%      { transform: rotate(45deg) translate(3px,3px); }
}

/* ============================================================
   SHARED SECTION HEADING
   ============================================================ */
.section-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  margin-bottom: clamp(2.6rem, 5vw, 4rem);
}
.section-title {
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  letter-spacing: -0.01em;
  text-align: center;
}
.ornament {
  height: 1px;
  width: clamp(40px, 12vw, 130px);
  background: linear-gradient(to right, transparent, var(--gold-line));
  position: relative;
}
.ornament::after {
  content: "\06DE";
  position: absolute;
  right: -6px; top: 50%;
  transform: translateY(-50%);
  color: var(--gold-core);
  font-family: var(--font-serif);
  font-size: 0.9rem;
  line-height: 1;
}
.ornament--flip { transform: scaleX(-1); }

/* ============================================================
   SECTION 2 — KEY POINTS
   ============================================================ */
.points { padding: clamp(72px, 12vw, 140px) 0; }

.points__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.card {
  position: relative;
  padding: 56px 32px 38px;
  border: 1px solid rgba(232, 200, 120, 0.12);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(232,194,90,0.05), rgba(255,255,255,0.012));
  backdrop-filter: blur(2px);
  overflow: hidden;
  transition: transform .45s var(--ease), border-color .45s var(--ease), box-shadow .45s var(--ease);
}
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(232, 200, 120, 0.34);
  box-shadow: 0 24px 60px -28px rgba(232,194,90,0.4);
}

/* thin gold accent line along the top edge of each card */
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 18%; right: 18%;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(to right, transparent, var(--gold-2), transparent);
  opacity: 0.55;
  transition: opacity .45s var(--ease), left .45s var(--ease), right .45s var(--ease);
}
.card:hover::before {
  opacity: 1;
  left: 8%; right: 8%;
}

.card__num {
  display: block;
  font-weight: 800;
  font-size: clamp(3.2rem, 6vw, 4.6rem);
  line-height: 1;
  margin-bottom: 1.1rem;
  background: linear-gradient(160deg, var(--gold-1), var(--gold-2) 45%, var(--gold-3));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.card__title {
  font-size: 1.32rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 0.85rem;
  letter-spacing: -0.01em;
}
.card__desc {
  color: var(--muted);
  font-size: 1rem;
}

/* ============================================================
   SECTION 3 — CTA
   ============================================================ */
.cta {
  padding: clamp(80px, 14vw, 160px) 0 clamp(120px, 20vw, 240px);
  position: relative;
}
.cta::before {
  /* warm glow behind the CTA */
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 55% at 50% 45%, rgba(232,194,90,0.10), transparent 70%);
  pointer-events: none;
}
.cta__inner { position: relative; text-align: center; }
.cta__title {
  font-weight: 800;
  font-size: clamp(1.9rem, 4.4vw, 3.2rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 2.2rem;
  text-wrap: balance;
}

/* glowing golden button */
.btn-glow {
  display: inline-block;
  font-weight: 700;
  font-size: 1.08rem;
  letter-spacing: 0.01em;
  color: #2a1d02;
  padding: 18px 46px;
  border-radius: 999px;
  background: linear-gradient(100deg, var(--gold-1), var(--gold-2) 50%, var(--gold-3));
  box-shadow:
    0 0 0 1px rgba(255,240,190,0.35) inset,
    0 0 36px var(--gold-glow),
    0 14px 40px -12px rgba(232,194,90,0.5);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
  animation: pulse-glow 3.2s ease-in-out infinite;
}
.btn-glow:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow:
    0 0 0 1px rgba(255,240,190,0.5) inset,
    0 0 56px var(--gold-glow),
    0 18px 50px -10px rgba(232,194,90,0.65);
}
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 1px rgba(255,240,190,0.35) inset, 0 0 30px rgba(232,194,90,0.32), 0 14px 40px -12px rgba(232,194,90,0.5); }
  50%      { box-shadow: 0 0 0 1px rgba(255,240,190,0.45) inset, 0 0 48px rgba(232,194,90,0.55), 0 14px 40px -12px rgba(232,194,90,0.5); }
}

.cta__note {
  margin-top: 1.3rem;
  color: var(--muted-dim);
  font-size: 0.92rem;
}

/* ============================================================
   SECTION 4 — FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid rgba(232, 200, 120, 0.10);
  background: var(--bg-soft);
  padding: 52px 0 56px;
}
.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
}
.footer__logo { height: 40px; color: var(--ink); margin-bottom: 18px; }
.footer__meta {
  color: var(--muted-dim);
  font-size: 0.86rem;
  line-height: 1.75;
}
.footer__meta a { transition: color .25s var(--ease); }
.footer__meta a:hover { color: var(--gold-core); }

.footer__links {
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
}
.footer__links a {
  color: var(--muted);
  font-size: 0.9rem;
  transition: color .25s var(--ease);
}
.footer__links a:hover { color: var(--gold-core); }

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal:nth-child(2) { transition-delay: .08s; }
.reveal:nth-child(3) { transition-delay: .16s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 860px) {
  .points__grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .ornament { width: clamp(28px, 16vw, 80px); }
}
@media (max-width: 560px) {
  .footer__inner { flex-direction: column; gap: 28px; }
  .hero__inner { padding-bottom: 72px; }
}

/* respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn-glow, .hero__chevron { animation: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   LEGAL PAGES (Terms / Privacy)
   ============================================================ */
.legal-topbar {
  display: flex;
  justify-content: center;
  padding: 30px 24px;
  border-bottom: 1px solid rgba(232, 200, 120, 0.10);
}
.legal-topbar .logo { height: 40px; }

.legal {
  padding: clamp(56px, 9vw, 96px) 0 clamp(64px, 10vw, 110px);
}
.legal__wrap { max-width: 800px; }

.legal__head {
  text-align: center;
  margin-bottom: clamp(40px, 7vw, 68px);
}
.legal__eyebrow {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--gold-core);
  font-size: 1.05rem;
  margin-bottom: 0.7rem;
}
.legal__title {
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
  font-size: clamp(2.1rem, 5.4vw, 3.4rem);
  margin-bottom: 0.7rem;
}
.legal__updated {
  color: var(--muted-dim);
  font-size: 0.9rem;
}

/* divider with star, reused */
.legal__rule {
  width: 100%;
  height: 1px;
  margin: 0 auto clamp(40px, 7vw, 64px);
  background: linear-gradient(to right, transparent, var(--gold-line), transparent);
  position: relative;
}
.legal__rule::after {
  content: "\06DE";
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  background: var(--bg);
  padding: 0 14px;
  color: var(--gold-core);
  font-family: var(--font-serif);
  font-size: 1.1rem;
  line-height: 1;
}

.legal__content { color: var(--muted); font-size: 1.02rem; }
.legal__content h2 {
  color: var(--ink);
  font-weight: 700;
  font-size: 1.32rem;
  letter-spacing: -0.01em;
  margin: 2.4rem 0 0.85rem;
  scroll-margin-top: 90px;
}
.legal__content h2:first-child { margin-top: 0; }
.legal__content h2 .legal__num {
  background: linear-gradient(160deg, var(--gold-1), var(--gold-2) 50%, var(--gold-3));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-right: 0.5rem;
}
.legal__content p { margin-bottom: 1.1rem; line-height: 1.75; }
.legal__content ul { margin: 0 0 1.2rem; padding-left: 1.4rem; }
.legal__content li { margin-bottom: 0.5rem; line-height: 1.7; }
.legal__content li::marker { color: var(--gold-core); }
.legal__content a { color: var(--gold-core); text-decoration: underline; text-underline-offset: 2px; }
.legal__content a:hover { color: var(--gold-1); }
.legal__content strong { color: var(--ink); }

.legal__back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2.6rem;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  color: var(--gold-core);
  transition: gap .3s var(--ease);
}
.legal__back:hover { gap: 0.85rem; }
