:root {
    --bg: #f4f7fb;
    --surface: rgba(255, 255, 255, 0.8);
    --surface-strong: #ffffff;
    --text: #10203a;
    --muted: #58677f;
    --line: rgba(16, 32, 58, 0.12);
    --primary: #1d4ed8;
    --primary-dark: #163ea9;
    --accent: #f97316;
    --success: #117a48;
    --error: #b42318;
    --shadow: 0 18px 60px rgba(10, 35, 66, 0.12);
    --radius: 24px;
    --radius-sm: 16px;
    --container: 1180px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Segoe UI", "Trebuchet MS", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(29, 78, 216, 0.1), transparent 32%),
        radial-gradient(circle at right 10% top 10%, rgba(249, 115, 22, 0.12), transparent 26%),
        linear-gradient(180deg, #f9fbff 0%, var(--bg) 100%);
    line-height: 1.6;
}

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

img {
    max-width: 100%;
    height: auto;
}

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

.narrow {
    width: min(calc(100% - 2rem), 760px);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(12px);
    background: rgba(244, 247, 251, 0.78);
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}

.nav-shell,
.hero-grid,
.split-grid,
.footer-grid,
.contact-layout,
.auth-layout,
.dashboard-grid,
.content-grid,
.feature-grid,
.steps-grid {
    display: grid;
    gap: 1.25rem;
}

.nav-shell {
    grid-template-columns: auto auto;
    align-items: center;
    padding: 1rem 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
}

.brand-mark {
    width: 2.75rem;
    height: 2.75rem;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--primary), #0f766e);
    color: #fff;
    font-weight: 700;
    box-shadow: var(--shadow);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.brand-text small,
.hero-note,
.eyebrow,
.site-footer p,
.site-nav a,
.dashboard-nav a,
.flash,
.mockup-top {
    color: var(--muted);
}

.nav-toggle {
    margin-left: auto;
    display: inline-flex;
    flex-direction: column;
    gap: 0.3rem;
    padding: 0.35rem;
    border: 0;
    background: transparent;
}

.nav-toggle span:not(.sr-only) {
    display: block;
    width: 1.5rem;
    height: 2px;
    background: var(--text);
    border-radius: 10px;
}

.sr-only,
.honeypot {
    position: absolute;
    left: -9999px;
}

.site-nav {
    grid-column: 1 / -1;
    display: none;
    flex-direction: column;
    padding-top: 1rem;
}

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

.site-nav a {
    padding: 0.65rem 0;
}

.site-nav .is-active {
    color: var(--text);
    font-weight: 700;
}

.button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 0.95rem 1.3rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    border: 0;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 14px 30px rgba(29, 78, 216, 0.2);
}

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

.button.ghost {
    background: rgba(255, 255, 255, 0.75);
    color: var(--text);
    border: 1px solid var(--line);
    box-shadow: none;
}

.hero,
.page-hero,
.section {
    padding: 4rem 0;
}

.hero-grid,
.split-grid,
.contact-layout,
.auth-layout,
.content-grid {
    align-items: center;
}

.hero-copy h1,
.page-hero h1,
.dashboard-hero h1 {
    font-size: clamp(2.3rem, 6vw, 4.8rem);
    line-height: 1.05;
    margin: 0.4rem 0 1rem;
}

.lead {
    font-size: 1.1rem;
    color: var(--muted);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 1.75rem 0 1rem;
}

.dashboard-mockup,
.card,
.feature-card,
.step-card,
.faq-item,
.dashboard-card,
.cta-card {
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.dashboard-mockup {
    padding: 1.25rem;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.98), rgba(30, 41, 59, 0.95));
    color: #e5eefc;
}

.mockup-top,
.metric-row,
.widget-grid {
    display: grid;
    gap: 1rem;
}

.mockup-top {
    grid-template-columns: repeat(2, 1fr);
    font-size: 0.85rem;
}

.metric-row article,
.widget-grid article {
    padding: 1rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
}

.metric-row strong {
    display: block;
    font-size: 1.65rem;
    color: #fff;
}

.chart-card {
    margin: 1rem 0;
    padding: 1rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.06);
}

.bars {
    height: 200px;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    align-items: end;
    gap: 0.8rem;
}

.bars span {
    display: block;
    height: var(--h);
    border-radius: 20px 20px 6px 6px;
    background: linear-gradient(180deg, #60a5fa, #0f766e);
    animation: rise 800ms ease both;
}

.section-heading {
    margin-bottom: 1.5rem;
}

.eyebrow {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.78rem;
    font-weight: 700;
}

.card,
.feature-card,
.step-card,
.faq-item,
.dashboard-card {
    padding: 1.4rem;
}

.card.accent,
.cta-card {
    background: linear-gradient(135deg, rgba(29, 78, 216, 0.95), rgba(15, 118, 110, 0.94));
    color: #fff;
}

.card.accent p,
.cta-card p,
.card.accent .eyebrow {
    color: rgba(255, 255, 255, 0.82);
}

.steps-grid strong {
    font-size: 2.3rem;
    color: var(--primary);
}

.tinted {
    background: rgba(255, 255, 255, 0.35);
}

.faq-list,
.check-list,
.details-list,
.project-mini-list {
    display: grid;
    gap: 1rem;
}

.check-list,
.project-mini-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.check-list li::before,
.project-mini-list li::before {
    content: "•";
    color: var(--accent);
    margin-right: 0.55rem;
}

.cta-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.8rem;
    align-items: flex-start;
}

.stack-form {
    display: grid;
    gap: 1rem;
}

label {
    display: grid;
    gap: 0.45rem;
    font-weight: 600;
}

input,
textarea {
    width: 100%;
    padding: 0.95rem 1rem;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.88);
    color: var(--text);
    font: inherit;
}

input:focus,
textarea:focus,
button:focus-visible,
a:focus-visible {
    outline: 3px solid rgba(29, 78, 216, 0.22);
    outline-offset: 2px;
}

.checkbox-row {
    grid-template-columns: auto 1fr;
    align-items: start;
    font-weight: 400;
}

.checkbox-row input {
    width: auto;
    margin-top: 0.3rem;
}

.flash-stack {
    padding-top: 1rem;
}

.flash {
    margin-bottom: 0.8rem;
    padding: 0.9rem 1rem;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.7);
}

.flash.success {
    color: var(--success);
}

.flash.error {
    color: var(--error);
}

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

.site-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.65rem;
}

.footer-bottom {
    padding-top: 1rem;
}

.dashboard-layout {
    min-height: 100vh;
    display: grid;
}

.dashboard-sidebar {
    padding: 1.2rem;
    background: #0f172a;
    color: #e2e8f0;
}

.dashboard-nav {
    display: grid;
    gap: 0.45rem;
    margin: 1.5rem 0;
}

.dashboard-nav a {
    padding: 0.85rem 1rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.05);
}

.dashboard-main {
    padding: 1rem 0 2rem;
}

.dashboard-container {
    width: min(calc(100% - 1.5rem), 1120px);
}

.dashboard-hero {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 0 1.5rem;
}

.dashboard-grid.two-columns,
.contact-layout,
.auth-layout,
.hero-grid,
.split-grid,
.content-grid,
.feature-grid,
.steps-grid,
.footer-grid {
    grid-template-columns: 1fr;
}

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

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

th,
td {
    padding: 0.8rem;
    text-align: left;
    border-bottom: 1px solid var(--line);
}

.details-list div {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 1rem;
}

.details-list dt {
    color: var(--muted);
}

.logout-form {
    margin-top: auto;
}

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 500ms ease, transform 500ms ease;
}

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

@keyframes rise {
    from {
        height: 0;
    }
}

@media (min-width: 768px) {
    .nav-shell {
        grid-template-columns: auto 1fr;
    }

    .nav-toggle {
        display: none;
    }

    .site-nav {
        display: flex;
        grid-column: auto;
        flex-direction: row;
        align-items: center;
        justify-content: flex-end;
        gap: 1.2rem;
        padding-top: 0;
    }

    .hero-grid,
    .split-grid,
    .contact-layout,
    .auth-layout {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

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

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

    .metric-row {
        grid-template-columns: repeat(3, 1fr);
    }

    .widget-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .dashboard-layout {
        grid-template-columns: 280px 1fr;
    }

    .dashboard-sidebar {
        position: sticky;
        top: 0;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
    }

    .dashboard-hero {
        flex-direction: row;
        justify-content: space-between;
        align-items: end;
    }
}
