:root {
    color-scheme: light;
    --bg: #f5f5f7;
    --surface: rgba(255, 255, 255, 0.82);
    --surface-strong: #ffffff;
    --text: #1d1d1f;
    --muted: #6e6e73;
    --line: rgba(0, 0, 0, 0.10);
    --accent: #0071e3;
    --accent-hover: #0077ed;
    --shadow: 0 24px 60px rgba(0, 0, 0, 0.10);
    --radius: 22px;
    --max: 1120px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", sans-serif;
    background: var(--bg);
    color: var(--text);
    letter-spacing: 0;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid var(--line);
    background: rgba(245, 245, 247, 0.78);
    backdrop-filter: blur(20px);
}

.nav {
    width: min(100% - 32px, var(--max));
    min-height: 58px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 17px;
    font-weight: 700;
}

.brand img {
    width: 30px;
    height: 30px;
    border-radius: 7px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.16);
}

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

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

.lang-toggle {
    display: inline-flex;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 2px;
    background: rgba(255, 255, 255, 0.7);
}

.lang-toggle button {
    appearance: none;
    border: 0;
    border-radius: 999px;
    padding: 6px 10px;
    background: transparent;
    color: var(--muted);
    font: inherit;
    font-size: 12px;
    cursor: pointer;
}

.lang-toggle button[aria-pressed="true"] {
    background: var(--text);
    color: #fff;
}

.hero {
    width: min(100% - 32px, var(--max));
    min-height: calc(100vh - 58px);
    margin: 0 auto;
    padding: 78px 0 42px;
    display: grid;
    grid-template-columns: minmax(0, 0.94fr) minmax(360px, 1.06fr);
    align-items: center;
    gap: 56px;
}

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

.app-icon-large {
    width: 96px;
    height: 96px;
    border-radius: 23px;
    box-shadow: var(--shadow);
}

.eyebrow {
    margin: 28px 0 10px;
    color: var(--accent);
    font-size: 17px;
    font-weight: 700;
}

h1 {
    margin: 0;
    font-size: clamp(56px, 8vw, 92px);
    line-height: 0.96;
    font-weight: 800;
}

.hero-subtitle {
    margin: 24px 0 0;
    color: var(--muted);
    font-size: 24px;
    line-height: 1.35;
}

.actions {
    margin-top: 34px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 20px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 16px;
    font-weight: 600;
}

.button.primary {
    background: var(--accent);
    color: #fff;
}

.button.primary:hover {
    background: var(--accent-hover);
}

.button.secondary {
    border-color: var(--line);
    background: rgba(255, 255, 255, 0.7);
}

.button.secondary:hover {
    background: #fff;
}

.hero-panel {
    position: relative;
    min-height: 560px;
    border-radius: 34px;
    overflow: hidden;
    background:
        radial-gradient(circle at 20% 15%, rgba(255, 255, 255, 0.78), transparent 28%),
        linear-gradient(145deg, #e9edf3, #ffffff 48%, #dfe7f3);
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.window {
    position: absolute;
    inset: 44px 34px 42px;
    border-radius: 18px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 28px 70px rgba(45, 61, 90, 0.22);
}

.window-bar {
    height: 44px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 16px;
    border-bottom: 1px solid var(--line);
    background: rgba(248, 248, 250, 0.88);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green { background: #28c840; }

.window-body {
    display: grid;
    grid-template-columns: 166px 1fr;
    height: calc(100% - 44px);
}

.sidebar {
    padding: 18px 12px;
    border-right: 1px solid var(--line);
    background: rgba(246, 246, 248, 0.72);
}

.sidebar-row,
.table-row {
    height: 34px;
    display: flex;
    align-items: center;
    border-radius: 9px;
    padding: 0 10px;
    color: var(--muted);
    font-size: 13px;
}

.sidebar-row.active {
    background: #e8f1ff;
    color: #0b64d8;
    font-weight: 700;
}

.content {
    padding: 22px;
}

.toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #188038;
    font-size: 13px;
    font-weight: 700;
}

.status::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #34c759;
}

.search {
    width: 180px;
    height: 30px;
    border-radius: 8px;
    background: #eef0f4;
}

.table {
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
}

.table-row {
    justify-content: space-between;
    border-radius: 0;
    border-bottom: 1px solid var(--line);
    color: var(--text);
}

.table-row:last-child {
    border-bottom: 0;
}

.pill {
    min-width: 64px;
    text-align: center;
    border-radius: 999px;
    padding: 4px 8px;
    background: #f0f6ff;
    color: #0b64d8;
    font-size: 12px;
    font-weight: 700;
}

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

.section h2,
.legal h1 {
    margin: 0;
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1.05;
}

.section-lead {
    max-width: 720px;
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 21px;
    line-height: 1.45;
}

.feature-grid {
    margin-top: 34px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.feature {
    min-height: 190px;
    padding: 24px;
    border-radius: var(--radius);
    background: var(--surface-strong);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.feature h3 {
    margin: 0;
    font-size: 22px;
}

.feature p {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.5;
}

.legal {
    width: min(100% - 32px, 860px);
    margin: 0 auto;
    padding: 72px 0 90px;
}

.legal-meta {
    margin: 16px 0 34px;
    color: var(--muted);
    font-size: 15px;
}

.legal-card {
    border-radius: var(--radius);
    background: var(--surface-strong);
    border: 1px solid rgba(0, 0, 0, 0.06);
    padding: 34px;
}

.legal-card h2 {
    margin: 34px 0 10px;
    font-size: 24px;
}

.legal-card h2:first-child {
    margin-top: 0;
}

.legal-card p,
.legal-card li {
    color: #424245;
    font-size: 16px;
    line-height: 1.65;
}

.legal-card ul {
    padding-left: 22px;
}

.support-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 26px;
}

.support-card {
    padding: 26px;
    border-radius: var(--radius);
    background: var(--surface-strong);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.support-card h2 {
    margin: 0;
    font-size: 24px;
}

.support-card p {
    color: var(--muted);
    line-height: 1.55;
}

.footer {
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 13px;
}

.footer-inner {
    width: min(100% - 32px, var(--max));
    min-height: 86px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.footer-links {
    display: flex;
    gap: 18px;
}

@media (max-width: 860px) {
    .nav {
        min-height: auto;
        padding: 12px 0;
        align-items: flex-start;
        flex-direction: column;
    }

    .nav-links {
        width: 100%;
        overflow-x: auto;
        gap: 16px;
        padding-bottom: 2px;
    }

    .hero {
        min-height: auto;
        grid-template-columns: 1fr;
        padding-top: 50px;
        gap: 36px;
    }

    .hero-panel {
        min-height: 480px;
    }

    .window {
        inset: 24px 16px;
    }

    .window-body {
        grid-template-columns: 118px 1fr;
    }

    .content {
        padding: 16px;
    }

    .search {
        display: none;
    }

    .feature-grid,
    .support-grid {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        padding: 22px 0;
        align-items: flex-start;
        flex-direction: column;
    }
}
