:root {
    --bg: #f8fafc;
    --card: #ffffff;
    --text: #162033;
    --muted: #5c667a;
    --line: #e5e7ef;
    --brand: #7758ff;
    --brand-2: #19c37d;
    --accent: #ffb020;
    --shadow: 0 18px 50px rgba(30, 41, 59, 0.10);
}

[data-theme="dark"] {
    --bg: #0c1222;
    --card: #131b2f;
    --text: #f4f7fb;
    --muted: #b8c0d4;
    --line: #293249;
    --brand: #9d8cff;
    --brand-2: #48d597;
    --accent: #ffd166;
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    background: radial-gradient(circle at top left, rgba(119, 88, 255, 0.14), transparent 32rem), var(--bg);
    color: var(--text);
    line-height: 1.7;
}

a { color: inherit; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(18px);
    background: color-mix(in srgb, var(--bg) 82%, transparent);
    border-bottom: 1px solid var(--line);
}

.nav {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.logo-mark {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    color: white;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    box-shadow: 0 10px 25px rgba(119, 88, 255, 0.25);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.nav-links a, .theme-toggle {
    border: 1px solid var(--line);
    background: var(--card);
    color: var(--text);
    text-decoration: none;
    border-radius: 999px;
    padding: 9px 14px;
    font-weight: 650;
    font-size: 14px;
    cursor: pointer;
}

.nav-links a:hover, .theme-toggle:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(30, 41, 59, 0.10);
}

.container {
    width: min(960px, calc(100% - 32px));
    margin: 0 auto;
    padding: 56px 0;
}

.hero {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    padding: 76px 0 44px;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 38px;
    align-items: center;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--line);
    background: var(--card);
    color: var(--muted);
    padding: 8px 12px;
    border-radius: 999px;
    font-weight: 650;
    font-size: 14px;
}

h1 {
    font-size: clamp(42px, 7vw, 76px);
    line-height: 0.98;
    letter-spacing: -0.065em;
    margin: 18px 0 20px;
}

h2 {
    font-size: clamp(26px, 4vw, 42px);
    line-height: 1.08;
    letter-spacing: -0.04em;
    margin: 0 0 16px;
}

h3 {
    margin: 30px 0 8px;
    font-size: 22px;
    line-height: 1.25;
}

p, li { color: var(--muted); }

.lead {
    font-size: 19px;
    max-width: 62ch;
}

.cta-row {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 28px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 16px;
    padding: 13px 18px;
    text-decoration: none;
    font-weight: 800;
    border: 1px solid var(--line);
}

.btn-primary {
    color: white;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    border: none;
    box-shadow: 0 14px 35px rgba(119, 88, 255, 0.28);
}

.btn-secondary { background: var(--card); }

.phone-card {
    position: relative;
    min-height: 430px;
    border-radius: 34px;
    background: linear-gradient(160deg, color-mix(in srgb, var(--brand) 22%, var(--card)), var(--card));
    padding: 28px;
    box-shadow: var(--shadow);
    overflow: hidden;
    border: 1px solid var(--line);
}

.grid-board {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    margin-top: 18px;
}

.cell {
    aspect-ratio: 1;
    border-radius: 16px;
    background: color-mix(in srgb, var(--card) 75%, var(--line));
    border: 1px solid var(--line);
}

.ball {
    display: grid;
    place-items: center;
    font-size: 22px;
    font-weight: 900;
    color: white;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.16);
}

.rope {
    background: linear-gradient(135deg, var(--accent), var(--brand));
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 28px;
}

.card, .legal-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 24px;
    box-shadow: var(--shadow);
}

.card h3 { margin-top: 0; }

.legal-card {
    margin-top: 22px;
}

.legal-card h1 {
    font-size: clamp(36px, 6vw, 60px);
    line-height: 1;
    margin-top: 0;
}

.meta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 8px 12px;
    background: color-mix(in srgb, var(--card) 84%, transparent);
}

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

.notice {
    border-left: 4px solid var(--brand);
    background: color-mix(in srgb, var(--brand) 10%, var(--card));
    padding: 16px 18px;
    border-radius: 16px;
    margin: 22px 0;
}

.site-footer {
    border-top: 1px solid var(--line);
    padding: 26px 0;
    color: var(--muted);
}

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

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

.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--text); }

@media (max-width: 860px) {
    .hero { grid-template-columns: 1fr; padding-top: 42px; }
    .card-grid { grid-template-columns: 1fr; }
    .phone-card { min-height: 330px; }
}

@media (max-width: 580px) {
    .nav { align-items: flex-start; flex-direction: column; }
    .nav-links { justify-content: flex-start; }
    h1 { font-size: 42px; }
}
