/* Archetype Ranch — palette from GildedSaloonColors.swift */

:root {
  --gold-bright: #d4af37;
  --gold-champagne: #f5e6a8;
  --bronze: #8b6914;
  --bronze-deep: #5c4520;
  --emerald: #1b8c5a;
  --emerald-deep: #0f5a38;
  --emerald-highlight: #2ecc87;
  --navy-deep: #0a1628;
  --navy-mid: #142640;
  --burgundy: #6b1c2a;
  --silver: #b8bcc4;
  --parchment: #f8f0e0;
  --ivory: #fff8e7;
  --ember: #e8a44c;
  --text-primary: var(--ivory);
  --text-secondary: #c8bda8;
  --border: rgba(212, 175, 55, 0.22);
  --border-strong: rgba(212, 175, 55, 0.42);
  --card-bg: rgba(20, 38, 64, 0.72);
  --radius: 18px;
  --radius-sm: 12px;
  --max-width: 1120px;
  --nav-height: 72px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: "Source Sans 3", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-primary);
  background: var(--navy-deep);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── Atmosphere ── */

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(180deg, var(--bronze-deep) 0%, var(--navy-deep) 38%, var(--navy-mid) 100%);
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.32;
  animation: drift 20s ease-in-out infinite alternate;
}

.glow--gold {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, var(--gold-bright) 0%, transparent 70%);
  top: -80px;
  right: 8%;
}

.glow--ember {
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, var(--ember) 0%, transparent 70%);
  bottom: 18%;
  left: -50px;
  animation-delay: -7s;
}

.glow--emerald {
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, var(--emerald-highlight) 0%, transparent 70%);
  top: 42%;
  right: -40px;
  animation-delay: -14s;
}

.stars {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 20% 30%, rgba(245, 230, 168, 0.5) 50%, transparent 50%),
    radial-gradient(1px 1px at 60% 12%, rgba(245, 230, 168, 0.35) 50%, transparent 50%),
    radial-gradient(1px 1px at 80% 55%, rgba(245, 230, 168, 0.4) 50%, transparent 50%),
    radial-gradient(1px 1px at 35% 70%, rgba(245, 230, 168, 0.3) 50%, transparent 50%),
    radial-gradient(1px 1px at 90% 80%, rgba(245, 230, 168, 0.45) 50%, transparent 50%);
  opacity: 0.6;
}

@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(20px, -16px) scale(1.06); }
}

.star-badge {
  position: fixed;
  font-family: "Rye", serif;
  font-size: 2.4rem;
  color: var(--gold-bright);
  opacity: 0.07;
  pointer-events: none;
  z-index: 0;
}

.star-badge--tl { top: 140px; left: 24px; }
.star-badge--br { bottom: 100px; right: 32px; font-size: 3rem; }

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

.container {
  width: min(100% - 2.5rem, var(--max-width));
  margin-inline: auto;
}

/* ── Navigation ── */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  background: rgba(10, 22, 40, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  width: min(100% - 2.5rem, var(--max-width));
  margin-inline: auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wordmark {
  font-family: "Rye", serif;
  font-size: 1.25rem;
  color: var(--gold-champagne);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.wordmark span {
  color: var(--gold-bright);
}

.nav-links {
  display: flex;
  gap: 1.75rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  transition: color 0.2s;
}

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

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-strong);
  color: var(--gold-champagne);
  font-size: 1.25rem;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

/* ── Hero ── */

.hero {
  padding: 5rem 0 4.5rem;
}

.hero-badge {
  display: inline-block;
  font-family: "IM Fell English SC", serif;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--emerald-highlight);
  border: 1px solid rgba(46, 204, 135, 0.35);
  background: rgba(27, 140, 90, 0.15);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-family: "Rye", serif;
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  line-height: 1.15;
  color: var(--ivory);
  margin-bottom: 0.75rem;
}

.hero h1 .accent {
  display: block;
  font-family: "IM Fell English SC", serif;
  font-size: clamp(1.1rem, 3vw, 1.45rem);
  color: var(--gold-champagne);
  font-weight: 400;
  margin-top: 0.5rem;
  letter-spacing: 0.04em;
}

.hero-subtitle {
  font-family: "Bitter", serif;
  font-size: 1.15rem;
  color: var(--ember);
  margin-bottom: 1.25rem;
}

.hero-desc {
  max-width: 640px;
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 2.25rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold-champagne), var(--gold-bright), var(--bronze));
  color: var(--navy-deep);
  box-shadow: 0 4px 24px rgba(212, 175, 55, 0.35);
}

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

.btn-ghost {
  border: 1px solid var(--border-strong);
  color: var(--gold-champagne);
  background: rgba(20, 38, 64, 0.5);
}

.btn-ghost:hover {
  background: rgba(212, 175, 55, 0.08);
}

.stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.stat-pill {
  font-size: 0.9rem;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  background: var(--card-bg);
  padding: 0.5rem 1rem;
  border-radius: 999px;
}

.stat-pill strong {
  color: var(--gold-bright);
}

/* ── Sections ── */

section {
  padding: 4.5rem 0;
}

section:nth-child(even) {
  background: rgba(10, 22, 40, 0.45);
}

.section-label {
  font-family: "IM Fell English SC", serif;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ember);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: "Bitter", serif;
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  color: var(--ivory);
  margin-bottom: 1rem;
  line-height: 1.25;
}

.section-lead {
  max-width: 680px;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  font-size: 1.05rem;
}

/* ── Features ── */

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.feature-card:hover {
  border-color: var(--border-strong);
  box-shadow: 0 0 28px rgba(212, 175, 55, 0.12);
}

.feature-num {
  font-family: "IM Fell English SC", serif;
  font-size: 0.85rem;
  color: var(--gold-bright);
  margin-bottom: 0.75rem;
  letter-spacing: 0.1em;
}

.feature-card h3 {
  font-family: "Bitter", serif;
  font-size: 1.2rem;
  color: var(--gold-champagne);
  margin-bottom: 0.65rem;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.6;
}

/* ── About ── */

.about-text p {
  color: var(--text-secondary);
  margin-bottom: 1.15rem;
  max-width: 720px;
}

.about-text em {
  color: var(--gold-champagne);
  font-style: normal;
}

/* ── Privacy ── */

.privacy-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  max-width: 800px;
}

.privacy-effective {
  color: var(--ember);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.privacy-card h3 {
  font-family: "Bitter", serif;
  font-size: 1.1rem;
  color: var(--gold-champagne);
  margin: 1.75rem 0 0.65rem;
}

.privacy-card p,
.privacy-card li {
  color: var(--text-secondary);
  font-size: 0.98rem;
}

.privacy-card ul {
  margin: 0.5rem 0 1rem 1.25rem;
}

.privacy-card a {
  color: var(--emerald-highlight);
}

/* ── Contact ── */

.contact-note {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  max-width: 800px;
}

.contact-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.contact-card .label {
  font-family: "IM Fell English SC", serif;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ember);
  margin-bottom: 0.5rem;
}

.contact-card a {
  color: var(--gold-champagne);
  text-decoration: none;
  font-weight: 600;
  word-break: break-word;
}

.contact-card a:hover {
  color: var(--gold-bright);
}

/* ── Footer ── */

.site-footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
  background: rgba(10, 22, 40, 0.9);
}

.footer-legal {
  color: var(--text-secondary);
  font-size: 0.88rem;
  max-width: 720px;
  margin-bottom: 0.75rem;
  line-height: 1.55;
}

.footer-copy {
  color: rgba(200, 189, 168, 0.6);
  font-size: 0.85rem;
}

/* ── Mobile ── */

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(10, 22, 40, 0.97);
    border-bottom: 1px solid var(--border);
    padding: 0.5rem 0;
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 0.85rem 1.25rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.08);
  }

  .hero {
    padding: 3.5rem 0 3rem;
  }

  .privacy-card {
    padding: 1.5rem;
  }
}
