/* =============================================================================
   NEA Platform: the brand theme for the public site.
   Loaded after site.css, blocks.css and pages.css: it re-skins every public page and block in the Next Edge Alliance design language
   (ink and violet depth, gold gradient pills, Bodoni display type with the silver sweep, glowing hero art), taken from the live site's own
   stylesheet. Markup is unchanged; only colour, type, spacing and shape change. No inline styles anywhere (strict content security policy).
   Fonts are self-hosted from /fonts (no third-party request). Interactions are CSS only (details, radio tabs): public pages run no script.
   ============================================================================= */

/* ---- Fonts: the brand typefaces, self-hosted ---- */
@font-face { font-family: "Bodoni 72"; src: url("/fonts/Bodoni-72-Book.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Bodoni 72"; src: url("/fonts/Bodoni-72-Book-Italic.woff") format("woff"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Bodoni 72"; src: url("/fonts/Bodoni-72-Bold.woff") format("woff"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Avenir"; src: url("/fonts/Avenir-Light-200.woff") format("woff"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Avenir"; src: url("/fonts/Avenir-Roman-400.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Avenir"; src: url("/fonts/Avenir-Medium-500.woff") format("woff"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Avenir"; src: url("/fonts/Avenir-Heavy-700.woff") format("woff"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("/fonts/Montserrat-Regular.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("/fonts/Montserrat-SemiBold.woff") format("woff"); font-weight: 600; font-style: normal; font-display: swap; }

/* ---- Tokens ---- */
:root {
    --ink: #0a0a14;
    --ink-soft: #130f2a;
    --navy: #1c1440;
    --navy-2: #241a56;
    --band: #2a1f62;
    --band-2: #3a2a86;
    --indigo: #303ba1;
    --violet: #7b68ee;
    --gold: #d7b859;
    --gold-pill: #e0b84a;
    --gold-light: #e5c77a;
    --gold-deep: #c9a44c;
    --ivory: #f5f2ea;
    --muted: rgba(245, 242, 234, .62);
    --soft: rgba(245, 242, 234, .4);
    --line: rgba(245, 242, 234, .11);
    --line-2: rgba(245, 242, 234, .06);
    --container: 1140px;

    /* Overrides of the earlier foundation tokens, so every older rule picks the brand up */
    --navy-900: var(--ink);
    --navy-800: var(--ink-soft);
    --navy-700: var(--line);
    --ivory-dim: var(--muted);
    --gold-bright: var(--gold-light);
    --max-width: var(--container);
    --font-serif: "Bodoni 72", "Bodoni Moda", Didot, Georgia, serif;
    --font-sans: Montserrat, "Helvetica Neue", Arial, sans-serif;
    --font-body: Avenir, "Avenir Next", "Nunito Sans", "Segoe UI", system-ui, sans-serif;

    /* Fluid type scale for text below the display headings */
    --text-2xs: clamp(12px, .7rem + .22vw, 14px);
    --text-xs: clamp(13px, .756rem + .25vw, 15px);
    --text-sm: clamp(14px, .813rem + .28vw, 16.5px);
    --text-base: clamp(15px, .869rem + .3vw, 18px);
    --text-lg: clamp(17px, .975rem + .38vw, 21px);
}

/* ---- Page ---- */
html { scroll-behavior: smooth; scroll-padding-top: 82px; }
body { background: var(--ink); color: var(--ivory); font-family: var(--font-body); font-weight: 300; font-size: var(--text-base); line-height: 1.7; text-rendering: optimizeLegibility; overflow-x: hidden; }
body::selection, ::selection { background: rgba(215, 184, 89, .3); color: #fff; }
a { color: var(--gold-light); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }
.site-main { position: relative; }

/* ---- Display type: Bodoni, with the brand's silver sweep ---- */
h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 400; line-height: 1.14; letter-spacing: .01em; text-wrap: balance; }
.hero__heading, .stats__heading, .cards__heading, .tabs__heading, .team__heading, .steps__heading, .faq__heading, .callout__heading, .imagetext__heading,
.apply-block__heading, .post-header__title, .legal__title {
    background-image: linear-gradient(90deg, #8b869b 8%, #ffffff 52%, #8b869b 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; padding-bottom: .06em;
}
.hero__heading { font-size: clamp(34px, 5.4vw, 68px); font-weight: 400; line-height: 1.12; }
.stats__heading, .cards__heading, .tabs__heading, .team__heading, .steps__heading, .faq__heading, .callout__heading, .imagetext__heading, .apply-block__heading { font-size: clamp(26px, 3.6vw, 40px); }

/* Micro-labels carry the brand's voice: small, wide-tracked, gold */
.hero__eyebrow, .post-meta__category, .person__role, .legal__updated { font-family: var(--font-sans); font-size: clamp(9px, .5rem + .2vw, 11px); font-weight: 600; letter-spacing: .28em; text-transform: uppercase; color: var(--gold); }

/* ---- Header: a pill navigation over the page, a bordered search pill and a gold call to action ---- */

/* ---- Buttons: pills, gold gradient and outline ---- */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 49px; padding: 0 34px; border: 1px solid transparent; border-radius: 50px; font-family: var(--font-sans); font-size: clamp(11px, .6rem + .22vw, 13px); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; transition: filter .25s ease, background .25s ease, border-color .25s ease, box-shadow .25s ease; }
.button--gold { background: linear-gradient(120deg, #c79e45, #ead084 52%, #cda64c); color: var(--ink); box-shadow: 0 8px 26px rgba(215, 184, 89, .18); }
.button--gold:hover { filter: brightness(1.08); box-shadow: 0 8px 26px rgba(215, 184, 89, .3); background: linear-gradient(120deg, #c79e45, #ead084 52%, #cda64c); }
.button--outline { border-color: rgba(215, 184, 89, .5); color: var(--gold-light); background: transparent; }
.button--outline:hover { border-color: var(--gold); background: rgba(215, 184, 89, .07); }
.button--large { min-height: 56px; padding: 0 40px; }

/* ---- Hero: glow on ink, centred, the brand's art behind it ---- */
.hero { position: relative; overflow: hidden; min-height: min(88vh, 780px); display: flex; align-items: center; padding: 120px 24px 96px; text-align: center; background: var(--ink); }
.hero--plain { min-height: 0; padding: 72px 24px 48px; }
.hero--dark, .hero--image { background: radial-gradient(ellipse 60% 44% at 50% 30%, rgba(66, 44, 150, .42), transparent 68%), var(--ink); }
.hero--dark::before, .hero--image::before { content: ""; position: absolute; inset: 0; background: url("/img/design/home/hero-bg.webp") center/cover no-repeat; opacity: .55; }
.hero__bg { opacity: .8; }
.hero--image::after, .hero--dark::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 10, 20, .55) 0, transparent 26%, transparent 58%, var(--ink) 100%); }
.hero__inner { position: relative; z-index: 2; max-width: 56rem; margin: 0 auto; }
.hero__text { max-width: 68ch; margin: 20px auto 28px; color: var(--muted); letter-spacing: .03em; font-size: var(--text-lg); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.site-main > .hero:first-child { margin-top: -78px; padding-top: 170px; }
.site-main > .hero--plain:first-child { padding-top: 140px; }

/* ---- Stats band: the purple band with gold figures ---- */
.stats { position: relative; overflow: hidden; padding: 40px 24px; border: 0; background: linear-gradient(100deg, var(--band), var(--band-2) 55%, var(--navy-2)); }
.stats::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 12% 130%, rgba(227, 197, 114, .12), transparent 44%), radial-gradient(circle at 88% -30%, rgba(255, 255, 255, .06), transparent 42%); }
.stats__heading { position: relative; z-index: 1; text-align: center; margin: 0 0 24px; }
.stats__list { position: relative; z-index: 1; max-width: var(--container); margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 22px; padding: 0; list-style: none; }
.stats__item { text-align: center; border: 0; }
.stats__value { display: block; font: 400 clamp(28px, 3.4vw, 40px)/1 var(--font-serif); color: var(--gold-light); }
.stats__label { display: block; max-width: 22ch; margin: 8px auto 0; font-family: var(--font-sans); font-size: clamp(9px, .5rem + .22vw, 11.5px); line-height: 1.65; letter-spacing: .11em; text-transform: uppercase; color: rgba(245, 242, 234, .55); }

/* ---- Sections ---- */
.cards, .tabs, .team, .steps, .faq, .imagetext, .callout, .apply-block, .legal { max-width: var(--container); margin-inline: auto; padding: clamp(64px, 8.6vw, 110px) 24px; }
.cards__heading, .tabs__heading, .team__heading, .steps__heading, .faq__heading { text-align: center; margin: 0 0 14px; }
.cards__intro { max-width: 62ch; margin: 0 auto 38px; text-align: center; color: var(--muted); }

/* ---- Cards: dark glass with a gold hairline ---- */
.cards__grid { gap: 20px; }
.card { position: relative; padding: 30px 26px; border: 1px solid var(--line); border-radius: 10px; background: linear-gradient(160deg, rgba(36, 26, 86, .55), rgba(19, 15, 42, .8)); transition: border-color .25s ease, transform .25s ease; }
.card:hover { border-color: rgba(215, 184, 89, .45); transform: translateY(-2px); }
.card__title { font-size: clamp(20px, 1.6vw, 26px); color: var(--ivory); margin: 0 0 10px; }
.card__text { color: var(--muted); }
.card .button { margin-top: 18px; min-height: 40px; padding: 0 22px; }

/* ---- Tabs ---- */
.tabs__tab { border: 1px solid var(--line); border-radius: 50px; background: rgba(48, 59, 161, .12); color: #fff; font-family: var(--font-sans); font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.tabs__radio:checked + .tabs__tab { background: var(--gold-pill); border-color: var(--gold-pill); color: #000; }
.tabs__panel { border: 1px solid var(--line); border-radius: 10px; background: linear-gradient(160deg, rgba(36, 26, 86, .45), rgba(19, 15, 42, .7)); }
.tabs__title { color: var(--ivory); }

/* ---- Steps, FAQ ---- */
.step { border: 1px solid var(--line); border-radius: 10px; background: rgba(19, 15, 42, .6); }
.step::before { color: var(--ink); background: var(--gold); }
.step__title { color: var(--ivory); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__question { font-family: var(--font-serif); font-size: clamp(18px, 1.5vw, 22px); color: var(--ivory); }
.faq__answer { color: var(--muted); }

/* ---- Image and text, callouts, team ---- */
.imagetext__media .figure img, .figure img { border-radius: 10px; }
.callout { text-align: center; }
.callout--accent { border-block: 1px solid rgba(215, 184, 89, .25); background: radial-gradient(ellipse 60% 120% at 50% 0, rgba(66, 44, 150, .3), transparent 70%); }
.person__name { color: var(--ivory); }
.person__photo .figure img { border-radius: 8px; }

/* ---- Quotes and films ---- */
.quote { border-left: 3px solid var(--gold); border-radius: 0 8px 8px 0; background: rgba(19, 15, 42, .6); }
.film__frame { border: 1px solid rgba(215, 184, 89, .35); border-radius: 10px; background: #000; box-shadow: 0 20px 60px rgba(0, 0, 0, .45); }

/* ---- Articles and long text ---- */
.prose { color: rgba(245, 242, 234, .86); }
.prose h2, .prose h3, .prose h4 { color: var(--ivory); }
.prose blockquote { border-left: 3px solid var(--gold); color: var(--gold-light); font-family: var(--font-serif); }
.prose a { color: var(--gold-light); text-decoration-color: rgba(215, 184, 89, .5); }
.post-header__title { font-size: clamp(32px, 4.6vw, 56px); }

/* ---- Footer ---- */
.site-footer { margin-top: 0; padding-block: 36px; border-top: 1px solid var(--line-2); background: var(--ink-soft); color: var(--muted); }
.site-footer__brand { display: block; width: 150px; margin: 0 0 18px; }
.site-footer__links a { color: var(--ivory); text-decoration: none; font-family: var(--font-sans); font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.site-footer__links a:hover { color: var(--gold-light); }

/* ---- Small screens: the nav moves beneath the brand and wraps ---- */
@media (max-width: 900px) {
    .site-main > .hero:first-child { margin-top: -110px; padding-top: 190px; }
}
@media (max-width: 560px) {
    .hero { padding-inline: 18px; }
    .button { padding: 0 26px; }
}

/* =============================================================================
   Page sections written as plain text (the migrated pages): the small lead-in line before a heading is the section's eyebrow, the heading
   takes the silver display style, and the section sits in the brand's wide column.
   ============================================================================= */
.post--site .post-body > .prose { max-width: var(--container); margin-inline: auto; padding: clamp(56px, 7vw, 96px) 24px; }
.prose > p:has(+ h2), .prose > p:has(+ h1), .imagetext__body > p:first-child:has(+ h2) {
    margin: 0 0 10px; font-family: var(--font-sans); font-size: clamp(9px, .5rem + .2vw, 11px); font-weight: 600; letter-spacing: .28em; text-transform: uppercase; color: var(--gold);
}
.prose > h2, .imagetext__body > h2 {
    margin: 0 0 18px; font-size: clamp(26px, 3.6vw, 44px); line-height: 1.14;
    background-image: linear-gradient(90deg, #8b869b 8%, #ffffff 52%, #8b869b 100%); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; padding-bottom: .06em;
}
.prose > h2 + p { font-size: var(--text-lg); color: rgba(245, 242, 234, .78); }
.prose > p { max-width: 70ch; color: var(--muted); }
.prose > p:has(+ h2) { max-width: none; }

/* ---- Image and text: two columns with room to breathe, the image framed with a violet glow ---- */
.imagetext { display: grid; grid-template-columns: 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; position: relative; }
@media (min-width: 860px) {
    .imagetext { grid-template-columns: 1fr 1fr; }
    .imagetext--right .imagetext__media { order: 2; }
}
.imagetext__media .figure { margin: 0; }
.imagetext__media .figure img { width: 100%; border-radius: 12px; box-shadow: 0 0 0 1px rgba(215, 184, 89, .22), 0 30px 80px rgba(48, 59, 161, .35); }
.imagetext__heading { margin: 0 0 14px; }
.imagetext__body { color: var(--muted); }

/* ---- Cards: the featured first card, as on the live site ---- */
.cards--3 .cards__grid > .card:first-child { background: linear-gradient(160deg, #2e2478, rgba(19, 15, 42, .9)); border-color: rgba(215, 184, 89, .35); }
.cards__grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); padding: 0; list-style: none; }

/* ---- Callout: the closing invitation band ---- */
.callout { display: grid; gap: 18px; justify-items: center; }
.callout__text { max-width: 56ch; color: var(--muted); }

/* =============================================================================
   Inner pages: the first hero's height and art follow the page (the class comes from the page address)
   ============================================================================= */
.hero { min-height: min(78vh, 640px); }
.page-home .hero:first-child { min-height: min(88vh, 780px); }
.hero--plain { min-height: 0; }
.hero__heading { font-size: clamp(34px, 5vw, 60px); }
.page-home .hero__heading { font-size: clamp(34px, 5.4vw, 68px); }
.page-about .hero--dark::before, .page-about .hero--image::before { background-image: url("/img/bg/about-hero.webp"); opacity: .75; }
.page-platform .hero--dark::before, .page-platform .hero--image::before, .page-products .hero--dark::before, .page-products .hero--image::before { background-image: url("/img/bg/platform-hero.webp"); opacity: .75; }
.page-invitation .hero--dark::before, .page-invitation .hero--image::before { background-image: url("/img/bg/invitation-hero.webp"); opacity: .8; }
.page-invitation .hero { min-height: 0; padding-bottom: 40px; }
.page-founders .hero--dark::before, .page-founders .hero--image::before, .page-investors .hero--dark::before, .page-investors .hero--image::before { background-image: url("/img/bg/blue-gradient.webp"); opacity: .7; }

/* About: Jupiter crossing behind the title (its black ground drops out against the ink) */
.page-about .hero--dark, .page-about .hero--image { background: url("/img/site/jupiter-ringed.webp") right -6% center / auto 118% no-repeat, radial-gradient(ellipse 60% 44% at 50% 30%, rgba(66, 44, 150, .42), transparent 68%), var(--ink); background-blend-mode: screen, normal, normal; }
.page-about .hero--dark::before, .page-about .hero--image::before { opacity: .55; }
.hero__eyebrow { margin-bottom: 14px; }

/* The small gold line above a block's heading (the Eyebrow field) */
.eyebrow { margin: 0 0 10px; font-family: var(--font-sans); font-size: clamp(9px, .5rem + .2vw, 11px); font-weight: 600; letter-spacing: .28em; text-transform: uppercase; color: var(--gold); }
.cards .eyebrow, .tabs .eyebrow, .team .eyebrow, .steps .eyebrow, .faq .eyebrow, .stats .eyebrow, .callout .eyebrow { text-align: center; }
.stats .eyebrow { position: relative; z-index: 1; }

/* =============================================================================
   Motion and overlays (driven by /js/site.js; every page works with the script off)
   ============================================================================= */
.reveal-pending { opacity: 0; transform: translate3d(0, var(--reveal-y, 26px), 0) scale(.985); filter: blur(6px); }
.reveal-done { opacity: 1; transform: none; filter: blur(0); transition: opacity .7s cubic-bezier(.2, .7, .2, 1) var(--reveal-delay, 0s), transform .7s cubic-bezier(.2, .7, .2, 1) var(--reveal-delay, 0s), filter .7s cubic-bezier(.2, .7, .2, 1) var(--reveal-delay, 0s); }
[data-parallax] { will-change: transform; }
body.no-scroll { overflow: hidden; }
.reduced-motion .reveal-pending, .reduced-motion [data-parallax] { opacity: 1; transform: none; filter: none; transition: none; }
.js .site-header { animation: headerIn .6s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes headerIn { from { transform: translateY(-70px); opacity: 0; } to { transform: none; opacity: 1; } }
.reduced-motion .site-header { animation: none; }

