/* ==========================================================================
   Bubble Ninja Reborn — landing page
   Depends on theme.css for tokens and shared atoms.
   ========================================================================== */

body.nw-landing { display: flex; flex-direction: column; min-height: 100vh; }
body.nw-landing.nav-open { overflow: hidden; }

/* --------------------------------------------------------------------------
   Navbar
   -------------------------------------------------------------------------- */
#navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px clamp(16px, 4vw, 42px);
    border-bottom: 1px solid transparent;
    transition: background .3s ease, border-color .3s ease, padding .3s ease;
}
#navbar.scrolled {
    padding-top: 9px;
    padding-bottom: 9px;
    border-bottom-color: var(--line);
    background: rgba(5, 8, 17, .88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.nb-brand { display: flex; align-items: center; gap: 12px; color: inherit; }
.nb-logo {
    width: auto;
    height: 46px;
    filter: drop-shadow(0 3px 12px rgba(255, 138, 31, .40));
    transition: height .3s ease;
}
#navbar.scrolled .nb-logo { height: 38px; }

.nb-title {
    font-family: var(--font-disp);
    font-weight: 700;
    font-size: 16px;
    letter-spacing: .10em;
    line-height: 1.1;
    background: linear-gradient(92deg, var(--gold), var(--flame) 60%, var(--chakra));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.nb-sub {
    font-size: 11px;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--muted);
}

.nb-nav { display: flex; align-items: center; gap: 6px; }
.nb-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 15px;
    border-radius: 9px;
    color: var(--text-2);
    font-size: 14px;
    font-weight: 500;
    transition: color .2s, background .2s;
}
.nb-link:hover { color: #fff; background: rgba(63, 193, 255, .12); }

.nb-right { display: flex; align-items: center; gap: 12px; }
.nb-cta {
    --cut: 9px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--gold), var(--flame) 60%, var(--flame-2));
    color: #2a1400;
    font-family: var(--font-disp);
    font-weight: 700;
    font-size: 14px;
    clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
    transition: transform .18s, filter .18s;
}
.nb-cta:hover { transform: translateY(-2px); filter: brightness(1.08); }

/* burger */
#nb-burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    padding: 0 10px;
    border: 1px solid var(--line-2);
    border-radius: 9px;
    background: rgba(10, 18, 34, .70);
    cursor: pointer;
}
#nb-burger span {
    display: block;
    height: 2px;
    background: var(--chakra);
    border-radius: 2px;
    transition: transform .25s ease, opacity .2s ease;
}
#nb-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
#nb-burger.open span:nth-child(2) { opacity: 0; }
#nb-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* mobile drawer */
#mobile-nav {
    position: fixed;
    inset: 0;
    z-index: 29;
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    padding: 80px 24px 40px;
    background: rgba(4, 6, 13, .96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
#mobile-nav.open { display: flex; }
.mnav-link, .mnav-cta {
    display: block;
    padding: 15px 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(10, 18, 34, .70);
    color: var(--text);
    font-family: var(--font-disp);
    font-size: 16px;
    text-align: center;
}
.mnav-cta {
    border: 0;
    background: linear-gradient(135deg, var(--gold), var(--flame));
    color: #2a1400;
    font-weight: 700;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
#hero {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 100svh;
    padding: 130px clamp(16px, 5vw, 40px) 90px;
    text-align: center;
}

.hero-inner {
    width: 100%;
    max-width: 860px;
    display: grid;
    justify-items: center;
    gap: 20px;
}

.hero-logo {
    width: min(560px, 84vw);
    height: auto;
    filter: drop-shadow(0 12px 44px rgba(255, 122, 24, .38))
            drop-shadow(0 0 90px rgba(63, 193, 255, .28));
    animation: nw-float 6s ease-in-out infinite;
}
@keyframes nw-float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-12px); }
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 18px;
    border: 1px solid var(--line-2);
    border-radius: 999px;
    background: rgba(10, 20, 40, .60);
    font-family: var(--font-disp);
    font-size: 12px;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--chakra);
}

.hero-title { display: grid; gap: 6px; }
.hero-title .line1 {
    display: block;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: clamp(17px, 2.4vw, 24px);
    color: var(--text-2);
}
.hero-title .line2 {
    display: block;
    font-family: var(--font-disp);
    font-weight: 700;
    font-style: italic;
    font-size: clamp(34px, 7vw, 68px);
    letter-spacing: .02em;
    line-height: 1.05;
    background: linear-gradient(96deg, #fff 0%, var(--gold) 38%, var(--flame) 60%, var(--chakra) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 4px 26px rgba(255, 138, 31, .30));
}

.hero-sub { font-size: 16px; color: var(--text-2); max-width: 620px; }
.hero-sub strong { color: var(--gold); }

.hero-btns { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 6px; }
.hbtn {
    --cut: 11px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    font-family: var(--font-disp);
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    border: 0;
    clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
    transition: transform .18s, filter .18s, box-shadow .18s;
}
.hbtn:hover { transform: translateY(-3px); filter: brightness(1.08); }
.hbtn-fire {
    background: linear-gradient(135deg, var(--gold), var(--flame) 55%, var(--flame-2));
    color: #2a1400;
}
.hbtn-ice {
    background: rgba(10, 22, 44, .78);
    border: 1px solid var(--line-2);
    color: var(--text);
}
.hbtn-ice:hover { border-color: var(--chakra); box-shadow: var(--glow-blue); }

/* scroll cue */
.hero-cue {
    position: absolute;
    left: 50%;
    bottom: 26px;
    transform: translateX(-50%);
    display: grid;
    justify-items: center;
    gap: 6px;
    font-size: 11px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--muted);
}
.hero-cue i {
    display: block;
    width: 1px;
    height: 34px;
    background: linear-gradient(180deg, var(--chakra), transparent);
    animation: nw-cue 1.9s ease-in-out infinite;
}
@keyframes nw-cue {
    0%, 100% { opacity: .25; transform: scaleY(.6); }
    50%      { opacity: 1;   transform: scaleY(1); }
}

/* --------------------------------------------------------------------------
   Content sections
   -------------------------------------------------------------------------- */
.nw-section {
    width: 100%;
    max-width: var(--shell);
    margin: 0 auto;
    padding: clamp(56px, 8vw, 96px) clamp(16px, 5vw, 40px);
}
.nw-section__head { display: grid; gap: 12px; margin-bottom: 34px; }
.nw-section__title {
    font-family: var(--font-disp);
    font-size: clamp(24px, 3.6vw, 38px);
    letter-spacing: .01em;
}
.nw-section__title em {
    font-style: italic;
    background: linear-gradient(96deg, var(--gold), var(--flame) 70%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.nw-section__lead { color: var(--muted); max-width: 640px; font-size: 15px; }

/* feature cards */
.nw-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
    gap: 18px;
}
.nw-feature {
    position: relative;
    display: grid;
    gap: 10px;
    padding: 26px 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    overflow: hidden;
    transition: transform .22s, border-color .22s, box-shadow .22s;
}
.nw-feature::after {
    content: "";
    position: absolute;
    inset: auto -30% -60% auto;
    width: 190px;
    height: 190px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(63, 193, 255, .20), transparent 70%);
    opacity: 0;
    transition: opacity .3s;
}
.nw-feature:hover {
    transform: translateY(-5px);
    border-color: var(--line-2);
    box-shadow: 0 18px 44px -22px rgba(0, 0, 0, .9);
}
.nw-feature:hover::after { opacity: 1; }

.nw-feature__glyph {
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: linear-gradient(140deg, rgba(26, 114, 232, .35), rgba(11, 63, 143, .22));
    border: 1px solid var(--line-2);
    font-family: var(--font-disp);
    font-size: 24px;
    color: var(--chakra);
}
.nw-feature h3 { font-size: 17px; }
.nw-feature p { font-size: 13.5px; color: var(--muted); line-height: 1.6; }

/* news teaser */
.nw-newstabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.nw-newstab {
    padding: 8px 18px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(10, 18, 34, .60);
    color: var(--text-2);
    font-family: var(--font-disp);
    font-size: 13px;
    cursor: pointer;
    transition: border-color .2s, color .2s, background .2s;
}
.nw-newstab:hover { border-color: var(--line-2); color: #fff; }
.nw-newstab.on {
    border-color: transparent;
    background: linear-gradient(135deg, var(--gold), var(--flame));
    color: #2a1400;
    font-weight: 700;
}

.nw-newsgrid { display: grid; gap: 14px; }
.nw-newsitem {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-left: 3px solid var(--chakra);
    border-radius: var(--radius);
    background: var(--panel);
    transition: transform .2s, border-color .2s;
}
.nw-newsitem:hover { transform: translateX(5px); border-left-color: var(--gold); }
.nw-newsitem__tag {
    flex: none;
    padding: 4px 11px;
    border-radius: 999px;
    background: rgba(63, 193, 255, .16);
    color: var(--chakra);
    font-family: var(--font-disp);
    font-size: 11px;
    letter-spacing: .1em;
    text-transform: uppercase;
}
.nw-newsitem b { display: block; font-weight: 600; font-size: 14.5px; }
.nw-newsitem small { color: var(--muted); font-size: 12px; }

/* closing call to action */
.nw-cta {
    display: grid;
    justify-items: center;
    gap: 18px;
    padding: clamp(38px, 6vw, 66px) 24px;
    border: 1px solid var(--line-2);
    border-radius: 18px;
    background:
        radial-gradient(90% 130% at 50% 0%, rgba(26, 114, 232, .26), transparent 65%),
        var(--panel);
    text-align: center;
}
.nw-cta h2 { font-size: clamp(22px, 3.4vw, 34px); }
.nw-cta p { color: var(--muted); max-width: 560px; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.nw-footer {
    margin-top: auto;
    padding: 26px clamp(16px, 5vw, 40px);
    border-top: 1px solid var(--line);
    background: rgba(4, 6, 13, .72);
}
.nw-footer__inner {
    max-width: var(--shell);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 13px;
    color: var(--muted);
}
.footer-brand-name {
    font-family: var(--font-disp);
    font-weight: 700;
    color: var(--gold);
    letter-spacing: .06em;
}
.nw-footer__links { display: flex; gap: 18px; flex-wrap: wrap; }
.nw-footer__links a { color: var(--text-2); }
.nw-footer__links a:hover { color: var(--chakra); }

/* --------------------------------------------------------------------------
   Scroll reveal (landing.js adds .visible)
   -------------------------------------------------------------------------- */
.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible { opacity: 1; transform: none; }
.reveal:nth-child(2) { transition-delay: .06s; }
.reveal:nth-child(3) { transition-delay: .12s; }
.reveal:nth-child(4) { transition-delay: .18s; }
.reveal:nth-child(5) { transition-delay: .24s; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
    .nb-nav { display: none; }
    #nb-burger { display: flex; }
    .nb-cta { display: none; }
    .nb-sub { display: none; }
}
@media (max-width: 560px) {
    .hero-btns { flex-direction: column; align-items: stretch; }
    .hbtn { justify-content: center; }
    .nw-newsitem { flex-direction: column; align-items: flex-start; gap: 8px; }
}
