@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,500;1,600&family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

:root {
  --bg: #08050f;
  --bg-elevated: #110a22;
  --bg-card: rgba(139, 92, 246, 0.07);
  --purple-900: #23103f;
  --purple-700: #5b21b6;
  --purple-500: #8b5cf6;
  --purple-300: #c4b5fd;
  --gold: #c9a44c;
  --gold-bright: #eecd82;
  --text: #f4f1fb;
  --text-dim: #a99fc0;
  --border: rgba(196, 181, 253, 0.16);
  --shadow-glow: 0 0 60px rgba(139, 92, 246, 0.25);
  --radius: 14px;
  --max-width: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-weight: 300;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, .display {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 .5em;
  letter-spacing: .01em;
}

h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 700; }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.6rem); font-weight: 600; }

p { color: var(--text-dim); margin: 0 0 1em; }

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  font-family: 'Space Grotesk', sans-serif;
  font-size: .74rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin-bottom: 1.1em;
}
.eyebrow::before {
  content: '';
  width: 26px; height: 1px;
  background: var(--gold);
  display: inline-block;
}

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

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem 6vw;
  background: linear-gradient(to bottom, rgba(8,5,15,.92), rgba(8,5,15,0));
  backdrop-filter: blur(6px);
}

.logo {
  display: flex;
  align-items: center;
  gap: .55em;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--text);
}
.logo .logo-mark { color: var(--gold-bright); }
.logo small {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: .58rem;
  letter-spacing: .32em;
  color: var(--text-dim);
  font-weight: 400;
  margin-top: -2px;
}

nav.main-nav {
  display: flex;
  align-items: center;
  gap: 2.4rem;
}
nav.main-nav a {
  font-size: .82rem;
  letter-spacing: .06em;
  color: var(--text-dim);
  transition: color .2s;
  position: relative;
}
nav.main-nav a:hover, nav.main-nav a.active { color: var(--text); }
nav.main-nav a.btn { font-size: .84rem; }
nav.main-nav a.btn-primary, nav.main-nav a.btn-primary:hover { color: #1a1206; }
nav.main-nav a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -8px;
  height: 1px;
  background: var(--gold);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  padding: .85em 1.7em;
  border-radius: 999px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: .84rem;
  letter-spacing: .03em;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s, background .25s;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  color: #1a1206;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(201,164,76,.3); }
.btn-outline {
  border-color: var(--border);
  color: var(--text);
  background: rgba(255,255,255,.02);
}
.btn-outline:hover { border-color: var(--purple-300); background: rgba(139,92,246,.08); }

.nav-toggle {
  display: none;
  background: none; border: none; color: var(--text);
  font-size: 1.6rem; cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 8rem 6vw 6rem;
}
.hero canvas#constellation {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 30%, rgba(139,92,246,.22), transparent 70%),
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(201,164,76,.10), transparent 70%),
    var(--bg);
  z-index: 0;
}
.vinci-emblem {
  position: absolute;
  top: 50%; left: 50%;
  width: min(820px, 130vw);
  height: min(820px, 130vw);
  transform: translate(-50%, -50%);
  opacity: .16;
  z-index: 0;
  animation: spin 140s linear infinite;
  pointer-events: none;
}
@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }

.hero-content { position: relative; z-index: 2; max-width: 900px; }
.hero-content h1 {
  background: linear-gradient(135deg, #fff 20%, var(--purple-300) 55%, var(--gold-bright) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-content .lede {
  font-size: 1.15rem;
  color: var(--text-dim);
  max-width: 620px;
  margin: 0 auto 2.4rem;
}
.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.scroll-cue {
  position: absolute;
  bottom: 2.4rem; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: .5em;
  color: var(--text-dim);
  font-size: .68rem;
  letter-spacing: .3em;
  text-transform: uppercase;
}
.scroll-cue .line {
  width: 1px; height: 34px;
  background: linear-gradient(var(--gold), transparent);
  animation: pulse-line 2s ease-in-out infinite;
}
@keyframes pulse-line { 0%,100%{opacity:.3} 50%{opacity:1} }

/* ---------- Sections ---------- */
section { position: relative; padding: 7rem 0; }
.section-head { max-width: 680px; margin: 0 auto 3.6rem; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }

.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  border: none;
  margin: 0;
}

/* Trust strip */
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.6rem 3.2rem;
  padding: 2.4rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.trust-item {
  display: flex; align-items: center; gap: .7em;
  font-size: .82rem;
  color: var(--text-dim);
  letter-spacing: .03em;
}
.trust-item svg { width: 20px; height: 20px; color: var(--gold-bright); flex-shrink: 0; }

/* Cards grid */
.grid { display: grid; gap: 1.6rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.2rem;
  transition: border-color .25s, transform .25s, background .25s;
}
.card:hover {
  border-color: rgba(201,164,76,.4);
  background: rgba(139,92,246,.1);
  transform: translateY(-4px);
}
.card .icon {
  width: 44px; height: 44px;
  margin-bottom: 1.3rem;
  color: var(--gold-bright);
}
.card .icon svg { width: 100%; height: 100%; }
.card h3 { margin-bottom: .5em; }
.card p { margin-bottom: 0; font-size: .92rem; }
.card .benefit {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: .8rem;
  color: var(--purple-300);
}

/* Service detail block */
.service-block {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 2rem;
  padding: 3rem 0;
}
.service-block .num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.6rem;
  color: var(--gold);
  opacity: .7;
}
.service-block h3 { margin-bottom: .3em; }
.service-block .benefit-tag {
  display: inline-block;
  margin-top: 1rem;
  padding: .45em 1em;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: .76rem;
  color: var(--purple-300);
  letter-spacing: .04em;
}

/* Steps */
.steps { counter-reset: step; }
.step {
  position: relative;
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 1.6rem;
  padding-bottom: 3rem;
}
.step:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 34px; top: 60px; bottom: 0;
  width: 1px;
  background: linear-gradient(var(--gold), transparent);
}
.step .step-num {
  counter-increment: step;
  width: 68px; height: 68px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  color: var(--gold-bright);
  flex-shrink: 0;
}
.step .step-num::before { content: counter(step); }

/* Stats */
.stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 3.5rem; text-align: center; }
.stat .num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3rem; font-weight: 700;
  color: var(--gold-bright);
}
.stat .label { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-dim); }

/* Markets */
.markets { display: flex; flex-wrap: wrap; gap: 1.2rem; justify-content: center; }
.market-pill {
  display: flex; align-items: center; gap: .6em;
  padding: .9em 1.6em;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: .88rem;
}
.market-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }

/* CTA band */
.cta-band {
  text-align: center;
  padding: 5.5rem 6vw;
  background: linear-gradient(180deg, transparent, rgba(139,92,246,.08));
  border-top: 1px solid var(--border);
}

/* Contact */
.contact-panel {
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
  padding: 3rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
}
.contact-email {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.7rem;
  color: var(--gold-bright);
  margin: 1.2rem 0;
  padding-bottom: .3rem;
  border-bottom: 1px solid var(--border);
}
.contact-meta {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  margin-top: 2rem;
  font-size: .88rem;
  color: var(--text-dim);
}
.contact-meta strong { color: var(--text); font-weight: 500; }

/* Footer */
footer.site-footer {
  border-top: 1px solid var(--border);
  padding: 3.5rem 6vw 2.5rem;
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2.4rem;
  padding-bottom: 2.4rem;
}
.footer-col h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: .74rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 500;
  margin-bottom: 1em;
}
.footer-col a, .footer-col p { display: block; font-size: .86rem; color: var(--text-dim); margin-bottom: .6em; }
.footer-col a:hover { color: var(--gold-bright); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  font-size: .76rem;
  color: var(--text-dim);
  letter-spacing: .02em;
}

/* Page hero (non-home) */
.page-hero {
  position: relative;
  padding: 11rem 6vw 5rem;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(139,92,246,.2), transparent 70%), var(--bg);
  z-index: 0;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero .eyebrow { justify-content: center; }
.page-hero .section-head { margin-bottom: 0; }

/* Legal */
.legal-content h2 { margin-top: 2.4rem; }
.legal-content p, .legal-content li { color: var(--text-dim); font-size: .94rem; }
.legal-content ul { padding-left: 1.2em; }

@media (max-width: 880px) {
  nav.main-nav { position: fixed; top: 0; right: 0; height: 100vh; width: min(320px, 80vw);
    background: var(--bg-elevated); flex-direction: column; align-items: flex-start;
    padding: 6.5rem 2rem 2rem; gap: 1.6rem; border-left: 1px solid var(--border);
    transform: translateX(100%); transition: transform .3s ease; }
  nav.main-nav.open { transform: translateX(0); }
  nav.main-nav a { font-size: 1rem; }
  .nav-toggle { display: block; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .service-block { grid-template-columns: 56px 1fr; }
  .stats { gap: 2rem; }
}
