:root {
    --bg: #f4f7fb;
    --ink: #132033;
    --muted: #5e6b7c;
    --line: #dce4ef;
    --panel: #ffffff;
    --brand: #0d6b7a;
    --brand-dark: #083f4a;
    --accent: #7bbf42;
    --soft: #e8f5f3;
    --shadow: 0 20px 55px rgba(19, 32, 51, .12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Tahoma, Verdana, Arial, sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 16px clamp(18px, 4vw, 56px);
    background: rgba(255, 255, 255, .92);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    font-weight: 800;
}

.brand strong,
.brand small {
    display: block;
}

.brand small {
    color: var(--muted);
    font-size: 12px;
}

.site-header nav {
    display: flex;
    align-items: center;
    gap: 18px;
    color: var(--muted);
    font-size: 14px;
}

.nav-button,
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-weight: 700;
}

.button.primary,
.nav-button {
    color: #fff;
    background: var(--brand);
}

.button.secondary {
    color: var(--brand-dark);
    background: #fff;
    border-color: var(--line);
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
    gap: clamp(28px, 5vw, 68px);
    align-items: center;
    min-height: calc(100vh - 78px);
    padding: clamp(44px, 8vw, 96px) clamp(18px, 5vw, 72px);
    background:
        linear-gradient(135deg, rgba(13, 107, 122, .12), rgba(123, 191, 66, .08)),
        #f7fbff;
}

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

.eyebrow {
    margin: 0 0 10px;
    color: var(--brand);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

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

h1 {
    max-width: 820px;
    margin-bottom: 20px;
    font-size: clamp(38px, 7vw, 76px);
    line-height: 1.02;
}

h2 {
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.1;
}

.hero p {
    max-width: 680px;
    color: var(--muted);
    font-size: 18px;
}

.hero-actions,
.panel-heading,
.dashboard-top,
.user-pill {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.product-preview {
    overflow: hidden;
    border: 1px solid rgba(13, 107, 122, .18);
    border-radius: 18px;
    background: var(--panel);
    box-shadow: var(--shadow);
}

.preview-top {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 18px;
    color: var(--muted);
    border-bottom: 1px solid var(--line);
}

.preview-top span {
    width: 10px;
    height: 10px;
    border-radius: 99px;
    background: var(--line);
}

.preview-top strong {
    margin-left: auto;
    color: var(--brand-dark);
}

.preview-grid,
.metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 18px;
}

.preview-grid article,
.metrics article {
    padding: 16px;
    border-radius: 12px;
    background: var(--soft);
}

.preview-grid b,
.metrics strong {
    display: block;
    font-size: 28px;
    line-height: 1;
}

.preview-grid span,
.metrics span {
    color: var(--muted);
    font-size: 13px;
}

.preview-list {
    padding: 0 18px 18px;
}

.preview-list p,
.doc-list p {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 6px 14px;
    margin: 0 0 10px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
}

.preview-list span,
.doc-list span {
    grid-column: 1 / -1;
    color: var(--muted);
    font-size: 13px;
}

.section {
    padding: clamp(42px, 7vw, 86px) clamp(18px, 5vw, 72px);
}

.intro-band {
    color: #fff;
    background: var(--brand-dark);
}

.intro-band p {
    max-width: 960px;
    margin: 0 auto;
    font-size: clamp(20px, 3vw, 32px);
    line-height: 1.28;
}

.section-heading {
    max-width: 820px;
    margin-bottom: 28px;
}

.cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.card,
.panel,
.info-panel,
.cta-panel,
.auth-card {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--panel);
    box-shadow: 0 12px 35px rgba(19, 32, 51, .07);
}

.card span {
    display: inline-flex;
    margin-bottom: 28px;
    color: var(--brand);
    font-weight: 800;
}

.card p,
.panel p,
.cta-panel p {
    color: var(--muted);
}

.split {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
    gap: 24px;
    align-items: start;
}

.muted {
    background: #edf3f8;
}

.info-panel {
    display: grid;
    gap: 12px;
}

.info-panel strong {
    font-size: 20px;
}

.info-panel span {
    padding: 11px 12px;
    border-radius: 10px;
    color: var(--brand-dark);
    background: var(--soft);
}

.site-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 28px;
    color: var(--muted);
    border-top: 1px solid var(--line);
    background: #fff;
}

.site-footer img {
    width: 96px;
    height: auto;
    display: block;
}

.dashboard-body {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    min-height: 100vh;
}

.dashboard-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 22px;
    color: #d7edf0;
    background: #092b34;
}

.dashboard-sidebar .brand {
    color: #fff;
    margin-bottom: 34px;
}

.dashboard-sidebar nav {
    display: grid;
    gap: 8px;
}

.dashboard-sidebar nav a {
    padding: 12px;
    border-radius: 10px;
}

.dashboard-sidebar nav a.active,
.dashboard-sidebar nav a:hover {
    background: rgba(255, 255, 255, .1);
}

.dashboard-main {
    padding: clamp(20px, 4vw, 42px);
}

.dashboard-top {
    justify-content: space-between;
    margin-bottom: 24px;
}

.user-pill {
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
}

.user-pill span {
    color: var(--brand);
    font-weight: 800;
}

.metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: 0;
    margin-bottom: 22px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.wide {
    grid-column: 1 / -1;
}

.panel-heading {
    justify-content: space-between;
    margin-bottom: 16px;
}

.panel-heading h2 {
    margin: 0;
    font-size: 22px;
}

.panel-heading button {
    min-height: 36px;
    padding: 0 14px;
    border: 0;
    border-radius: 8px;
    color: #fff;
    background: var(--brand);
    font-weight: 700;
}

.doc-list em {
    align-self: start;
    color: var(--brand);
    font-style: normal;
    font-weight: 800;
}

.timeline p {
    position: relative;
    margin: 0 0 14px;
    padding-left: 28px;
}

.timeline span {
    position: absolute;
    left: 0;
    top: 7px;
    width: 12px;
    height: 12px;
    border-radius: 99px;
    background: var(--accent);
}

.auth-screen {
    display: grid;
    place-items: center;
    min-height: 100vh;
    padding: 18px;
}

.auth-card {
    max-width: 520px;
}

@media (max-width: 980px) {
    .hero,
    .split,
    .dashboard-body {
        grid-template-columns: 1fr;
    }

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

    .dashboard-sidebar {
        position: static;
        height: auto;
    }
}

@media (max-width: 700px) {
    .site-header,
    .site-header nav,
    .site-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .hero {
        min-height: auto;
    }

    .cards,
    .metrics,
    .preview-grid,
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 38px;
    }
}
