:root {
    --bg: #f3f6fb;
    --bg-soft: #eef3fb;
    --panel: rgba(255, 255, 255, 0.96);
    --panel-strong: #ffffff;
    --line: rgba(15, 23, 40, 0.09);
    --line-strong: rgba(11, 74, 162, 0.18);
    --text: #0f1728;
    --muted: #526075;
    --accent: #cb2333;
    --accent-strong: #a61a28;
    --accent-soft: rgba(203, 35, 51, 0.10);
    --blue: #0b4aa2;
    --blue-strong: #083b82;
    --blue-soft: rgba(11, 74, 162, 0.10);
    --good: #166534;
    --good-bg: #dcfce7;
    --bad: #991b1b;
    --bad-bg: #fee2e2;
    --shadow: 0 18px 48px rgba(12, 24, 42, 0.08);
    --shadow-soft: 0 12px 30px rgba(12, 24, 42, 0.06);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(11, 74, 162, 0.11), transparent 28%),
        radial-gradient(circle at top right, rgba(203, 35, 51, 0.10), transparent 24%),
        linear-gradient(180deg, #fbfcff 0%, var(--bg) 58%, #edf2f8 100%);
    color: var(--text);
    font-family: "Segoe UI Variable Display", "Segoe UI Variable", "Bahnschrift", "Segoe UI", sans-serif;
    text-rendering: optimizeLegibility;
}

a {
    color: var(--blue);
    text-decoration: none;
    transition: color 0.18s ease;
}

a:hover {
    color: var(--blue-strong);
    text-decoration: none;
}

button,
.secondary-button,
.ghost-button,
input,
.select-input {
    transition:
        border-color 0.18s ease,
        background-color 0.18s ease,
        box-shadow 0.18s ease,
        color 0.18s ease,
        transform 0.18s ease;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 16px 28px;
    border-bottom: 1px solid rgba(15, 23, 40, 0.06);
    backdrop-filter: blur(16px);
    background: rgba(255, 255, 255, 0.84);
}

.brand a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text);
}

.nav {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav a {
    font-weight: 600;
}

.nav form {
    margin: 0;
}

.user-badge,
.pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 13px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 0.92rem;
    line-height: 1.2;
}

.user-badge {
    background: var(--blue-soft);
    border-color: rgba(11, 74, 162, 0.12);
    color: var(--blue);
}

.pill {
    background: var(--blue-soft);
    border-color: rgba(11, 74, 162, 0.12);
    color: var(--blue);
}

.page {
    max-width: 1280px;
    margin: 0 auto;
    padding: 28px 24px 40px;
}

.hero,
.panel {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 255, 0.96));
    border: 1px solid var(--line);
    border-radius: 28px;
    box-shadow: var(--shadow-soft);
}

.hero h1,
.panel h1,
.panel h2,
.panel h3 {
    margin-top: 0;
    letter-spacing: -0.03em;
}

.hero {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 24px;
    padding: 28px;
    margin-bottom: 22px;
}

.landing-hero::before,
.auth-panel::before,
.info-panel::before,
.seo-panel::before,
.faq-panel::before {
    content: "";
    position: absolute;
    top: 18px;
    left: 24px;
    right: 24px;
    height: 6px;
    border-radius: 999px;
    background: linear-gradient(90deg, #ffffff 0 33.33%, var(--blue) 33.33% 66.66%, var(--accent) 66.66% 100%);
    box-shadow: inset 0 0 0 1px rgba(15, 23, 40, 0.08);
}

.landing-hero::after {
    content: "";
    position: absolute;
    inset: auto -80px -100px auto;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(11, 74, 162, 0.14), rgba(11, 74, 162, 0) 68%);
    pointer-events: none;
}

.compact-hero {
    align-items: center;
}

.panel {
    padding: 24px;
}

.grid-two {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    margin-bottom: 22px;
}

.grid-three {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 22px;
}

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

.comparison-card {
    min-width: 0;
}

.comparison-card .data-table {
    margin-top: 12px;
}

.change-list {
    display: grid;
    gap: 12px;
}

.change-item {
    display: grid;
    gap: 10px;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(245, 249, 255, 0.95));
}

.change-pair {
    display: grid;
    gap: 4px;
}

.change-label {
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.lower-grid {
    align-items: start;
}

.compact-grid {
    gap: 14px;
    margin-bottom: 0;
}

.auth-shell {
    display: grid;
    grid-template-columns: minmax(0, 460px) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.auth-panel,
.info-panel {
    min-height: 320px;
    padding-top: 34px;
}

.auth-description,
.hero-lead {
    margin-top: -4px;
    margin-bottom: 18px;
    line-height: 1.72;
}

.subtle-note {
    margin-top: 16px;
    margin-bottom: 0;
}

.stack {
    display: grid;
    gap: 16px;
}

label span {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
}

input[type="text"],
input[type="password"],
input[type="file"],
.select-input {
    width: 100%;
    padding: 13px 15px;
    border-radius: 14px;
    border: 1px solid rgba(15, 23, 40, 0.12);
    background: rgba(255, 255, 255, 0.96);
    color: var(--text);
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="file"]:focus,
.select-input:focus {
    outline: none;
    border-color: rgba(11, 74, 162, 0.45);
    box-shadow: 0 0 0 4px rgba(11, 74, 162, 0.12);
}

button,
.secondary-button,
.ghost-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    border-radius: 14px;
    padding: 12px 18px;
    border: none;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.98rem;
}

button,
.primary-link {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
    color: #fff;
    box-shadow: 0 12px 28px rgba(203, 35, 51, 0.18);
}

button:hover,
.primary-link:hover {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 14px 32px rgba(203, 35, 51, 0.22);
}

.secondary-button {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(11, 74, 162, 0.15);
    color: var(--blue);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.secondary-button:hover,
.ghost-button:hover {
    transform: translateY(-1px);
    border-color: rgba(11, 74, 162, 0.26);
    box-shadow: 0 10px 24px rgba(12, 24, 42, 0.08);
}

.ghost-button {
    background: transparent;
    border: 1px solid rgba(15, 23, 40, 0.12);
    color: var(--text);
}

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

.data-table th,
.data-table td {
    padding: 12px 10px;
    border-bottom: 1px solid rgba(15, 23, 40, 0.08);
    text-align: left;
    vertical-align: top;
}

.data-table th {
    font-size: 0.92rem;
    color: var(--muted);
}

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

.notice {
    border-radius: 18px;
    padding: 14px 16px;
    margin-bottom: 18px;
}

.notice.success {
    background: var(--good-bg);
    color: var(--good);
}

.notice.error {
    background: var(--bad-bg);
    color: var(--bad);
}

.muted {
    color: var(--muted);
}

.footnote {
    margin-top: 16px;
    font-size: 0.96rem;
}

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

.stats-grid .stat-card {
    min-height: 150px;
}

.stat-card {
    padding: 20px;
    border-radius: 24px;
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.98) 0%, rgba(246, 249, 255, 0.96) 100%);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
}

.stats-grid .stat-card:nth-child(2) {
    background: linear-gradient(165deg, #fbfdff 0%, #edf4ff 100%);
}

.stats-grid .stat-card:nth-child(3) {
    background: linear-gradient(165deg, #fff9fa 0%, #ffeff1 100%);
}

.stat-card strong {
    display: block;
    margin-bottom: 12px;
    font-size: clamp(1.5rem, 3vw, 2.3rem);
    line-height: 1.05;
}

.empty-state {
    margin: 0;
    color: var(--muted);
}

.section-head,
.hero-actions,
.hero-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.section-head {
    justify-content: space-between;
    margin-bottom: 16px;
}

.minor-block {
    margin-top: 18px;
    padding: 15px 16px;
    border-radius: 18px;
    border: 1px solid rgba(11, 74, 162, 0.08);
    background: linear-gradient(180deg, rgba(238, 243, 251, 0.8), rgba(255, 255, 255, 0.92));
}

.minor-block pre {
    margin: 8px 0 0;
    white-space: pre-wrap;
    font-family: "Consolas", "Courier New", monospace;
}

.plain-list {
    margin: 0;
    padding-left: 18px;
    display: grid;
    gap: 10px;
}

.top-gap {
    margin-top: 18px;
}

.workflow-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 22px;
}

.workflow-step {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 20px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
}

.workflow-step strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: var(--blue);
    color: #fff;
}

.workflow-step:nth-child(2) strong {
    background: linear-gradient(135deg, var(--blue) 0%, #4f8de4 100%);
}

.workflow-step:nth-child(3) strong {
    background: var(--accent);
}

.accent-panel {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 242, 244, 0.92) 100%);
}

.secondary-accent {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(238, 244, 255, 0.94) 100%);
}

.empty-state-block {
    display: grid;
    gap: 14px;
}

.profile-caption {
    margin-top: -4px;
    margin-bottom: 14px;
}

.landing-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.82fr);
    gap: 26px;
    align-items: stretch;
    background:
        linear-gradient(140deg, rgba(255, 255, 255, 0.98), rgba(246, 250, 255, 0.94)),
        var(--panel);
}

.landing-copy {
    max-width: 840px;
}

.landing-copy h1 {
    max-width: 13ch;
    margin-bottom: 18px;
    font-size: clamp(2.15rem, 4vw, 4.4rem);
    line-height: 0.98;
}

.hero-proof {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 24px;
}

.proof-card {
    padding: 18px;
    border-radius: 22px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(241, 246, 255, 0.92));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.proof-card:nth-child(2) {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(239, 245, 255, 0.95));
}

.proof-card:nth-child(3) {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 240, 243, 0.95));
}

.proof-card:nth-child(4) {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(239, 244, 255, 0.94));
}

.proof-card strong {
    display: block;
    margin-bottom: 10px;
    font-size: 1.05rem;
}

.landing-meta {
    display: grid;
    gap: 16px;
    align-content: start;
    max-width: 420px;
}

.hero-side-card {
    padding: 22px;
    border-radius: 24px;
    border: 1px solid var(--line-strong);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(235, 243, 255, 0.93));
    box-shadow: var(--shadow-soft);
}

.flag-line {
    display: block;
    width: 100%;
    height: 8px;
    margin-bottom: 18px;
    border-radius: 999px;
    background: linear-gradient(90deg, #ffffff 0 33.33%, var(--blue) 33.33% 66.66%, var(--accent) 66.66% 100%);
    box-shadow: inset 0 0 0 1px rgba(15, 23, 40, 0.08);
}

.hero-panel-title {
    margin: 0 0 12px;
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.hero-panel-copy {
    margin: 0;
    color: var(--muted);
    line-height: 1.72;
}

.hero-side-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-side-pills .pill:nth-child(even) {
    background: var(--accent-soft);
    border-color: rgba(203, 35, 51, 0.12);
    color: var(--accent-strong);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    padding: 7px 13px;
    margin-bottom: 16px;
    border-radius: 999px;
    border: 1px solid rgba(11, 74, 162, 0.10);
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.95) 0 33.33%, rgba(11, 74, 162, 0.08) 33.33% 66.66%, rgba(203, 35, 51, 0.08) 66.66% 100%);
    color: var(--blue);
    font-size: 0.92rem;
    font-weight: 800;
}

.seo-panel p,
.faq-item p {
    margin: 0 0 14px;
    color: var(--text);
    line-height: 1.78;
}

.seo-emphasis {
    color: var(--blue);
}

.faq-list {
    display: grid;
    gap: 16px;
}

.faq-item {
    padding: 18px 20px;
    border-radius: 20px;
    border: 1px solid var(--line);
    border-left: 4px solid var(--blue);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.95));
}

.faq-item:nth-child(2) {
    border-left-color: var(--accent);
}

.faq-item h3 {
    margin-bottom: 10px;
}

.register-panel {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 245, 247, 0.94) 100%);
}

.auth-side-panel {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(238, 244, 255, 0.94) 100%);
}

.register-panel .plain-list {
    gap: 12px;
}

.register-checklist {
    margin-top: 12px;
    margin-bottom: 0;
}

.register-small {
    margin: 12px 0 0;
    line-height: 1.75;
}

.checkbox-line {
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkbox-line span {
    margin: 0;
    font-weight: 400;
}

@media (max-width: 1120px) {
    .landing-hero,
    .auth-shell {
        grid-template-columns: 1fr;
    }

    .landing-meta {
        max-width: none;
        grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
    }

    .landing-copy h1 {
        max-width: none;
    }
}

@media (max-width: 960px) {
    .page {
        padding: 20px 16px 32px;
    }

    .grid-two,
    .grid-three,
    .comparison-grid,
    .workflow-strip,
    .hero-proof,
    .auth-shell,
    .landing-meta {
        grid-template-columns: 1fr;
    }

    .topbar,
    .hero {
        flex-direction: column;
        align-items: stretch;
    }

    .nav {
        flex-wrap: wrap;
    }

    .landing-hero {
        gap: 20px;
    }
}

@media (max-width: 720px) {
    body {
        font-size: 15px;
    }

    .topbar {
        padding: 14px 16px;
    }

    .page {
        padding: 16px 12px 28px;
    }

    .hero,
    .panel {
        padding: 20px 18px;
        border-radius: 22px;
    }

    .landing-hero::before,
    .auth-panel::before,
    .info-panel::before,
    .seo-panel::before,
    .faq-panel::before {
        left: 18px;
        right: 18px;
        top: 14px;
    }

    .hero-actions {
        display: grid;
        width: 100%;
        grid-template-columns: 1fr;
    }

    .hero-actions > a,
    .hero-actions > button,
    button,
    .secondary-button,
    .ghost-button {
        width: 100%;
    }

    .section-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

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

    .data-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    .actions-cell {
        min-width: 220px;
    }
}

@media (max-width: 480px) {
    .topbar {
        gap: 12px;
    }

    .brand a {
        font-size: 1.05rem;
    }

    .nav {
        gap: 10px;
    }

    .landing-copy h1 {
        font-size: clamp(1.85rem, 9.5vw, 2.5rem);
    }

    .pill {
        width: 100%;
    }

    .hero-side-pills {
        display: grid;
    }

    .workflow-step {
        padding: 16px;
    }

    .workflow-step strong {
        width: 40px;
        height: 40px;
    }

    input[type="text"],
    input[type="password"],
    input[type="file"],
    .select-input {
        font-size: 16px;
    }
}
