:root {
  --gold: #e8ce7b;
  --gold-dim: #c4a84f;
  --gold-soft: rgba(232, 206, 123, 0.14);
  --gold-glow: rgba(232, 206, 123, 0.35);
  --ink: #f5f0e6;
  --ink-muted: #b5aea0;
  --bg: #161410;
  --bg-2: #1e1b16;
  --bg-3: #28241d;
  --line: rgba(232, 206, 123, 0.2);
  --radius: 4px;
  --font-display: "Unbounded", sans-serif;
  --font-body: "Figtree", sans-serif;
  --max: 1120px;
  --header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(232, 206, 123, 0.12), transparent 55%),
    radial-gradient(ellipse 40% 30% at 100% 40%, rgba(232, 206, 123, 0.06), transparent 50%),
    radial-gradient(ellipse 35% 25% at 0% 80%, rgba(232, 206, 123, 0.05), transparent 45%);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: #f3e4a8;
}

ul {
  list-style: none;
}

.site-wrap {
  position: relative;
  z-index: 1;
}

/* ——— Header ——— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  backdrop-filter: blur(14px);
  background: rgba(22, 20, 16, 0.86);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-link img {
  height: 36px;
  width: auto;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 0.15rem 1.35rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-desktop a {
  color: var(--ink-muted);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.nav-desktop a:hover,
.nav-desktop a.active {
  color: var(--gold);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  color: var(--gold);
  cursor: pointer;
  border-radius: var(--radius);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--gold);
  transition: transform 0.25s 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);
}

.nav-mobile {
  display: none;
  position: absolute;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: rgba(22, 20, 16, 0.98);
  border-bottom: 1px solid var(--line);
  padding: 1rem 1.25rem 1.5rem;
  flex-direction: column;
  gap: 0.85rem;
}

.nav-mobile.open {
  display: flex;
}

.nav-mobile a {
  color: var(--ink-muted);
  font-size: 1.05rem;
  padding: 0.35rem 0;
}

.nav-mobile a:hover,
.nav-mobile a.active {
  color: var(--gold);
}

/* ——— Buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.75rem;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.25s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  text-decoration: none;
  min-width: 160px;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--gold);
  color: #0a0a0a;
  box-shadow: 0 0 0 0 var(--gold-glow);
}

.btn-primary:hover {
  color: #0a0a0a;
  background: #f0d98f;
  box-shadow: 0 8px 28px var(--gold-glow);
}

.btn-outline {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold);
}

.btn-outline:hover {
  color: #0a0a0a;
  background: var(--gold);
  box-shadow: 0 8px 28px var(--gold-glow);
}

.btn-ghost {
  background: var(--gold-soft);
  color: var(--gold);
  border-color: var(--line);
  min-width: auto;
  font-size: 0.72rem;
  padding: 0.7rem 1.2rem;
}

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

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
}

/* ——— Hero ——— */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3.5rem 1.25rem 4rem;
  overflow: hidden;
}

.hero-mobile-art {
  display: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 55%, var(--bg) 100%),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(255, 255, 255, 0.012) 2px,
      rgba(255, 255, 255, 0.012) 3px
    );
  pointer-events: none;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 35%, rgba(232, 206, 123, 0.14), transparent 42%),
    linear-gradient(160deg, #1a1712 0%, var(--bg) 100%);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin: 0 auto;
}

.hero-logo {
  margin: 0 auto 1.75rem;
  height: clamp(52px, 10vw, 78px);
  width: auto;
  animation: logoIn 0.9s ease both;
  filter: drop-shadow(0 0 24px rgba(232, 206, 123, 0.25));
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.65rem, 4.5vw, 2.65rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  animation: fadeUp 0.8s ease 0.15s both;
}

.hero h1 span.brand-word {
  color: #fff;
}

.hero h1 span.brand-x {
  color: var(--gold);
}

.hero-lead {
  color: #ebe6dc;
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  max-width: 34rem;
  margin: 0 auto 2rem;
  animation: fadeUp 0.8s ease 0.28s both;
}

.hero .cta-row {
  justify-content: center;
  animation: fadeUp 0.8s ease 0.42s both;
}

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

@keyframes logoIn {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* ——— Sections ——— */
.section {
  padding: 4.5rem 1.25rem;
}

.section-tight {
  padding: 3rem 1.25rem;
}

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

.section-head {
  max-width: 640px;
  margin-bottom: 2.25rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.65rem;
}

.section-head p {
  color: var(--ink-muted);
  font-size: 1.02rem;
}

.eyebrow {
  display: block;
  font-family: var(--font-display);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.6rem;
}

/* Feature links — not cards: open list with dividers */
.feature-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.feature-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
  transition: background 0.2s ease;
}

.feature-item:hover {
  background: rgba(232, 206, 123, 0.03);
}

.feature-item h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  margin-bottom: 0.35rem;
}

.feature-item p {
  color: var(--ink-muted);
  font-size: 0.95rem;
  max-width: 52ch;
}

/* Article layout */
.page-hero {
  padding: 3rem 1.25rem 2rem;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(232, 206, 123, 0.06), transparent);
}

.page-hero .container {
  max-width: 760px;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3.8vw, 2.35rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 0.85rem;
}

.page-hero .meta {
  color: var(--ink-muted);
  font-size: 0.9rem;
}

.article {
  padding: 2.75rem 1.25rem 4rem;
}

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

.article-body h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  margin: 2.4rem 0 0.9rem;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.article-body h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
  margin: 1.85rem 0 0.7rem;
  color: var(--gold);
}

.article-body p {
  margin-bottom: 1.15rem;
  color: #d8d2c6;
  font-size: 1.05rem;
}

.article-body ul,
.article-body ol {
  margin: 0 0 1.25rem 1.15rem;
  color: #d8d2c6;
}

.article-body li {
  margin-bottom: 0.55rem;
  list-style: disc;
}

.article-body ol li {
  list-style: decimal;
}

.article-body strong {
  color: var(--ink);
  font-weight: 650;
}

.inline-cta {
  margin: 2.5rem 0;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.inline-cta p {
  color: var(--ink-muted);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

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

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item:first-child {
  border-top: 1px solid var(--line);
}

.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  padding: 1.25rem 2.5rem 1.25rem 0;
  cursor: pointer;
  position: relative;
  line-height: 1.45;
}

.faq-q::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold);
  font-size: 1.25rem;
  font-weight: 400;
}

.faq-item.open .faq-q::after {
  content: "–";
}

.faq-a {
  display: none;
  padding: 0 0 1.35rem;
  color: var(--ink-muted);
  font-size: 1rem;
}

.faq-item.open .faq-a {
  display: block;
  animation: fadeUp 0.35s ease both;
}

/* Steps */
.steps {
  counter-reset: step;
  max-width: 760px;
  margin: 0 auto;
}

.step {
  position: relative;
  padding: 0 0 2rem 3.25rem;
  border-left: 1px solid var(--line);
  margin-left: 0.85rem;
}

.step:last-child {
  border-left-color: transparent;
  padding-bottom: 0;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: -1.1rem;
  top: 0;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: var(--bg-3);
  border: 1px solid var(--gold);
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin-bottom: 0.45rem;
  padding-top: 0.25rem;
}

.step p {
  color: var(--ink-muted);
}

/* Related */
.related {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.related a {
  display: block;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 500;
}

.related a span {
  display: block;
  color: var(--ink-muted);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 400;
  margin-top: 0.25rem;
}

.related a:hover {
  color: var(--gold);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 3rem 1.25rem 2rem;
  background: var(--bg-2);
  margin-top: 2rem;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: 2rem;
  grid-template-columns: 1.2fr 1fr 1fr;
}

.footer-brand img {
  height: 32px;
  margin-bottom: 0.85rem;
}

.footer-brand p {
  color: var(--ink-muted);
  font-size: 0.9rem;
  max-width: 28ch;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.9rem;
}

.footer-col a {
  display: block;
  color: var(--ink-muted);
  font-size: 0.92rem;
  margin-bottom: 0.5rem;
}

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

.footer-bottom {
  max-width: var(--max);
  margin: 2.5rem auto 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--ink-muted);
  font-size: 0.82rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ——— Responsive ——— */
@media (max-width: 860px) {
  .nav-desktop {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .feature-item {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .btn {
    width: 100%;
    min-width: 0;
  }

  .cta-row {
    width: 100%;
  }

  .hero {
    min-height: calc(100svh - var(--header-h));
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    padding: 1.75rem 1.15rem 3rem;
  }

  .hero-mobile-art {
    display: block;
    position: absolute;
    top: -8%;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    width: 100%;
    height: 108%;
    object-fit: cover;
    object-position: top center;
    margin: 0;
    pointer-events: none;
    opacity: 1;
  }

  .hero-bg {
    z-index: 0;
    background:
      radial-gradient(circle at 50% 18%, rgba(232, 206, 123, 0.1), transparent 45%),
      linear-gradient(180deg, #1a1712 0%, var(--bg) 100%);
  }

  .hero::after {
    z-index: 1;
    background: linear-gradient(
      180deg,
      rgba(22, 20, 16, 0.05) 0%,
      rgba(22, 20, 16, 0.2) 55%,
      rgba(22, 20, 16, 0.55) 88%,
      var(--bg) 100%
    );
  }

  .hero-content {
    position: relative;
    z-index: 2;
    padding: 0;
    margin-top: 3.25rem;
  }
}

@media (max-width: 480px) {
  :root {
    --header-h: 64px;
  }

  .logo-link img {
    height: 30px;
  }

  .hero-logo {
    height: 48px;
  }

  .section {
    padding: 3.25rem 1.1rem;
  }
}

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