/* ============================================================
   Lumio — luminous stream portal
   ============================================================ */

:root {
    --bg: #06080F;
    --bg-soft: #0B0F1B;
    --surface: rgba(16, 21, 36, 0.72);
    --line: rgba(148, 163, 205, 0.16);
    --text: #E9EDF7;
    --muted: #98A2BC;
    --aurora-a: #4FE3C1;
    --aurora-b: #7C6CFF;
    --aurora-c: #FF5CA8;
    --gradient: linear-gradient(100deg, var(--aurora-a), var(--aurora-b) 52%, var(--aurora-c));
    --font-display: "Unbounded", "Inter", sans-serif;
    --font-body: "Inter", system-ui, -apple-system, sans-serif;
    --radius-lg: 28px;
    --radius-md: 18px;
    --header-height: 76px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
}

.container {
    width: min(1180px, 92vw);
    margin-inline: auto;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 12px;
    z-index: 100;
    padding: 10px 18px;
    background: var(--aurora-b);
    color: #fff;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
}

.skip-link:focus {
    left: 12px;
}

/* ---------- aurora thread layer ---------- */

.thread-layer {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.5;
}

.thread-svg {
    width: 100%;
    height: 100%;
}

.thread-path {
    filter: drop-shadow(0 0 14px rgba(124, 108, 255, 0.55));
}

.site-header,
main,
.footer {
    position: relative;
    z-index: 1;
}

/* ---------- header ---------- */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    transition: background 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease;
    border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
    background: rgba(6, 8, 15, 0.78);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom-color: var(--line);
}

.navbar {
    width: min(1180px, 92vw);
    margin-inline: auto;
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.brand-mark {
    border-radius: 50%;
}

.brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 20px;
    letter-spacing: 0.04em;
}

.brand-tagline {
    font-size: 12px;
    color: var(--muted);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
    list-style: none;
}

.nav-link {
    position: relative;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    color: var(--muted);
    transition: color 0.25s ease;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 2px;
    background: var(--gradient);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.nav-link:hover,
.nav-link:focus-visible {
    color: var(--text);
}

.nav-link:hover::after,
.nav-link:focus-visible::after {
    transform: scaleX(1);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px;
    background: none;
    border: 1px solid var(--line);
    border-radius: 12px;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    height: 2px;
    border-radius: 2px;
    background: var(--text);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ---------- shared bits ---------- */

.eyebrow {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 16px;
}

.section-heading {
    max-width: 620px;
    margin-bottom: 72px;
}

.section-heading h2 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(28px, 3.6vw, 44px);
    line-height: 1.18;
    margin-bottom: 18px;
}

.section-heading p:not(.eyebrow) {
    color: var(--muted);
}

/* ---------- hero ---------- */

.hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding: calc(var(--header-height) + 40px) 4vw 96px;
}

.hero-media {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.hero-image {
    width: 100%;
    height: 112%;
    object-fit: cover;
    will-change: transform;
}

.hero-scrim {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 55% at 50% 46%, rgba(6, 8, 15, 0) 0%, rgba(6, 8, 15, 0.55) 68%, rgba(6, 8, 15, 0.92) 100%),
        linear-gradient(180deg, rgba(6, 8, 15, 0.55) 0%, rgba(6, 8, 15, 0.18) 34%, rgba(6, 8, 15, 0.96) 100%);
}

.hero-content {
    max-width: 880px;
}

.hero-title {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(72px, 15vw, 220px);
    line-height: 0.98;
    letter-spacing: 0.01em;
    margin: 6px 0 26px;
    background: linear-gradient(180deg, #FFFFFF 12%, #BFC9FF 58%, rgba(124, 108, 255, 0.35) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 90px rgba(124, 108, 255, 0.35);
}

.hero-copy {
    max-width: 560px;
    margin: 0 auto 40px;
    color: #C6CFE4;
    font-size: 18px;
}

.hero-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
}

.primary-action,
.secondary-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 34px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.primary-action {
    background: var(--gradient);
    color: #06080F;
    box-shadow: 0 10px 42px rgba(124, 108, 255, 0.42);
}

.primary-action:hover,
.primary-action:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 16px 54px rgba(255, 92, 168, 0.45);
}

.secondary-action {
    border: 1px solid var(--line);
    color: var(--text);
    background: rgba(11, 15, 27, 0.5);
    backdrop-filter: blur(8px);
}

.secondary-action:hover,
.secondary-action:focus-visible {
    border-color: rgba(124, 108, 255, 0.6);
    transform: translateY(-2px);
}

.hero-scroll-hint {
    position: absolute;
    left: 50%;
    bottom: 34px;
    transform: translateX(-50%);
    width: 26px;
    height: 44px;
    border: 1.5px solid rgba(233, 237, 247, 0.35);
    border-radius: 999px;
}

.hero-scroll-hint span {
    position: absolute;
    left: 50%;
    top: 8px;
    width: 4px;
    height: 9px;
    margin-left: -2px;
    border-radius: 4px;
    background: var(--gradient);
    animation: scroll-hint 1.8s ease-in-out infinite;
}

@keyframes scroll-hint {
    0%, 100% { transform: translateY(0); opacity: 1; }
    55% { transform: translateY(14px); opacity: 0.25; }
}

/* ---------- streams ---------- */

.streams {
    padding: 140px 0 60px;
}

.stream-row {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: clamp(36px, 6vw, 88px);
    margin-bottom: clamp(110px, 14vw, 190px);
}

.stream-row-flip .stream-media {
    order: 2;
}

.stream-row-flip .stream-copy {
    order: 1;
    text-align: right;
}

.stream-media {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--line);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55);
}

.stream-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(79, 227, 193, 0.1), transparent 38%, transparent 66%, rgba(255, 92, 168, 0.12));
    pointer-events: none;
}

.stream-media img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform 0.9s cubic-bezier(0.2, 0.6, 0.2, 1);
}

.stream-row:hover .stream-media img {
    transform: scale(1.045);
}

.stream-copy {
    position: relative;
}

.stream-step {
    position: absolute;
    top: -0.65em;
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(96px, 11vw, 168px);
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(124, 108, 255, 0.35);
    z-index: -1;
    user-select: none;
}

.stream-row:not(.stream-row-flip) .stream-step {
    left: -0.18em;
}

.stream-row-flip .stream-step {
    right: -0.18em;
}

.stream-copy h3 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(24px, 2.6vw, 34px);
    line-height: 1.22;
    margin-bottom: 16px;
}

.stream-copy p:not(.eyebrow) {
    color: var(--muted);
    max-width: 460px;
}

.stream-row-flip .stream-copy p:not(.eyebrow) {
    margin-left: auto;
}

/* ---------- about ---------- */

.about {
    padding: 110px 0 130px;
}

.about-layout {
    max-width: 780px;
    text-align: center;
    padding: clamp(40px, 6vw, 80px) clamp(24px, 5vw, 72px);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.about-layout h2 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(26px, 3.2vw, 40px);
    margin-bottom: 20px;
}

.about-lede {
    color: #C6CFE4;
    font-size: 18px;
}

/* ---------- contact ---------- */

.contact {
    position: relative;
    padding: 130px 0 150px;
    overflow: hidden;
}

.contact-glow {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.contact-glow img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
}

.contact-glow::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, var(--bg) 0%, rgba(6, 8, 15, 0.35) 45%, var(--bg) 100%);
}

.contact-layout .section-heading {
    margin-bottom: 48px;
}

.contact-panel {
    display: flex;
    align-items: center;
    gap: 22px;
    max-width: 560px;
    padding: 26px 32px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(124, 108, 255, 0.35);
    background: var(--surface);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    text-decoration: none;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-panel:hover,
.contact-panel:focus-visible {
    transform: translateY(-3px);
    border-color: rgba(255, 92, 168, 0.55);
    box-shadow: 0 18px 60px rgba(124, 108, 255, 0.3);
}

.contact-orb {
    flex: none;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--gradient);
    box-shadow: 0 0 28px rgba(124, 108, 255, 0.7);
}

.contact-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.contact-label {
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
}

.contact-mail {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(17px, 2.4vw, 22px);
}

.contact-arrow {
    margin-left: auto;
    font-size: 24px;
    color: var(--muted);
    transition: transform 0.3s ease, color 0.3s ease;
}

.contact-panel:hover .contact-arrow {
    transform: translateX(6px);
    color: var(--text);
}

/* ---------- footer ---------- */

.footer {
    border-top: 1px solid var(--line);
    padding: 56px 0;
    background: rgba(6, 8, 15, 0.85);
}

.footer-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.footer-brand {
    display: flex;
    gap: 14px;
    align-items: center;
    color: var(--muted);
    font-size: 14px;
}

.footer-name {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--text);
    font-size: 17px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: var(--muted);
    text-decoration: none;
    font-size: 14px;
    width: fit-content;
    transition: color 0.25s ease;
}

.footer-links a:hover,
.footer-links a:focus-visible {
    color: var(--text);
}

.footer-contact {
    color: var(--muted);
    font-size: 14px;
}

.footer-contact a {
    color: var(--text);
    text-decoration: none;
    border-bottom: 1px solid rgba(124, 108, 255, 0.5);
}

.footer-contact p + p {
    margin-top: 10px;
}

/* ---------- reveal ---------- */

.reveal {
    opacity: 0;
    transform: translateY(34px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.6, 0.2, 1);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- legal pages ---------- */

.legal-main {
    padding: calc(var(--header-height) + 64px) 0 110px;
}

.legal-body {
    max-width: 760px;
}

.legal-body h1 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(30px, 4vw, 44px);
    margin-bottom: 8px;
}

.legal-updated {
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 44px;
}

.legal-body h2 {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 21px;
    margin: 40px 0 12px;
}

.legal-body p,
.legal-body li {
    color: #C0C8DE;
    font-size: 16px;
}

.legal-body ul {
    padding-left: 22px;
    margin-top: 10px;
}

.legal-body a {
    color: var(--text);
    border-bottom: 1px solid rgba(124, 108, 255, 0.5);
    text-decoration: none;
}

/* ---------- responsive ---------- */

@media (max-width: 900px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        padding: 18px 5vw 26px;
        background: rgba(6, 8, 15, 0.96);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--line);
        transform: translateY(-12px);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
    }

    .nav-menu.is-open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-link {
        display: block;
        padding: 10px 0;
        font-size: 17px;
    }

    .stream-row,
    .stream-row-flip {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .stream-row-flip .stream-media {
        order: 0;
    }

    .stream-row-flip .stream-copy {
        order: 1;
        text-align: left;
    }

    .stream-row-flip .stream-copy p:not(.eyebrow) {
        margin-left: 0;
    }

    .streams {
        padding-top: 100px;
    }

    .section-heading {
        margin-bottom: 52px;
    }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }

    .thread-layer {
        opacity: 0.25;
    }
}
