:root {
    --font-sans: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, sans-serif;

    --bg-canvas: #f2f6fb;
    --bg-surface: #ffffff;
    --bg-surface-soft: #f7f9fc;
    --bg-elevated: #ffffffd9;

    --text-strong: #10213c;
    --text-muted: #5c6a82;
    --text-subtle: #7b889f;

    --line-default: #d8e1ee;
    --line-strong: #bcc8da;

    --accent: #1f6feb;
    --accent-hover: #195ac0;
    --accent-soft: #e8f0ff;

    --success: #0d9a6c;
    --success-soft: #e6f8f1;
    --warning: #c98008;
    --warning-soft: #fff5df;
    --danger: #bf2d32;
    --danger-soft: #feeef0;

    --radius-xs: 8px;
    --radius-sm: 12px;
    --radius-md: 16px;
    --radius-lg: 24px;

    --shadow-sm: 0 8px 24px rgba(15, 26, 46, 0.08);
    --shadow-md: 0 18px 40px rgba(15, 26, 46, 0.12);
    --shadow-lg: 0 24px 60px rgba(15, 26, 46, 0.18);

    --container-max: 1160px;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

body {
    font-family: var(--font-sans);
    color: var(--text-strong);
    background:
        radial-gradient(circle at 10% -20%, #d9e9ff 0%, rgba(217, 233, 255, 0) 48%),
        radial-gradient(circle at 110% -10%, #e5f6ff 0%, rgba(229, 246, 255, 0) 44%),
        linear-gradient(180deg, #f5f9ff 0%, var(--bg-canvas) 55%, #edf3fb 100%);
    line-height: 1.5;
}

img {
    max-width: 100%;
    display: block;
}

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

button,
input,
select {
    font: inherit;
}

.container {
    width: min(var(--container-max), 100% - 32px);
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(18px);
    background: rgba(245, 249, 255, 0.82);
    border-bottom: 1px solid rgba(184, 200, 222, 0.55);
}

.site-nav {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.brand-mark {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

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

.nav-links {
    display: flex;
    align-items: center;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-link {
    color: var(--text-muted);
    font-weight: 600;
    padding: 9px 13px;
    border-radius: 10px;
    transition: background 0.18s ease, color 0.18s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-strong);
    background: rgba(24, 90, 192, 0.08);
}

.page-main {
    padding: 40px 0 72px;
}

.hero {
    padding: 72px 0 48px;
}

.hero-title {
    margin: 0;
    font-size: clamp(2.8rem, 6.5vw, 4.8rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: var(--text-strong);
}

.hero-subtitle {
    margin: 20px 0 0;
    font-size: clamp(1rem, 2.3vw, 1.25rem);
    color: var(--text-muted);
    max-width: 52ch;
    line-height: 1.6;
}

.hero-actions {
    margin-top: 36px;
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.btn-pill {
    border-radius: 999px;
    padding: 14px 32px;
    min-width: 200px;
}

.btn-watch-demo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--text-strong);
    font-size: 1rem;
    transition: color 0.18s ease;
}

.btn-watch-demo:hover {
    color: var(--accent);
}

.btn-watch-demo svg {
    flex-shrink: 0;
}

.section {
    margin-top: 56px;
}

.section-title {
    margin: 0 0 20px;
    font-size: clamp(1.4rem, 2.4vw, 1.9rem);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.section-body {
    color: var(--text-muted);
}

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

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

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

.grid.featured {
    grid-template-columns: 1.15fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 18px;
}

.grid.featured .card-featured {
    grid-row: 1 / 3;
    display: flex;
    flex-direction: column;
}

.card {
    border: 1px solid var(--line-default);
    background: var(--bg-surface);
    border-radius: var(--radius-md);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}

.card-icon {
    margin-bottom: 16px;
}

.card-icon-lg {
    margin-bottom: 24px;
}

.card h3 {
    margin: 0 0 8px;
    font-size: 1.15rem;
}

.card-featured h3 {
    font-size: 1.3rem;
}

.card p:last-child {
    margin-bottom: 0;
}

.card.soft {
    background: var(--bg-surface-soft);
}

.card.glass {
    background: var(--bg-elevated);
    backdrop-filter: blur(10px);
}

.kicker {
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--text-subtle);
}

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

.btn {
    border: 0;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 18px;
    font-weight: 650;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.btn:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, #2a79f5, #245fd8);
    box-shadow: 0 10px 24px rgba(33, 97, 214, 0.35);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-1px);
    background: linear-gradient(135deg, #236ae0, #1d53bf);
}

.btn-secondary {
    color: var(--text-strong);
    background: #eef3fb;
    border: 1px solid #d7e0ee;
}

.btn-secondary:hover:not(:disabled) {
    background: #e3ecfa;
}

.btn-danger {
    color: #fff;
    background: linear-gradient(135deg, #cf3a45, #a82b33);
}

.btn-danger:hover:not(:disabled) {
    background: linear-gradient(135deg, #ba303b, #95212a);
}

.btn-wide {
    min-width: 220px;
}

.input-group {
    display: grid;
    gap: 8px;
}

.input-label {
    font-size: 0.92rem;
    color: var(--text-muted);
    font-weight: 600;
}

.input,
.select {
    width: 100%;
    border: 1px solid #cad7ea;
    background: #fff;
    color: var(--text-strong);
    border-radius: 12px;
    padding: 11px 12px;
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.input:focus,
.select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(31, 111, 235, 0.16);
}

.form-inline {
    display: flex;
    gap: 10px;
    align-items: end;
}

.form-inline .input-group {
    flex: 1;
}

.status-banner {
    border-radius: 12px;
    padding: 12px 14px;
    border: 1px solid transparent;
    font-size: 0.93rem;
}

.status-banner.info {
    background: #edf4ff;
    color: #224575;
    border-color: #d3e3ff;
}

.status-banner.success {
    background: var(--success-soft);
    color: #0d6e51;
    border-color: #c5eedf;
}

.status-banner.warning {
    background: var(--warning-soft);
    color: #8d5a04;
    border-color: #f6ddaa;
}

.status-banner.error {
    background: var(--danger-soft);
    color: #8f2429;
    border-color: #f9cdd1;
}

.spinner {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 3px solid #d4deec;
    border-top-color: var(--accent);
    animation: spin 0.85s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.hidden {
    display: none !important;
}

.fade-in {
    animation: fade-in 0.28s ease;
}

@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.user-summary {
    display: flex;
    align-items: center;
    gap: 14px;
}

.user-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #dbe5f2;
}

.list-check {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.list-check li {
    padding-left: 26px;
    position: relative;
    color: var(--text-muted);
}

.list-check li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #84b4ff, #1f6feb);
}

.toast-stack {
    position: fixed;
    right: 18px;
    top: 86px;
    z-index: 300;
    display: grid;
    gap: 10px;
    max-width: min(420px, calc(100vw - 36px));
}

.toast {
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid #d5e2f6;
    background: #fff;
    box-shadow: var(--shadow-md);
    font-size: 0.92rem;
}

.toast.success {
    border-color: #bfead9;
    background: #f0fbf6;
}

.toast.error {
    border-color: #f5c4ca;
    background: #fff3f5;
}

.site-footer {
    margin-top: 44px;
    color: var(--text-subtle);
    font-size: 0.9rem;
    text-align: center;
    padding: 24px 0;
}

@media (max-width: 1020px) {
    .grid.three {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 780px) {
    .site-nav {
        min-height: 64px;
        flex-direction: column;
        justify-content: center;
        padding: 10px 0;
        gap: 10px;
    }

    .nav-links {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

    .page-main {
        padding-top: 20px;
    }

    .hero {
        padding: 40px 0 32px;
    }

    .grid.two,
    .grid.three {
        grid-template-columns: 1fr;
    }

    .grid.featured {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .grid.featured .card-featured {
        grid-row: auto;
    }

    .card {
        padding: 22px;
    }

    .form-inline {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-wide,
    .btn-pill {
        width: 100%;
        min-width: 0;
    }
}
