@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Manrope:wght@400;500;600;700&display=swap');

:root {
  --bg: #0a0b0d;
  --bg-2: #121319;
  --gold: #cda454;
  --gold-bright: #e6c789;
  --emerald: #3c7f68;
  --burgundy: #8a3b48;
  --text: #f4efe6;
  --text-muted: #b8b2a6;
  --card-bg: rgba(255, 255, 255, 0.035);
  --card-border: rgba(205, 164, 84, 0.22);
}

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

html, body {
  overflow-x: hidden;
  width: 100%;
}

body {
  background: radial-gradient(ellipse 120% 80% at 50% -10%, #1a1c24 0%, var(--bg) 55%, #060607 100%);
  color: var(--text);
  font-family: 'Manrope', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
}

h1, h2, .wordmark, .card h3 {
  font-family: 'Cormorant Garamond', serif;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ---------- Background animation layer ---------- */
#bgCanvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  pointer-events: none;
  display: block;
}

.bg-static {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 40% at 15% 20%, rgba(205, 164, 84, 0.06), transparent 60%),
    radial-gradient(ellipse 50% 35% at 85% 75%, rgba(60, 127, 104, 0.07), transparent 60%);
}

/* ---------- Content wrapper ---------- */
.page {
  position: relative;
  z-index: 10;
}

/* ---------- Nav ---------- */
nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 6vw;
  background: rgba(10, 11, 13, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(205, 164, 84, 0.14);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text);
}

.crest {
  display: inline-block;
  width: 11px;
  height: 11px;
  margin-right: 12px;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  transform: rotate(45deg);
  box-shadow: 0 0 10px rgba(205, 164, 84, 0.5);
  flex-shrink: 0;
}

.nav-link {
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 10px 20px;
  border: 1px solid var(--gold);
  border-radius: 4px;
  color: var(--gold-bright);
  transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link:focus-visible {
  background: var(--gold);
  color: #14110a;
  box-shadow: 0 0 22px rgba(205, 164, 84, 0.35);
  outline: none;
}

/* ---------- Hero ---------- */
.hero {
  padding: 13vh 6vw 8vh;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-eyebrow {
  font-family: 'Manrope', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin-bottom: 22px;
  opacity: 0.85;
}

.hero h1 {
  font-weight: 600;
  font-size: clamp(2rem, 6vw, 5rem);
  line-height: 1.12;
  letter-spacing: 0.005em;
  background: linear-gradient(120deg, var(--text) 30%, var(--gold-bright) 65%, var(--text) 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p {
  margin-top: 28px;
  max-width: 680px;
  color: var(--text-muted);
  font-size: clamp(1rem, 1.4vw, 1.15rem);
}

/* ---------- Cards ---------- */
.cards {
  padding: 4vh 6vw 10vh;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  max-width: 1240px;
  margin: 0 auto;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 38px 35px;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(205, 164, 84, 0.5);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.card .mark {
  display: inline-block;
  width: 9px;
  height: 9px;
  transform: rotate(45deg);
  margin-bottom: 20px;
  background: var(--gold);
}

.card h3 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text);
}

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

/* ---------- CTA ---------- */
.cta {
  text-align: center;
  padding: 8vh 6vw 14vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.signal-status {
  font-family: 'Manrope', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--emerald);
  background: rgba(60, 127, 104, 0.12);
  border: 1px solid rgba(60, 127, 104, 0.35);
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 30px;
}

.signal-cta {
  font-weight: 600;
  font-size: clamp(1.2rem, 2.4vw, 1.7rem);
  letter-spacing: 0.02em;
  padding: 20px 52px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  color: #16130b;
  box-shadow: 0 10px 32px rgba(205, 164, 84, 0.25);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: inline-block;
}

.signal-cta:hover,
.signal-cta:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 16px 42px rgba(205, 164, 84, 0.4);
  outline: none;
}

.signal-sub {
  margin-top: 22px;
  font-size: 0.9rem;
  color: var(--text-muted);
  opacity: 0.85;
}

/* ---------- Footer (served via SSI from layout_end.html) ---------- */
footer {
  position: relative;
  z-index: 60;
  background: rgba(10, 11, 13, 0.92);
  border-top: 1px solid rgba(205, 164, 84, 0.25);
  color: var(--text-muted);
  padding: 24px 6vw;
  font-family: 'Manrope', sans-serif;
  font-size: 0.85rem;
}

footer div {
  color: var(--text-muted);
}

/* ---------- Responsive ---------- */
@media (max-width: 480px) {
  nav {
    padding: 16px 5vw;
  }

  .wordmark {
    font-size: 1.25rem;
  }

  .nav-link {
    padding: 8px 14px;
    font-size: 0.72rem;
  }

  .hero {
    padding: 11vh 6vw 6vh;
  }

  .hero p {
    max-width: 100%;
  }

  .cards {
    padding: 3vh 6vw 8vh;
    grid-template-columns: 1fr;
  }

  .card {
    padding: 30px 26px;
  }

  .signal-cta {
    padding: 16px 34px;
    width: 100%;
  }

  .cta {
    padding: 6vh 6vw 10vh;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
