:root {
    --bg: #111827;
    --panel: #172033;
    --card: #1f2937;
    --card-soft: #162032;
    --text: #e5e7eb;
    --heading: #f9fafb;
    --muted: #a7b0bf;
    --line: #374151;
    --line-soft: #2f3a49;
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-soft: #172554;
    --success: #22c55e;
    --warning: #f59e0b;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.6;
}

body::before {
    position: fixed;
    inset: 0;
    z-index: -1;
    content: "";
    background:
        linear-gradient(145deg, rgba(37, 99, 235, 0.18), transparent 36%),
        linear-gradient(315deg, rgba(34, 197, 94, 0.08), transparent 32%),
        var(--bg);
}

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

.site-header,
main,
.footer {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 24px 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--heading);
    font-weight: 800;
    letter-spacing: 0;
}

.brand-mark {
    display: inline-grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid rgba(37, 99, 235, 0.65);
    border-radius: 8px;
    background: var(--primary);
    color: #ffffff;
    font-size: 14px;
    font-weight: 900;
}

.nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px 18px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 650;
}

.nav a {
    transition: color 160ms ease;
}

.nav a:hover {
    color: var(--heading);
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    align-items: center;
    gap: 56px;
    min-height: calc(100svh - 92px);
    padding: 42px 0 78px;
}

.hero-copy {
    max-width: 680px;
}

.eyebrow {
    margin: 0 0 14px;
    color: #93c5fd;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2,
h3 {
    color: var(--heading);
    line-height: 1.08;
    letter-spacing: 0;
}

h1 {
    max-width: 760px;
    margin-bottom: 24px;
    font-size: clamp(44px, 7vw, 76px);
}

h2 {
    margin-bottom: 0;
    font-size: clamp(30px, 4vw, 48px);
}

h3 {
    margin-bottom: 10px;
    font-size: 20px;
}

.hero-text {
    max-width: 620px;
    margin-bottom: 32px;
    color: var(--muted);
    font-size: 19px;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-weight: 800;
    transition:
        background 160ms ease,
        border-color 160ms ease,
        color 160ms ease,
        transform 160ms ease;
}

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

.button.primary {
    border-color: var(--primary);
    background: var(--primary);
    color: #ffffff;
}

.button.primary:hover {
    border-color: var(--primary-dark);
    background: var(--primary-dark);
}

.button.secondary {
    border-color: var(--line);
    background: rgba(31, 41, 55, 0.7);
    color: var(--heading);
}

.button.secondary:hover {
    border-color: #93c5fd;
    background: var(--primary-soft);
}

.hero-panel {
    border: 1px solid rgba(55, 65, 81, 0.86);
    border-radius: 18px;
    background: rgba(31, 41, 55, 0.78);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.panel-header {
    display: flex;
    gap: 8px;
    padding: 18px;
    border-bottom: 1px solid var(--line-soft);
    background: rgba(17, 24, 39, 0.72);
}

.panel-header span {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--line);
}

.metric-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    padding: 22px;
}

.metric-row div,
.workflow-item {
    border: 1px solid var(--line-soft);
    border-radius: 12px;
    background: var(--card-soft);
}

.metric-row div {
    padding: 18px;
}

.metric-row strong {
    display: block;
    color: var(--heading);
    font-size: 32px;
    line-height: 1;
}

.metric-row span,
.workflow-item span {
    color: var(--muted);
}

.workflow-list {
    display: grid;
    gap: 12px;
    padding: 0 22px 22px;
}

.workflow-item {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 14px;
    padding: 16px;
}

.workflow-item.active {
    border-color: rgba(34, 197, 94, 0.36);
}

.workflow-item strong {
    display: block;
    color: var(--heading);
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: var(--success);
    box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.12);
}

.status-dot.blue {
    background: var(--primary);
    box-shadow: 0 0 0 6px rgba(37, 99, 235, 0.14);
}

.status-dot.amber {
    background: var(--warning);
    box-shadow: 0 0 0 6px rgba(245, 158, 11, 0.14);
}

.section {
    padding: 86px 0;
    border-top: 1px solid rgba(55, 65, 81, 0.62);
}

.section-heading {
    display: grid;
    grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
    align-items: end;
    gap: 28px;
    margin-bottom: 28px;
}

.feature-grid,
.module-grid {
    display: grid;
    gap: 18px;
}

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

.module-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card,
.module-card {
    border: 1px solid var(--line-soft);
    border-radius: 8px;
    background: rgba(31, 41, 55, 0.72);
}

.card {
    padding: 24px;
}

.module-card {
    padding: 22px;
}

.card p,
.module-card p,
.cta p {
    margin-bottom: 0;
    color: var(--muted);
}

.card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 32px;
    margin-bottom: 28px;
    border-radius: 8px;
    background: var(--primary-soft);
    color: #bfdbfe;
    font-size: 13px;
    font-weight: 900;
}

.modules-section {
    padding-top: 72px;
}

.cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    margin: 30px 0 84px;
    padding: 34px;
    border: 1px solid rgba(37, 99, 235, 0.46);
    border-radius: 12px;
    background: rgba(23, 37, 84, 0.62);
}

.cta h2 {
    margin-bottom: 12px;
}

.footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 28px 0 36px;
    border-top: 1px solid rgba(55, 65, 81, 0.62);
    color: var(--muted);
    font-size: 14px;
}

.footer span:first-child {
    color: var(--heading);
    font-weight: 800;
}

.footer a {
    color: #93c5fd;
}

@media (max-width: 900px) {
    .hero,
    .section-heading {
        grid-template-columns: 1fr;
    }

    .hero {
        gap: 38px;
        min-height: auto;
        padding-top: 26px;
    }

    .feature-grid,
    .module-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cta {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 640px) {
    .site-header,
    main,
    .footer {
        width: min(100% - 28px, 1120px);
    }

    .site-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .nav {
        justify-content: flex-start;
    }

    .hero {
        padding-bottom: 58px;
    }

    h1 {
        font-size: 42px;
    }

    .hero-text {
        font-size: 17px;
    }

    .actions,
    .button {
        width: 100%;
    }

    .feature-grid,
    .module-grid,
    .metric-row {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 64px 0;
    }

    .cta {
        margin-bottom: 64px;
        padding: 24px;
    }
}
