@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;600;700;800&family=Inter:wght@400;500;600&display=swap');

:root{
  --bg: #0a0c12;
  --bg-alt: #11141d;
  --bg-card: #12151f;
  --gold: #d9a35c;
  --gold-soft: rgba(217,163,92,0.16);
  --blue: #8fb8d6;
  --mauve: #c98fd6;
  --mint: #6fcf97;
  --text: #f4f1ea;
  --muted: #b6bac6;
  --border: rgba(217,163,92,0.16);
}

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

html{
  scroll-behavior: smooth;
}

body, html{
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
}

h1, h2, h3, .wordmark{
  font-family: 'Sora', 'Inter', sans-serif;
}

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

/* ---------- Background canvas ---------- */
#bg-canvas{
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  display: block;
}

.bg-veil{
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(10,12,18,0) 0%, var(--bg) 78%),
    linear-gradient(180deg, rgba(10,12,18,0.15) 0%, rgba(10,12,18,0.55) 60%, var(--bg) 100%);
}

/* ---------- Layout wrapper ---------- */
.content{
  position: relative;
  z-index: 10;
}

/* ---------- Nav ---------- */
nav{
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 5vw;
  background: rgba(10,12,18,0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(217,163,92,0.1);
  box-sizing: border-box;
}

.wordmark{
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  color: var(--text);
}

.wordmark-suffix{
  color: var(--muted);
  font-weight: 500;
}

.wordmark-mark{
  position: relative;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.wordmark-mark::before{
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  border-top-color: transparent;
  border-right-color: transparent;
  animation: spin 5s linear infinite;
}

.wordmark-mark::after{
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 4px;
  height: 4px;
  margin: -2px 0 0 -2px;
  border-radius: 50%;
  background: var(--gold);
}

@keyframes spin{
  from{ transform: rotate(0deg); }
  to{ transform: rotate(360deg); }
}

/* ---------- Nav / acquisition button ---------- */
.nav-link{
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--bg);
  background: var(--gold);
  border-radius: 999px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link:focus-visible{
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(217,163,92,0.3);
  background: #e7b06a;
}

.nav-link:focus-visible{
  outline: 2px solid var(--text);
  outline-offset: 2px;
}

/* ---------- Hero ---------- */
.hero{
  padding: 14vh 6vw 10vh;
  min-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.eyebrow{
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 22px;
}

.hero h1{
  font-size: clamp(2rem, 6vw, 5rem);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 26px;
  color: var(--text);
}

.hero h1 span{
  display: block;
}

.hero h1 .accent{
  color: var(--gold);
}

.hero p{
  max-width: 680px;
  margin: 0 auto 40px;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  line-height: 1.65;
  color: var(--muted);
}

.hero-cta{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 32px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--bg);
  background: var(--gold);
  border-radius: 999px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-cta:hover,
.hero-cta:focus-visible{
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(217,163,92,0.32);
}

.hero-cta:focus-visible{
  outline: 2px solid var(--text);
  outline-offset: 3px;
}

/* ---------- Cards ---------- */
.cards-section{
  padding: 4vh 6vw 10vh;
}

.cards-heading{
  text-align: center;
  max-width: 620px;
  margin: 0 auto 48px;
}

.cards-heading h2{
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 700;
  margin: 0 0 12px;
}

.cards-heading p{
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
}

.cards{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  max-width: 1160px;
  margin: 0 auto;
}

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

.card:hover{
  transform: translateY(-8px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.35);
  border-color: rgba(217,163,92,0.4);
}

.card-icon{
  position: relative;
  width: 34px;
  height: 34px;
  margin-bottom: 22px;
  --icon-color: var(--gold);
}

.card-icon.icon-gold{ --icon-color: var(--gold); }
.card-icon.icon-blue{ --icon-color: var(--blue); }
.card-icon.icon-mauve{ --icon-color: var(--mauve); }
.card-icon.icon-mint{ --icon-color: var(--mint); }

.card-icon::before{
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid var(--icon-color);
  opacity: 0.55;
}

.card-icon::after{
  content: '';
  position: absolute;
  top: -2px;
  left: 50%;
  width: 6px;
  height: 6px;
  margin-left: -3px;
  border-radius: 50%;
  background: var(--icon-color);
  transform-origin: 3px 19px;
  animation: spin 7s linear infinite;
}

.card h3{
  font-size: 1.12rem;
  font-weight: 700;
  margin: 0 0 12px;
  color: var(--text);
}

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

/* ---------- CTA ---------- */
.cta{
  text-align: center;
  padding: 8vh 6vw 16vh;
}

.signal-status{
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--mint);
  background: rgba(111,207,151,0.1);
  border: 1px solid rgba(111,207,151,0.3);
  padding: 8px 18px;
  border-radius: 999px;
  margin: 0 0 30px;
}

.signal-cta{
  display: inline-block;
  padding: 20px 46px;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--bg);
  background: linear-gradient(135deg, #e7b06a, var(--gold));
  border-radius: 999px;
  box-shadow: 0 14px 34px rgba(217,163,92,0.28);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.signal-cta:hover,
.signal-cta:focus-visible{
  transform: translateY(-4px);
  box-shadow: 0 20px 44px rgba(217,163,92,0.4);
}

.signal-cta:focus-visible{
  outline: 2px solid var(--text);
  outline-offset: 4px;
}

.signal-sub{
  margin: 22px 0 0;
  font-size: 0.88rem;
  color: var(--muted);
}

/* ---------- Footer (served via SSI, sits outside .content) ---------- */
footer{
  position: relative;
  z-index: 10;
  background: var(--bg);
  color: var(--muted);
  border-top: 1px solid var(--border);
  padding: 24px 6vw;
  font-size: 0.85rem;
  line-height: 1.6;
}

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

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  .wordmark-mark::before,
  .card-icon::after{
    animation: none;
  }
}

/* ---------- Mobile ---------- */
@media (max-width: 480px){
  nav{
    padding: 14px 5vw;
  }
  .wordmark{
    font-size: 1.05rem;
  }
  .nav-link{
    padding: 8px 14px;
    font-size: 0.78rem;
  }
  .hero{
    padding: 12vh 6vw 8vh;
    min-height: unset;
  }
  .card{
    padding: 30px 26px;
  }
  .cta{
    padding: 6vh 6vw 12vh;
  }
  .signal-cta{
    display: block;
    width: 100%;
    padding: 18px 0;
  }
}
