/* ============================================================
   NLS Coming Soon v3 — Cinematic Hero Edition
   ============================================================ */

:root {
    --color-primary-black: #0A0A0A;
    --color-surface-dark: #1A1A1A;
    --color-electric-blue: #2563EB;
    --color-blue-light: #3B82F6;
    --color-blue-glow: rgba(37, 99, 235, 0.15);
    --color-off-white: #FAFAFA;
    --color-gray-neutral: #6B6B6B;
    --color-gray-light: #9A9A9A;

    --header-height: 64px;
    --max-width: 1200px;
}

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

html { scroll-behavior: smooth; }

body {
    background-color: var(--color-primary-black);
    color: var(--color-off-white);
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
img, svg, video { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }

::selection { background: var(--color-electric-blue); color: var(--color-off-white); }

.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--color-electric-blue);
    color: var(--color-off-white);
    padding: 0.75rem 1rem;
    z-index: 1000;
    transition: top 0.2s ease;
}
.skip-link:focus { top: 0; }

/* ============================================================
   HEADER
   ============================================================ */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    z-index: 100;
    background: rgba(10, 10, 10, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    opacity: 0;
    transform: translateY(-12px);
    animation: fadeDown 0.6s ease-out 0.2s forwards;
}

.header__inner {
    max-width: var(--max-width);
    height: 100%;
    margin: 0 auto;
    padding: 0 clamp(1rem, 3vw, 2rem);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.header__logo { display: flex; align-items: center; height: 32px; }
.header__logo svg { height: 32px; width: auto; }

.lang-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 1.2px;
    color: var(--color-gray-light);
}
.lang-toggle a {
    padding: 0.4rem 0.6rem;
    border-radius: 6px;
    transition: color 0.2s ease, background 0.2s ease;
}
.lang-toggle a:hover { color: var(--color-off-white); background: rgba(255,255,255,0.05); }
.lang-toggle a.is-active { color: var(--color-off-white); }
.lang-toggle a:focus-visible { outline: 2px solid var(--color-electric-blue); outline-offset: 2px; }
.lang-toggle__sep { color: rgba(255,255,255,0.2); }

/* ============================================================
   HERO
   ============================================================ */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: calc(var(--header-height) + 2rem) 1.5rem 6rem;
}

.hero__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    pointer-events: none;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        radial-gradient(ellipse at center, transparent 0%, rgba(10,10,10,0.55) 80%, rgba(10,10,10,0.9) 100%),
        linear-gradient(180deg, rgba(10,10,10,0.4) 0%, rgba(10,10,10,0.75) 100%);
    pointer-events: none;
}

.hero__content {
    position: relative;
    z-index: 10;
    max-width: 880px;
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 1.1rem;
    padding: 0;
    border: 0;
    background: transparent;
    border-radius: 0;
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--color-off-white);
    letter-spacing: 0.22em;
    text-transform: none;
    opacity: 1;
    transform: none;
}
.hero__badge-dot {
    width: 36px;
    height: 1px;
    background: var(--color-off-white);
    border-radius: 0;
    opacity: 0;
    transform: scaleX(0);
    transform-origin: left center;
    animation: nlsLineGrow 0.55s cubic-bezier(0.22, 0.8, 0.24, 1) 0.25s forwards;
}
.hero__badge-text {
    display: inline-block;
    position: relative;
    background: linear-gradient(
        110deg,
        var(--color-off-white) 0%,
        var(--color-off-white) 42%,
        rgba(255, 255, 255, 1) 50%,
        var(--color-off-white) 58%,
        var(--color-off-white) 100%
    );
    background-size: 280% 100%;
    background-position: 110% 0;
    -webkit-background-clip: text;
            background-clip: text;
    color: transparent;
    clip-path: polygon(0% 0%, 0% 0%, -12% 100%, -12% 100%);
    animation:
        nlsMaskWipe 0.75s cubic-bezier(0.65, 0, 0.35, 1) 0.65s forwards,
        nlsShimmer 1.4s cubic-bezier(0.4, 0, 0.2, 1) 1.85s 1 forwards;
}

@keyframes nlsLineGrow {
    0%   { opacity: 0;    transform: scaleX(0); }
    100% { opacity: 0.55; transform: scaleX(1); }
}
@keyframes nlsMaskWipe {
    0%   { clip-path: polygon(0% 0%, 0% 0%, -12% 100%, -12% 100%); }
    100% { clip-path: polygon(0% 0%, 112% 0%, 100% 100%, -12% 100%); }
}
@keyframes nlsShimmer {
    0%   { background-position: 110% 0; }
    100% { background-position: -110% 0; }
}

.hero__h1 {
    font-family: 'Sora', sans-serif;
    font-weight: 800;
    font-size: clamp(2.5rem, 7vw, 6rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
    color: var(--color-off-white);
    max-width: 14ch;
}
.hero__h1-line { display: block; }

.hero__h1-word {
    display: inline-block;
    opacity: 0;
    filter: blur(8px);
    transform: translateY(8px);
    animation: blurFocus 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: calc(0.6s + var(--word-i, 0) * 0.08s);
}

@keyframes blurFocus {
    from { opacity: 0; filter: blur(8px); transform: translateY(8px); }
    to   { opacity: 1; filter: blur(0);    transform: translateY(0); }
}

.hero__h1-accent {
    background: linear-gradient(90deg, #2563EB, #3B82F6, #2563EB);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gradientShift 3s ease-in-out infinite;
}
.hero__h1-accent .hero__h1-word {
    background: inherit;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero__subtitle {
    font-size: clamp(1rem, 1.7vw, 1.25rem);
    line-height: 1.55;
    color: var(--color-gray-light);
    max-width: 540px;
    font-weight: 400;
    opacity: 0;
    transform: translateY(16px);
    animation: fadeUp 0.6s ease-out 1s forwards;
}

/* ---- Countdown ---- */

.countdown {
    display: inline-flex;
    align-items: center;
    gap: clamp(0.4rem, 1.2vw, 0.85rem);
    justify-content: center;
    padding: 0.65rem 1rem;
    background: rgba(10, 10, 10, 0.35);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    opacity: 0;
    transform: translateY(16px);
    animation: fadeUp 0.6s ease-out 1.1s forwards;
}

.countdown__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    min-width: 64px;
    padding: 0.25rem 0.4rem;
    background: transparent;
    border: none;
    border-radius: 0;
}

.countdown__number {
    font-family: 'Sora', sans-serif;
    font-weight: 800;
    font-size: clamp(1.7rem, 3.6vw, 2.5rem);
    letter-spacing: -0.03em;
    color: var(--color-off-white);
    line-height: 1;
    font-variant-numeric: tabular-nums;
    will-change: transform, opacity;
}

.countdown__number.is-flipping {
    animation: digitFlip 320ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes digitFlip {
    0%   { opacity: 1; transform: translateY(0)    scale(1); }
    40%  { opacity: 0; transform: translateY(-30%) scale(0.92); }
    41%  {              transform: translateY(30%)  scale(0.92); }
    100% { opacity: 1; transform: translateY(0)    scale(1); }
}

.countdown__label {
    font-size: 0.62rem;
    font-weight: 600;
    color: var(--color-gray-neutral);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    opacity: 0.75;
}

.countdown__sep {
    font-family: 'Sora', sans-serif;
    font-weight: 800;
    font-size: clamp(1.4rem, 3vw, 2.1rem);
    color: var(--color-off-white);
    line-height: 1;
    align-self: flex-start;
    margin-top: 0.55rem;
    animation: colonBlink 1.1s ease-in-out infinite;
}

@keyframes colonBlink {
    0%, 45%   { opacity: 0.85; }
    55%, 100% { opacity: 0.25; }
}

/* ---- CTA ---- */

.cta-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    margin-top: 0.5rem;
    opacity: 0;
    transform: translateY(16px);
    animation: fadeUp 0.6s ease-out 1.2s forwards;
}

.cta-primary {
    position: relative;
    isolation: isolate;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    padding: 1.15rem 2.4rem;
    background: var(--color-electric-blue);
    color: var(--color-off-white);
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    font-size: 1.02rem;
    letter-spacing: -0.2px;
    border-radius: 14px;
    box-shadow: 0 10px 28px -8px rgba(37, 99, 235, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.cta-primary::before {
    content: '';
    position: absolute;
    inset: -22px -32px;
    background: radial-gradient(closest-side, rgba(37, 99, 235, 0.55), transparent 70%);
    filter: blur(22px);
    border-radius: 999px;
    z-index: -1;
    opacity: 0.55;
    pointer-events: none;
    animation: ctaGlow 3.6s ease-in-out infinite;
}
@keyframes ctaGlow {
    0%, 100% { opacity: 0.45; transform: scale(0.96); }
    50%      { opacity: 0.85; transform: scale(1.06); }
}
.cta-primary:hover {
    background: var(--color-blue-light);
    transform: translateY(-2px);
    box-shadow: 0 14px 36px -8px rgba(37, 99, 235, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.cta-primary:focus-visible {
    outline: 2px solid var(--color-off-white);
    outline-offset: 4px;
}
.cta-primary svg { width: 18px; height: 18px; }
.cta-primary__emoji {
    font-size: 1.1em;
    line-height: 1;
    display: inline-block;
}

.cta-features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem 1.4rem;
}
.cta-features__item {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--color-gray-neutral);
    letter-spacing: 0.1px;
    position: relative;
}
.cta-features__item + .cta-features__item::before {
    content: '';
    position: absolute;
    left: -0.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--color-gray-neutral);
    opacity: 0.4;
}
.cta-features__item svg {
    width: 14px;
    height: 14px;
    color: var(--color-electric-blue);
    flex-shrink: 0;
}
.cta-features__item span { white-space: nowrap; }

/* ============================================================
   SECTION: WHAT'S COMING
   ============================================================ */

.section {
    padding: clamp(4rem, 10vw, 8rem) 1.5rem;
    position: relative;
}

.section__inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

.section__header { text-align: center; margin-bottom: 4rem; }

.section__title {
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--color-off-white);
    max-width: 20ch;
    margin: 0 auto;
}

.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.feature-card {
    padding: 2rem;
    background: var(--color-surface-dark);
    border: 1px solid rgba(37, 99, 235, 0.08);
    border-radius: 16px;
    transition: transform 0.4s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    transform-style: preserve-3d;
    will-change: transform;
}

.feature-card:hover {
    border-color: rgba(37, 99, 235, 0.4);
    box-shadow: 0 20px 40px -20px rgba(37, 99, 235, 0.4);
}

.feature-card__icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--color-electric-blue);
    background: rgba(37, 99, 235, 0.08);
    border-radius: 12px;
}
.feature-card__icon svg { width: 24px; height: 24px; }

.feature-card__title {
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    font-size: 1.35rem;
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: var(--color-off-white);
    margin-bottom: 0.75rem;
}

.feature-card__sub {
    color: var(--color-gray-light);
    font-size: 0.95rem;
    line-height: 1.55;
}

/* ============================================================
   SECTION: MARQUEE (audiences)
   ============================================================ */

.audiences { padding-bottom: clamp(4rem, 10vw, 8rem); }

.marquee {
    margin-top: 3rem;
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}
.marquee__track {
    display: flex;
    gap: 3rem;
    animation: marqueeScroll 40s linear infinite;
    width: max-content;
}
.marquee:hover .marquee__track { animation-play-state: paused; }

.marquee__item {
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    color: var(--color-gray-light);
    letter-spacing: -0.02em;
    white-space: nowrap;
    transition: color 0.3s ease;
}
.marquee__item:hover { color: var(--color-off-white); }
.marquee__dot {
    color: var(--color-electric-blue);
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    align-self: center;
}

/* ============================================================
   SECTION: LAUNCH PARTNERS
   ============================================================ */

.launch-partners {
    text-align: center;
    background:
        radial-gradient(ellipse 60% 50% at center, rgba(37, 99, 235, 0.04) 0%, transparent 70%);
    padding: clamp(5rem, 10vw, 8rem) 1.5rem;
}

.launch-partners__badge {
    display: inline-flex;
    align-items: center;
    gap: 1.1rem;
    padding: 0;
    border: 0;
    background: transparent;
    border-radius: 0;
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--color-off-white);
    letter-spacing: 0.22em;
    text-transform: none;
    margin-bottom: 1.75rem;
}
/* Override the auto-fire animation so partners badge waits for scroll-in */
.launch-partners__badge .hero__badge-dot {
    animation: none;
    opacity: 0;
    transform: scaleX(0);
}
.launch-partners__badge .hero__badge-text {
    animation: none;
    clip-path: polygon(0% 0%, 0% 0%, -12% 100%, -12% 100%);
}
/* Fire when section scrolls into view */
.launch-partners.is-visible .hero__badge-dot {
    animation: nlsLineGrow 0.55s cubic-bezier(0.22, 0.8, 0.24, 1) 0.15s forwards;
}
.launch-partners.is-visible .hero__badge-text {
    animation:
        nlsMaskWipe 0.75s cubic-bezier(0.65, 0, 0.35, 1) 0.55s forwards,
        nlsShimmer 1.4s cubic-bezier(0.4, 0, 0.2, 1) 1.75s 1 forwards;
}

.launch-partners__body {
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    line-height: 1.5;
    color: var(--color-gray-light);
    max-width: 540px;
    margin: 0 auto 2.25rem;
}

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
    background: var(--color-primary-black);
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding: 4rem 1.5rem 3rem;
    text-align: center;
}
.footer__logo {
    display: flex;
    justify-content: center;
    margin: 0 auto 1.25rem;
    opacity: 0.9;
}
.footer__logo svg { height: 28px; width: auto; display: block; }
.footer__tagline {
    font-family: 'Sora', sans-serif;
    font-style: italic;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--color-gray-light);
    margin-bottom: 2rem;
}
.footer__legal {
    font-size: 0.75rem;
    color: var(--color-gray-neutral);
    margin-bottom: 0.5rem;
}
.footer__links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.75rem;
    color: var(--color-gray-neutral);
}
.footer__links a { transition: color 0.2s ease; }
.footer__links a:hover { color: var(--color-off-white); }
.footer__links a:focus-visible { outline: 2px solid var(--color-electric-blue); outline-offset: 2px; }
.footer__links span { opacity: 0.4; }

/* ============================================================
   ANIMATIONS
   ============================================================ */

[data-animate] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
[data-animate].is-visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeDown {
    from { opacity: 0; transform: translateY(-12px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.2); }
}
@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}
@keyframes marqueeScroll {
    to { transform: translateX(-50%); }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1023px) {
    .features { grid-template-columns: repeat(2, 1fr); }
    .features .feature-card:last-child { grid-column: 1 / -1; max-width: 50%; margin: 0 auto; width: 100%; }
}

@media (max-width: 767px) {
    .features { grid-template-columns: 1fr; }
    .features .feature-card:last-child { max-width: none; }
    .countdown { padding: 0.5rem 0.6rem; }
    .countdown__item { min-width: 52px; padding: 0.2rem 0.25rem; }
    .countdown__number { font-size: 1.55rem; }
    .countdown__label { font-size: 0.55rem; letter-spacing: 1.2px; }
    .countdown__sep { font-size: 1.35rem; margin-top: 0.35rem; }
    .cta-primary { padding: 1rem 1.8rem; font-size: 0.95rem; }
    .cta-features { gap: 0.4rem 1.1rem; }
    .cta-features__item { font-size: 0.75rem; }
    .cta-features__item + .cta-features__item::before { left: -0.6rem; }
    .hero { padding: calc(var(--header-height) + 1.5rem) 1.25rem 4rem; }
    .hero__content { gap: 1.5rem; }
}

@media (max-width: 479px) {
    .hero__h1 { font-size: clamp(2.25rem, 11vw, 2.75rem); }
    .countdown { gap: 0.25rem; padding: 0.45rem 0.5rem; }
    .countdown__item { min-width: 46px; }
    .countdown__sep { font-size: 1.2rem; }
    .marquee__track { gap: 2rem; }
}

/* ============================================================
   PREFERS REDUCED MOTION
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
    .hero__video { display: none; }
    .hero {
        background-color: var(--color-primary-black);
        background-image: url('/assets/video/hero/nls-hero-poster.jpg');
        background-size: cover;
        background-position: center;
    }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    [data-animate] { opacity: 1; transform: none; }
}
