/* ndize.al — header ("ignite" menu) + hero slider ("light it up").
   Night hero, transparent nav over it; on scroll the nav turns into a frosted
   bar with a cloud→fire "fuse" showing scroll progress. */

/* =====================================================================
   HEADER
   ===================================================================== */
.nd-nav2 {
    --nav-ink: #0e2233;
    --nav-muted: #4a5d6e;
    --nav-chip: #d9eefc;
    --nav-chip-ink: #0a6aa8;
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    color: var(--nav-ink);
    transition: background-color .35s ease, box-shadow .35s ease, backdrop-filter .35s ease;
}
/* over the night hero, before scrolling */
.nd-nav2.is-overlay:not(.is-scrolled) {
    --nav-ink: #ffffff;
    --nav-muted: #c6d6e3;
    --nav-chip: rgba(255,255,255,.10);
    --nav-chip-ink: #ffffff;
}
.nd-nav2.is-scrolled, .nd-nav2.is-solid {
    background: rgba(255,255,255,.82);
    -webkit-backdrop-filter: saturate(1.6) blur(16px);
    backdrop-filter: saturate(1.6) blur(16px);
    box-shadow: 0 1px 0 #d5e2ee, 0 12px 32px -18px rgba(14,34,51,.35);
}
[data-theme="dark"] .nd-nav2.is-scrolled, [data-theme="dark"] .nd-nav2.is-solid {
    --nav-ink: #e8f1f8; --nav-muted: #9fb3c4; --nav-chip: #133049; --nav-chip-ink: #7cc8f8;
    background: rgba(11,22,34,.82);
    box-shadow: 0 1px 0 #23384a, 0 12px 32px -18px rgba(0,0,0,.6);
}

.nd-nav2__bar {
    display: flex; align-items: center; gap: 24px;
    height: 88px;
    transition: height .35s ease;
}
.nd-nav2.is-scrolled .nd-nav2__bar { height: 68px; }

/* the fuse: scroll progress, cloud → fire */
.nd-nav2__fuse {
    position: absolute; left: 0; bottom: 0; height: 2px;
    width: 100%;
    /* moved, not resized: a transform needs no layout on every scroll frame */
    transform: translateX(calc((var(--scroll, 0) - 1) * 100%));
    will-change: transform;
    background: linear-gradient(90deg, #38a8f0, #ffc21a 70%, #d9600c);
    opacity: 0; transition: opacity .35s ease;
}
.nd-nav2.is-scrolled .nd-nav2__fuse { opacity: 1; }
.nd-nav2__fuse::after { /* the spark at the tip */
    content: ""; position: absolute; right: -4px; top: -3px;
    width: 8px; height: 8px; border-radius: 50%;
    background: #ffc21a; box-shadow: 0 0 12px 3px rgba(255,194,26,.8);
}

/* brand */
.nd-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--nav-ink); flex: none; }
.nd-logo img { height: 46px; width: auto; display: block; transition: height .35s ease; }
.nd-nav2.is-scrolled .nd-logo img { height: 38px; }
.nd-logo__word {
    font-family: var(--nd-font-display); font-weight: 700; font-size: 26px; letter-spacing: -0.03em; line-height: 1;
    color: var(--nav-ink); transition: color .35s;
}
.nd-logo__word b { color: #38a8f0; font-weight: 700; }
.nd-nav2.is-scrolled .nd-logo__word b, .nd-nav2.is-solid .nd-logo__word b { color: #0a6aa8; }
[data-theme="dark"] .nd-nav2 .nd-logo__word b { color: #7cc8f8; }
.nd-logo__flame { width: 22px; height: 28px; flex: none; }

/* menu */
.nd-menu { flex: 1; display: flex; justify-content: center; }
.nd-menu > ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.nd-menu__item { position: relative; }
.nd-menu__link {
    display: inline-flex; align-items: center; gap: 10px;
    height: 48px; padding: 0 12px 0 6px;
    border: 0; background: transparent; border-radius: 999px;
    color: var(--nav-ink); text-decoration: none;
    font: 500 15px var(--nd-font-sans); cursor: pointer;
    transition: background-color .2s, color .2s;
}
.nd-page .nd-menu__link { color: var(--nav-ink); }
.nd-menu__chip {
    width: 36px; height: 36px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--nav-chip); color: var(--nav-chip-ink);
    transition: background-color .25s, color .25s, transform .35s cubic-bezier(.3,1.6,.5,1), box-shadow .25s;
}
.nd-menu__chip svg { width: 18px; height: 18px; }
.nd-menu__caret { width: 14px; height: 14px; opacity: .7; transition: transform .25s; }
/* ignite */
.nd-menu__link:hover .nd-menu__chip,
.nd-menu__link:focus-visible .nd-menu__chip,
.nd-menu__item.is-open > .nd-menu__link .nd-menu__chip {
    background: #ffc21a; color: #1a1405;
    transform: rotate(-12deg) scale(1.08);
    box-shadow: 0 0 0 4px rgba(255,194,26,.22), 0 6px 18px -4px rgba(217,96,12,.55);
}
.nd-menu__item.is-open > .nd-menu__link .nd-menu__caret { transform: rotate(180deg); }

/* mega panel */
.nd-mega {
    position: absolute; top: calc(100% + 10px); left: 50%;
    width: min(620px, 92vw);
    transform: translate(-50%, 8px) scale(.98); transform-origin: top center;
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity .2s ease, transform .25s ease, visibility 0s linear .25s;
    background: #ffffff; color: #0e2233;
    border: 1px solid #d5e2ee; border-radius: 20px;
    box-shadow: 0 30px 60px -20px rgba(4,18,31,.45);
    padding: 14px;
    display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
}
.nd-mega::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; } /* hover bridge */
.nd-menu__item.is-open > .nd-mega {
    opacity: 1; visibility: visible; pointer-events: auto;
    transform: translate(-50%, 0) scale(1);
    transition: opacity .2s ease, transform .25s ease, visibility 0s;
}
.nd-page .nd-mega__item {
    display: flex; gap: 14px; align-items: flex-start;
    padding: 12px; border-radius: 14px;
    text-decoration: none; color: #0e2233;
    transition: background-color .2s;
}
.nd-page .nd-mega__item:hover, .nd-page .nd-mega__item:focus-visible { background: #f5f9fd; color: #0e2233; }
.nd-mega__tile {
    flex: none; width: 44px; height: 44px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    background: #d9eefc; color: #0a6aa8;
    transition: background-color .25s, color .25s, transform .35s cubic-bezier(.3,1.6,.5,1);
}
.nd-mega__item:hover .nd-mega__tile { background: #ffc21a; color: #1a1405; transform: rotate(-8deg); }
.nd-mega__tile svg { width: 22px; height: 22px; }
.nd-mega__title { display: block; font-weight: 600; font-size: 15px; line-height: 20px; }
.nd-mega__desc { display: block; font-size: 13.5px; line-height: 19px; color: #4a5d6e; margin-top: 2px; }
.nd-mega__foot {
    grid-column: 1 / -1; margin-top: 6px; padding: 14px 16px; border-radius: 14px;
    background: #0b1622; color: #e8f1f8;
    display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 14px;
}
.nd-page .nd-mega__foot a { color: #ffcc3d; font-weight: 600; text-decoration: none; }

/* right side */
.nd-nav2__right { display: flex; align-items: center; gap: 8px; flex: none; }
.nd-round {
    width: 44px; height: 44px; border-radius: 50%; border: 0;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--nav-chip); color: var(--nav-ink); cursor: pointer;
    transition: background-color .2s, transform .2s;
}
.nd-round:hover { transform: rotate(-12deg); }
.nd-round svg { width: 19px; height: 19px; }
.nd-page .nd-nav2 .nd-login {
    display: inline-flex; align-items: center; gap: 8px;
    height: 44px; padding: 0 16px; border-radius: 999px;
    color: var(--nav-ink); text-decoration: none; font-weight: 600; font-size: 15px;
}
.nd-page .nd-nav2 .nd-login:hover { background: var(--nav-chip); }
.nd-page .nd-ignite {
    position: relative; overflow: hidden;
    display: inline-flex; align-items: center; gap: 8px;
    height: 44px; padding: 0 20px; border-radius: 999px;
    background: #ffc21a; color: #1a1405; text-decoration: none; font-weight: 700; font-size: 15px;
    box-shadow: 0 8px 24px -10px rgba(217,96,12,.8);
    transition: transform .2s, box-shadow .2s;
}
.nd-page .nd-ignite:hover { color: #1a1405; transform: translateY(-1px); box-shadow: 0 12px 28px -10px rgba(217,96,12,.95); }
.nd-ignite::after { /* sheen */
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.55) 50%, transparent 70%);
    transform: translateX(-120%); transition: transform .6s ease;
}
.nd-ignite:hover::after { transform: translateX(120%); }
.nd-ignite svg { width: 18px; height: 18px; }
.nd-lang2 { display: flex; gap: 2px; font: 500 12px var(--nd-font-mono); text-transform: uppercase; }
.nd-page .nd-lang2 a { color: var(--nav-muted); text-decoration: none; padding: 6px 7px; border-radius: 8px; }
.nd-page .nd-lang2 a[aria-current="true"] { color: var(--nav-ink); background: var(--nav-chip); }

.nd-burger { display: none; }

/* mobile drawer */
.nd-drawer {
    position: fixed; inset: 0; z-index: 99;
    background: #0b1622; color: #e8f1f8;
    padding: 104px 24px 32px;
    display: flex; flex-direction: column; gap: 6px;
    overflow-y: auto;
    clip-path: circle(0 at calc(100% - 46px) 44px);
    visibility: hidden;
    transition: clip-path .5s cubic-bezier(.7,0,.2,1), visibility 0s linear .5s;
}
.nd-nav2.is-drawer .nd-drawer { clip-path: circle(150% at calc(100% - 46px) 44px); visibility: visible; transition: clip-path .5s cubic-bezier(.7,0,.2,1), visibility 0s; }
.nd-page .nd-drawer a {
    display: flex; align-items: center; gap: 14px;
    padding: 12px 8px; border-radius: 14px;
    color: #e8f1f8; text-decoration: none; font: 600 20px var(--nd-font-display);
    opacity: 0; transform: translateY(12px);
    transition: opacity .3s, transform .3s, background-color .2s;
}
.nd-page .nd-drawer a:hover { background: #12212f; }
.nd-nav2.is-drawer .nd-drawer a { opacity: 1; transform: none; transition-delay: calc(.12s + var(--i, 0) * .04s); }
.nd-drawer .nd-mega__tile { background: #133049; color: #ffcc3d; }
.nd-drawer__cta { margin-top: auto; padding-top: 24px; display: flex; gap: 10px; flex-wrap: wrap; }
.nd-page .nd-drawer__cta a { opacity: 1; transform: none; font: 600 16px var(--nd-font-sans); }

@media (max-width: 1100px) {
    .nd-menu__label-sm { display: none; }
    .nd-menu__link { padding: 0 6px; }
}
@media (max-width: 960px) {
    .nd-menu, .nd-nav2__right .nd-login, .nd-nav2__right .nd-lang2 { display: none; }
    .nd-burger { display: inline-flex; }
    .nd-nav2__right { margin-left: auto; }
    .nd-nav2.is-drawer { --nav-ink: #ffffff; --nav-chip: rgba(255,255,255,.12); background: transparent; box-shadow: none; backdrop-filter: none; }
    .nd-nav2.is-drawer .nd-nav2__bar { position: relative; z-index: 101; }
    .nd-nav2.is-drawer .nd-logo__word b { color: #7cc8f8; }
}
@media (max-width: 640px) {
    .nd-logo img, .nd-nav2.is-scrolled .nd-logo img { height: 34px; }
}
@media (max-width: 480px) {
    .nd-nav2__right .nd-ignite span { display: none; }
    .nd-nav2__right .nd-ignite { padding: 0 12px; }
}

/* pages without the night hero: leave room for the fixed bar */
.nd-page--solid main { padding-top: 88px; }

/* =====================================================================
   HERO SLIDER
   ===================================================================== */
.nd-hero2 {
    position: relative; isolation: isolate; overflow: hidden;
    height: 100vh;
    height: 100svh;          /* exactly one screen, never taller */
    background: #07111b; color: #e8f1f8;
    display: flex; flex-direction: column;
}

/* background: drifting cloud light, faint grid, rising sparks */
.nd-hero2__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.nd-hero2__glow {
    position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55;
    animation: nd-drift 18s ease-in-out infinite alternate;
}
.nd-hero2__glow--a { width: 46vw; height: 46vw; left: 30vw; top: 12vh; background: #0a6aa8; opacity: .42; }
.nd-hero2__glow--b { width: 34vw; height: 34vw; right: -6vw; bottom: -14vw; background: #d9600c; opacity: .35; animation-duration: 22s; }
.nd-hero2__glow--c { width: 24vw; height: 24vw; left: -6vw; bottom: -6vw; background: #38a8f0; opacity: .18; animation-duration: 26s; }
/* keep the band behind the navbar at the deepest night tone, so every colour of
   the logo (dark cloud blue included) reads clearly */
.nd-hero2__bg::after {
    content: ""; position: absolute; left: 0; right: 0; top: 0; height: 220px;
    background: linear-gradient(to bottom, #050c14 0%, rgba(5,12,20,.85) 45%, rgba(5,12,20,0) 100%);
}
@keyframes nd-drift { to { transform: translate(6vw, 4vw) scale(1.12); } }
.nd-hero2__grid {
    position: absolute; inset: 0; z-index: 1;
    background-image:
        linear-gradient(rgba(124,200,248,.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(124,200,248,.07) 1px, transparent 1px);
    background-size: 64px 64px;
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 75%);
    mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 75%);
}
.nd-spark {
    position: absolute; bottom: -12px; width: 4px; height: 4px; border-radius: 50%;
    background: #ffc21a; box-shadow: 0 0 10px 2px rgba(255,194,26,.7);
    animation: nd-rise linear infinite; opacity: 0;
}
@keyframes nd-rise {
    0% { transform: translate(0, 0); opacity: 0; }
    10% { opacity: .9; }
    100% { transform: translate(var(--dx, 20px), -100svh); opacity: 0; }
}

/* slides */
.nd-hero2__stage { position: relative; flex: 1; min-height: 0; display: grid; }
.nd-slide {
    grid-area: 1 / 1;
    display: flex; align-items: center;
    min-height: 0;
    padding: clamp(80px, 13vh, 128px) 0 clamp(108px, 18vh, 150px);
    opacity: 0; visibility: hidden;
    transition: opacity .7s ease, visibility 0s linear .7s;
}
.nd-slide.is-active { opacity: 1; visibility: visible; transition: opacity .7s ease, visibility 0s; }
.nd-slide__inner { width: 100%; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; align-items: center; }

.nd-slide__ghost { /* huge outlined number behind the copy */
    position: absolute; right: 2vw; top: 50%; transform: translateY(-58%);
    font: 700 clamp(220px, 34vw, 520px)/1 var(--nd-font-display); letter-spacing: -0.06em;
    color: transparent; -webkit-text-stroke: 1px rgba(124,200,248,.12);
    z-index: -1; user-select: none;
}

.nd-slide__copy { display: flex; flex-direction: column; gap: clamp(12px, 2.6vh, 26px); }
.nd-pill {
    align-self: flex-start;
    display: inline-flex; align-items: center; gap: 10px;
    padding: 6px 14px 6px 6px; border-radius: 999px;
    background: rgba(124,200,248,.10); border: 1px solid rgba(124,200,248,.22);
    font: 500 13px var(--nd-font-mono); letter-spacing: .06em; text-transform: uppercase; color: #bfe3fb;
}
.nd-pill i { width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #ffc21a; color: #1a1405; font-style: normal; }
.nd-pill svg { width: 15px; height: 15px; }

.nd-slide__title {
    margin: 0;
    font: 700 clamp(34px, min(7.2vw, 9.5vh), 104px)/.95 var(--nd-font-display);
    letter-spacing: -0.04em;
    color: #ffffff;
}
.nd-slide__title .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.nd-slide__title .w > span { display: inline-block; transform: translateY(105%); transition: transform .9s cubic-bezier(.2,.9,.2,1); transition-delay: calc(var(--i) * 70ms); }
.nd-slide.is-active .nd-slide__title .w > span { transform: none; }
.nd-slide__title em { font-style: normal; color: #ffc21a; }
.nd-slide__title em.cloud { color: #7cc8f8; }

.nd-slide__lead { margin: 0; max-width: 540px; font-size: 19px; line-height: 30px; color: #b8cad8; }
.nd-reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; transition-delay: .45s; }
.nd-slide.is-active .nd-reveal { opacity: 1; transform: none; }
.nd-reveal--2 { transition-delay: .6s; }

.nd-slide__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.nd-page .nd-hero-btn {
    display: inline-flex; align-items: center; gap: 10px;
    height: 56px; padding: 0 28px; border-radius: 999px;
    font-weight: 700; font-size: 17px; text-decoration: none;
    transition: transform .2s, background-color .2s, box-shadow .2s;
}
.nd-page .nd-hero-btn--fire { background: #ffc21a; color: #1a1405; box-shadow: 0 14px 40px -14px rgba(255,194,26,.9); }
.nd-page .nd-hero-btn--fire:hover { color: #1a1405; transform: translateY(-2px); }
.nd-page .nd-hero-btn--glass { color: #ffffff; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.28); }
.nd-page .nd-hero-btn--glass:hover { color: #ffffff; background: rgba(255,255,255,.12); }
.nd-hero-btn svg { width: 20px; height: 20px; transition: transform .2s; }
.nd-hero-btn:hover svg { transform: translateX(3px); }

/* domain search inside slide 3 */
.nd-hsearch {
    display: flex; align-items: center; gap: 6px;
    max-width: 560px; padding: 6px 6px 6px 20px; border-radius: 999px;
    background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.22);
}
.nd-hsearch:focus-within { border-color: #7cc8f8; box-shadow: 0 0 0 4px rgba(124,200,248,.2); }
.nd-hsearch label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.nd-hsearch input {
    flex: 1; min-width: 0; height: 48px; border: 0; background: transparent; outline: none;
    color: #ffffff; font: 500 17px var(--nd-font-mono);
}
.nd-hsearch input::placeholder { color: #8ea6ba; }
.nd-hsearch button {
    height: 48px; padding: 0 22px; border: 0; border-radius: 999px; cursor: pointer;
    background: #ffc21a; color: #1a1405; font: 700 16px var(--nd-font-sans);
    display: inline-flex; align-items: center; gap: 8px;
}
.nd-hsearch button svg { width: 18px; height: 18px; }

/* ---------- slide art ---------- */
.nd-art { position: relative; aspect-ratio: 1 / 1; width: 100%; max-width: min(520px, 56vh); justify-self: center; container-type: inline-size; }
.nd-art > * { transition: transform 1s cubic-bezier(.2,.9,.2,1), opacity .8s ease; }
.nd-slide:not(.is-active) .nd-art > * { transform: translateY(30px) scale(.96); opacity: 0; }

.nd-glass {
    background: rgba(18,33,47,.72);
    border: 1px solid rgba(124,200,248,.18);
    border-radius: 22px;
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    box-shadow: 0 40px 80px -30px rgba(0,0,0,.7);
}
.nd-float { position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; font: 500 13px var(--nd-font-mono); color: #e8f1f8; border-radius: 14px; animation: nd-bob 5s ease-in-out infinite; }
.nd-float svg { width: 16px; height: 16px; color: #4cc38a; }
@keyframes nd-bob { 50% { transform: translateY(-10px); } }

/* 1 · server rack */
.nd-rack { position: absolute; inset: 12% 14% 10% 14%; padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.nd-unit {
    flex: 1; display: flex; align-items: center; gap: 12px; padding: 0 18px;
    border-radius: 12px; background: #0b1622; border: 1px solid #23384a;
}
.nd-unit__bars { flex: 1; display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; }
.nd-unit__bars span { height: 6px; border-radius: 3px; background: #1d3a54; }
.nd-unit__bars span:nth-child(-n+4) { background: #38a8f0; }
.nd-led { width: 9px; height: 9px; border-radius: 50%; background: #4cc38a; box-shadow: 0 0 8px #4cc38a; animation: nd-blink 1.6s steps(2) infinite; }
.nd-led--fire { background: #ffc21a; box-shadow: 0 0 8px #ffc21a; animation-duration: .9s; }
@keyframes nd-blink { 50% { opacity: .25; } }
.nd-rack__flame { position: absolute; left: 50%; top: -58px; width: 64px; height: 80px; transform: translateX(-50%); filter: drop-shadow(0 0 22px rgba(255,194,26,.7)); animation: nd-flicker 2.4s ease-in-out infinite; }
@keyframes nd-flicker { 50% { transform: translateX(-50%) scaleY(1.06) skewX(-2deg); } }

/* 2 · terminal */
.nd-term { position: absolute; inset: 14% 4% 16% 4%; overflow: hidden; font: 500 15px/1.75 var(--nd-font-mono); }
.nd-term__top { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-bottom: 1px solid rgba(124,200,248,.14); color: #9fb3c4; font-size: 13px; }
.nd-term__top i { width: 11px; height: 11px; border-radius: 50%; background: #23384a; }
.nd-term__top i:first-child { background: #ff7a6b; } .nd-term__top i:nth-child(2) { background: #ffcc3d; } .nd-term__top i:nth-child(3) { background: #4cc38a; }
.nd-term__top span { margin-left: auto; }
.nd-term__body { padding: 18px 20px; }
.nd-term__line { white-space: nowrap; overflow: hidden; color: #c9dae7; }
.nd-term__line .p { color: #ffc21a; } .nd-term__line .ok { color: #4cc38a; } .nd-term__line .k { color: #7cc8f8; }
.nd-slide.is-active .nd-term__line { animation: nd-type .9s steps(40, end) both; animation-delay: calc(.5s + var(--i) * .75s); }
@keyframes nd-type { from { width: 0; } to { width: 100%; } }
.nd-caret { display: inline-block; width: 9px; height: 18px; background: #ffc21a; vertical-align: -3px; animation: nd-blink 1s steps(2) infinite; }

/* 3 · email hosting: inbox */
.nd-inbox { position: absolute; inset: 10% 4% 12% 4%; padding: 18px; display: flex; flex-direction: column; gap: 8px; overflow: hidden; }
.nd-inbox__top { display: flex; align-items: center; gap: 12px; padding: 4px 4px 12px; border-bottom: 1px solid rgba(124,200,248,.14); }
.nd-inbox__top b { display: block; color: #ffffff; font: 600 16px var(--nd-font-display); }
.nd-inbox__top small { display: block; color: #9fb3c4; font: 500 12.5px var(--nd-font-mono); }
.nd-inbox__avatar { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: #38a8f0; color: #04121f; flex: none; }
.nd-inbox__avatar svg { width: 20px; height: 20px; }
.nd-inbox__badge { margin-left: auto; padding: 4px 10px; border-radius: 999px; background: #ffc21a; color: #1a1405; font: 700 12px var(--nd-font-sans); white-space: nowrap; }
.nd-mail {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 12px; border-radius: 12px;
    background: rgba(11,22,34,.6); border: 1px solid #1d3346;
}
.nd-slide.is-active .nd-mail { animation: nd-mail-in .6s cubic-bezier(.2,.9,.2,1) both; animation-delay: calc(.5s + var(--i) * .35s); }
@keyframes nd-mail-in { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: none; } }
.nd-mail__ini { flex: none; width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #133049; color: #7cc8f8; font: 700 14px var(--nd-font-display); }
.nd-mail__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 13.5px; line-height: 18px; color: #9fb3c4; }
.nd-mail__txt b { color: #c9dae7; font-weight: 500; font-size: 14px; }
.nd-mail__txt span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nd-mail__time { flex: none; font: 500 12px var(--nd-font-mono); color: #8ea6ba; }
.nd-mail.is-unread { border-color: rgba(255,194,26,.35); }
.nd-mail.is-unread .nd-mail__txt b { color: #ffffff; font-weight: 700; }
.nd-mail.is-unread .nd-mail__ini { background: #ffc21a; color: #1a1405; }
.nd-inbox__spam { margin-top: auto; display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; background: rgba(76,195,138,.12); color: #bfe9d3; font-size: 13.5px; }
.nd-inbox__spam svg { width: 16px; height: 16px; color: #4cc38a; flex: none; }
.nd-inbox__spam b { color: #4cc38a; font-family: var(--nd-font-mono); }

/* 3 · domain */
.nd-dom { position: absolute; inset: 22% 0 auto 0; padding: 30px 28px; text-align: center; }
.nd-dom__label { font: 500 13px var(--nd-font-mono); letter-spacing: .08em; text-transform: uppercase; color: #9fb3c4; }
.nd-dom__name { margin-top: 14px; font: 700 clamp(34px, 4.4vw, 58px)/1 var(--nd-font-display); letter-spacing: -0.03em; color: #ffffff; white-space: nowrap; }
.nd-dom__tld { display: inline-block; min-width: 2.6ch; text-align: left; color: #ffc21a; }
.nd-dom__tld.is-swap { animation: nd-swap .45s cubic-bezier(.2,.9,.2,1); }
@keyframes nd-swap { from { transform: translateY(60%); opacity: 0; filter: blur(4px); } }
.nd-dom__ok { margin-top: 18px; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: rgba(76,195,138,.14); color: #4cc38a; font: 600 14px var(--nd-font-sans); }
.nd-dom__ok svg { width: 16px; height: 16px; }
.nd-dom__chips { position: absolute; left: 0; right: 0; bottom: 12%; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.nd-dom__chips span { padding: 8px 14px; border-radius: 999px; background: rgba(124,200,248,.10); border: 1px solid rgba(124,200,248,.2); font: 500 14px var(--nd-font-mono); color: #bfe3fb; }

/* 4 · services orbit */
.nd-orbit { position: absolute; inset: 6%; border-radius: 50%; border: 1px dashed rgba(124,200,248,.22); animation: nd-spin 40s linear infinite; }
.nd-orbit--in { inset: 24%; border-style: solid; border-color: rgba(255,194,26,.18); animation-duration: 28s; animation-direction: reverse; }
@keyframes nd-spin { to { transform: rotate(360deg); } }
.nd-orbit__node {
    position: absolute; left: 50%; top: 50%; width: 13cqi; height: 13cqi; margin: -6.5cqi;
    transform: rotate(var(--a)) translate(calc(var(--r) * 1cqi)) rotate(calc(var(--a) * -1));
}
.nd-orbit__node > span {
    width: 100%; height: 100%; border-radius: 18px;
    display: flex; align-items: center; justify-content: center;
    background: #12212f; border: 1px solid #23384a; color: #ffcc3d;
    animation: nd-spin 40s linear infinite reverse;
    box-shadow: 0 16px 30px -12px rgba(0,0,0,.6);
}
.nd-orbit--in .nd-orbit__node > span { animation-duration: 28s; animation-direction: normal; color: #7cc8f8; }
.nd-orbit__node svg { width: 26px; height: 26px; }
.nd-orbit__core {
    position: absolute; left: 50%; top: 50%; width: 30%; aspect-ratio: 1; transform: translate(-50%, -50%);
    border-radius: 50%; background: radial-gradient(circle at 50% 60%, rgba(255,194,26,.35), transparent 65%);
    display: flex; align-items: center; justify-content: center;
}
.nd-orbit__core svg { width: 60%; filter: drop-shadow(0 0 24px rgba(255,194,26,.8)); animation: nd-flicker2 2.4s ease-in-out infinite; }
@keyframes nd-flicker2 { 50% { transform: scaleY(1.07) skewX(-2deg); } }

/* 5 · radio */
.nd-radio { position: absolute; inset: 16% 4% 18% 4%; padding: 26px; display: flex; flex-direction: column; gap: 20px; }
.nd-radio__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.nd-live { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: #b42318; color: #ffffff; font: 700 12px var(--nd-font-mono); letter-spacing: .1em; }
.nd-live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #ffffff; animation: nd-blink 1s steps(2) infinite; }
.nd-radio__meta { font: 500 13px var(--nd-font-mono); color: #9fb3c4; }
.nd-eq { flex: 1; display: flex; align-items: flex-end; gap: 5px; }
.nd-eq span {
    flex: 1; border-radius: 4px 4px 2px 2px;
    background: linear-gradient(to top, #38a8f0, #ffc21a 80%);
    height: 20%; animation: nd-eq 1.1s ease-in-out infinite alternate;
    animation-delay: calc(var(--i) * -97ms);
}
@keyframes nd-eq { 0% { height: 12%; } 35% { height: 78%; } 60% { height: 40%; } 100% { height: 92%; } }
.nd-radio__track { display: flex; align-items: center; gap: 12px; font-size: 14px; color: #c9dae7; }
.nd-radio__track b { color: #ffffff; font-weight: 600; }
.nd-radio__bar { flex: 1; height: 4px; border-radius: 2px; background: #23384a; overflow: hidden; }
.nd-radio__bar i { display: block; height: 100%; width: 40%; background: #ffc21a; animation: nd-prog 12s linear infinite; }
@keyframes nd-prog { from { width: 0; } to { width: 100%; } }

/* ---------- controls: flame tongues ---------- */
.nd-hero2__controls {
    position: absolute; left: 0; right: 0; bottom: clamp(14px, 3.5vh, 34px); z-index: 2;
    display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
}
.nd-flames { display: flex; align-items: flex-end; gap: 10px; }
.nd-flame-btn {
    position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px;
    border: 0; background: transparent; padding: 0; cursor: pointer; color: #8ea6ba;
    font: 500 12px var(--nd-font-mono); letter-spacing: .06em; text-transform: uppercase;
}
.nd-flame-btn__t {
    position: relative; width: 40px; height: clamp(22px, 4vh, 34px); overflow: hidden;
    border-radius: 20px 20px 4px 4px;
    background: rgba(124,200,248,.14);
    transition: height .6s cubic-bezier(.2,.9,.2,1), background-color .3s;
}
.nd-flame-btn__t::after { /* fill: autoplay progress */
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 0;
    background: linear-gradient(to top, #d9600c, #ffc21a);
}
.nd-flame-btn:hover .nd-flame-btn__t { background: rgba(124,200,248,.26); }
.nd-flame-btn[aria-current="true"] { color: #ffffff; }
.nd-flame-btn[aria-current="true"] .nd-flame-btn__t { height: clamp(40px, 9vh, 84px); }
.nd-flame-btn[aria-current="true"] .nd-flame-btn__t::after { animation: nd-fill var(--dur, 7s) linear forwards; }
.nd-hero2.is-paused .nd-flame-btn[aria-current="true"] .nd-flame-btn__t::after { animation-play-state: paused; }
@keyframes nd-fill { to { height: 100%; } }

.nd-hero2__nav { display: flex; align-items: center; gap: 10px; }
.nd-hero2__count { font: 500 14px var(--nd-font-mono); color: #8ea6ba; margin-right: 6px; }
.nd-hero2__count b { color: #ffffff; font-weight: 500; }
.nd-arrow {
    width: 52px; height: 52px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid rgba(255,255,255,.24); background: rgba(255,255,255,.04);
    color: #ffffff; cursor: pointer; transition: background-color .2s, border-color .2s, transform .2s;
}
.nd-arrow:hover { background: #ffc21a; border-color: #ffc21a; color: #1a1405; }
.nd-arrow svg { width: 20px; height: 20px; }

.nd-scroll-cue {
    position: absolute; left: 50%; bottom: 30px; transform: translateX(-50%);
    width: 26px; height: 42px; border-radius: 14px; border: 1.5px solid rgba(255,255,255,.35);
}
.nd-scroll-cue::after { content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #ffc21a; animation: nd-cue 1.8s ease-in-out infinite; }
@keyframes nd-cue { 60% { transform: translateY(12px); opacity: 0; } 61% { transform: none; opacity: 0; } }

@media (max-width: 960px) {
    .nd-slide { padding: clamp(80px, 12vh, 112px) 0 clamp(150px, 24vh, 190px); }
    .nd-slide__inner { grid-template-columns: 1fr; gap: 28px; }
    .nd-art { max-width: min(380px, 30vh); order: -1; }
    .nd-slide__ghost { display: none; }
    .nd-scroll-cue { display: none; }
    .nd-hero2__controls { flex-direction: column; align-items: stretch; gap: 16px; }
    .nd-flames { justify-content: space-between; }
    .nd-hero2__nav { justify-content: flex-end; }
}
@media (max-width: 640px) {
    .nd-art { max-width: min(300px, 26vh); }
    .nd-flame-btn { font-size: 10px; }
    .nd-flame-btn__t { width: 30px; }
    .nd-flame-btn[aria-current="true"] .nd-flame-btn__t { height: clamp(36px, 7vh, 64px); }
    .nd-slide__lead { font-size: 17px; line-height: 27px; }
    .nd-hero-btn { height: 52px; padding: 0 22px; font-size: 16px; }
}

/* short screens: keep title, buttons and controls in view */
@media (max-height: 720px) {
    .nd-slide__lead { font-size: 16px; line-height: 24px; }
    .nd-pill { padding-top: 4px; padding-bottom: 4px; }
    .nd-pill i { width: 24px; height: 24px; }
    .nd-page .nd-hero-btn { height: 48px; padding: 0 22px; font-size: 16px; }
    .nd-arrow { width: 44px; height: 44px; }
}
@media (max-height: 560px) {
    .nd-slide__lead, .nd-pill, .nd-float { display: none; }
    .nd-flame-btn { font-size: 0; gap: 0; }
}
@media (max-width: 960px) and (max-height: 760px) {
    .nd-art { display: none; }          /* phones: copy + controls first */
}
@media (max-width: 960px) and (max-height: 620px) {
    .nd-slide__lead { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .nd-hero2 *, .nd-nav2 *, .nd-hero2 *::after, .nd-hero2 *::before {
        animation-duration: .001ms !important; animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }
    .nd-spark { display: none; }
    .nd-term__line { width: 100% !important; }
}

/* language dropdown */
.nd-langdd { position: relative; }
.nd-langdd__btn {
    display: inline-flex; align-items: center; gap: 6px;
    height: 44px; padding: 0 12px; border: 0; border-radius: 999px; cursor: pointer;
    background: var(--nav-chip); color: var(--nav-ink);
    font: 600 13px var(--nd-font-mono); letter-spacing: .04em;
}
.nd-langdd__btn svg { width: 17px; height: 17px; }
.nd-langdd__caret { width: 13px !important; height: 13px !important; opacity: .7; transition: transform .2s; }
.nd-langdd.is-open .nd-langdd__caret { transform: rotate(180deg); }
.nd-langdd__menu {
    position: absolute; right: 0; top: calc(100% + 8px); min-width: 180px;
    padding: 6px; border-radius: 16px; background: #ffffff; border: 1px solid #d5e2ee;
    box-shadow: 0 24px 50px -20px rgba(4,18,31,.45);
    opacity: 0; visibility: hidden; transform: translateY(6px);
    transition: opacity .18s, transform .2s, visibility 0s linear .2s;
}
.nd-langdd__menu::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.nd-langdd.is-open .nd-langdd__menu { opacity: 1; visibility: visible; transform: none; transition: opacity .18s, transform .2s, visibility 0s; }
.nd-page .nd-langdd__menu a {
    display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px;
    color: #0e2233; text-decoration: none; font-weight: 500; font-size: 14.5px;
}
.nd-page .nd-langdd__menu a:hover { background: #f5f9fd; color: #0e2233; }
.nd-page .nd-langdd__menu a[aria-current="true"] { background: #d9eefc; }
.nd-langdd__code { width: 30px; font: 600 12px var(--nd-font-mono); color: #0a6aa8; }
.nd-drawer__langs { display: flex; gap: 8px; margin-top: 14px; }
.nd-page .nd-drawer__langs a { opacity: 1; transform: none; font: 600 15px var(--nd-font-sans); padding: 10px 16px; border-radius: 999px; border: 1px solid #23384a; }
.nd-page .nd-drawer__langs a[aria-current="true"] { background: #ffc21a; color: #1a1405; border-color: #ffc21a; }
@media (max-width: 960px) { .nd-nav2__right .nd-langdd { display: none; } }

/* services menu: 9 items in three columns */
#nd-mega-services { width: min(880px, 94vw); grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1100px) { #nd-mega-services { grid-template-columns: 1fr 1fr; } }

/* =====================================================================
   PHONES: hero in normal page flow, navbar with room for the logo
   ===================================================================== */
@media (max-width: 960px) {
    /* "Hyr" lives in the drawer on small screens (the base rule above loses on specificity) */
    .nd-page .nd-nav2 .nd-nav2__right .nd-login { display: none; }
    .nd-logo img { max-width: none; flex: none; }
}
@media (max-width: 640px) {
    /* the hero grows with its content instead of squeezing it into one screen */
    .nd-hero2 { height: auto; min-height: 100svh; }
    .nd-hero2__stage { flex: 1 0 auto; }
    .nd-slide { align-items: flex-start; padding: 104px 0 28px; }
    .nd-slide__inner { gap: 22px; }
    .nd-art { max-width: min(230px, 58vw); }
    .nd-slide__actions { flex-direction: column; align-items: stretch; }
    .nd-slide__actions .nd-hero-btn { justify-content: center; width: 100%; }
    /* controls follow the slide instead of floating over it */
    .nd-hero2__controls { position: relative; bottom: auto; padding-top: 8px; padding-bottom: 28px; }
    /* fixed row height: the tongues grow/shrink on every slide change, and a row
       that followed them made the whole page below jump up and back every 7 s */
    .nd-flames { height: 96px; align-items: flex-end; }
}
@media (max-width: 640px) and (max-height: 760px) {
    .nd-art { display: none; }
    .nd-slide { padding-top: 96px; }
}
@media (max-width: 400px) {
    .nd-logo img, .nd-nav2.is-scrolled .nd-logo img { height: 28px; }
    .nd-nav2__right { gap: 6px; }
}

/* decorative loops wait while their section is off screen (ndize.js adds .is-off) */
.is-off, .is-off *, .is-off *::before, .is-off *::after { animation-play-state: paused !important; }
