html {
    scroll-behavior: smooth;
}

.landing {
    min-height: 100vh;
    background: var(--background);
}

.landing-wrap {
    width: min(1120px, calc(100% - 48px));
    margin: 0 auto;
}

.landing .btn-primary,
.landing-btn {
    width: auto;
    margin-top: 0;
    padding: 0 18px;
    color: #fff;
    text-decoration: none;
}

.landing-btn-ghost,
.landing-btn-outline {
    height: 44px;
    padding: 0 16px;
    border-radius: var(--radius-control);
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.landing-btn-ghost {
    color: var(--text-primary);
}

.landing-btn-ghost:hover {
    color: var(--primary);
}

.landing-btn-outline {
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: #fff;
}

.landing-btn-outline:hover {
    background: rgba(255, 255, 255, 0.08);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.landing-nav {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(12px);
}

.landing-nav-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    min-height: 72px;
}

.landing-brand {
    justify-content: flex-start;
    margin: 0;
    text-decoration: none;
    flex-shrink: 0;
}

.landing-brand .auth-lockup-name,
.landing-brand .auth-lockup-tag {
    color: inherit;
}

.landing-nav-links {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-left: auto;
}

.landing-nav-links a {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
}

.landing-nav-links a:hover {
    color: var(--primary);
}

.landing-nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.landing-nav-toggle,
.landing-nav-burger {
    display: none;
}

.landing-hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    padding: 72px 0 88px;
    background:
        radial-gradient(circle at 80% 120%, rgba(37, 99, 235, 0.45), transparent 42%),
        linear-gradient(165deg, #041428 0%, #07244d 48%, #0b3a7a 100%);
}

.landing-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 600' preserveAspectRatio='none'%3E%3Cpath fill='none' stroke='rgba(125,211,252,0.18)' stroke-width='2' d='M-40 420C80 360 180 500 320 430c140-70 180-20 280 10 120 36 220-40 280-80'/%3E%3Cpath fill='none' stroke='rgba(96,165,250,0.14)' stroke-width='2' d='M-40 480C90 410 210 560 360 470c130-78 210 10 300 40 110 36 200-30 260-70'/%3E%3C/svg%3E");
    background-size: cover;
    pointer-events: none;
}

.landing-hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: 48px;
    align-items: center;
}

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

.landing-hero h1 {
    margin: 0 0 16px;
    max-width: 16ch;
    font-size: 44px;
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.03em;
}

.landing-lede {
    margin: 0 0 28px;
    max-width: 42ch;
    color: #cbd5e1;
    font-size: 16px;
    line-height: 1.55;
}

.landing-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.landing-hero-note {
    margin: 18px 0 0;
    color: #93c5fd;
    font-size: 13px;
}

.landing-shot {
    margin: 0;
    background: #041428;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
    overflow: hidden;
}

.landing-hero-preview {
    transform: rotate(-2deg);
}

.landing-shot img {
    display: block;
    width: 100%;
    height: auto;
    vertical-align: top;
}

.landing-shot-lg {
    transform: none;
    border-color: var(--border);
    box-shadow: var(--shadow);
}

.landing-section {
    padding: 80px 0;
}

.landing-section-muted {
    background: #fff;
    border-block: 1px solid var(--border);
}

.landing-kicker {
    margin: 0 0 10px;
    color: var(--primary);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.landing-section h2,
.landing-cta h2 {
    margin: 0 0 12px;
    max-width: 22ch;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    line-height: 1.2;
}

.landing-section-copy {
    margin: 0 0 36px;
    max-width: 52ch;
    color: var(--text-muted);
    line-height: 1.6;
}

.landing-features {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.landing-features li {
    background: var(--surface);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 22px 20px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.landing-feature-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #041428;
    color: #fff;
    display: grid;
    place-items: center;
    margin-bottom: 14px;
}

.landing-features strong {
    display: block;
    margin-bottom: 6px;
    color: var(--text-primary);
    font-size: 15px;
}

.landing-features li > span:last-child {
    display: block;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.5;
}

.landing-product-frame {
    margin-top: 8px;
}

.landing-usecases {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 24px;
    width: 100%;
}

.landing-usecase {
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
    min-width: 0;
    background: #fff;
    border: 1px solid var(--card-border);
    border-radius: 20px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
    padding: 28px 26px 24px;
    border-top: 4px solid var(--primary);
}

.landing-usecase-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.landing-usecase-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #041428;
    color: #fff;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.landing-usecase-kicker {
    margin: 0;
    color: var(--primary);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.landing-usecase h3 {
    margin: 0 0 10px;
    color: var(--text-primary);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.landing-usecase > p {
    margin: 0 0 20px;
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.55;
}

.landing-usecase ul {
    margin: 0 0 24px;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px;
    flex: 1;
}

.landing-usecase li {
    position: relative;
    padding-left: 22px;
    color: var(--text-body);
    font-size: 14px;
    line-height: 1.45;
}

.landing-usecase li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 6px;
    width: 8px;
    height: 8px;
    border-radius: 99px;
    background: var(--primary);
}

.landing-usecase .btn-primary {
    width: 100%;
    margin-top: auto;
}

.landing-steps {
    margin: 36px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    counter-reset: none;
}

.landing-steps li {
    background: var(--surface);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 24px 22px;
}

.landing-steps li span {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    margin-bottom: 14px;
    border-radius: 10px;
    background: var(--primary);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}

.landing-steps strong {
    display: block;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-size: 16px;
}

.landing-steps p {
    margin: 0;
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.55;
}

.landing-cta {
    color: #fff;
    padding: 72px 0;
    background:
        radial-gradient(circle at 80% 120%, rgba(37, 99, 235, 0.45), transparent 42%),
        linear-gradient(165deg, #041428 0%, #07244d 48%, #0b3a7a 100%);
}

.landing-cta h2 {
    color: #fff;
    max-width: none;
}

.landing-cta-inner {
    text-align: center;
}

.landing-cta p {
    margin: 0 auto 28px;
    max-width: 46ch;
    color: #cbd5e1;
    line-height: 1.55;
}

.landing-error-page {
    display: flex;
    flex-direction: column;
}

.landing-error {
    position: relative;
    overflow: hidden;
    flex: 1;
    display: flex;
    align-items: center;
    color: #fff;
    padding: 72px 0 88px;
    background:
        radial-gradient(circle at 80% 120%, rgba(37, 99, 235, 0.45), transparent 42%),
        linear-gradient(165deg, #041428 0%, #07244d 48%, #0b3a7a 100%);
}

.landing-error::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 600' preserveAspectRatio='none'%3E%3Cpath fill='none' stroke='rgba(125,211,252,0.18)' stroke-width='2' d='M-40 420C80 360 180 500 320 430c140-70 180-20 280 10 120 36 220-40 280-80'/%3E%3Cpath fill='none' stroke='rgba(96,165,250,0.14)' stroke-width='2' d='M-40 480C90 410 210 560 360 470c130-78 210 10 300 40 110 36 200-30 260-70'/%3E%3C/svg%3E");
    background-size: cover;
    pointer-events: none;
}

.landing-error-inner {
    position: relative;
    z-index: 1;
    max-width: 560px;
    padding: 8px 0 24px;
}

.landing-error-code {
    margin: 0 0 8px;
    color: #93c5fd;
    font-size: 88px;
    font-weight: 700;
    letter-spacing: -0.06em;
    line-height: 0.9;
}

.landing-error h1 {
    margin: 0 0 16px;
    max-width: none;
    font-size: 40px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.landing-error .landing-lede {
    margin-bottom: 28px;
}

.landing-footer {
    background: #041428;
    color: #93c5fd;
    padding: 22px 0;
    font-size: 13px;
}

.landing-footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.landing-footer p {
    margin: 0;
}

.landing-footer a {
    color: #fff;
    font-weight: 600;
    margin-left: 16px;
}

.landing-footer a:first-child {
    margin-left: 0;
}

.legal-page {
    padding: 48px 0 72px;
}

.legal-doc {
    width: min(760px, calc(100% - 48px));
    margin: 0 auto;
    padding: 40px 44px 48px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.06);
}

.legal-kicker {
    margin: 0 0 8px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary);
}

.legal-kicker a {
    color: inherit;
}

.legal-doc h1 {
    margin: 0 0 8px;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--text-primary);
}

.legal-updated {
    margin: 0 0 28px;
    color: var(--text-muted);
    font-size: 13px;
}

.legal-doc h2 {
    margin: 28px 0 10px;
    font-size: 18px;
    font-weight: 650;
    color: var(--text-primary);
}

.legal-doc p,
.legal-doc li {
    margin: 0 0 12px;
    line-height: 1.65;
    color: var(--text-body);
}

.legal-doc ul {
    margin: 0 0 12px;
    padding-left: 20px;
}

.legal-doc a {
    font-weight: 600;
}

@media (max-width: 600px) {
    .legal-doc {
        padding: 28px 22px 36px;
        border-radius: 16px;
    }

    .legal-doc h1 {
        font-size: 26px;
    }
}

@media (max-width: 960px) {
    .landing-hero-grid,
    .landing-features,
    .landing-steps {
        grid-template-columns: 1fr 1fr;
    }

    .landing-hero h1 {
        font-size: 36px;
        max-width: none;
    }

    .landing-hero-preview {
        transform: none;
    }
}

@media (max-width: 760px) {
    .landing-nav-burger {
        display: grid;
        gap: 5px;
        margin-left: auto;
        width: 40px;
        height: 40px;
        place-content: center;
        cursor: pointer;
        border-radius: 10px;
    }

    .landing-nav-burger span {
        display: block;
        width: 18px;
        height: 2px;
        background: var(--text-primary);
        border-radius: 99px;
    }

    .landing-nav-links,
    .landing-nav-actions {
        display: none;
    }

    .landing-nav-toggle:checked ~ .landing-nav-links,
    .landing-nav-toggle:checked ~ .landing-nav-actions {
        display: flex;
    }

    .landing-nav-inner {
        flex-wrap: wrap;
        padding: 12px 0;
        min-height: 0;
    }

    .landing-nav-links,
    .landing-nav-actions {
        flex-basis: 100%;
        flex-direction: column;
        align-items: stretch;
        margin: 0;
        gap: 8px;
        padding-bottom: 8px;
    }

    .landing-nav-links a,
    .landing-btn-ghost,
    .landing-nav-actions .btn-primary {
        height: 40px;
        padding: 0 12px;
        justify-content: flex-start;
    }

    .landing-hero,
    .landing-error,
    .landing-section,
    .landing-cta {
        padding: 48px 0;
    }

    .landing-hero-grid,
    .landing-features,
    .landing-steps {
        grid-template-columns: 1fr;
    }

    .landing-usecases {
        flex-wrap: wrap;
    }

    .landing-usecase {
        flex: 1 1 100%;
    }

    .landing-section h2,
    .landing-cta h2,
    .landing-error h1 {
        font-size: 26px;
    }

    .landing-error-code {
        font-size: 64px;
    }

    .landing-footer-inner {
        flex-direction: column;
    }
}
