:root {
  color-scheme: dark;
  --black: #050608;
  --gold: #e7b93f;
  --cyan: #16c8ef;
  --white: #ffffff;
  --muted: #b9c3cc;
  --red: #ef6a5b;
  --blue: #4db8ff;
  --line: rgba(231, 185, 63, .28);
  --footer-space: 3.25rem;
  font-family: Aptos, Candara, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100svh; padding-bottom: var(--footer-space); color: var(--white); background: #050608; }
body[data-page] { background: radial-gradient(circle at 18% 20%, rgba(231,185,63,.16), transparent 18rem), radial-gradient(circle at 80% 10%, rgba(22,200,239,.13), transparent 22rem), linear-gradient(135deg, #050608 0%, #080c10 45%, #020304 100%); }
body[data-hero-key] { background-image: var(--hero-image), radial-gradient(circle at 18% 20%, rgba(231,185,63,.16), transparent 18rem), linear-gradient(135deg, #050608 0%, #080c10 60%, #020304 100%); background-size: cover, auto, auto; background-position: center, center, center; background-attachment: fixed, scroll, scroll; }
.is-hidden { display: none !important; }

.topbar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; position: sticky; top: 0; z-index: 20; min-height: 4rem; padding: .55rem clamp(1rem, 4vw, 3rem); background: rgba(5,6,8,.3); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(231,185,63,.14); }
.brand-menu { position: relative; display: inline-flex; align-items: flex-start; }
.brand-menu::after { content: ""; position: absolute; top: 100%; left: 0; width: 14rem; height: .9rem; }
.brand-mark { display: inline-flex; align-items: center; gap: .65rem; border: 0; padding: 0; background: transparent; color: var(--white); cursor: pointer; font: inherit; font-weight: 800; }
.brand-mark img { width: 3rem; height: 3rem; object-fit: contain; filter: drop-shadow(0 0 1rem rgba(22,200,239,.24)); }
.primary-nav { position: absolute; top: calc(100% + .55rem); left: 0; display: grid; min-width: 13.5rem; gap: .25rem; padding: .55rem; border: 1px solid var(--line); border-radius: 8px; background: rgba(5,6,8,.92); box-shadow: 0 1rem 2rem rgba(0,0,0,.4); opacity: 0; pointer-events: none; transform: translateY(-.35rem); transition: opacity .18s ease, transform .18s ease; }
.brand-menu:hover .primary-nav, .brand-menu:focus-within .primary-nav, .primary-nav[data-open="true"], .brand-menu.is-open .primary-nav { opacity: 1; pointer-events: auto; transform: translateY(0); }
.primary-nav a { display: inline-flex; align-items: center; min-height: 2.3rem; border: 1px solid transparent; border-radius: 8px; padding: .45rem .7rem; color: var(--white); text-decoration: none; transition: color .18s ease, border-color .18s ease, background-color .18s ease, transform .18s ease; }
.primary-nav a:hover, .primary-nav a:focus-visible { color: var(--gold); border-color: rgba(231,185,63,.55); background: rgba(231,185,63,.08); transform: translateX(2px); outline: none; }
.primary-nav a[hidden] { display: none; }
.top-cta { display: inline-flex; align-items: center; min-height: 2.35rem; border: 1px solid rgba(231,185,63,.72); border-radius: 999px; padding: .45rem .85rem; color: var(--gold); text-decoration: none; transition: box-shadow .18s ease, background-color .18s ease, color .18s ease; }
.top-cta:hover, .top-cta:focus-visible { color: var(--black); background: var(--gold); box-shadow: 0 0 1rem rgba(231,185,63,.42); outline: none; }

.page-shell { display: grid; gap: clamp(1rem, 3vw, 2rem); padding: 0 clamp(1rem, 4vw, 3rem) clamp(2rem, 5vw, 4rem); }
.home-hero, .page-hero { position: relative; display: grid; align-items: center; min-height: min(42rem, calc(100svh - 4rem)); overflow: hidden; border-bottom: 1px solid rgba(231,185,63,.16); }
.hero-symbols::before { content: none; }
.hero-symbols::after { content: "◦  ⚖  ◦  ◇  ◦  ⚜  ◦"; position: absolute; right: clamp(1rem, 8vw, 7rem); top: 38%; color: rgba(231,185,63,.26); font-size: clamp(2rem, 7vw, 6rem); letter-spacing: .35rem; transform: rotate(-12deg); pointer-events: none; }
.hero-copy { position: relative; z-index: 1; max-width: 36rem; }
.home-copy { margin-left: clamp(0rem, 3vw, 2rem); }
.eyebrow, .section-label { margin: 0 0 .35rem; color: var(--gold); font-size: .76rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: .6rem; max-width: 34rem; font-size: clamp(2rem, 5vw, 4.4rem); line-height: .98; text-wrap: balance; }
h2 { margin-bottom: .55rem; font-size: clamp(1.35rem, 2.5vw, 2rem); }
.hero-subtitle { max-width: 30rem; color: rgba(255,255,255,.82); font-size: clamp(.96rem, 1.25vw, 1.08rem); line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.35rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 2.85rem; border: 0; border-radius: 8px; padding: .7rem 1rem; font-weight: 800; text-decoration: none; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, color .18s ease, background-color .18s ease, border-color .18s ease; }
.button:hover, .button:focus-visible { transform: translateY(-2px); box-shadow: 0 .85rem 1.5rem rgba(0,0,0,.3); outline: none; }
.button.primary { color: var(--black); background: var(--gold); }
.button.secondary { color: var(--white); border: 1px solid rgba(231,185,63,.5); background: rgba(5,6,8,.42); }
.button.secondary:hover, .button.secondary:focus-visible { color: var(--gold); border-color: var(--gold); }

.content-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1rem; }
.content-card, .panel { border: 1px solid var(--line); border-radius: 8px; padding: clamp(1rem, 2.5vw, 1.35rem); background: rgba(5,6,8,.56); box-shadow: 0 1rem 2rem rgba(0,0,0,.22); transition: background-color .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease; }
.content-card:hover, .content-card:focus-within, .content-card[data-info-active="true"], .panel:hover, .panel:focus-within, .panel[data-info-active="true"], .philosophy-item:hover, .philosophy-item:focus-within, .philosophy-item[data-info-active="true"], .side-toggle:hover, .side-toggle:focus-within, .side-toggle[data-info-active="true"], .terminal-panel:hover, .terminal-panel:focus-within, .terminal-panel[data-info-active="true"] { background: #000000 !important; background-color: #000000 !important; border-color: rgba(231,185,63,.75); box-shadow: 0 1rem 2.4rem rgba(0,0,0,.42), 0 0 1.2rem rgba(231,185,63,.14); transform: translateY(-1px); outline: none; }
.manifesto { grid-column: span 2; }
.offers-card { grid-column: span 3; }
.pulse-row { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.offer-track { display: flex; gap: .75rem; overflow-x: auto; padding-bottom: .25rem; }
.offer-track span { flex: 0 0 auto; border: 1px solid rgba(231,185,63,.32); border-radius: 8px; padding: .7rem .85rem; color: var(--gold); }
.package-carousel { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .75rem; min-height: clamp(19rem, 34vw, 29rem); overflow: hidden; }
.package-track { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .85rem; align-items: stretch; }
.package-slide { display: none; place-items: center; gap: .6rem; min-width: 0; text-align: center; text-decoration: none; color: var(--gold); opacity: 0; transition: opacity .45s ease, transform .45s ease; transform: scale(.96); }
.package-slide.is-visible { display: grid; opacity: 1; transform: scale(1); }
.package-slide img { width: min(100%, 15rem); max-height: 20rem; aspect-ratio: 4 / 5; object-fit: cover; border: 1px solid rgba(231,185,63,.38); border-radius: 8px; box-shadow: 0 1rem 2.4rem rgba(0,0,0,.42), 0 0 1.25rem rgba(231,185,63,.2); }
.package-slide span { font-weight: 800; }
.carousel-control { width: 2.45rem; height: 2.45rem; border: 1px solid rgba(231,185,63,.55); border-radius: 999px; color: var(--gold); background: rgba(5,6,8,.74); }
.carousel-control:hover, .carousel-control:focus-visible { color: var(--black); background: var(--gold); outline: none; }
.philosophy-stack { display: grid; gap: 1rem; }
.philosophy-item { scroll-margin-top: 5rem; }
.philosophy-item summary { cursor: pointer; color: var(--gold); font-weight: 800; font-size: 1.15rem; }
.philosophy-item[open] { animation: reveal .22s ease; }
@keyframes reveal { from { opacity: .7; transform: translateY(.25rem); } to { opacity: 1; transform: none; } }
.form-grid { display: grid; gap: .8rem; max-width: 26rem; margin-inline: auto; }
.form-grid label { display: grid; gap: .35rem; color: var(--muted); text-align: left; }
input, textarea, select { width: 100%; min-height: 2.75rem; border: 1px solid rgba(231,185,63,.35); border-radius: 8px; padding: .65rem .75rem; color: var(--white); background: rgba(5,6,8,.62); }
textarea { min-height: 7rem; resize: vertical; }
.terminal-shell { display: grid; grid-template-columns: 18rem minmax(0,1fr); gap: 1rem; min-height: calc(100svh - 8rem); }
.side-toggle, .terminal-panel { border: 1px solid var(--line); border-radius: 8px; padding: 1rem; background: rgba(5,6,8,.72); transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.active-tier-visual { margin: 1rem 0; }
.active-tier-visual img { width: 100%; max-height: 15rem; object-fit: cover; border: 1px solid rgba(231,185,63,.35); border-radius: 8px; }
.active-tier-visual figcaption { margin-top: .4rem; color: var(--gold); font-weight: 800; }
.terminal-top { display: flex; justify-content: space-between; gap: 1rem; align-items: center; margin-bottom: 1rem; }
.pulse-logo { display: grid; place-items: center; min-height: 10rem; border: 1px solid rgba(22,200,239,.2); border-radius: 8px; background: radial-gradient(circle, rgba(22,200,239,.16), transparent 65%); animation: pulse 1.7s ease-in-out infinite; }
.pulse-logo img { width: 7rem; opacity: .42; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 rgba(22,200,239,0); } 50% { box-shadow: 0 0 2rem rgba(22,200,239,.22); } }
.profit { color: var(--blue); }
.loss { color: var(--red); }
.back-arrow { display: inline-flex; align-items: center; justify-content: center; width: 2.35rem; height: 2.35rem; margin-bottom: 1rem; border: 1px solid rgba(231,185,63,.55); border-radius: 999px; color: var(--white); text-decoration: none; background: rgba(5,6,8,.48); }

.site-footer { position: fixed; right: 0; bottom: 0; left: 0; z-index: 9; color: var(--white); background: rgba(5,6,8,.9); border-top: 1px solid rgba(231,185,63,.22); }
.footer-bar { min-height: 3.25rem; display: grid; place-items: center; padding: .65rem 1rem; text-align: center; font-size: .9rem; }
.footer-expanded { display: none; padding: 1rem clamp(1rem, 4vw, 3rem); max-height: 42svh; overflow-y: auto; }
.site-footer.is-open .footer-expanded { display: grid; gap: 1rem; }
.footer-toggle { position: fixed; left: 1rem; bottom: .55rem; z-index: 11; min-height: 2.15rem; border: 1px solid rgba(231,185,63,.55); border-radius: 999px; padding: .35rem .75rem; color: var(--gold); background: rgba(5,6,8,.92); }
.footer-toggle[aria-expanded="true"] { color: var(--black); background: var(--gold); }
.footer-links { display: flex; justify-content: center; flex-wrap: wrap; gap: .55rem 1rem; }
.footer-links a { color: var(--white); text-decoration-color: rgba(231,185,63,.72); text-underline-offset: .22rem; }
.footer-links a:hover, .footer-links a:focus-visible { color: var(--gold); outline: none; }
.footer-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1rem; }

@media (max-width: 760px) {
  :root { --footer-space: 3.25rem; }
  body[data-page="home"], body[data-page="philosophy"], body[data-page="academy"], body[data-page="contact"], body[data-page="join"], body[data-page="legal"] { background-attachment: fixed; background-position: center top; background-size: auto 88svh; text-align: center; }
  .topbar { align-items: flex-start; padding: .65rem 1rem; }
  .brand-mark img { width: 2.55rem; height: 2.55rem; }
  .primary-nav { min-width: min(14rem,86vw); max-height: min(72svh,24rem); overflow-y: auto; }
  .top-cta { font-size: .84rem; min-height: 2.15rem; padding: .35rem .65rem; }
  .page-shell { padding: 0 1rem 1rem; }
  .home-hero, .page-hero { min-height: calc(100svh - 5rem); align-items: start; padding-top: 58svh; }
  .hero-symbols::before, .hero-symbols::after { display: none; }
  .hero-copy { max-width: min(19rem,84vw); margin-inline: auto; text-align: center; }
  h1 { max-width: 18rem; margin-inline: auto; font-size: clamp(1.65rem,9.5vw,2.45rem); line-height: 1.02; }
  .hero-subtitle { max-width: 17rem; margin-inline: auto; font-size: .86rem; line-height: 1.45; }
  .hero-actions { display: grid; width: min(17rem,100%); margin: 1rem auto 0; }
  .button { width: 100%; min-height: 2.7rem; }
  .content-grid, .footer-grid, .terminal-shell { grid-template-columns: 1fr; }
  .package-carousel { grid-template-columns: 1fr; min-height: 25rem; }
  .package-track { grid-template-columns: 1fr; }
  .package-slide img { max-height: 21rem; }
  .carousel-control { justify-self: center; }
  .manifesto, .offers-card { grid-column: auto; }
  .site-footer { display: none; }
  .site-footer.is-open { display: block; }
  .footer-bar { font-size: .78rem; padding-left: 5rem; }
  .footer-expanded { text-align: center; max-height: 58svh; }
  .terminal-shell { min-height: calc(100svh - 4rem); }
  .terminal-panel { min-height: 100svh; border-radius: 0; }
}

@media (min-width: 761px) and (max-width: 1120px) {
  .content-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .manifesto, .offers-card { grid-column: span 2; }
}
