/* ─── Design Tokens (Light) ───────────────────── */
:root {
    --blue: #0071b9;
    --blue-dark: #005a94;
    --blue-bright: #1a8fff;
    --blue-soft: rgba(0, 113, 185, 0.07);
    --blue-mid: rgba(0, 113, 185, 0.14);
    --navy: #0b1e3d;
    --navy-text: #0d2b52;

    --bg-page: #f4f7f9;
    --bg-white: #ffffff;
    --bg-section: #eef3f8;

    --text-main: #1a2d44;
    --text-muted: #5a7394;
    --text-light: #8fa3bf;

    --border: #ccd8e4;
    --border-soft: #dde6ef;

    --font-display: 'DM Sans', sans-serif;
    --font-mono: 'DM Mono', monospace;
}

* {
    border-radius: 0 !important;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg-page);
    color: var(--text-main);
    margin: 0;
    overflow-x: hidden;
}

/* ─── Header ──────────────────────────────────── */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 56px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    padding: 0 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.brand-logo {
    height: 30px;
}

.brand-name {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.3px;
    color: var(--text-main);
}

.brand-name span {
    color: var(--blue);
}

.brand-sub {
    font-size: 10px;
    color: var(--text-muted);
    letter-spacing: 0.3px;
    margin-top: 2px;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-pill {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    background: transparent;
    border: 1px solid var(--border);
    padding: 5px 14px;
    cursor: pointer;
    transition: all 0.18s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.nav-pill:hover {
    color: var(--blue);
    border-color: var(--blue);
    background: var(--blue-soft);
}

.nav-pill-primary {
    background: var(--blue);
    border-color: var(--blue);
    color: #fff !important;
}

.nav-pill-primary:hover {
    background: var(--blue-dark);
    border-color: var(--blue-dark);
    color: #fff;
}

/* ─── Hero ────────────────────────────────────── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--bg-white);
}

/* Fine dot grid */
.hero-grid {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(0, 113, 185, 0.18) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
    animation: grid-drift 24s linear infinite;
}

@keyframes grid-drift {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 28px 28px;
    }
}

/* Subtle colour wash */
.hero-wash {
    position: absolute;
    top: -15%;
    right: -8%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(0, 113, 185, 0.06) 0%, transparent 65%);
    pointer-events: none;
}

.hero-wash-2 {
    position: absolute;
    bottom: -10%;
    left: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 191, 255, 0.05) 0%, transparent 65%);
    pointer-events: none;
}

/* Animated thin rule */
.hero-rule {
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(0, 113, 185, 0.25) 30%, rgba(0, 113, 185, 0.5) 50%, rgba(0, 113, 185, 0.25) 70%, transparent 100%);
    animation: rule-scan 7s ease-in-out infinite;
    pointer-events: none;
}

@keyframes rule-scan {
    0% {
        top: 8%;
        opacity: 0;
    }

    8% {
        opacity: 1;
    }

    92% {
        opacity: 1;
    }

    100% {
        top: 92%;
        opacity: 0;
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 40px 10px;
}

/* Status pill */
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--blue);
    border: 1px solid rgba(0, 113, 185, 0.25);
    background: var(--blue-soft);
    padding: 4px 12px;
    margin-bottom: 24px;
    animation: fade-up 0.5s ease both;
}

.live-dot {
    width: 6px;
    height: 6px;
    background: #21835d;
    border-radius: 50% !important;
    animation: blink 2s ease-in-out infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.35;
    }
}

/* Headline */
.hero-h1 {
    font-size: clamp(38px, 5.5vw, 66px);
    font-weight: 700;
    line-height: 1.06;
    letter-spacing: -2px;
    color: var(--navy);
    margin-bottom: 22px;
    animation: fade-up 0.5s 0.08s ease both;
}

.hero-h1 .accent-line {
    color: var(--blue);
    display: block;
}

.hero-h1 .stroke-line {
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(0, 113, 185, 0.35);
    display: block;
}

.hero-sub {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 460px;
    margin-bottom: 36px;
    animation: fade-up 0.5s 0.16s ease both;
}

.hero-cta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    animation: fade-up 0.5s 0.24s ease both;
}

.btn-primary-hero {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: var(--blue);
    color: #fff;
    border: none;
    padding: 13px 28px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.18s, transform 0.18s;
    text-decoration: none;
}

.btn-primary-hero:hover {
    background: var(--blue-dark);
    color: #fff;
    transform: translateY(-1px);
}

.btn-ghost-hero {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--border);
    padding: 13px 28px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.18s;
    text-decoration: none;
}

.btn-ghost-hero:hover {
    border-color: var(--blue);
    color: var(--blue);
    background: var(--blue-soft);
    transform: translateY(-1px);
}

/* Stats strip */
.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 48px;
    padding-top: 28px;
    border-top: 1px solid var(--border-soft);
    animation: fade-up 0.5s 0.32s ease both;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.stat-num {
    font-size: 26px;
    font-weight: 700;
    font-family: var(--font-mono);
    color: var(--navy);
    letter-spacing: -0.5px;
    line-height: 1;
}

.stat-num em {
    color: var(--blue);
    font-style: normal;
}

.stat-lbl {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 600;
}

/* ─── Hero right — dashboard mockup ──────────── */
.hero-visual {
    animation: fade-up 0.7s 0.15s ease both;
}

.mock-window {
    background: #fff;
    border: 1px solid var(--border);
    box-shadow:
        0 4px 6px rgba(0, 0, 0, 0.04),
        0 20px 48px rgba(0, 113, 185, 0.08),
        0 0 0 1px rgba(0, 113, 185, 0.06);
    overflow: hidden;
}

.mock-bar {
    height: 36px;
    background: #f7f9fb;
    border-bottom: 1px solid var(--border-soft);
    display: flex;
    align-items: center;
    padding: 0 14px;
    gap: 6px;
}

.mock-dot {
    width: 8px;
    height: 8px;
    border-radius: 50% !important;
}

.mock-dot-r {
    background: #ff5f57;
}

.mock-dot-y {
    background: #ffbd2e;
}

.mock-dot-g {
    background: #28c840;
}

.mock-url {
    font-size: 10px;
    font-family: var(--font-mono);
    color: var(--text-muted);
    margin-left: 8px;
    background: #eef2f6;
    border: 1px solid var(--border-soft);
    padding: 2px 10px;
    letter-spacing: 0.2px;
}

.mock-body {
    padding: 16px;
}

/* KPI row */
.mock-kpi-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 16px;
}

.mock-kpi {
    background: var(--bg-page);
    border: 1px solid var(--border-soft);
    padding: 10px 12px;
    text-align: center;
}

.mock-kpi-val {
    font-size: 18px;
    font-weight: 700;
    font-family: var(--font-mono);
    color: var(--navy);
}

.mock-kpi-val.blue {
    color: var(--blue);
}

.mock-kpi-lbl {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Mini chart */
.mock-chart {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 56px;
    margin-bottom: 14px;
    padding: 0 2px;
}

.mock-bar-item {
    flex: 1;
    background: var(--blue-mid);
    transition: background 0.2s;
    animation: bar-up 0.8s ease both;
    transform-origin: bottom;
}

.mock-bar-item:hover {
    background: var(--blue);
}

.mock-bar-item.hi {
    background: var(--blue);
}

@keyframes bar-up {
    from {
        transform: scaleY(0);
    }

    to {
        transform: scaleY(1);
    }
}

.mock-bar-item:nth-child(1) {
    height: 38%;
    animation-delay: .5s;
}

.mock-bar-item:nth-child(2) {
    height: 60%;
    animation-delay: .55s;
}

.mock-bar-item:nth-child(3) {
    height: 44%;
    animation-delay: .6s;
}

.mock-bar-item:nth-child(4) {
    height: 80%;
    animation-delay: .65s;
}

.mock-bar-item:nth-child(5) {
    height: 52%;
    animation-delay: .7s;
}

.mock-bar-item:nth-child(6) {
    height: 68%;
    animation-delay: .75s;
}

.mock-bar-item:nth-child(7) {
    height: 40%;
    animation-delay: .8s;
}

.mock-bar-item:nth-child(8) {
    height: 90%;
    animation-delay: .85s;
}

.mock-bar-item:nth-child(9) {
    height: 58%;
    animation-delay: .9s;
}

.mock-bar-item:nth-child(10) {
    height: 72%;
    animation-delay: .95s;
}

.mock-bar-item:nth-child(11) {
    height: 48%;
    animation-delay: 1s;
}

.mock-bar-item:nth-child(12) {
    height: 84%;
    animation-delay: 1.05s;
}

/* Mini table */
.mock-table {
    font-size: 10px;
    font-family: var(--font-mono);
}

.mock-thead {
    display: flex;
    gap: 8px;
    padding: 4px 0;
    border-bottom: 2px solid var(--border-soft);
    margin-bottom: 2px;
}

.mock-thead div {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-light);
    font-weight: 700;
}

.mock-row {
    display: flex;
    gap: 8px;
    padding: 5px 0;
    border-bottom: 1px solid var(--border-soft);
    animation: row-in 0.35s ease both;
}

.mock-row:last-child {
    border: none;
}

@keyframes row-in {
    from {
        opacity: 0;
        transform: translateX(-4px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.mock-row:nth-child(1) {
    animation-delay: 1.1s;
}

.mock-row:nth-child(2) {
    animation-delay: 1.25s;
}

.mock-row:nth-child(3) {
    animation-delay: 1.4s;
}

.mock-row:nth-child(4) {
    animation-delay: 1.55s;
}

.mc-id {
    color: var(--text-light);
    width: 36px;
    flex-shrink: 0;
}

.mc-name {
    color: var(--text-main);
    flex: 2;
    font-size: 10px;
}

.mc-val {
    color: var(--blue);
    flex: 1;
    text-align: right;
}

.mc-tag {
    font-size: 8px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 1px 6px;
    background: rgba(33, 131, 93, 0.1);
    color: #21835d;
    white-space: nowrap;
    letter-spacing: 0.3px;
}

.mc-tag.warn {
    background: rgba(255, 189, 46, 0.15);
    color: #b87d00;
}

/* Floating labels */
.float-badge {
    position: absolute;
    font-size: 11px;
    font-weight: 600;
    font-family: var(--font-mono);
    padding: 5px 12px;
    background: #fff;
    border: 1px solid var(--border);
    color: var(--text-muted);
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.07);
    pointer-events: none;
}

.float-badge-1 {
    top: -14px;
    right: 24px;
    color: var(--blue);
    border-color: rgba(0, 113, 185, 0.25);
    background: var(--blue-soft);
    animation: float 3s ease-in-out infinite;
}

.float-badge-2 {
    bottom: 24px;
    left: -16px;
    animation: float 3s 1.2s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

/* ─── Tools Section ───────────────────────────── */
.tools-section {
    background: var(--bg-page);
    padding: 100px 0;
    position: relative;
}

.tools-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--blue), transparent);
}

.sec-eyebrow {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--blue);
    margin-bottom: 10px;
}

.sec-title {
    font-size: clamp(26px, 4vw, 40px);
    font-weight: 700;
    letter-spacing: -1px;
    color: var(--navy);
    line-height: 1.1;
    margin-bottom: 12px;
}

.sec-sub {
    font-size: 15px;
    color: var(--text-muted);
    max-width: 460px;
    margin: 0 auto 56px;
    line-height: 1.6;
}

/* Tool card */
.tool-card {
    background: #fff;
    border: 1px solid var(--border);
    padding: 26px 22px;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.tool-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--blue), rgba(0, 191, 255, 0.8));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s;
}

.tool-card:hover {
    border-color: var(--blue);
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0, 113, 185, 0.1);
}

.tool-card:hover::after {
    transform: scaleX(1);
}

.tool-icon {
    width: 42px;
    height: 42px;
    background: var(--blue-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--blue);
    margin-bottom: 16px;
    transition: background 0.2s, color 0.2s;
    flex-shrink: 0;
}

.tool-card:hover .tool-icon {
    background: var(--blue);
    color: #fff;
}

.tool-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 8px;
    letter-spacing: -0.2px;
}

.tool-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
    flex-grow: 1;
    margin-bottom: 18px;
}

.tool-cta {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--blue);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    padding-bottom: 1px;
    border-bottom: 1px solid transparent;
    transition: gap 0.18s, border-color 0.18s;
}

.tool-cta:hover {
    gap: 9px;
    border-bottom-color: var(--blue);
    color: var(--blue);
}

/* ─── Why section ─────────────────────────────── */
.why-section {
    background: var(--navy);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

/* Light dot grid on dark bg */
.why-grid {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
}

.why-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 26px;
    height: 100%;
    transition: border-color 0.2s, background 0.2s;
}

.why-card:hover {
    border-color: rgba(0, 113, 185, 0.4);
    background: rgba(0, 113, 185, 0.06);
}

.why-icon {
    width: 40px;
    height: 40px;
    background: rgba(0, 113, 185, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #60b8f0;
    margin-bottom: 14px;
}

.why-title {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.why-desc {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.6;
}

/* ─── CTA strip ───────────────────────────────── */
.cta-section {
    background: #fff;
    padding: 80px 0;
    border-top: 1px solid var(--border-soft);
}

.cta-box {
    background: var(--bg-page);
    border: 1px solid var(--border);
    padding: 52px 48px;
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--blue), rgba(0, 191, 255, 0.7), var(--blue));
}

/* Corner decorative grid */
.cta-box::after {
    content: '';
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 200px;
    height: 200px;
    background-image: radial-gradient(circle, rgba(0, 113, 185, 0.12) 1px, transparent 1px);
    background-size: 16px 16px;
    pointer-events: none;
}

.cta-title {
    font-size: clamp(22px, 3vw, 34px);
    font-weight: 700;
    color: var(--navy);
    letter-spacing: -1px;
    line-height: 1.15;
    margin-bottom: 12px;
}

.cta-sub {
    font-size: 15px;
    color: var(--text-muted);
    max-width: 380px;
    line-height: 1.6;
}

/* ─── Footer ──────────────────────────────────── */
.qd-footer {
    background: #fff;
    border-top: 1px solid var(--border-soft);
    padding: 18px 24px;
    text-align: center;
}

.qd-footer p,
.qd-footer small {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0;
}

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

/* ─── Animations & Reveals ────────────────────── */
@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.rd1 {
    transition-delay: 0.05s;
}

.rd2 {
    transition-delay: 0.12s;
}

.rd3 {
    transition-delay: 0.19s;
}

.rd4 {
    transition-delay: 0.26s;
}

.rd5 {
    transition-delay: 0.33s;
}

.rd6 {
    transition-delay: 0.40s;
}

.rd7 {
    transition-delay: 0.47s;
}

/* ─── Responsive ──────────────────────────────── */
@media (max-width: 991px) {
    .hero-visual {
        margin-top: 48px;
    }

    .float-badge-1,
    .float-badge-2 {
        display: none;
    }

    .hero-stats {
        gap: 24px;
    }

    .cta-box {
        padding: 36px 24px;
    }
}

@media (max-width: 576px) {
    .hero-cta {
        flex-direction: column;
    }

    .btn-primary-hero,
    .btn-ghost-hero {
        justify-content: center;
    }

    .tools-section,
    .why-section {
        padding: 64px 0;
    }
}