@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400&family=Syne:wght@600;700;800&display=swap");

/* ── Sunset Lagoon Design System ── */
:root {
    color-scheme: dark;

    --bg-deep: #07050f;
    --bg: #0c0918;
    --surface: rgba(24, 20, 40, 0.65);
    --surface-solid: #141024;
    --surface-hover: rgba(36, 30, 58, 0.85);
    --glass: rgba(255, 255, 255, 0.04);
    --glass-border: rgba(255, 255, 255, 0.1);

    --text: #f6f2ff;
    --text-soft: #d8cff0;
    --muted: #9589b8;

    --coral: #ff6b8a;
    --mango: #ffb347;
    --aqua: #4fd1c5;
    --violet: #b794f6;
    --sun: #ffe566;
    --mint: #6ee7b7;

    --accent: #ff7a59;
    --accent-2: #ffb347;
    --accent-grad: linear-gradient(135deg, var(--coral) 0%, var(--mango) 55%, var(--sun) 100%);
    --accent-grad-hover: linear-gradient(135deg, #ff5578 0%, #ffa030 55%, #ffd84d 100%);
    --sky-grad: linear-gradient(135deg, var(--aqua), var(--violet));

    --link: #7ef0e3;
    --green: #4ade80;
    --green-soft: rgba(74, 222, 128, 0.12);
    --green-border: rgba(74, 222, 128, 0.35);
    --yellow: #fbbf24;
    --yellow-soft: rgba(251, 191, 36, 0.12);
    --yellow-border: rgba(251, 191, 36, 0.35);
    --red: #fb7185;
    --red-soft: rgba(251, 113, 133, 0.12);
    --red-border: rgba(251, 113, 133, 0.35);

    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.14);
    --input: rgba(8, 6, 16, 0.75);
    --card: var(--surface-solid);
    --card-soft: #1a152e;

    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 22px;
    --radius-xl: 28px;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
    --shadow-glow: 0 0 60px rgba(255, 107, 138, 0.15);

    --font-display: "Syne", system-ui, sans-serif;
    --font-body: "Plus Jakarta Sans", system-ui, sans-serif;

    --nav-h: 72px;

    /* Spacing scale */
    --space-xs: 8px;
    --space-sm: 12px;
    --space-md: 20px;
    --space-lg: 28px;
    --space-xl: 36px;
    --space-2xl: 48px;
    --content-pad: clamp(20px, 3vw, 32px);
    --line-body: 1.75;
    --line-tight: 1.4;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body.nl-body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    background: var(--bg-deep);
    color: var(--text);
    min-height: 100vh;
    line-height: var(--line-body);
    -webkit-font-smoothing: antialiased;
}

/* Ambient background */
.nl-mesh {
    pointer-events: none;
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.nl-mesh::before,
.nl-mesh::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.55;
    animation: nl-drift 22s ease-in-out infinite alternate;
}

.nl-mesh::before {
    width: 55vw;
    height: 55vw;
    max-width: 620px;
    max-height: 620px;
    top: -12%;
    left: -8%;
    background: radial-gradient(circle, rgba(255, 107, 138, 0.45), transparent 70%);
}

.nl-mesh::after {
    width: 50vw;
    height: 50vw;
    max-width: 560px;
    max-height: 560px;
    bottom: -15%;
    right: -10%;
    background: radial-gradient(circle, rgba(79, 209, 197, 0.35), transparent 70%);
    animation-delay: -8s;
}

@keyframes nl-drift {
    from { transform: translate(0, 0) scale(1); }
    to { transform: translate(4%, 6%) scale(1.08); }
}

.nl-shell {
    position: relative;
    z-index: 1;
}

/* ── Navigation ── */
.nl-header {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 14px 0 0;
}

.nl-navbar {
    width: min(1140px, calc(100% - 2 * var(--content-pad)));
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 22px;
    border-radius: 999px;
    background: rgba(12, 9, 24, 0.72);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.28);
}

.nl-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--text);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.nl-brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 11px;
    background: var(--accent-grad);
    display: grid;
    place-items: center;
    font-size: 1rem;
    box-shadow: 0 4px 16px rgba(255, 107, 138, 0.35);
}

.nl-brand:hover {
    color: var(--sun);
}

.nl-navlinks {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.nl-navlinks a {
    color: var(--muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.88rem;
    padding: 8px 14px;
    border-radius: 999px;
    transition: color 0.15s, background 0.15s;
}

.nl-navlinks a:hover {
    color: var(--text);
    background: var(--glass);
}

.nl-navlinks a.here {
    color: var(--text);
    background: rgba(255, 107, 138, 0.14);
}

.nl-navlinks .sep {
    display: none;
}

/* Legacy topnav (inner pages) */
.nl-topnav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: var(--space-lg);
    padding: 12px 18px;
    border-radius: var(--radius-lg);
    background: var(--surface);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
}

.nl-topnav a {
    color: var(--muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.88rem;
    padding: 6px 12px;
    border-radius: 999px;
    transition: color 0.15s, background 0.15s;
}

.nl-topnav a:hover {
    color: var(--text);
    background: var(--glass);
}

.nl-topnav .here {
    color: var(--text);
    background: rgba(255, 107, 138, 0.14);
    padding: 6px 12px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.88rem;
}

.nl-topnav .sep {
    display: none;
}

/* ── Layout ── */
.nl-container {
    width: min(1140px, 100%);
    margin: 0 auto;
    padding: var(--space-md) var(--content-pad) 72px;
}

.nl-container > section {
    margin-bottom: var(--space-2xl);
}

.nl-container > section:last-of-type {
    margin-bottom: var(--space-xl);
}

.nl-container--narrow {
    width: min(860px, 92vw);
}

.nl-muted {
    color: var(--muted);
}

/* ── Typography ── */
.nl-display {
    font-family: var(--font-display);
    letter-spacing: -0.03em;
    line-height: 1.05;
}

.nl-gradient-text {
    background: var(--accent-grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nl-gradient-sky {
    background: var(--sky-grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ── Components ── */
.nl-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    background: rgba(255, 107, 138, 0.12);
    border: 1px solid rgba(255, 107, 138, 0.35);
    color: #ffc4d0;
}

.nl-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    border: none;
    border-radius: 14px;
    padding: 14px 24px;
    font-family: var(--font-body);
    font-weight: 800;
    font-size: 0.95rem;
    cursor: pointer;
    color: #1a0810;
    background: var(--accent-grad);
    box-shadow: 0 8px 28px rgba(255, 107, 138, 0.35);
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.nl-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 36px rgba(255, 107, 138, 0.45);
    filter: brightness(1.04);
}

.nl-btn-ghost {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-soft);
    border: 1px solid var(--border-strong);
    border-radius: 14px;
    padding: 13px 20px;
    font-weight: 600;
    font-size: 0.92rem;
    background: var(--glass);
    backdrop-filter: blur(8px);
    transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.nl-btn-ghost:hover {
    color: var(--text);
    border-color: rgba(79, 209, 197, 0.45);
    background: rgba(79, 209, 197, 0.08);
}

.nl-btn-sm {
    padding: 10px 16px;
    font-size: 0.85rem;
    border-radius: 11px;
}

.nl-card {
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    background: var(--surface);
    backdrop-filter: blur(16px);
    padding: 24px;
    box-shadow: var(--shadow);
}

.nl-glass {
    background: var(--surface);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(16px);
    border-radius: var(--radius-lg);
}

/* ── Landing Hero ── */
.nl-hero-v2 {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: clamp(28px, 4vw, 48px);
    align-items: center;
    padding: var(--space-xl) 0 var(--space-lg);
}

.nl-hero-v2 h1 {
    margin: 20px 0 22px;
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.03em;
}

.nl-hero-v2 .lead {
    margin: 0 0 32px;
    color: var(--muted);
    font-size: 1.06rem;
    line-height: var(--line-body);
    max-width: 32em;
}

.nl-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-bottom: 20px;
}

.nl-hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 0.86rem;
    color: var(--muted);
}

.nl-hero-trust li {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nl-hero-trust li::before {
    content: "✓";
    color: var(--aqua);
    font-weight: 800;
}

.nl-hero-visual {
    position: relative;
}

.nl-hero-card {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow), var(--shadow-glow);
}

.nl-hero-card img {
    display: block;
    width: 100%;
    height: 320px;
    object-fit: cover;
}

.nl-hero-float {
    position: absolute;
    border-radius: var(--radius);
    padding: 16px 18px;
    background: rgba(12, 9, 24, 0.88);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
    font-size: 0.88rem;
    line-height: var(--line-body);
    max-width: min(220px, 45%);
}

.nl-hero-float--tl {
    top: 16px;
    left: 16px;
}

.nl-hero-float--br {
    bottom: 16px;
    right: 16px;
    text-align: right;
}

.nl-hero-float strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--sun);
}

/* ── Bento Grid ── */
.nl-section-title {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    margin: 0 0 12px;
    letter-spacing: -0.02em;
    line-height: var(--line-tight);
}

.nl-section-sub {
    color: var(--muted);
    margin: 0 0 28px;
    max-width: 38em;
    line-height: var(--line-body);
    font-size: 1.02rem;
}

.nl-bento {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 18px;
    margin: 0;
}

.nl-bento-item {
    grid-column: span 3;
    padding: clamp(28px, 4vw, 36px) clamp(24px, 4vw, 32px);
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
    background: var(--surface);
    backdrop-filter: blur(12px);
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
    min-width: 0;
}

.nl-bento-item:hover {
    transform: translateY(-3px);
    border-color: rgba(79, 209, 197, 0.3);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}

.nl-bento-item.span-6 {
    grid-column: span 6;
}

.nl-bento-item.span-4 {
    grid-column: span 4;
}

.nl-bento-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-size: 1.3rem;
    margin-bottom: 14px;
}

.nl-bento-icon.coral { background: rgba(255, 107, 138, 0.18); }
.nl-bento-icon.aqua { background: rgba(79, 209, 197, 0.18); }
.nl-bento-icon.sun { background: rgba(255, 229, 102, 0.15); }
.nl-bento-icon.violet { background: rgba(183, 148, 246, 0.18); }

.nl-bento-item h3 {
    margin: 0 0 12px;
    font-family: var(--font-display);
    font-size: 1.08rem;
    font-weight: 700;
    line-height: var(--line-tight);
}

.nl-bento-item p {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: var(--line-body);
}

/* ── Steps ── */
.nl-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
    margin: 0;
}

.nl-step {
    padding: clamp(28px, 4vw, 36px) clamp(24px, 4vw, 32px);
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
    background: linear-gradient(160deg, rgba(255, 107, 138, 0.06), rgba(79, 209, 197, 0.04));
    position: relative;
    min-width: 0;
}

.nl-step-num {
    font-family: var(--font-display);
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1;
    background: var(--accent-grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    opacity: 0.85;
    margin-bottom: 14px;
}

.nl-step h3 {
    margin: 0 0 12px;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: var(--line-tight);
}

.nl-step p {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: var(--line-body);
}

/* ── CTA Band ── */
.nl-cta-band {
    margin: 0;
    padding: clamp(56px, 9vw, 84px) clamp(28px, 6vw, 72px);
    border-radius: var(--radius-xl);
    text-align: center;
    border: 1px solid var(--glass-border);
    background:
        linear-gradient(135deg, rgba(255, 107, 138, 0.12), rgba(79, 209, 197, 0.08)),
        var(--surface);
    backdrop-filter: blur(16px);
    box-shadow: var(--shadow-glow);
}

.nl-cta-inner {
    max-width: 560px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
}

.nl-cta-band h2 {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(1.55rem, 3.2vw, 2rem);
    font-weight: 800;
    line-height: 1.45;
    letter-spacing: -0.02em;
    text-wrap: balance;
}

.nl-cta-band p {
    margin: 0;
    color: var(--muted);
    line-height: 1.75;
    font-size: 1.05rem;
    max-width: 28em;
    text-wrap: pretty;
}

.nl-cta-band .nl-btn {
    margin-top: 4px;
}

/* ── Footer ── */
.nl-footer-v2 {
    padding: var(--space-xl) 0 var(--space-2xl);
    border-top: 1px solid var(--border);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: var(--line-body);
}

.nl-footer-v2 a {
    color: var(--link);
    text-decoration: none;
    font-weight: 600;
}

.nl-footer-v2 a:hover {
    text-decoration: underline;
}

.nl-footer {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 0.88rem;
    text-align: center;
}

.nl-footer a {
    color: var(--link);
    text-decoration: none;
    font-weight: 600;
}

/* ── Changelog ── */
.nl-release {
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg) var(--content-pad);
    margin-bottom: 16px;
    background: var(--surface);
    backdrop-filter: blur(12px);
    transition: border-color 0.15s;
}

.nl-release:hover {
    border-color: rgba(255, 107, 138, 0.25);
}

.nl-release h2 {
    margin: 0 0 4px;
    font-family: var(--font-display);
    font-size: 1.08rem;
    font-weight: 700;
}

.nl-release .meta {
    color: var(--muted);
    font-size: 0.82rem;
    margin-bottom: 12px;
}

.nl-release ul {
    margin: 0;
    padding-left: 1.35rem;
    color: var(--text-soft);
    line-height: var(--line-body);
    font-size: 0.95rem;
}

.nl-release ul li + li {
    margin-top: 8px;
}

/* ── Responsive ── */
@media (max-width: 960px) {
    .nl-hero-v2 {
        grid-template-columns: 1fr;
        padding-top: 24px;
    }

    .nl-hero-card img {
        height: 240px;
    }

    .nl-bento-item,
    .nl-bento-item.span-6,
    .nl-bento-item.span-4 {
        grid-column: span 12;
    }

    .nl-steps {
        grid-template-columns: 1fr;
    }

    .nl-cta-band {
        padding: 48px 24px;
    }

    .nl-cta-inner {
        gap: 24px;
    }

    .nl-navbar {
        border-radius: var(--radius-lg);
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 560px) {
    .nl-navlinks {
        width: 100%;
        justify-content: center;
    }

    .nl-cta-row {
        flex-direction: column;
        align-items: stretch;
    }

    .nl-btn,
    .nl-btn-ghost {
        justify-content: center;
        width: 100%;
    }
}
