:root {
  --sky-top: #0B1430;
  --sky-bot: #23365F;
  --navy: #14213D;
  --cream: #F6EEDF;
  --cream-2: #EADFCB;
  --gold: #F4B942;
  --gold-d: #C98A12;
  --orange: #EE8434;
  --coral: #D9553B;
  --teal: #36A99A;
  --plum: #8E5A9B;
  --ink: #1B2440;
  --muted: #5B6480;
  --radius: 18px;
  --shadow: 0 10px 0 -2px rgba(20, 33, 61, .08), 0 18px 40px rgba(20, 33, 61, .14);
  --font: "Jost", "Futura", "Avenir Next", system-ui, sans-serif;
  --serif: "Fraunces", Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; }
a { color: inherit; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px clamp(16px, 4vw, 48px);
  color: var(--cream);
  transition: background .3s, box-shadow .3s, padding .3s;
}
.nav.scrolled {
  background: rgba(11, 20, 48, .86);
  backdrop-filter: blur(10px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, .25);
  padding-top: 10px; padding-bottom: 10px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 40px; height: 40px; }
.brand-word { font-weight: 800; letter-spacing: .08em; font-size: 15px; }
.brand-word em { font-style: normal; color: var(--gold); letter-spacing: .28em; margin-left: 4px; }
.nav-links { display: flex; gap: clamp(12px, 2.4vw, 28px); align-items: center; }
.nav-links a { text-decoration: none; font-weight: 500; font-size: 15px; opacity: .9; }
.nav-links a:hover { opacity: 1; color: var(--gold); }
.nav-cta { border: 1.5px solid var(--gold); color: var(--gold) !important; padding: 7px 14px; border-radius: 999px; }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100svh; overflow: hidden;
  background: linear-gradient(165deg, var(--sky-top) 0%, #16244A 55%, var(--sky-bot) 100%);
  color: var(--cream);
  display: grid; align-items: center;
}
#stars, #comet { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero::after { /* keeps the headline legible where the tail and speed lines pass behind it */
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(90deg, rgba(11, 20, 48, .72) 0%, rgba(11, 20, 48, .35) 38%, transparent 60%);
}
#comet { pointer-events: none; }
.hero-copy {
  position: relative; z-index: 5;
  max-width: 760px;
  padding: 120px clamp(16px, 6vw, 96px) 220px;
}
.eyebrow { text-transform: uppercase; letter-spacing: .22em; font-size: 13px; color: var(--gold); margin: 0 0 18px; font-weight: 500; }
h1 {
  font-size: clamp(40px, 6.4vw, 84px); line-height: 1.02; margin: 0 0 22px;
  font-weight: 800; letter-spacing: -.01em;
  text-shadow: 0 4px 18px rgba(0, 0, 0, .35);
}
.stick { color: var(--gold); display: inline-block; transform-origin: 50% 80%; }
.lede { font-family: var(--serif); font-style: italic; font-size: clamp(18px, 2vw, 22px); line-height: 1.5; opacity: .9; margin: 0 0 34px; max-width: 34em; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-block; text-decoration: none; font-weight: 700; letter-spacing: .02em;
  padding: 14px 24px; border-radius: 999px; transition: transform .2s, box-shadow .2s, background .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: var(--navy); box-shadow: 0 6px 0 var(--gold-d), 0 12px 24px rgba(0, 0, 0, .25); }
.btn-gold:hover { box-shadow: 0 8px 0 var(--gold-d), 0 16px 28px rgba(0, 0, 0, .3); }
.btn-ghost { border: 1.5px solid rgba(246, 238, 223, .6); color: var(--cream); }
.btn-ghost:hover { background: rgba(246, 238, 223, .1); }
.btn-big { font-size: clamp(16px, 2.2vw, 22px); padding: 18px 30px; margin-top: 10px; }

.mesas { position: absolute; left: 0; right: 0; bottom: -2px; height: 34vh; min-height: 200px; z-index: 3; pointer-events: none; }
.mesa { position: absolute; left: -5%; width: 110%; bottom: 0; will-change: transform; }
.mesa path { filter: drop-shadow(0 -6px 10px rgba(0, 0, 0, .25)); }
.m1 { height: 100%; } .m1 path { fill: #1A2C52; }
.m2 { height: 78%; } .m2 path { fill: #2C4670; }
.m3 { height: 46%; } .m3 path { fill: var(--cream); filter: drop-shadow(0 -8px 12px rgba(0, 0, 0, .3)); }

.scroll-cue { position: absolute; z-index: 6; left: 50%; bottom: 26px; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid var(--navy); border-radius: 14px; opacity: .55; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; background: var(--navy); border-radius: 2px; animation: cue 1.8s infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- sections ---------- */
.section { padding: clamp(72px, 10vw, 130px) clamp(16px, 5vw, 64px); position: relative; }
.wrap { max-width: 1120px; margin: 0 auto; }
.center { text-align: center; }
.paper {
  background:
    radial-gradient(circle at 20% 10%, rgba(255, 255, 255, .5), transparent 40%),
    var(--cream);
}
.night { background: linear-gradient(170deg, #101B3C, var(--navy)); color: var(--cream); }
.kicker { text-transform: uppercase; letter-spacing: .22em; font-size: 13px; font-weight: 700; color: var(--orange); margin: 0 0 12px; }
.night .kicker { color: var(--gold); }
h2 { font-size: clamp(30px, 4.2vw, 52px); line-height: 1.08; margin: 0 0 20px; font-weight: 800; max-width: 18em; }
.section p { font-size: 18px; line-height: 1.6; }
.night p { opacity: .88; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 40px; }
.card {
  position: relative; background: #FFFBF3; border-radius: var(--radius); padding: 30px 26px 28px;
  box-shadow: var(--shadow); border-top: 6px solid var(--accent);
  transform-style: preserve-3d; transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { box-shadow: 0 14px 0 -2px rgba(20, 33, 61, .08), 0 26px 50px rgba(20, 33, 61, .2); }
.card-icon { font-size: 34px; margin-bottom: 10px; }
.card h3 { margin: 0 0 10px; font-size: 22px; }
.card p { font-size: 16.5px; color: var(--muted); margin: 0 0 18px; }
.tag { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .06em; color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); padding: 6px 12px; border-radius: 999px; }
.card-link { font-weight: 700; color: var(--accent); text-decoration: none; }
.card-link:hover { text-decoration: underline; }

.two-col { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.checks { list-style: none; padding: 0; margin: 22px 0 32px; }
.checks li { padding: 8px 0 8px 34px; position: relative; font-size: 17px; }
.checks li::before { content: "☄"; position: absolute; left: 0; top: 6px; color: var(--gold); font-size: 18px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.step { display: flex; gap: 20px; align-items: flex-start; background: rgba(246, 238, 223, .06); border: 1px solid rgba(246, 238, 223, .14); border-radius: var(--radius); padding: 22px 24px; }
.step > span { font-weight: 800; font-size: 28px; color: var(--gold); line-height: 1; min-width: 44px; }
.step h3 { margin: 0 0 6px; font-size: 20px; }
.step p { margin: 0; font-size: 16px; }

.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; margin-top: 34px; }
.principle { border-left: 4px solid var(--orange); padding-left: 20px; }
.principle:nth-child(2) { border-color: var(--teal); }
.principle:nth-child(3) { border-color: var(--plum); }
.principle h3 { margin: 0 0 8px; font-size: 21px; }
.principle p { margin: 0; color: var(--muted); font-size: 17px; }

.contact h2 { margin-left: auto; margin-right: auto; }
.socials { list-style: none; padding: 0; margin: 34px 0 0; display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; }
.socials a { text-decoration: none; font-weight: 500; opacity: .8; border-bottom: 1px solid transparent; }
.socials a:hover { opacity: 1; border-color: var(--gold); color: var(--gold); }

.footer { background: #0A1228; color: rgba(246, 238, 223, .6); text-align: center; padding: 26px 16px; font-size: 14px; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .cards, .principles { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .nav-links a:not(.nav-cta) { display: none; }
  .hero-copy { padding-top: 250px; }
  .hero::after { background: linear-gradient(180deg, transparent 22%, rgba(11, 20, 48, .55) 45%, rgba(11, 20, 48, .3) 80%); }
}
@media (max-width: 600px) {
  .hero-copy { padding-top: 230px; padding-bottom: 150px; }
  .mesas { height: 20vh; min-height: 130px; }
  .brand-word { font-size: 13px; }
  .brand-mark { width: 32px; height: 32px; }
  .nav-cta { white-space: nowrap; padding: 6px 12px; }
  .hero-ctas .btn { width: 100%; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-cue span { animation: none; }
}
