/* =============================================================
   NXTG LANDING - Halaman HOME publik (sebelum login)
   Formal · Profesional · Minimalis | Biru–Putih–Hitam
   ============================================================= */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap");

:root {
    --nx-blue: #1e7bff;
    --nx-blue-dark: #0b5cdb;
    --nx-blue-deep: #0a3f97;
    --nx-blue-soft: #eaf2ff;
    --nx-ink: #0b1220;
    --nx-slate: #5a6b87;
    --nx-line: #e5eaf2;
    --nx-bg: #ffffff;
    --nx-grad: linear-gradient(135deg, #1e7bff 0%, #0b5cdb 100%);
    --nx-grad-deep: linear-gradient(135deg, #0a3f97 0%, #0b1220 100%);
    --nx-container: 1160px;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
    color: var(--nx-ink);
    background: var(--nx-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

.nx-container {
    width: 100%;
    max-width: var(--nx-container);
    margin: 0 auto;
    padding: 0 24px;
}

/* ===================== BUTTONS ===================== */
.nx-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 15px;
    padding: 12px 22px;
    border-radius: 10px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
    white-space: nowrap;
}
.nx-btn i { font-size: 18px; }
.nx-btn--lg { padding: 15px 28px; font-size: 16px; }

.nx-btn--primary {
    background: var(--nx-grad);
    color: #fff;
    box-shadow: 0 8px 22px rgba(30, 123, 255, .28);
}
.nx-btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(30, 123, 255, .38); }

.nx-btn--ghost {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, .35);
}
.nx-btn--ghost:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .6); }

.nx-btn--light {
    background: #fff;
    color: var(--nx-blue-dark);
    box-shadow: 0 10px 26px rgba(0, 0, 0, .18);
}
.nx-btn--light:hover { transform: translateY(-2px); }

/* ===================== NAVBAR ===================== */
.nx-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    transition: background .3s ease, box-shadow .3s ease, border-color .3s ease;
    border-bottom: 1px solid transparent;
}
.nx-nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 74px;
}
.nx-nav__logo { height: 38px; width: auto; object-fit: contain; transition: opacity .3s ease; }
.nx-nav__logo--dark { display: none; }
.nx-nav__logo--light { display: block; }

.nx-nav__menu { display: flex; gap: 34px; }
.nx-nav__menu a {
    color: rgba(255, 255, 255, .85);
    font-weight: 500;
    font-size: 15px;
    position: relative;
    transition: color .2s ease;
}
.nx-nav__menu a::after {
    content: ""; position: absolute; left: 0; bottom: -6px;
    width: 0; height: 2px; background: #fff; transition: width .25s ease;
}
.nx-nav__menu a:hover { color: #fff; }
.nx-nav__menu a:hover::after { width: 100%; }

/* State scrolled: navbar putih */
.nx-nav.is-scrolled {
    background: rgba(255, 255, 255, .92);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom-color: var(--nx-line);
    box-shadow: 0 4px 24px rgba(15, 30, 60, .06);
}
.nx-nav.is-scrolled .nx-nav__logo--dark { display: block; }
.nx-nav.is-scrolled .nx-nav__logo--light { display: none; }
.nx-nav.is-scrolled .nx-nav__menu a { color: var(--nx-slate); }
.nx-nav.is-scrolled .nx-nav__menu a:hover { color: var(--nx-blue); }
.nx-nav.is-scrolled .nx-nav__menu a::after { background: var(--nx-blue); }

/* ===================== HERO ===================== */
.nx-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--nx-grad-deep);
    color: #fff;
    overflow: hidden;
    padding: 120px 0 80px;
}
.nx-hero__bg { position: absolute; inset: 0; z-index: 0; }

.nx-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: .55;
    will-change: transform;
}
.nx-orb--1 {
    width: 520px; height: 520px;
    background: #1e7bff;
    top: -120px; right: -80px;
    animation: nx-float1 14s ease-in-out infinite;
}
.nx-orb--2 {
    width: 420px; height: 420px;
    background: #2ea6ff;
    bottom: -140px; left: -100px;
    animation: nx-float2 18s ease-in-out infinite;
}
.nx-orb--3 {
    width: 360px; height: 360px;
    background: #0b5cdb;
    top: 40%; left: 45%;
    opacity: .4;
    animation: nx-float3 20s ease-in-out infinite;
}
@keyframes nx-float1 { 0%,100% { transform: translate(0,0) scale(1);} 50% { transform: translate(-40px,50px) scale(1.08);} }
@keyframes nx-float2 { 0%,100% { transform: translate(0,0) scale(1);} 50% { transform: translate(60px,-40px) scale(1.12);} }
@keyframes nx-float3 { 0%,100% { transform: translate(-50%,0) scale(1);} 50% { transform: translate(-40%,-60px) scale(.9);} }

/* Grid halus di background */
.nx-grid {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 78%);
    -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 78%);
}

.nx-hero__inner {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 860px;
}

.nx-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 7px 16px;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 100px;
    background: rgba(255, 255, 255, .08);
    font-size: 13.5px;
    font-weight: 500;
    letter-spacing: .3px;
    margin-bottom: 26px;
}
.nx-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: #34e39f;
    box-shadow: 0 0 0 0 rgba(52, 227, 159, .7);
    animation: nx-pulse 2s infinite;
}
@keyframes nx-pulse {
    0% { box-shadow: 0 0 0 0 rgba(52, 227, 159, .6); }
    70% { box-shadow: 0 0 0 10px rgba(52, 227, 159, 0); }
    100% { box-shadow: 0 0 0 0 rgba(52, 227, 159, 0); }
}

.nx-hero__title {
    font-size: clamp(34px, 5.4vw, 60px);
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: -1.2px;
    margin-bottom: 22px;
}
.nx-grad-text {
    background: linear-gradient(120deg, #7db8ff, #ffffff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.nx-hero__lead {
    font-size: clamp(16px, 2vw, 19px);
    color: rgba(255, 255, 255, .82);
    max-width: 640px;
    margin: 0 auto 34px;
}
.nx-hero__actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 56px;
}
.nx-hero__logo {
    opacity: .9;
}
.nx-hero__logo img {
    height: 46px;
    width: auto;
    margin: 0 auto;
    opacity: .8;
    filter: drop-shadow(0 6px 20px rgba(0,0,0,.3));
}

.nx-hero__scroll {
    position: absolute;
    bottom: 26px; left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    color: rgba(255, 255, 255, .7);
    font-size: 30px;
    animation: nx-bounce 2s infinite;
}
@keyframes nx-bounce { 0%,100% { transform: translate(-50%,0); } 50% { transform: translate(-50%,10px); } }

/* ===================== SECTION ===================== */
.nx-section { padding: 100px 0; }
.nx-section--alt { background: var(--nx-blue-soft); }

.nx-section__head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 60px;
}
.nx-eyebrow {
    display: inline-block;
    color: var(--nx-blue);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    margin-bottom: 14px;
}
.nx-section__head h2,
.nx-why__text h2 {
    font-size: clamp(28px, 3.6vw, 40px);
    font-weight: 800;
    letter-spacing: -.8px;
    line-height: 1.15;
    margin-bottom: 14px;
}
.nx-section__head p { color: var(--nx-slate); font-size: 17px; }

/* ===================== CARDS ===================== */
.nx-grid-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}
.nx-card {
    background: #fff;
    border: 1px solid var(--nx-line);
    border-radius: 16px;
    padding: 28px 24px;
    transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}
.nx-card:hover {
    transform: translateY(-6px);
    border-color: rgba(30, 123, 255, .45);
    box-shadow: 0 18px 40px rgba(15, 30, 60, .1);
}
.nx-card__icon {
    width: 52px; height: 52px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: var(--nx-blue-soft);
    color: var(--nx-blue);
    font-size: 26px;
    margin-bottom: 18px;
    transition: background .28s ease, color .28s ease;
}
.nx-card:hover .nx-card__icon { background: var(--nx-grad); color: #fff; }
.nx-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.nx-card p { color: var(--nx-slate); font-size: 14.5px; }

/* ===================== WHY ===================== */
.nx-why {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.nx-why__list { list-style: none; margin: 26px 0 32px; display: grid; gap: 18px; }
.nx-why__list li { display: flex; gap: 14px; align-items: flex-start; font-size: 16px; }
.nx-why__list li i {
    color: var(--nx-blue);
    font-size: 22px;
    flex-shrink: 0;
    margin-top: 1px;
}
.nx-why__list li strong { font-weight: 700; }
.nx-why__list li span { color: var(--nx-slate); }
.nx-why__list li strong { color: var(--nx-ink); }

/* Mockup panel */
.nx-why__visual { display: flex; justify-content: center; }
.nx-panel {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border: 1px solid var(--nx-line);
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(15, 30, 60, .14);
    overflow: hidden;
    transform: perspective(1200px) rotateY(-6deg) rotateX(3deg);
    transition: transform .4s ease;
}
.nx-why__visual:hover .nx-panel { transform: perspective(1200px) rotateY(0) rotateX(0); }
.nx-panel__bar {
    display: flex; gap: 7px;
    padding: 14px 18px;
    background: var(--nx-blue-soft);
    border-bottom: 1px solid var(--nx-line);
}
.nx-panel__bar span { width: 11px; height: 11px; border-radius: 50%; background: #cdd8ea; }
.nx-panel__bar span:first-child { background: #ff6b6b; }
.nx-panel__bar span:nth-child(2) { background: #ffd93d; }
.nx-panel__bar span:nth-child(3) { background: #34e39f; }
.nx-panel__body { padding: 16px; display: grid; gap: 8px; }
.nx-panel__row {
    display: flex; align-items: center; gap: 12px;
    padding: 13px 16px;
    border-radius: 10px;
    font-weight: 500;
    font-size: 14.5px;
    color: var(--nx-slate);
    background: #fafcff;
}
.nx-panel__row i { font-size: 19px; }
.nx-panel__row--active {
    background: var(--nx-grad);
    color: #fff;
    box-shadow: 0 8px 20px rgba(30, 123, 255, .3);
}

/* ===================== CTA STRIP ===================== */
.nx-cta {
    background: var(--nx-grad);
    color: #fff;
    padding: 80px 0;
    text-align: center;
}
.nx-cta__inner h2 {
    font-size: clamp(26px, 3.4vw, 38px);
    font-weight: 800;
    letter-spacing: -.6px;
    margin-bottom: 12px;
}
.nx-cta__inner p { color: rgba(255, 255, 255, .9); font-size: 17px; margin-bottom: 28px; }

/* ===================== FOOTER ===================== */
.nx-footer { background: var(--nx-ink); color: rgba(255, 255, 255, .72); }
.nx-footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    padding: 64px 24px 44px;
}
.nx-footer__brand img { height: 40px; margin-bottom: 18px; }
.nx-footer__brand p { max-width: 340px; font-size: 14.5px; }
.nx-footer__col h4 { color: #fff; font-size: 15px; margin-bottom: 16px; font-weight: 700; }
.nx-footer__col a, .nx-footer__col p {
    display: block; font-size: 14.5px; margin-bottom: 10px;
    color: rgba(255, 255, 255, .72);
    transition: color .2s ease;
}
.nx-footer__col a:hover { color: #fff; }
.nx-footer__col p i { color: var(--nx-blue); margin-right: 6px; }
.nx-footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, .1);
    padding: 22px 0;
    font-size: 13.5px;
    text-align: center;
    color: rgba(255, 255, 255, .55);
}

/* ===================== CARD CLICKABLE ===================== */
.nx-card--link { display: block; cursor: pointer; }
.nx-card__more {
    margin-top: 16px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--nx-blue);
    font-weight: 700;
    font-size: 13.5px;
    opacity: 0;
    transform: translateX(-6px);
    transition: opacity .28s ease, transform .28s ease;
}
.nx-card__more i { transition: transform .28s ease; }
.nx-card--link:hover .nx-card__more { opacity: 1; transform: none; }
.nx-card--link:hover .nx-card__more i { transform: translateX(3px); }

/* ===================== EXPLORE (sticky tabs + scroll) ===================== */
.nx-explore-section { background: #fff; }
.nx-explore {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 72px;
    align-items: start;
}

/* Kolom kiri: sticky (tab) */
.nx-explore__nav {
    position: sticky;
    top: 104px;
    align-self: start;
}
.nx-explore__nav-head { margin-bottom: 30px; }
.nx-explore__nav-head h2 {
    font-size: clamp(26px, 2.6vw, 34px);
    font-weight: 800;
    letter-spacing: -.6px;
    line-height: 1.15;
    margin-bottom: 12px;
}
.nx-grad-text-blue { color: var(--nx-blue); }
.nx-explore__nav-head p { color: var(--nx-slate); font-size: 15px; line-height: 1.7; }

.nx-explore__tabs { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.nx-explore__tab {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 14px 18px;
    border-radius: 12px;
    color: var(--nx-slate);
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: background .28s ease, color .28s ease, padding-left .28s ease;
}
.nx-explore__tab-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #cdd8ea;
    flex-shrink: 0;
    transition: background .28s ease, transform .28s ease, box-shadow .28s ease;
}
.nx-explore__tab:hover { color: var(--nx-ink); background: #f4f7fc; }
.nx-explore__tab.is-active {
    background: var(--nx-blue-soft);
    color: var(--nx-blue);
    padding-left: 22px;
}
.nx-explore__tab.is-active .nx-explore__tab-dot {
    background: var(--nx-blue);
    transform: scale(1.5);
    box-shadow: 0 0 0 4px rgba(30, 123, 255, .16);
}

/* Kolom kanan: konten yang di-scroll */
.nx-explore__content { display: flex; flex-direction: column; gap: 0; }
.nx-explore__panel {
    scroll-margin-top: 110px;
    padding: 56px 0;
    border-top: 1px solid var(--nx-line);
    opacity: .38;
    transition: opacity .45s ease;
}
.nx-explore__panel:first-child { border-top: 0; padding-top: 8px; }
.nx-explore__panel.is-active { opacity: 1; }

.nx-explore__num {
    color: var(--nx-blue);
    font-weight: 700;
    letter-spacing: 2.5px;
    font-size: 14px;
    margin-bottom: 16px;
}
.nx-explore__title {
    font-size: clamp(30px, 4.4vw, 52px);
    font-weight: 800;
    letter-spacing: -1.2px;
    line-height: 1.04;
    color: var(--nx-ink);
    margin-bottom: 20px;
}
.nx-explore__title span { color: var(--nx-blue); }
.nx-explore__desc {
    color: var(--nx-slate);
    font-size: 17px;
    line-height: 1.75;
    max-width: 640px;
    margin-bottom: 26px;
}

.nx-explore__tags { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.nx-explore__tag {
    padding: 9px 18px;
    border-radius: 100px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--nx-blue);
    background: var(--nx-blue-soft);
    border: 1px solid rgba(30, 123, 255, .18);
}

.nx-explore__features {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 14px;
}
.nx-explore__feature {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 15px 18px;
    border-radius: 12px;
    background: #fafcff;
    border: 1px solid var(--nx-line);
    font-weight: 600;
    font-size: 14.5px;
    color: var(--nx-ink);
    /* animasi stagger saat panel aktif */
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .5s ease, transform .5s ease, box-shadow .28s ease, border-color .28s ease;
}
.nx-explore__panel.is-active .nx-explore__feature { opacity: 1; transform: none; }
.nx-explore__panel.is-active .nx-explore__feature:nth-child(1) { transition-delay: .04s; }
.nx-explore__panel.is-active .nx-explore__feature:nth-child(2) { transition-delay: .10s; }
.nx-explore__panel.is-active .nx-explore__feature:nth-child(3) { transition-delay: .16s; }
.nx-explore__panel.is-active .nx-explore__feature:nth-child(4) { transition-delay: .22s; }
.nx-explore__panel.is-active .nx-explore__feature:nth-child(5) { transition-delay: .28s; }
.nx-explore__panel.is-active .nx-explore__feature:nth-child(6) { transition-delay: .34s; }
.nx-explore__panel.is-active .nx-explore__feature:nth-child(7) { transition-delay: .40s; }
.nx-explore__feature:hover {
    transform: translateY(-3px);
    border-color: rgba(30, 123, 255, .4);
    box-shadow: 0 10px 24px rgba(15, 30, 60, .08);
}
.nx-explore__feature i {
    font-size: 20px;
    color: var(--nx-blue);
    width: 38px; height: 38px;
    display: grid; place-items: center;
    background: var(--nx-blue-soft);
    border-radius: 9px;
    flex-shrink: 0;
}

/* Explore responsive */
@media (max-width: 992px) {
    .nx-explore { grid-template-columns: 1fr; gap: 26px; }
    .nx-explore__nav { position: static; }
    .nx-explore__nav-head { margin-bottom: 18px; }
    .nx-explore__tabs {
        flex-direction: row;
        overflow-x: auto;
        gap: 8px;
        padding-bottom: 6px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }
    .nx-explore__tab { white-space: nowrap; padding: 10px 15px; }
    .nx-explore__tab.is-active { padding-left: 15px; }
    .nx-explore__panel { opacity: 1; padding: 36px 0; }
    .nx-explore__panel.is-active .nx-explore__feature,
    .nx-explore__feature { opacity: 1; transform: none; }
}

/* ===================== REVEAL ANIMATION ===================== */
.nx-reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .7s cubic-bezier(.16,.8,.3,1), transform .7s cubic-bezier(.16,.8,.3,1);
}
.nx-reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    .nx-reveal { opacity: 1; transform: none; transition: none; }
    .nx-orb, .nx-hero__scroll, .nx-dot { animation: none; }
    .nx-explore__panel { opacity: 1; }
    .nx-explore__feature { opacity: 1; transform: none; }
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 992px) {
    .nx-grid-cards { grid-template-columns: repeat(2, 1fr); }
    .nx-why { grid-template-columns: 1fr; gap: 40px; }
    .nx-panel { transform: none; }
}
@media (max-width: 720px) {
    .nx-nav__menu { display: none; }
    .nx-nav__inner { height: 64px; }
    .nx-section { padding: 72px 0; }
    .nx-footer__grid { grid-template-columns: 1fr; gap: 28px; padding: 48px 24px 32px; }
}
@media (max-width: 520px) {
    .nx-grid-cards { grid-template-columns: 1fr; }
    .nx-hero__actions { flex-direction: column; }
    .nx-hero__actions .nx-btn { width: 100%; justify-content: center; }
}
