:root {
    --primary: #0f4ecf;
    --primary-dark: #0a285f;
    --accent: #6fb6ff;
    --accent-soft: #edf5ff;
    --text: #163054;
    --text-soft: #5f7290;
    --border: rgba(15, 78, 207, 0.12);
    --surface: #ffffff;
    --background: #f8fbff;
    --success: #11795d;
    --danger: #ae2e44;
    --shadow: 0 24px 80px rgba(14, 45, 106, 0.12);
    --radius-lg: 28px;
    --radius-md: 18px;
    --radius-sm: 12px;
    --container: 1180px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Manrope', sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top right, rgba(111, 182, 255, 0.22), transparent 28%),
        linear-gradient(180deg, #ffffff 0%, #f6faff 100%);
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

main {
    display: block;
}

.container {
    width: min(calc(100% - 2rem), var(--container));
    margin: 0 auto;
}

.site-shell {
    min-height: 100vh;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(14px);
    background: rgba(255, 255, 255, 0.88);
    border-bottom: 1px solid rgba(15, 78, 207, 0.08);
}

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1rem 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
}

.brand-mark {
    display: inline-grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: #fff;
}

.site-nav {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.site-nav a {
    color: var(--text-soft);
    font-weight: 600;
    transition: color 0.2s ease;
}

.site-nav a:hover,
.site-nav a.is-active {
    color: var(--primary);
}

.nav-toggle {
    display: none;
    background: transparent;
    border: 0;
    padding: 0;
}

.nav-toggle span {
    display: block;
    width: 1.5rem;
    height: 2px;
    border-radius: 999px;
    background: var(--primary-dark);
    margin: 0.28rem 0;
}

.hero,
.page-hero {
    position: relative;
    overflow: hidden;
}

.hero {
    padding: 5.5rem 0 4rem;
}

.page-hero {
    padding: 4.5rem 0 1rem;
}

.page-hero-compact {
    padding-bottom: 0;
}

.hero-grid,
.split-panel,
.form-layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
    align-items: center;
}

.hero-copy h1,
.page-hero h1 {
    margin: 0.5rem 0 1rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.4rem, 6vw, 4.8rem);
    line-height: 0.98;
    letter-spacing: -0.04em;
}

.hero-copy p,
.page-hero p,
.section-heading p,
.info-card p,
.feature-card p,
.benefit-card p,
.timeline-card p,
.form-copy p,
.panel-card p,
.site-footer p {
    color: var(--text-soft);
    font-size: 1.05rem;
    line-height: 1.7;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    background: rgba(111, 182, 255, 0.16);
    color: var(--primary);
    font-weight: 800;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.hero-actions,
.cta-inner,
.dashboard-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 3rem;
    padding: 0.82rem 1.3rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.button:hover {
    transform: translateY(-1px);
}

.button-primary {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: #fff;
    box-shadow: 0 14px 32px rgba(15, 78, 207, 0.24);
}

.button-secondary {
    background: rgba(255, 255, 255, 0.86);
    color: var(--primary-dark);
    border-color: rgba(15, 78, 207, 0.14);
}

.button:focus-visible {
    outline: none;
    box-shadow:
        0 0 0 4px rgba(111, 182, 255, 0.22),
        0 14px 32px rgba(15, 78, 207, 0.18);
}

.button-full {
    width: 100%;
}

.hero-stats,
.card-grid,
.feature-grid,
.metric-grid,
.dashboard-grid,
.footer-grid {
    display: grid;
    gap: 1.25rem;
}

.hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 2rem;
}

.hero-stats div,
.info-card,
.benefit-card,
.feature-card,
.metric-card,
.panel-card,
.timeline-card,
.screen-card,
.form-card,
.bullet-card,
.contact-card,
.auth-card,
.diagram-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.hero-stats div,
.info-card,
.benefit-card,
.feature-card,
.metric-card,
.panel-card,
.timeline-card,
.bullet-card,
.contact-card,
.auth-card {
    padding: 1.5rem;
}

.hero-stats strong,
.metric-card strong {
    display: block;
    margin-bottom: 0.45rem;
}

.screen-card {
    padding: 1.15rem;
}

.screen-header {
    display: flex;
    gap: 0.45rem;
    margin-bottom: 1rem;
}

.screen-header span {
    width: 0.85rem;
    height: 0.85rem;
    border-radius: 50%;
    background: #d9e9ff;
}

.screen-body {
    min-height: 420px;
    border-radius: 22px;
    padding: 1.5rem;
    background:
        linear-gradient(180deg, rgba(15, 78, 207, 0.08), rgba(111, 182, 255, 0.16)),
        #f4f9ff;
    border: 1px dashed rgba(15, 78, 207, 0.22);
}

.placeholder-label {
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

.data-flow {
    display: grid;
    gap: 0.9rem;
}

.data-flow div,
.process-step,
.diagram-node {
    padding: 1rem 1.15rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(15, 78, 207, 0.12);
    font-weight: 700;
}

.section {
    padding: 4.5rem 0;
}

.section-tint {
    background: linear-gradient(180deg, rgba(234, 244, 255, 0.6), rgba(255, 255, 255, 0.2));
}

.section-heading {
    max-width: 760px;
    margin-bottom: 2rem;
}

.section-heading h2,
.split-panel h2,
.form-copy h2,
.auth-card h1,
.dashboard-topbar h1,
.panel-card h2 {
    margin: 0.7rem 0 0.8rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.8rem, 3vw, 3rem);
    line-height: 1.08;
}

.three-up,
.feature-grid,
.metric-grid,
.footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.process-strip {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, auto));
    gap: 1rem;
    align-items: center;
}

.process-arrow,
.diagram-line {
    color: var(--primary);
    font-size: 1.5rem;
    text-align: center;
}

.timeline {
    display: grid;
    gap: 1.25rem;
}

.timeline-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.2rem;
    align-items: start;
}

.timeline-icon {
    display: inline-grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: #fff;
    font-weight: 800;
}

.diagram-card {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, auto));
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    padding: 2rem;
}

.bullet-card,
.contact-card {
    display: grid;
    gap: 0.8rem;
}

.bullet-card div {
    padding: 0.9rem 1rem;
    border-radius: 14px;
    background: var(--accent-soft);
    font-weight: 700;
}

.form-card {
    max-width: 560px;
    width: 100%;
    justify-self: center;
    padding: 1.75rem;
}

.auth-card {
    max-width: 460px;
    padding: 1.9rem;
}

.site-form {
    display: grid;
    gap: 0.95rem;
}

.form-field {
    display: grid;
    gap: 0.38rem;
}

.field-label {
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--primary-dark);
}

input,
textarea {
    width: 100%;
    border: 1px solid rgba(15, 78, 207, 0.16);
    border-radius: 12px;
    padding: 0.78rem 0.95rem;
    font: inherit;
    color: var(--text);
    line-height: 1.45;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    box-shadow: inset 0 1px 1px rgba(12, 38, 92, 0.02);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

input {
    min-height: 2.85rem;
}

textarea {
    min-height: 7.25rem;
    resize: vertical;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: rgba(15, 78, 207, 0.42);
    box-shadow:
        0 0 0 4px rgba(111, 182, 255, 0.18),
        0 10px 24px rgba(15, 78, 207, 0.08);
    background: #ffffff;
}

input::placeholder,
textarea::placeholder {
    color: #90a0b8;
}

.form-submit {
    margin-top: 0.35rem;
    min-height: 3.05rem;
    font-size: 0.98rem;
    letter-spacing: 0.01em;
    box-shadow: 0 16px 30px rgba(15, 78, 207, 0.2);
}

.alert {
    padding: 1rem 1.1rem;
    border-radius: 14px;
    margin-bottom: 1rem;
    font-weight: 700;
}

.alert-success {
    background: rgba(17, 121, 93, 0.12);
    color: var(--success);
}

.alert-error {
    background: rgba(174, 46, 68, 0.12);
    color: var(--danger);
}

.cta-band {
    padding-top: 1rem;
}

.cta-inner {
    padding: 2rem;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: #fff;
    box-shadow: var(--shadow);
}

.cta-inner .eyebrow {
    background: rgba(255, 255, 255, 0.14);
    color: #d8ebff;
}

.admin-auth-shell,
.admin-dashboard {
    min-height: 70vh;
}

.auth-card {
    max-width: 540px;
    margin: 0 auto;
}

.metric-card span {
    display: block;
    color: var(--text-soft);
    margin-bottom: 0.75rem;
}

.metric-card strong {
    font-size: 2.1rem;
    font-family: 'Space Grotesk', sans-serif;
}

.dashboard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 2rem 0;
}

.panel-card canvas {
    width: 100% !important;
    height: 280px !important;
}

.table-scroll {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 0.85rem 0.75rem;
    text-align: left;
    border-bottom: 1px solid rgba(15, 78, 207, 0.09);
    font-size: 0.95rem;
}

.data-table th {
    color: var(--text-soft);
}

.site-footer {
    padding: 2rem 0 2.5rem;
}

.footer-grid {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid rgba(15, 78, 207, 0.08);
    border-radius: var(--radius-lg);
}

.footer-grid h3 {
    margin-top: 0;
    font-family: 'Space Grotesk', sans-serif;
}

.footer-grid a {
    display: block;
    color: var(--text-soft);
    margin-bottom: 0.6rem;
}

@media (max-width: 960px) {
    .hero-grid,
    .split-panel,
    .form-layout,
    .dashboard-grid,
    .footer-grid,
    .feature-grid,
    .three-up,
    .metric-grid {
        grid-template-columns: 1fr;
    }

    .process-strip,
    .diagram-card {
        grid-template-columns: 1fr;
    }

    .process-arrow,
    .diagram-line {
        transform: rotate(90deg);
    }
}

@media (max-width: 780px) {
    .nav-toggle {
        display: block;
    }

    .site-nav {
        position: absolute;
        top: calc(100% + 0.75rem);
        left: 1rem;
        right: 1rem;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 1rem;
        border-radius: 20px;
        background: rgba(255, 255, 255, 0.98);
        border: 1px solid rgba(15, 78, 207, 0.08);
        box-shadow: var(--shadow);
    }

    .site-nav.is-open {
        display: flex;
    }

    .hero {
        padding-top: 4rem;
    }

    .hero-stats {
        grid-template-columns: 1fr;
    }

    .form-card,
    .auth-card {
        max-width: 100%;
        padding: 1.35rem;
    }
}
