/* ══════════════════════════════════════════════════
   UNS — main.css
   Dark cosmic theme · Syne + DM Sans
   ══════════════════════════════════════════════════ */

/* ── Variables ──────────────────────────────────── */
:root {
    --bg: #080a1a;
    --bg-alt: #0c0e24;
    --surface: #111432;
    --surface-2: #171b3e;
    --border: rgba(225, 225, 255, 0.08);
    --text: #e1e1ff;
    --text-muted: #8080bb;
    --accent: #e8c000;
    --accent-glow: rgba(232, 192, 0, 0.28);
    --accent-2: #e1e1ff;
    --white: #ffffff;

    --font-display: "Syne", sans-serif;
    --font-body: "DM Sans", sans-serif;
    --font-brand: "Pacifico", cursive;

    --nav-h: 72px;
    --section-py: 120px;
    --container: 1160px;
    --radius: 12px;

    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Reset ──────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-weight: 300;
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
#main-content {
    flex: 1;
}

img {
    display: block;
    max-width: 100%;
}
a {
    color: inherit;
    text-decoration: none;
}
ul {
    list-style: none;
}

/* ── Container ──────────────────────────────────── */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 32px;
}
.container--narrow {
    max-width: 720px;
}

/* ══════════════════════════════════════════════════
   NAV
   ══════════════════════════════════════════════════ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: var(--nav-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    background: transparent;
    border-bottom: 1px solid transparent;
}

/* no backdrop-filter here: it would make the nav the containing block of
   the fixed mobile menu and collapse that menu to the nav's height */
.nav.nav--scrolled {
    backdrop-filter: none;
}

.nav__logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav__logo-mark {
    width: 36px;
    height: 36px;
    display: block;
}

.nav__logo-word {
    height: 18px;
    width: auto;
    display: block;
}

.footer__logo-img {
    height: 28px;
    width: auto;
    display: block;
}

.nav__links {
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav__link {
    font-family: var(--font-display);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-muted);
    transition: color 0.2s;
}
.nav__link:hover {
    color: var(--white);
}

.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}
.nav__toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition:
        transform 0.3s,
        opacity 0.3s;
}

/* ══════════════════════════════════════════════════
   HERO
   ══════════════════════════════════════════════════ */
.hero {
    position: relative;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Fixed canvas background */
#universe-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.hero__content {
    position: relative;
    z-index: 2;
    max-width: 820px;
    padding: 0 32px;
    text-align: center;
    animation: fadeUp 1s var(--ease-out) both;
}

.hero__label {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    border: 1px solid rgba(232, 192, 0, 0.4);
    padding: 6px 18px;
    border-radius: 100px;
    margin-bottom: 36px;
    animation: fadeUp 1s 0.1s var(--ease-out) both;
}

.hero__title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(2.25rem, 8vw, 6.5rem);
    line-height: 1;
    letter-spacing: -0.03em;
    color: var(--white);
    margin-bottom: 28px;
}
/* keeps each word's dot on the same line as the word */
.hero__word {
    white-space: nowrap;
}

.hero__title-line {
    display: block;
    animation: fadeUp 1s var(--ease-out) both;
}
.hero__title-line:nth-child(1) {
    animation-delay: 0.15s;
}
.hero__title-line:nth-child(2) {
    animation-delay: 0.25s;
}

.hero__title-line--accent {
    background: linear-gradient(135deg, #e8c000 0%, #e1e1ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* floating dot after each word, as in the U·N·S wordmark. It is a text
   bullet, so it takes the colour of its word: white after "Universe",
   the gradient colour at its position after "Name" and "Service". */
.hero__dot {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.74em;
    line-height: 0;
    margin-left: 0.03em;
    vertical-align: 0.02em;
}

/* wordmark sign-off before the contact section */
.brand-band {
    text-align: center;
}
.brand-band__wordmark {
    display: block;
    width: clamp(240px, 56vw, 620px);
    height: auto;
    margin: 0 auto;
}
.brand-band__tagline {
    margin-top: 28px;
    font-size: 1.125rem;
    color: var(--text-muted);
}

.hero__sub {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 540px;
    margin: 0 auto 44px;
    animation: fadeUp 1s 0.3s var(--ease-out) both;
}

.hero__scroll-hint {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    z-index: 2;
    animation: fadeUp 1.2s 0.8s var(--ease-out) both;
}
.hero__scroll-hint span {
    font-family: var(--font-display);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted);
}
.hero__scroll-line {
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, var(--text-muted), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

/* ══════════════════════════════════════════════════
   BUTTONS
   ══════════════════════════════════════════════════ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: 14px 32px;
    border-radius: 100px;
    transition:
        transform 0.2s var(--ease-out),
        box-shadow 0.2s,
        background 0.2s;
    cursor: pointer;
    border: none;
}

.btn--primary {
    background: var(--accent);
    color: #1b1b58;
    font-weight: 700;
    box-shadow: 0 0 0 0 var(--accent-glow);
}
.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px var(--accent-glow);
}

.btn--ghost {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}
.btn--ghost:hover {
    background: var(--surface);
    transform: translateY(-2px);
}

/* ══════════════════════════════════════════════════
   SECTIONS
   ══════════════════════════════════════════════════ */
.section {
    position: relative;
    z-index: 1;
    padding: var(--section-py) 0;
    background: var(--bg);
}
.section--alt {
    background: linear-gradient(
        to bottom,
        rgba(10, 13, 24, 0.95),
        rgba(10, 13, 24, 0.98)
    );
}

.section__header {
    margin-bottom: 72px;
}
.section__label {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 20px;
}
.section__title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(2rem, 4vw, 3.25rem);
    line-height: 1.15;
    letter-spacing: -0.025em;
    color: var(--white);
}

/* ══════════════════════════════════════════════════
   ABOUT
   ══════════════════════════════════════════════════ */
.about__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about__text p {
    font-size: 1.0625rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.8;
}
.about__text p:last-child {
    margin-bottom: 0;
}

.about__stats {
    display: flex;
    flex-direction: column;
    gap: 40px;
}
.stat {
    padding-left: 28px;
    border-left: 2px solid var(--accent);
}
.stat__number {
    display: block;
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1;
    margin-bottom: 6px;
}
.stat__label {
    font-size: 0.875rem;
    color: var(--text-muted);
    letter-spacing: 0.02em;
}

/* ══════════════════════════════════════════════════
   STEPS
   ══════════════════════════════════════════════════ */
.steps {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 48px 64px;
}

.step {
    padding-top: 24px;
    border-top: 1px solid var(--border);
}
.step__number {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: 16px;
}
.step__title {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 12px;
}
.step__text {
    font-size: 0.9375rem;
    color: var(--text-muted);
    line-height: 1.75;
}

/* ══════════════════════════════════════════════════
   FEATURES
   ══════════════════════════════════════════════════ */
.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.feature {
    background: var(--surface);
    padding: 44px 36px;
    transition: background 0.3s;
}
.feature:hover {
    background: var(--surface-2);
}
.feature__icon {
    font-size: 1.5rem;
    color: var(--accent);
    margin-bottom: 20px;
    line-height: 1;
}
.feature h3 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 12px;
}
.feature p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.75;
}

/* ══════════════════════════════════════════════════
   CONTACT
   ══════════════════════════════════════════════════ */
.contact__intro {
    font-size: 1.0625rem;
    color: var(--text-muted);
    margin-bottom: 48px;
    line-height: 1.8;
}
.contact__links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* ══════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════ */
.footer {
    position: relative;
    z-index: 1;
    border-top: 1px solid rgba(27, 27, 88, 0.15);
    background: #e8c000;
    padding: 32px 0;
}
.footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}
.footer__brand {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1rem;
    color: var(--white);
}
.footer__copy {
    font-size: 0.8125rem;
    color: #1b1b58;
}
.footer__links {
    display: flex;
    gap: 24px;
}
.footer__links a {
    font-size: 0.8125rem;
    color: #1b1b58;
    transition: color 0.2s;
}
.footer__links a:hover {
    color: rgba(27, 27, 88, 0.6);
}

/* ══════════════════════════════════════════════════
   ANIMATIONS
   ══════════════════════════════════════════════════ */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(28px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes scrollPulse {
    0%,
    100% {
        opacity: 0.3;
        transform: scaleY(1);
    }
    50% {
        opacity: 0.8;
        transform: scaleY(1.1);
    }
}

/* Scroll-reveal */
.reveal {
    opacity: 0;
    transition:
        opacity 0.8s var(--ease-out),
        transform 0.8s var(--ease-out);
}
.reveal.visible {
    opacity: 1;
    transform: none;
}

/* ══════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════ */
@media (max-width: 960px) {
    .about__grid {
        grid-template-columns: 1fr;
        gap: 56px;
    }
    .features {
        grid-template-columns: repeat(2, 1fr);
    }
    .steps {
        grid-template-columns: 1fr;
        gap: 36px;
    }
}

@media (max-width: 640px) {
    :root {
        --section-py: 80px;
    }

    .nav {
        padding: 0 20px;
    }
    .nav__links {
        display: none;
        position: fixed;
        inset: var(--nav-h) 0 0 0;
        background: rgba(8, 10, 26, 0.97);
        backdrop-filter: blur(16px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 48px;
    }
    .nav__links.open {
        display: flex;
    }
    .nav__link {
        font-size: 1.25rem;
    }
    .nav__toggle {
        display: flex;
    }

    .features {
        grid-template-columns: 1fr;
    }
    .footer__inner {
        flex-direction: column;
        text-align: center;
    }
}

/* ══════════════════════════════════════════════════
   SIMPLE PAGES (privacy, imprint)
   ══════════════════════════════════════════════════ */
.simple-page {
    min-height: 80dvh;
    padding-top: calc(var(--nav-h) + 60px);
}
.simple-page__title,
.simple-page__body h1 {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(2rem, 5vw, 2.5rem);
    line-height: 1.15;
    color: var(--white);
    margin-bottom: 32px;
    letter-spacing: -0.025em;
}
.simple-page__body h2,
.simple-page__body h3 {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--white);
    line-height: 1.25;
    margin: 40px 0 16px;
}
.simple-page__body h2 { font-size: 1.5rem; }
.simple-page__body h3 { font-size: 1.15rem; }
.simple-page__body ul,
.simple-page__body ol {
    list-style: disc;
    padding-left: 1.4rem;
    margin-bottom: 16px;
}
.simple-page__body ol { list-style: decimal; }
.simple-page__body li { margin-bottom: 8px; }
.simple-page__body li::marker { color: var(--accent); }
.simple-page__body a:not(.btn) { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.simple-page__body code {
    font-size: .9em;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: .05em .35em;
    color: var(--text);
}

/* News list and articles */
.news__list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 8px;
}
.news__item {
    position: relative;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 32px;
    background: var(--surface);
    transition: border-color .2s, transform .2s var(--ease-out);
}
.news__item:hover { border-color: var(--accent); transform: translateY(-2px); }
.news__date {
    display: block;
    color: var(--text-muted);
    font-size: .875rem;
    letter-spacing: .02em;
    margin-bottom: 8px;
}
.news__title {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.25;
    color: var(--white);
    margin-bottom: 12px;
}
/* the whole card is clickable via the title link */
.news__title a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.news__excerpt { color: var(--text-muted); line-height: 1.7; margin-bottom: 16px; }
.news__more { color: var(--accent); font-weight: 600; font-size: .95rem; }
.news__back {
    display: inline-block;
    color: var(--accent);
    font-size: .9rem;
    font-weight: 600;
    margin-bottom: 24px;
}
.simple-page__body p,
.simple-page__body li {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 16px;
}
.simple-page__body strong {
    color: var(--text);
}
