﻿/* =====================================================================
   ITManager — Design System
   Plain vanilla CSS. No framework. No build step. No preprocessor.
   Change variables at the top to re-skin the whole site.
   ===================================================================== */


/* ========== 1.  Design tokens  ========================================= */
:root {
    /* ----- Colours ---------------------------------------------------- */
    /* Neutral "ink" scale */
    --ink-50: #f8fafc;
    --ink-100: #f1f5f9;
    --ink-200: #e2e8f0;
    --ink-300: #cbd5e1;
    --ink-400: #94a3b8;
    --ink-500: #64748b;
    --ink-600: #475569;
    --ink-700: #334155;
    --ink-900: #0f172a;
    --ink-950: #020617;
    /* Brand blue */
    --brand-50: #eef4ff;
    --brand-400: #7c96ff;
    --brand-500: #4f6bff;
    --brand-600: #2740ff;
    --brand-700: #1d2fd1;
    /* Accent rose/pink */
    --accent-400: #fb7185;
    --accent-500: #f43f5e;
    --accent-600: #e11d48;
    /* Supporting colours */
    --emerald-100: #d1fae5;
    --emerald-500: #10b981;
    --emerald-600: #059669;
    --emerald-700: #047857;
    --amber-100: #fef3c7;
    --amber-300: #fcd34d;
    --amber-500: #f59e0b;
    --amber-600: #d97706;
    --amber-700: #b45309;
    --rose-100: #ffe4e6;
    --rose-500: #f43f5e;
    --rose-700: #be123c;
    --violet-500: #8b5cf6;
    --violet-600: #7c3aed;
    --violet-700: #6d28d9;
    --cyan-500: #06b6d4;
    --cyan-600: #0891b2;
    /* Common surfaces */
    --bg-page: #ffffff;
    --bg-soft: #f8fafc;
    --bg-warm: linear-gradient(135deg, #fff9ec 0%, #fdecea 100%);
    --bg-cool: linear-gradient(135deg, #eef4ff 0%, #fdecea 100%);
    /* ----- Typography ------------------------------------------------- */
    --font-sans: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-display: "Space Grotesk", Inter, system-ui, sans-serif;
    --font-serif: "Playfair Display", Georgia, Cambria, serif;
    --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
    /* ----- Radii ------------------------------------------------------ */
    --radius-sm: 6px;
    --radius: 10px;
    --radius-md: 14px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-2xl: 24px;
    --radius-3xl: 32px;
    --radius-full: 9999px;
    /* ----- Shadows ---------------------------------------------------- */
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
    --shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
    --shadow-md: 0 10px 24px -8px rgba(15, 23, 42, 0.15);
    --shadow-lift: 0 12px 48px -12px rgba(15, 23, 42, 0.25), 0 2px 4px -1px rgba(15, 23, 42, 0.06);
    --shadow-glow: 0 0 60px -20px rgba(79, 107, 255, 0.45);
    --shadow-panel: 0 30px 80px -40px rgba(2, 6, 23, 0.55), 0 2px 4px -1px rgba(2, 6, 23, 0.1);
    /* ----- Layout ----------------------------------------------------- */
    --container-max: 1320px;
    --container-pad: 1.5rem;
    /* ----- Transitions ------------------------------------------------ */
    --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
    --t-fast: 0.12s;
    --t-mid: 0.24s;
}


/* ========== 2.  Reset / Base  ========================================== */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 6rem;
    text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.55;
    color: var(--ink-900);
    background: var(--bg-page);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--t-fast) var(--ease);
}

h1, h2, h3, h4, h5 {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.015em;
}

p {
    margin: 0;
}

ul, ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
}

::selection {
    background: var(--brand-600);
    color: #fff;
}


/* ========== 3.  Layout primitives ====================================== */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding-left: var(--container-pad);
    padding-right: var(--container-pad);
}

.section {
    padding: 4rem 0;
}

.section-md {
    padding: 5rem 0;
}

.section-lg {
    padding: 6rem 0;
}

.section-xl {
    padding: 7rem 0;
}

.stack {
    display: flex;
    flex-direction: column;
}

.stack-sm > * + * {
    margin-top: 0.5rem;
}

.stack-md > * + * {
    margin-top: 1rem;
}

.stack-lg > * + * {
    margin-top: 1.5rem;
}

.stack-xl > * + * {
    margin-top: 2rem;
}

.row {
    display: flex;
    align-items: center;
}

.row-gap-sm {
    gap: 0.5rem;
}

.row-gap {
    gap: 1rem;
}

.row-gap-lg {
    gap: 1.5rem;
}

.row-between {
    justify-content: space-between;
}

.row-center {
    justify-content: center;
}

.row-start {
    align-items: flex-start;
}

.row-wrap {
    flex-wrap: wrap;
}

/* Grid utilities — minimal, semantic-looking */
.grid {
    display: grid;
    gap: 1rem;
}

.grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.grid-5 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.grid-6 {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.grid-gap-sm {
    gap: 0.5rem;
}

.grid-gap {
    gap: 1rem;
}

.grid-gap-lg {
    gap: 1.5rem;
}

.grid-gap-xl {
    gap: 2rem;
}

@media (max-width: 960px) {
    .grid-3, .grid-4, .grid-5, .grid-6 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .grid-2, .grid-3, .grid-4, .grid-5, .grid-6 {
        grid-template-columns: 1fr;
    }
}

/* Split layout (hero text + visual) */
.split {
    display: grid;
    gap: 2.5rem;
    align-items: center;
}

.split-1-1 {
    grid-template-columns: 1fr 1fr;
}

.split-5-4 {
    grid-template-columns: 5fr 4fr;
}

.split-4-3 {
    grid-template-columns: 4fr 3fr;
}

@media (max-width: 960px) {
    .split-1-1, .split-5-4, .split-4-3 {
        grid-template-columns: 1fr;
    }
}


/* ========== 4.  Typography utilities =================================== */
.t-display {
    font-family: var(--font-display);
}

.t-serif {
    font-family: var(--font-serif);
}

.t-mono {
    font-family: var(--font-mono);
}

.t-xs {
    font-size: 11px;
}

.t-sm {
    font-size: 13px;
}

.t-md {
    font-size: 14px;
}

.t-lg {
    font-size: 16px;
}

.t-xl {
    font-size: 18px;
}

.t-2xl {
    font-size: 22px;
}

.t-3xl {
    font-size: 28px;
}

.t-bold {
    font-weight: 600;
}

.t-bolder {
    font-weight: 700;
}

.t-boldest {
    font-weight: 800;
}

.t-italic {
    font-style: italic;
}

.t-center {
    text-align: center;
}

.t-right {
    text-align: right;
}

.t-mute {
    color: var(--ink-500);
}

.t-muteW {
    color: rgba(255, 255, 255, 0.7);
}

.t-accent {
    color: var(--accent-500);
}

.t-brand {
    color: var(--brand-600);
}

.t-ink {
    color: var(--ink-900);
}

.t-white {
    color: #ffffff;
}

.t-amber {
    color: var(--amber-500);
}

.t-amber-dark {
    color: var(--amber-700);
}

.t-rose {
    color: var(--rose-500);
}

.t-rose-dark {
    color: var(--rose-700);
}

.t-emerald {
    color: var(--emerald-600);
}

.t-violet {
    color: var(--violet-600);
}

.t-cyan {
    color: var(--cyan-600);
}

.t-up {
    text-transform: uppercase;
    letter-spacing: 0.18em;
}

.t-lead {
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--ink-500);
}

/* Gradient-text accent used in headlines */
.t-gradient {
    background: linear-gradient(120deg, #4f6bff 0%, #7c3aed 30%, #f43f5e 60%, #f59e0b 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: grad-x 10s ease infinite;
}

@keyframes grad-x {
    0%, 100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}


/* ========== 5.  Heading scale ========================================== */
.h-xxl {
    font-size: clamp(2.5rem, 3vw + 1.5rem, 4.5rem);
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: -0.02em;
}

.h-xl {
    font-size: clamp(2.25rem, 3vw + 1rem, 4rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.02em;
}

.h-lg {
    font-size: clamp(1.75rem, 2vw + 1rem, 2.75rem);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.015em;
}

.h-md {
    font-size: clamp(1.5rem, 1.5vw + 1rem, 2.25rem);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.01em;
}

.h-sm {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.2;
}

.h-xs {
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.3;
}


/* ========== 6.  Eyebrow =============================================== */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--ink-500);
}

    .eyebrow::before {
        content: '';
        width: 6px;
        height: 6px;
        border-radius: 9999px;
        background: var(--accent-500);
    }

.eyebrow-dark {
    color: rgba(255, 255, 255, 0.6);
}


/* ========== 7.  Buttons ============================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    height: 2.5rem;
    padding: 0 1.25rem;
    border: 1px solid transparent;
    border-radius: var(--radius-full);
    background: transparent;
    color: inherit;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: transform var(--t-fast) var(--ease), background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}

    .btn:hover {
        transform: translateY(-2px);
    }

.btn-lg {
    height: 3rem;
    padding: 0 1.75rem;
    font-size: 15px;
}

.btn-xl {
    height: 3.5rem;
    padding: 0 2rem;
    font-size: 16px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--brand-600), var(--accent-500));
    color: #ffffff;
    box-shadow: var(--shadow-lift);
}

    .btn-primary:hover {
        box-shadow: 0 16px 56px -12px rgba(244, 63, 94, 0.45);
    }

.btn-amber {
    background: var(--amber-300);
    color: var(--ink-900);
}

    .btn-amber:hover {
        background: var(--amber-500);
    }

.btn-ghost {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

    .btn-ghost:hover {
        border-color: rgba(255, 255, 255, 0.6);
    }

.btn-outline {
    background: #ffffff;
    border-color: var(--ink-200);
    color: var(--ink-900);
}

    .btn-outline:hover {
        border-color: var(--ink-900);
    }

.btn-rose {
    background: linear-gradient(135deg, var(--rose-500), var(--accent-600));
    color: #ffffff;
}

.btn-rose-solid {
    background: var(--accent-500);
    color: #ffffff;
}


/* ========== 8.  Pills / badges ======================================== */
.pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.pill-light {
    background: var(--ink-100);
    color: var(--ink-700);
}

.pill-dark {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.pill-brand {
    background: var(--brand-50);
    color: var(--brand-700);
}

.pill-accent {
    background: var(--rose-100);
    color: var(--rose-700);
}

.pill-amber {
    background: var(--amber-100);
    color: var(--amber-700);
}

.pill-emerald {
    background: var(--emerald-100);
    color: var(--emerald-700);
}

.pill-live::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 9999px;
    background: currentColor;
    animation: pulse 1.8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.35;
    }
}

.kbd {
    font-family: var(--font-mono);
    font-size: 11px;
    background: var(--ink-100);
    padding: 2px 6px;
    border-radius: 4px;
    color: var(--ink-700);
}


/* ========== 9.  Cards ================================================ */
.card {
    background: #ffffff;
    border: 1px solid var(--ink-200);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
}

.card-lg {
    padding: 2rem;
}

.card-sm {
    padding: 1rem;
}

.card-lift {
    box-shadow: var(--shadow-lift);
}

.card-panel {
    box-shadow: var(--shadow-panel);
}

.card-accent {
    border-top: 4px solid var(--accent-500);
}

.card-hover {
    transition: transform var(--t-mid) var(--ease), box-shadow var(--t-mid) var(--ease), border-color var(--t-mid) var(--ease);
}

    .card-hover:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-lift);
    }

.card-dark {
    background: var(--ink-900);
    border-color: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.85);
}

    .card-dark h1, .card-dark h2, .card-dark h3, .card-dark h4 {
        color: #ffffff;
    }


/* Icon badges (a coloured square with an SVG inside) */
.icon-badge {
    display: inline-grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: var(--radius-md);
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand-600), var(--accent-500));
    box-shadow: var(--shadow-glow);
    flex: 0 0 auto;
}

    .icon-badge svg {
        width: 22px;
        height: 22px;
        stroke-width: 2;
    }

.icon-badge-lg {
    width: 3.5rem;
    height: 3.5rem;
}

    .icon-badge-lg svg {
        width: 28px;
        height: 28px;
    }

.icon-brand {
    background: linear-gradient(135deg, var(--brand-600), #4f6bff);
}

.icon-accent {
    background: linear-gradient(135deg, var(--accent-500), var(--accent-600));
}

.icon-amber {
    background: linear-gradient(135deg, var(--amber-500), var(--amber-600));
}

.icon-emerald {
    background: linear-gradient(135deg, var(--emerald-500), var(--emerald-600));
}

.icon-violet {
    background: linear-gradient(135deg, var(--violet-500), var(--violet-600));
}

.icon-cyan {
    background: linear-gradient(135deg, var(--cyan-500), var(--cyan-600));
}

.icon-rose {
    background: linear-gradient(135deg, var(--rose-500), var(--accent-600));
}


/* ========== 10.  Navigation bar ======================================= */
.nav {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: saturate(140%) blur(12px);
    -webkit-backdrop-filter: saturate(140%) blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.7);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
}

.nav-logo img {
    height: 2rem;
    width: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    font-size: 14px;
    font-weight: 500;
    color: var(--ink-700);
}

    .nav-links a:hover {
        color: var(--ink-900);
    }

    .nav-links a.current {
        color: var(--ink-900);
        font-weight: 600;
    }

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

@media (max-width: 960px) {
    .nav-links {
        display: none;
    }

    .nav-actions .btn {
        padding: 0 1rem;
    }
}


/* ========== 11.  Hero & sections ====================================== */
.hero {
    position: relative;
    overflow: hidden;
    padding: 5rem 0 4rem;
    background: var(--ink-950);
    color: #ffffff;
}

.hero-radial::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(1200px 600px at 50% -100px, rgba(79, 107, 255, 0.45), transparent 60%), radial-gradient(900px 500px at 90% 30%, rgba(244, 63, 94, 0.25), transparent 55%), radial-gradient(600px 400px at 0% 60%, rgba(16, 185, 129, 0.18), transparent 55%);
}

.hero-dots::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.06) 1px, transparent 0);
    background-size: 24px 24px;
    opacity: 0.6;
}

.hero > .container {
    position: relative;
    z-index: 1;
}

.hero-headline {
    margin-top: 1rem;
    color: #ffffff;
}

.hero-lead {
    max-width: 48rem;
    margin-top: 1.25rem;
    font-size: 1.125rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.75);
}

.section-warm {
    background: var(--bg-warm);
}

.section-soft {
    background: var(--bg-soft);
}

.section-dark {
    background: var(--ink-950);
    color: #ffffff;
}

    .section-dark h1, .section-dark h2, .section-dark h3 {
        color: #ffffff;
    }

    .section-dark .eyebrow {
        color: rgba(255, 255, 255, 0.6);
    }


/* ========== 12.  Feature grid (on home page) ========================== */
.feature-card {
    position: relative;
    border-radius: var(--radius-xl);
    background: #ffffff;
    border: 1px solid var(--ink-200);
    padding: 1.5rem;
    transition: transform var(--t-mid) var(--ease), border-color var(--t-mid) var(--ease), box-shadow var(--t-mid) var(--ease);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

    .feature-card:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-lift);
        border-color: var(--ink-900);
    }

    .feature-card h3 {
        font-size: 1.125rem;
    }

    .feature-card p {
        font-size: 14px;
        color: var(--ink-500);
    }


/* ========== 13.  Mock dashboard "frame" =============================== */
.mock-frame {
    background: #ffffff;
    border: 1px solid var(--ink-200);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-panel);
    overflow: hidden;
}

.mock-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid var(--ink-200);
    font-size: 11px;
    color: var(--ink-500);
}

    .mock-header h4 {
        font-size: 14px;
        font-weight: 600;
        color: var(--ink-900);
        font-family: var(--font-sans);
    }

/* Tiny data tables */
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

    .data-table th,
    .data-table td {
        text-align: left;
        padding: 0.75rem;
    }

    .data-table thead {
        background: var(--ink-50);
        font-size: 10px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        color: var(--ink-500);
    }

    .data-table tbody tr {
        border-top: 1px solid var(--ink-100);
    }

.status-chip {
    display: inline-flex;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 600;
}

.status-ok {
    background: var(--emerald-100);
    color: var(--emerald-700);
}

.status-warn {
    background: var(--amber-100);
    color: var(--amber-700);
}

.status-err {
    background: var(--rose-100);
    color: var(--rose-700);
}

.status-info {
    background: var(--brand-50);
    color: var(--brand-700);
}


/* ========== 14.  Stat callouts ======================================== */
.stat-card {
    position: relative;
    border-radius: var(--radius-xl);
    padding: 1.75rem;
    background: #ffffff;
    border: 1px solid var(--ink-200);
    text-align: left;
}

    .stat-card .stat-num {
        font-family: var(--font-display);
        font-weight: 700;
        font-size: clamp(2.25rem, 3vw + 1rem, 3.5rem);
        line-height: 1;
        letter-spacing: -0.02em;
        color: var(--accent-500);
        margin-bottom: 0.5rem;
    }

    .stat-card .stat-label {
        font-size: 13px;
        color: var(--ink-500);
        line-height: 1.45;
    }

.stat-card-dark {
    background: var(--ink-900);
    border-color: rgba(255,255,255,0.08);
    color: #fff;
}

    .stat-card-dark .stat-label {
        color: rgba(255,255,255,0.7);
    }


/* ========== 15.  Lists (checkmark + dot) ============================= */
.check-list {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

    .check-list li {
        display: flex;
        align-items: flex-start;
        gap: 0.6rem;
        font-size: 14px;
        color: var(--ink-700);
    }

        .check-list li::before {
            content: '';
            flex: 0 0 auto;
            width: 16px;
            height: 16px;
            margin-top: 3px;
            border-radius: 9999px;
            background: linear-gradient(135deg, var(--emerald-500), var(--emerald-600)) center/70% no-repeat, var(--emerald-600);
            /* checkmark SVG via mask */
            -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><polyline points='20 6 9 17 4 12' fill='none' stroke='black' stroke-width='3'/></svg>") center/60% no-repeat;
            mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><polyline points='20 6 9 17 4 12' fill='none' stroke='black' stroke-width='3'/></svg>") center/60% no-repeat;
        }

.check-list-dark li {
    color: rgba(255, 255, 255, 0.85);
}

.dot-list {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

    .dot-list li {
        display: flex;
        align-items: flex-start;
        gap: 0.625rem;
        font-size: 14px;
        color: var(--ink-700);
    }

        .dot-list li::before {
            content: '';
            flex: 0 0 auto;
            width: 6px;
            height: 6px;
            margin-top: 8px;
            border-radius: 9999px;
            background: var(--accent-500);
        }

.dot-list-dark li {
    color: rgba(255, 255, 255, 0.8);
}

    .dot-list-dark li::before {
        background: var(--accent-500);
    }


/* ========== 16.  Feature switcher (tabs on feature pages) ============ */
.feature-switcher {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.625rem;
    background: #ffffff;
    border: 1px solid var(--ink-200);
    border-radius: var(--radius-full);
    box-shadow: var(--shadow);
}

    .feature-switcher a {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.55rem 1rem;
        border-radius: var(--radius-full);
        font-size: 13px;
        font-weight: 500;
        color: var(--ink-700);
        transition: background var(--t-fast) var(--ease);
    }

        .feature-switcher a:hover {
            background: var(--ink-100);
        }

        .feature-switcher a.current {
            background: linear-gradient(135deg, var(--brand-600), var(--accent-500));
            color: #ffffff;
            font-weight: 600;
            box-shadow: var(--shadow);
        }


/* ========== 17.  Forms =============================================== */
.form-field label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--ink-900);
    margin-bottom: 0.4rem;
}

.form-control {
    display: block;
    width: 100%;
    padding: 0.625rem 0.75rem;
    border: 1px solid var(--ink-200);
    border-radius: var(--radius);
    background: #ffffff;
    font-family: inherit;
    font-size: 14px;
    color: var(--ink-900);
    transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}

    .form-control:focus {
        outline: none;
        border-color: var(--brand-600);
        box-shadow: 0 0 0 3px rgba(79, 107, 255, 0.18);
    }

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' stroke='%2364748b' fill='none' stroke-width='2'><polyline points='6 9 12 15 18 9'/></svg>");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px;
    padding-right: 2.5rem;
}


/* ========== 18.  Footer ============================================== */
.footer {
    position: relative;
    padding: 4rem 0 1.5rem;
    background: var(--ink-950);
    color: rgba(255, 255, 255, 0.8);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

    .footer::before {
        content: '';
        position: absolute;
        inset: 0;
        background: radial-gradient(1200px 600px at 50% -100px, rgba(79, 107, 255, 0.25), transparent 60%), radial-gradient(900px 500px at 90% 30%, rgba(244, 63, 94, 0.15), transparent 55%);
        pointer-events: none;
    }

    .footer > .container {
        position: relative;
        z-index: 1;
    }

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.1fr;
    gap: 2.5rem;
    margin-bottom: 3rem;
}

@media (max-width: 960px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 640px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.footer-col h3 {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 1rem;
    font-family: var(--font-sans);
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    font-size: 14px;
}

.footer-col a {
    color: rgba(255, 255, 255, 0.8);
}

    .footer-col a:hover {
        color: #ffffff;
    }

.footer-logo img {
    height: 2.25rem;
    width: auto;
    /* Invert dark logo to white on dark footer */
    filter: brightness(0) invert(1);
}

.footer-intro {
    max-width: 26rem;
    margin-top: 1rem;
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

    .footer-bottom .legal {
        display: flex;
        gap: 1.25rem;
    }

/* App-store pill (used in footer + apps page) */
.store-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.55rem 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    color: #ffffff;
    transition: background var(--t-fast) var(--ease);
}

    .store-btn:hover {
        background: rgba(255, 255, 255, 0.18);
    }

    .store-btn svg {
        width: 20px;
        height: 20px;
    }

    .store-btn .store-small {
        display: block;
        font-size: 9px;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        color: rgba(255, 255, 255, 0.6);
    }

    .store-btn .store-big {
        display: block;
        font-size: 13px;
        font-weight: 600;
    }


/* ========== 19.  Tables + Heatmap ==================================== */
.heatmap {
    display: grid;
    gap: 2px;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.heatmap-row {
    display: grid;
    grid-template-columns: 110px repeat(5, 1fr);
    gap: 2px;
}

.heatmap-cell {
    padding: 0.55rem;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: #ffffff;
}

.heatmap-label {
    text-align: left;
    padding: 0.55rem 0.75rem;
    color: var(--ink-700);
    background: var(--ink-50);
    font-size: 13px;
    font-weight: 600;
}


/* ========== 20.  Accordion (FAQ) ====================================== */
.accordion-item {
    border: 1px solid var(--ink-200);
    border-radius: var(--radius-lg);
    background: #ffffff;
    transition: border-color var(--t-fast) var(--ease);
}

    .accordion-item + .accordion-item {
        margin-top: 0.75rem;
    }

    .accordion-item.open {
        border-color: var(--ink-900);
    }

.accordion-trigger {
    all: unset;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem 1.25rem;
    width: 100%;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
}

    .accordion-trigger::after {
        content: '';
        width: 12px;
        height: 12px;
        border-right: 2px solid var(--ink-500);
        border-bottom: 2px solid var(--ink-500);
        transform: rotate(45deg);
        transition: transform var(--t-mid) var(--ease);
        flex: 0 0 auto;
    }

.accordion-item.open .accordion-trigger::after {
    transform: rotate(-135deg);
}

.accordion-body {
    padding: 0 1.25rem 1.25rem;
    color: var(--ink-500);
    font-size: 14px;
    line-height: 1.65;
    display: none;
}

.accordion-item.open .accordion-body {
    display: block;
}


/* ========== 21.  Misc helpers (spacing / alignment) =================== */
.m-0 {
    margin: 0;
}

.mb-1 {
    margin-bottom: 0.25rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-3 {
    margin-bottom: 0.75rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mb-10 {
    margin-bottom: 2.5rem;
}

.mb-12 {
    margin-bottom: 3rem;
}

.mt-1 {
    margin-top: 0.25rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-3 {
    margin-top: 0.75rem;
}

.mt-4 {
    margin-top: 1rem;
}

.mt-6 {
    margin-top: 1.5rem;
}

.mt-8 {
    margin-top: 2rem;
}

.mt-10 {
    margin-top: 2.5rem;
}

.mt-12 {
    margin-top: 3rem;
}

.max-4 {
    max-width: 18rem;
}

.max-7 {
    max-width: 28rem;
}

.max-md {
    max-width: 42rem;
}

.max-lg {
    max-width: 52rem;
}

.max-xl {
    max-width: 64rem;
}

.w-full {
    width: 100%;
}

.hide-mobile {
    display: block;
}

@media (max-width: 640px) {
    .hide-mobile {
        display: none;
    }
}


/* ========== 22.  Home-page specific additions (visual parity pack) ==== */

/* Hero stats strip */
.hero-stats {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

    .hero-stats .stat-num {
        font-family: var(--font-display);
        font-size: 1.75rem;
        font-weight: 700;
        color: #ffffff;
    }

    .hero-stats .stat-label {
        margin-top: 0.25rem;
        font-size: 12px;
        color: rgba(255, 255, 255, 0.5);
    }

@media (max-width: 640px) {
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Hero-side floating dashboard mocks (asset + ticket table stacked) */
.hero-mocks {
    position: relative;
}

    .hero-mocks::before {
        content: '';
        position: absolute;
        inset: -1.5rem;
        border-radius: 32px;
        background: linear-gradient(135deg, rgba(79, 107, 255, 0.40), rgba(244, 63, 94, 0.30), transparent);
        filter: blur(28px);
        z-index: 0;
    }

    .hero-mocks > * {
        position: relative;
        z-index: 1;
    }

.hero-mock-asset {
    transform: rotate(-1.5deg) translateY(0);
    transform-origin: top left;
}

.hero-mock-ticket {
    transform: rotate(1deg);
    margin: -2.5rem 0 0 3rem;
}

/* Softer backgrounds for deep-dive blocks on home */
.section-warm {
    background: linear-gradient(135deg, #fff9ec 0%, #fdecea 100%);
}

.section-violet {
    background: linear-gradient(135deg, #f5f3ff 0%, #ffffff 70%);
}

.section-light-warm {
    background: linear-gradient(135deg, #fff9ec 0%, #ffffff 100%);
}

/* Benefits/outcomes card on home */
.outcome-card {
    background: #ffffff;
    border: 1px solid var(--ink-200);
    border-radius: var(--radius-xl);
    padding: 1.75rem;
}

    .outcome-card .icon-badge {
        width: 2.25rem;
        height: 2.25rem;
        border-radius: var(--radius-sm);
    }

        .outcome-card .icon-badge svg {
            width: 18px;
            height: 18px;
        }

/* Big gradient CTA band */
.cta-band {
    position: relative;
    border-radius: var(--radius-3xl);
    padding: 3.5rem 3rem;
    background: radial-gradient(600px 300px at 0% 50%, rgba(244, 63, 94, 0.45), transparent 60%), linear-gradient(135deg, var(--brand-600) 0%, var(--brand-700) 50%, var(--accent-600) 100%);
    color: #ffffff;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    align-items: center;
    gap: 2rem;
}

    .cta-band h2 {
        color: #ffffff;
    }

    .cta-band p {
        color: rgba(255, 255, 255, 0.85);
        margin-top: 0.75rem;
        max-width: 32rem;
    }

    .cta-band .cta-buttons {
        display: flex;
        flex-wrap: wrap;
        gap: 0.75rem;
        justify-content: flex-end;
    }

@media (max-width: 768px) {
    .cta-band {
        grid-template-columns: 1fr;
        padding: 2rem;
    }

        .cta-band .cta-buttons {
            justify-content: flex-start;
        }
}

/* Lighter mock-frame variant (transparent bg for hero dark backdrop) */
.mock-frame-90 {
    background: rgba(255, 255, 255, 0.96);
}

/* Small "Learn more" link on feature cards */
.learn-more {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 13px;
    font-weight: 600;
    color: var(--brand-600);
    margin-top: auto;
}

.feature-card:hover .learn-more {
    color: var(--accent-500);
}

/* KPI mini card (for patch-manager deep-dive block) */
.kpi-mini {
    border-radius: var(--radius-md);
    padding: 0.85rem;
    text-align: center;
}

    .kpi-mini .kpi-num {
        font-family: var(--font-display);
        font-size: 1.75rem;
        font-weight: 700;
        line-height: 1;
    }

    .kpi-mini .kpi-label {
        font-size: 10px;
        color: var(--ink-500);
        margin-top: 0.35rem;
    }

.kpi-rose {
    background: var(--rose-100);
}

    .kpi-rose .kpi-num {
        color: var(--rose-700);
    }

.kpi-amber {
    background: var(--amber-100);
}

    .kpi-amber .kpi-num {
        color: var(--amber-700);
    }

.kpi-ink {
    background: var(--ink-100);
}

    .kpi-ink .kpi-num {
        color: var(--ink-900);
    }

.kpi-emerald {
    background: var(--emerald-100);
}

    .kpi-emerald .kpi-num {
        color: var(--emerald-700);
    }

/* Ensure mock frames keep dark text even inside a dark hero section */
.mock-frame, .mock-frame * {
    color: var(--ink-900);
}

    .mock-frame .t-mute, .mock-frame .mock-header .t-xs {
        color: var(--ink-500);
    }

    .mock-frame thead {
        color: var(--ink-500);
    }


/* ========== 23.  Motion — hero float + scroll-reveal ================== */

/* Continuous gentle float for hero-side mockups */
@keyframes float-slow {
    0%,100% {
        transform: rotate(-1.5deg) translateY(0);
    }

    50% {
        transform: rotate(-1.5deg) translateY(-8px);
    }
}

@keyframes float-slower {
    0%,100% {
        transform: rotate(1deg) translateY(0);
    }

    50% {
        transform: rotate(1deg) translateY(8px);
    }
}

.hero-mock-asset {
    animation: float-slow 9s ease-in-out infinite;
}

.hero-mock-ticket {
    animation: float-slower 11s ease-in-out infinite;
}

/* Scroll-reveal utility */
.reveal {
    opacity: 0;
    transform: translateY(40px) scale(0.97);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
    will-change: transform, opacity;
}

    .reveal.in {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    .reveal.delay-1 {
        transition-delay: 0.08s;
    }

    .reveal.delay-2 {
        transition-delay: 0.16s;
    }

    .reveal.delay-3 {
        transition-delay: 0.24s;
    }

/* Variant: slide from left / right (for split layouts) */
.reveal-left {
    transform: translateX(-30px) translateY(0) scale(1);
    opacity: 0;
}

    .reveal-left.in {
        transform: translateX(0) translateY(0) scale(1);
        opacity: 1;
    }

.reveal-right {
    transform: translateX(30px) translateY(0) scale(1);
    opacity: 0;
}

    .reveal-right.in {
        transform: translateX(0) translateY(0) scale(1);
        opacity: 1;
    }

/* Respect reduced-motion */
@media (prefers-reduced-motion: reduce) {
    .hero-mock-asset, .hero-mock-ticket {
        animation: none;
    }

    .reveal, .reveal-left, .reveal-right {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}


/* ========== FAQ topic tiles =================================== */
.topic-list {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.topic-tile {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.75rem 0.875rem;
    border: 1px solid var(--ink-100);
    border-radius: 14px;
    background: #fff;
    color: var(--ink-900);
    text-decoration: none;
    transition: box-shadow var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}

    .topic-tile:hover {
        box-shadow: 0 6px 18px -6px rgba(15, 23, 42, 0.10);
        border-color: var(--ink-200);
        transform: translateY(-1px);
    }

.topic-tile-icon {
    position: relative;
    width: 48px;
    height: 48px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: #fff;
    overflow: hidden;
}

    .topic-tile-icon::before,
    .topic-tile-icon::after {
        content: "";
        position: absolute;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.15);
    }

    .topic-tile-icon::before {
        top: -12px;
        right: -12px;
        width: 36px;
        height: 36px;
    }

    .topic-tile-icon::after {
        bottom: -10px;
        left: -12px;
        width: 30px;
        height: 30px;
        background: rgba(255,255,255,0.10);
    }

    .topic-tile-icon svg {
        position: relative;
        width: 24px;
        height: 24px;
        stroke-width: 1.7;
    }

    /* Per-module gradients */
    .topic-tile-icon.t-brand {
        background: linear-gradient(135deg, var(--brand-600), #5b78ff);
    }

    .topic-tile-icon.t-cyan {
        background: linear-gradient(135deg, var(--cyan-600, #0891b2), var(--cyan-500, #06b6d4));
    }

    .topic-tile-icon.t-emerald {
        background: linear-gradient(135deg, var(--emerald-600), var(--emerald-500));
    }

    .topic-tile-icon.t-rose {
        background: linear-gradient(135deg, var(--accent-600), var(--accent-500));
    }

    .topic-tile-icon.t-violet {
        background: linear-gradient(135deg, var(--violet-600, #6d28d9), var(--violet-500, #8b5cf6));
    }

    .topic-tile-icon.t-amber {
        background: linear-gradient(135deg, var(--amber-600), var(--amber-500));
    }

    .topic-tile-icon.t-fuchsia {
        background: linear-gradient(135deg, #a21caf, #d946ef);
    }

    .topic-tile-icon.t-sky {
        background: linear-gradient(135deg, #0284c7, #38bdf8);
    }

    .topic-tile-icon.t-slate {
        background: linear-gradient(135deg, #334155, #64748b);
    }

.topic-tile-title {
    flex: 1;
    min-width: 0;
    font-family: var(--font-display, "Space Grotesk", Inter, sans-serif);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.25;
    color: var(--ink-900);
}

.topic-tile-chev {
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    color: var(--ink-200);
    transition: color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}

.topic-tile:hover .topic-tile-chev {
    color: var(--ink-700);
    transform: translateX(2px);
}

/* Sticky aside that scrolls inside if viewport is short */
.faq-aside {
    position: sticky;
    top: 5rem;
    align-self: start;
    max-height: calc(100vh - 6rem);
    overflow-y: auto;
    padding-right: 0.25rem;
    scrollbar-width: thin;
}

    .faq-aside .eyebrow {
        margin-bottom: 0.875rem;
    }
