:root {
    --nw-ink: #0b1f2a;
    --nw-navy: #0a2230;
    --nw-navy-soft: #12394a;
    --nw-teal: #00a87e;
    --nw-mint: #6de4bd;
    --nw-amber: #ffbf47;
    --nw-line: rgba(11, 31, 42, 0.12);
}

body {
    text-rendering: optimizeLegibility;
}

.nw-brand-name {
    color: var(--nw-ink);
    font-size: 1rem;
    letter-spacing: -0.01em;
    line-height: 1.05;
}

.nw-brand-tagline {
    color: #6b7f89;
    font-size: 0.66rem;
    letter-spacing: 0.08em;
    line-height: 1.2;
    text-transform: uppercase;
}

.nw-kicker {
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.nw-lead {
    font-size: 1.2rem;
    line-height: 1.7;
}

.nw-hero {
    background:
        radial-gradient(circle at 85% 20%, rgba(109, 228, 189, 0.2), transparent 28rem),
        linear-gradient(135deg, #071923 0%, var(--nw-navy) 52%, #0b3845 100%);
    color: #fff;
    overflow: hidden;
    position: relative;
}

.nw-hero::after {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 42px 42px;
    content: "";
    inset: 0;
    mask-image: linear-gradient(to left, #000, transparent 78%);
    pointer-events: none;
    position: absolute;
}

.nw-hero .container {
    position: relative;
    z-index: 1;
}

.nw-hero .display-4,
.nw-page-hero .display-4 {
    letter-spacing: -0.045em;
}

.nw-hero-notes {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.nw-hero-notes span {
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 99rem;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.75rem;
    padding: 0.4rem 0.75rem;
}

.nw-signal-card {
    backdrop-filter: blur(15px);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 1.25rem;
    box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.24);
    padding: 2rem;
}

.nw-live-dot {
    background: var(--nw-mint);
    border-radius: 50%;
    box-shadow: 0 0 0 6px rgba(109, 228, 189, 0.12);
    display: inline-block;
    height: 0.55rem;
    width: 0.55rem;
}

.letter-spacing {
    letter-spacing: 0.1em;
}

.nw-signal-list {
    counter-reset: signal;
    list-style: none;
    padding: 0;
}

.nw-signal-list li {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    display: grid;
    gap: 0.2rem;
    grid-template-columns: 5rem 1fr;
    padding: 1rem 0;
}

.nw-signal-list li:first-child {
    border-top: 0;
}

.nw-signal-list strong {
    color: var(--nw-mint);
}

.nw-signal-list span {
    color: rgba(255, 255, 255, 0.75);
}

.nw-tool-card {
    border: 1px solid transparent !important;
    transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.nw-tool-card:hover {
    border-color: rgba(0, 168, 126, 0.28) !important;
    box-shadow: 0 1.1rem 2.5rem rgba(7, 25, 35, 0.1) !important;
    transform: translateY(-3px);
}

.nw-icon-wrap {
    align-items: center;
    background: rgba(0, 168, 126, 0.11);
    border-radius: 0.85rem;
    color: var(--nw-teal);
    display: flex;
    height: 3rem;
    justify-content: center;
    width: 3rem;
}

.nw-principle,
.nw-guide-panel {
    background: rgba(0, 168, 126, 0.055);
    border: 1px solid rgba(0, 168, 126, 0.13);
    border-radius: 1rem;
    padding: 1.5rem;
}

.nw-principle > span {
    color: var(--nw-teal);
    display: block;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    margin-bottom: 1.25rem;
}

.nw-history {
    background:
        linear-gradient(105deg, rgba(255, 191, 71, 0.1), transparent 42%),
        var(--nw-navy);
    color: #fff;
}

.nw-history p {
    color: rgba(255, 255, 255, 0.78);
}

.nw-faq {
    border-top: 1px solid var(--nw-line);
    padding: 1.4rem 0;
}

.nw-faq:first-child {
    border-top: 0;
    padding-top: 0;
}

.nw-page-hero {
    background:
        radial-gradient(circle at 82% 5%, rgba(109, 228, 189, 0.17), transparent 28rem),
        linear-gradient(135deg, #081b25 0%, #0f3948 100%);
    color: #fff;
}

.nw-page-hero .nw-lead {
    color: rgba(255, 255, 255, 0.78);
}

.nw-prose-card {
    border-radius: 1.15rem;
}

.nw-prose-card p,
.nw-prose-card li {
    line-height: 1.8;
}

.nw-prose-card ul,
.nw-guide-panel ul,
.nw-guide-panel ol {
    padding-left: 1.25rem;
}

.nw-prose-card li,
.nw-guide-panel li {
    margin-bottom: 0.7rem;
}

.nw-policy-section {
    border-top: 1px solid var(--nw-line);
    margin-top: 2.2rem;
    padding-top: 2.2rem;
}

.nw-policy-section h2 {
    letter-spacing: -0.025em;
}

.nw-sticky-card {
    position: sticky;
    top: 6rem;
}

.nw-tool-guide {
    border-top: 1px solid var(--nw-line);
}

.nw-guide-panel h3 {
    margin-bottom: 1rem;
}

.nw-guide-panel li {
    color: #5b6e77;
    line-height: 1.65;
}

.nw-caution {
    background: rgba(255, 191, 71, 0.12);
    border: 1px solid rgba(255, 191, 71, 0.35);
    border-left: 4px solid var(--nw-amber);
    border-radius: 0.75rem;
    padding: 1.25rem;
}

.nw-footer {
    border-top: 1px solid var(--nw-line);
}

.nw-footer .nav-link {
    color: #647780;
}

.nw-footer .nav-link:hover {
    color: var(--nw-teal);
}

.dark .nw-brand-name {
    color: #eef8f5;
}

.dark .nw-principle,
.dark .nw-guide-panel {
    background: rgba(109, 228, 189, 0.055);
}

.dark .nw-guide-panel li {
    color: #9aabb2;
}

.dark .nw-tool-card:hover {
    box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, 0.28) !important;
}

@media (max-width: 767.98px) {
    .nw-hero .display-4,
    .nw-page-hero .display-4 {
        font-size: 2.35rem;
    }

    .nw-lead {
        font-size: 1.05rem;
    }

    .nw-signal-card {
        padding: 1.4rem;
    }

    .nw-signal-list li {
        grid-template-columns: 4.5rem 1fr;
    }

    .nw-sticky-card {
        position: static;
    }
}

@media (prefers-reduced-motion: reduce) {
    .nw-tool-card {
        transition: none;
    }
}
