:root {
    --bg-0: #ffffff;
    --bg-1: #f3f7fb;
    --bg-2: #ffffff;
    --bg-3: #eaf2f8;
    --navy: #16324f;
    --navy-deep: #0a1a2e;
    --cyan: #00d4e8;
    --cyan-dim: #00a8b8;
    --blue: #3a7bd5;
    --blue-mid: #2e6bb5;
    --text: #16324f;
    --text-muted: #5a7390;
    --border: rgba(22, 50, 79, 0.14);
    --glow: 0 0 28px rgba(0, 212, 232, 0.18);
    --cta-text: #041018;
    --nok: #c94a4a;
    --ok: var(--cyan-dim);
    --header-h: 76px;
    --radius: 16px;
    --font-display: "Outfit", system-ui, sans-serif;
    --font-body: "Source Sans 3", "Outfit", system-ui, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg-0);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.6;
    min-height: 100vh;
}

h1, h2, h3, h4, .navbar-brand, .footer-heading {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--navy);
}

a {
    color: var(--blue);
    text-decoration: none;
}

a:hover {
    color: var(--cyan-dim);
}

img {
    max-width: 100%;
    height: auto;
}

:focus-visible {
    outline: 2px solid var(--cyan);
    outline-offset: 3px;
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: -4rem;
    background: var(--cyan);
    color: var(--cta-text);
    padding: 0.5rem 0.85rem;
    z-index: 2000;
    font-weight: 600;
}

.skip-link:focus {
    top: 0.75rem;
}

/* Placeholders */
.ph {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.1rem;
    border: 1px dashed rgba(0, 168, 184, 0.65);
    background: rgba(0, 212, 232, 0.08);
    color: var(--cyan-dim);
    padding: 0.12rem 0.5rem;
    border-radius: 5px;
    font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
    font-size: 0.82em;
    line-height: 1.35;
    vertical-align: baseline;
}

.ph--block {
    display: flex;
    width: 100%;
    min-height: 160px;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1.25rem;
    background:
        linear-gradient(180deg, rgba(0, 212, 232, 0.06), rgba(58, 123, 213, 0.05)),
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 8px,
            rgba(22, 50, 79, 0.03) 8px,
            rgba(22, 50, 79, 0.03) 16px
        );
}

.ph__token {
    color: var(--navy);
    letter-spacing: 0.01em;
}

.ph__hint {
    color: var(--text-muted);
    font-size: 0.78em;
    font-family: var(--font-body);
}

.btn .ph {
    background: transparent;
    border-color: rgba(4, 16, 24, 0.28);
    color: inherit;
}

.btn .ph__token {
    color: inherit;
}

.btn-ghost .ph {
    border-color: rgba(0, 168, 184, 0.5);
    color: var(--cyan-dim);
}

.btn-ghost .ph__token {
    color: var(--navy);
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1030;
}

.site-nav {
    background: rgba(255, 255, 255, 0.86);
    padding: 0.65rem 0;
    transition: background 0.25s ease, backdrop-filter 0.25s ease, box-shadow 0.25s ease;
}

.site-nav.is-scrolled {
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 var(--border);
}

.brand-logo {
    height: 42px;
    width: auto;
    max-width: min(280px, 58vw);
    object-fit: contain;
    object-position: left center;
}

.navbar-toggler {
    border-color: var(--border);
}

.nav-link {
    color: var(--text-muted) !important;
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.45rem 0.7rem !important;
}

.nav-link:hover,
.nav-link.active {
    color: var(--navy) !important;
}

.nav-docs {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.nav-docs .ph {
    font-size: 0.75rem;
}

/* Buttons */
.btn-primary {
    --bs-btn-bg: var(--cyan);
    --bs-btn-border-color: var(--cyan);
    --bs-btn-color: var(--cta-text);
    --bs-btn-hover-bg: #3de0ee;
    --bs-btn-hover-border-color: #3de0ee;
    --bs-btn-hover-color: var(--cta-text);
    --bs-btn-active-bg: var(--cyan-dim);
    --bs-btn-active-border-color: var(--cyan-dim);
    --bs-btn-active-color: var(--cta-text);
    --bs-btn-focus-shadow-rgb: 0, 212, 232;
    font-family: var(--font-display);
    font-weight: 600;
    box-shadow: var(--glow);
}

.btn-ghost {
    border: 1px solid rgba(22, 50, 79, 0.28);
    color: var(--navy);
    background: transparent;
    font-family: var(--font-display);
    font-weight: 600;
}

.btn-ghost:hover {
    background: rgba(0, 212, 232, 0.1);
    color: var(--navy);
    border-color: var(--cyan);
}

.btn-navy {
    background: var(--navy);
    border-color: var(--navy);
    color: #fff;
    font-family: var(--font-display);
    font-weight: 600;
}

.btn-navy:hover {
    background: var(--blue-mid);
    border-color: var(--blue-mid);
    color: #fff;
}

/* Layout helpers */
.section {
    position: relative;
    padding: 5.5rem 0;
}

.section--alt {
    background: var(--bg-1);
}

.eyebrow {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--cyan-dim);
    margin-bottom: 0.85rem;
}

.section-title {
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    margin-bottom: 0.75rem;
}

.lead-muted {
    color: var(--text-muted);
    max-width: 40rem;
}

.hex-grid {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        radial-gradient(circle at 18% 28%, rgba(0, 212, 232, 0.12), transparent 28%),
        radial-gradient(circle at 78% 18%, rgba(58, 123, 213, 0.1), transparent 32%),
        linear-gradient(rgba(22, 50, 79, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(22, 50, 79, 0.07) 1px, transparent 1px);
    background-size: auto, auto, 48px 48px, 48px 48px;
    mask-image: radial-gradient(ellipse at center, black 40%, transparent 78%);
}

/* Cards */
.glass-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.4rem;
    height: 100%;
    box-shadow: 0 10px 28px rgba(22, 50, 79, 0.05);
    transition: box-shadow 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.glass-card:hover {
    border-color: rgba(0, 168, 184, 0.45);
    box-shadow: var(--glow);
    transform: translateY(-2px);
}

.icon-hex {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    color: var(--cyan-dim);
    margin-bottom: 1rem;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpolygon points='24,3 44,14 44,34 24,45 4,34 4,14' fill='none' stroke='%2316324F' stroke-width='2'/%3E%3C/svg%3E") center / contain no-repeat;
}

.icon-hex i {
    font-size: 1.1rem;
}

.node-row {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 1rem;
}

.node {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 10px var(--cyan);
    animation: pulse-node 2.6s ease-in-out infinite;
}

.node--blue {
    background: var(--blue);
    box-shadow: 0 0 10px var(--blue);
    animation-delay: 0.4s;
}

.node-line {
    height: 1px;
    flex: 1;
    background: linear-gradient(90deg, var(--navy), var(--blue), var(--navy));
}

@keyframes pulse-node {
    0%, 100% { opacity: 0.55; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.25); }
}

.reveal {
    opacity: 0;
    transform: translateY(16px);
    animation: fade-up 0.7s ease forwards;
}

.reveal:nth-child(2) { animation-delay: 0.08s; }
.reveal:nth-child(3) { animation-delay: 0.16s; }
.reveal:nth-child(4) { animation-delay: 0.24s; }

@keyframes fade-up {
    to { opacity: 1; transform: none; }
}

/* Hero */
.hero {
    position: relative;
    padding: 4.5rem 0 3.5rem;
    overflow: hidden;
    background: linear-gradient(180deg, #fff 0%, #f4f9fc 100%);
}

.hero h1 {
    font-size: clamp(2rem, 4.4vw, 3.4rem);
    line-height: 1.12;
    margin-bottom: 1rem;
}

.hero-lead {
    color: var(--text-muted);
    font-size: 1.12rem;
    margin-bottom: 1.6rem;
    max-width: 36rem;
}

.mock-window {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--glow), 0 18px 40px rgba(22, 50, 79, 0.1);
    overflow: hidden;
}

.mock-bar {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.7rem 0.9rem;
    background: var(--navy);
    border-bottom: 1px solid rgba(0, 212, 232, 0.25);
}

.mock-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #8fa3bb;
}

.mock-dot:nth-child(2) { background: var(--blue); }
.mock-dot:nth-child(3) { background: var(--cyan); }

.mock-title {
    margin-left: 0.5rem;
    font-size: 0.78rem;
    color: #d5e4f2;
    font-family: var(--font-display);
}

.mock-body {
    padding: 1rem;
}

.stat-chip {
    background: var(--bg-1);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.75rem;
}

.stat-chip .label {
    display: block;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.stat-chip .value {
    font-family: var(--font-display);
    font-size: 1.35rem;
    color: var(--navy);
}

.trust-bar {
    border-top: 1px solid var(--border);
    padding: 1.75rem 0 0;
    margin-top: 3rem;
}

.trust-item {
    text-align: center;
}

.trust-item .num {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--cyan-dim);
}

.trust-item .lbl {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.solution-strip {
    margin-top: 1.75rem;
    padding: 0.95rem 1.2rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: linear-gradient(90deg, rgba(0, 212, 232, 0.12), rgba(58, 123, 213, 0.08));
    text-align: center;
    font-family: var(--font-display);
    font-weight: 500;
    color: var(--navy);
}

/* Steps */
.step-rail {
    position: relative;
}

.step-rail::before {
    content: "";
    position: absolute;
    top: 22px;
    left: 12%;
    right: 12%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--blue), var(--cyan), var(--blue), transparent);
}

.step-num {
    width: 44px;
    height: 44px;
    margin: 0 auto 1rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid var(--cyan-dim);
    background: #fff;
    color: var(--navy);
    font-family: var(--font-display);
    font-weight: 600;
    position: relative;
    z-index: 1;
    box-shadow: var(--glow);
}

/* Table */
.table-dark-nq {
    --bs-table-bg: transparent;
    --bs-table-color: var(--text);
    --bs-table-border-color: var(--border);
    --bs-table-hover-bg: var(--bg-1);
    margin: 0;
    font-size: 0.92rem;
}

.badge-ok {
    background: rgba(0, 212, 232, 0.16);
    color: var(--cyan-dim);
    border: 1px solid rgba(0, 168, 184, 0.4);
    font-weight: 600;
}

.badge-nok {
    background: rgba(201, 74, 74, 0.1);
    color: var(--nok);
    border: 1px solid rgba(201, 74, 74, 0.3);
    font-weight: 600;
}

.chart-box {
    height: 160px;
    display: flex;
    align-items: flex-end;
    gap: 10px;
    padding: 1rem 0.5rem 0;
}

.chart-col {
    flex: 1;
    background: linear-gradient(180deg, var(--cyan), var(--navy));
    border-radius: 4px 4px 0 0;
    opacity: 0.9;
}

/* Pricing */
.price-card {
    padding: 1.75rem 1.4rem;
    position: relative;
}

.price-card--featured {
    border-color: rgba(0, 168, 184, 0.55);
    box-shadow: var(--glow);
    background: linear-gradient(180deg, rgba(0, 212, 232, 0.1), #fff);
}

.plan-badge {
    position: absolute;
    top: -12px;
    right: 18px;
    background: var(--cyan);
    color: var(--cta-text);
    font-size: 0.75rem;
    font-weight: 700;
    font-family: var(--font-display);
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
}

.price-list {
    list-style: none;
    padding: 0;
    margin: 1.2rem 0 1.5rem;
    color: var(--text-muted);
}

.price-list li {
    padding: 0.35rem 0 0.35rem 1.4rem;
    position: relative;
}

.price-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.75rem;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 8px var(--cyan);
}

/* Quotes */
.quote-slot {
    min-height: 210px;
}

.quote-mark {
    color: var(--blue);
    font-size: 2rem;
    line-height: 1;
}

/* FAQ */
.accordion-nq .accordion-item {
    background: #fff;
    border: 1px solid var(--border);
    margin-bottom: 0.65rem;
    border-radius: 12px !important;
    overflow: hidden;
}

.accordion-nq .accordion-button {
    background: #fff;
    color: var(--navy);
    font-family: var(--font-display);
    box-shadow: none;
}

.accordion-nq .accordion-button:not(.collapsed) {
    background: var(--bg-1);
    color: var(--cyan-dim);
}

.accordion-nq .accordion-body {
    color: var(--text-muted);
    background: var(--bg-1);
}

/* CTA band */
.cta-band {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2.5rem;
    background:
        radial-gradient(circle at 88% 20%, rgba(0, 212, 232, 0.18), transparent 32%),
        linear-gradient(180deg, #f7fcfe, #eef5fb);
}

.cta-hex {
    position: absolute;
    right: -40px;
    top: -30px;
    width: 260px;
    height: 260px;
    opacity: 0.4;
    pointer-events: none;
}

.form-control,
.form-select {
    background: #fff;
    border: 1px solid var(--border);
    color: var(--text);
}

.form-control:focus,
.form-select:focus {
    background: #fff;
    color: var(--text);
    border-color: var(--cyan);
    box-shadow: 0 0 0 0.2rem rgba(0, 212, 232, 0.18);
}

.form-control::placeholder {
    color: #8fa3bb;
}

.form-label {
    color: var(--text-muted);
    font-size: 0.88rem;
}

.contact-meta li {
    margin-bottom: 0.55rem;
    color: var(--text-muted);
}

.map-slot {
    min-height: 280px;
}

/* Account */
.auth-card {
    max-width: 480px;
    margin: 0 auto;
}

.nav-pills .nav-link {
    color: var(--text-muted) !important;
    border: 1px solid var(--border);
    background: #fff;
}

.nav-pills .nav-link.active {
    background: var(--cyan);
    color: var(--cta-text) !important;
    border-color: var(--cyan);
}

/* Footer */
.site-footer {
    background: var(--bg-1);
    border-top: 1px solid var(--border);
    padding: 3.5rem 0 1.5rem;
    margin-top: 2rem;
}

.footer-logo {
    height: 36px;
    width: auto;
    max-width: 240px;
    margin-bottom: 0.75rem;
}

.footer-tagline {
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.footer-heading {
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.9rem;
}

.footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-list li {
    margin-bottom: 0.4rem;
}

.footer-list a {
    color: var(--text-muted);
}

.footer-list a:hover {
    color: var(--cyan-dim);
}

.social-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.85rem;
}

.social-btn {
    display: inline-flex;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* 404 */
.page-404 {
    min-height: 70vh;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 4rem 1rem;
}

.feature-shot {
    min-height: 220px;
}

.compare-table {
    font-size: 0.92rem;
}

.compare-table th {
    font-family: var(--font-display);
    font-weight: 600;
}

.alert-nq {
    background: rgba(0, 212, 232, 0.12);
    border: 1px solid rgba(0, 168, 184, 0.35);
    color: var(--navy);
}

@media (max-width: 991.98px) {
    .site-nav {
        background: rgba(255, 255, 255, 0.96);
    }

    .step-rail::before {
        display: none;
    }

    .hero {
        padding-top: 2.5rem;
    }

    .cta-band {
        padding: 1.5rem;
    }
}
