:root {
    --primary: #5e2b9d;
    --primary-2: #7c3aed;
    --primary-soft: #f2ebff;
    --ink: #11162f;
    --muted: #667085;
    --line: #e8e9f1;
    --surface: #ffffff;
    --canvas: #f5f6f9;
    --mint: #e9fbf4;
    --mint-ink: #07855d;
    --amber: #fff7e5;
    --amber-ink: #c56a08;
    --blue: #edf6ff;
    --blue-ink: #0870b6;
    --rose: #fff0f2;
    --rose-ink: #d63a50;
    --radius: 24px;
    --shadow: 0 16px 48px rgba(36, 28, 62, 0.08);
    --max: 1120px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--canvas);
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        'Segoe UI',
        sans-serif;
    line-height: 1.6;
}

a {
    color: inherit;
}

.shell {
    width: min(var(--max), calc(100% - 36px));
    margin: 0 auto;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(94, 43, 157, 0.96);
    backdrop-filter: blur(14px);
    color: white;
    box-shadow: 0 8px 24px rgba(34, 15, 59, 0.16);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: white;
    text-decoration: none;
    font-size: 28px;
    font-weight: 900;
}

.brand-mark {
    width: 180px;
    height: 60px;
    /* border-radius: 13px; */
    object-fit: cover;
    /* background: white; */
    /* box-shadow: 0 7px 18px rgba(30, 14, 55, 0.18); */
}

.brand-dot {
    color: #f4b23c;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    font-weight: 700;
    scrollbar-width: none;
}
.nav-links::-webkit-scrollbar {
    display: none;
}

.nav-links a {
    padding: 10px 12px;
    border-radius: 12px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.86);
}

.nav-links a:hover,
.nav-links a[aria-current='page'] {
    background: rgba(255, 255, 255, 0.13);
    color: white;
}

.hero {
    padding: 64px 0 82px;
    color: white;
    background:
        radial-gradient(circle at 78% 24%, rgba(106, 255, 202, 0.18), transparent 25rem),
        linear-gradient(145deg, #51228e, #7838da);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 0.86fr;
    align-items: center;
    gap: 70px;
}

.eyebrow {
    display: inline-flex;
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    font-size: 13px;
    font-weight: 800;
}

h1 {
    margin: 18px 0;
    font-size: clamp(44px, 7vw, 76px);
    line-height: 1.02;
    letter-spacing: -0.045em;
}

.lead {
    margin: 0;
    max-width: 650px;
    color: rgba(255, 255, 255, 0.82);
    font-size: clamp(18px, 2vw, 21px);
}

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

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 20px;
    border-radius: 15px;
    text-decoration: none;
    font-weight: 850;
}

.button-light {
    color: var(--primary);
    background: white;
    box-shadow: 0 14px 34px rgba(20, 10, 40, 0.2);
}

.button-ghost {
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.08);
}

.phone {
    width: min(100%, 390px);
    margin: auto;
    padding: 12px;
    border-radius: 38px;
    background: #171421;
    box-shadow: 0 30px 70px rgba(28, 10, 56, 0.34);
    transform: rotate(1.5deg);
}

.screen {
    overflow: hidden;
    padding: 16px;
    border-radius: 29px;
    background: #f3f4f7;
    color: var(--ink);
}

.app-head {
    margin: -16px -16px 14px;
    padding: 18px 20px;
    color: white;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 21px;
    font-weight: 900;
}

.avatar {
    width: 34px;
    height: 34px;
    border: 3px solid white;
    border-radius: 50%;
    background: #3bc6a1;
}

.app-card {
    padding: 16px;
    margin-top: 12px;
    border-radius: 20px;
    background: white;
    box-shadow: 0 8px 24px rgba(36, 28, 62, 0.07);
}

.overview {
    color: white;
    background: linear-gradient(135deg, #632ab7, #853cf0);
}

.app-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.app-label {
    font-size: 12px;
    opacity: 0.75;
}

.app-value {
    font-size: 22px;
    font-weight: 850;
}

.app-divider {
    height: 1px;
    margin: 12px 0;
    background: rgba(255, 255, 255, 0.22);
}

.milk {
    background: var(--mint);
}

.mini-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    margin-top: 12px;
    overflow: hidden;
    border-radius: 14px;
    background: #e8eaf0;
}

.mini-grid div {
    padding: 11px;
    text-align: center;
    background: white;
}

.mini-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 7px;
    margin-top: 12px;
}

.mini-actions span {
    padding: 8px 4px;
    text-align: center;
    border-radius: 10px;
    background: white;
    font-size: 11px;
    font-weight: 800;
}

.trust-strip {
    margin-top: -30px;
    position: relative;
    z-index: 2;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: white;
    box-shadow: var(--shadow);
}

.trust-item {
    padding: 22px;
    border-right: 1px solid var(--line);
}

.trust-item:last-child {
    border-right: 0;
}

.trust-item strong {
    display: block;
    margin-bottom: 3px;
}

.trust-item span {
    color: var(--muted);
    font-size: 13px;
}

.section {
    padding: 88px 0;
}

.section.white {
    background: white;
}

.section-head {
    max-width: 720px;
    margin-bottom: 34px;
}

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

h2 {
    margin: 0;
    font-size: clamp(32px, 5vw, 50px);
    line-height: 1.1;
    letter-spacing: -0.035em;
}

.section-copy {
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 18px;
}

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.card {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: white;
    box-shadow: 0 10px 28px rgba(36, 28, 62, 0.045);
}

.card-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    margin-bottom: 18px;
    border-radius: 16px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 22px;
}

.card.mint .card-icon {
    background: var(--mint);
    color: var(--mint-ink);
}

.card.amber .card-icon {
    background: var(--amber);
    color: var(--amber-ink);
}

.card.blue .card-icon {
    background: var(--blue);
    color: var(--blue-ink);
}

.card.rose .card-icon {
    background: var(--rose);
    color: var(--rose-ink);
}

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

.card p {
    margin: 0;
    color: var(--muted);
}

.card ul,
.detail-card ul {
    margin: 16px 0 0;
    padding-left: 20px;
    color: var(--muted);
}

.mode-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.mode {
    position: relative;
    overflow: hidden;
    padding: 30px;
    border-radius: 28px;
    color: white;
    background: linear-gradient(135deg, #59249d, #7838da);
}

.mode.business {
    background: linear-gradient(135deg, #087657, #15a879);
}

.mode-badge {
    display: inline-flex;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    font-size: 12px;
    font-weight: 850;
}

.mode h3 {
    margin-top: 20px;
    font-size: 28px;
}

.mode p,
.mode li {
    color: rgba(255, 255, 255, 0.8);
}

.mode ul {
    padding-left: 20px;
}

.detail-layout {
    display: grid;
    grid-template-columns: 0.72fr 1.28fr;
    gap: 20px;
    align-items: start;
}

.side-nav {
    position: sticky;
    top: 92px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: white;
}

.side-nav a {
    display: block;
    padding: 12px 14px;
    border-radius: 12px;
    color: var(--muted);
    text-decoration: none;
    font-weight: 750;
}

.side-nav a:hover {
    color: var(--primary);
    background: var(--primary-soft);
}

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

.detail-card {
    scroll-margin-top: 92px;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: white;
}

.detail-card p {
    color: var(--muted);
}

.step-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    counter-reset: steps;
}

.step {
    padding: 22px;
    border-radius: 22px;
    background: white;
    border: 1px solid var(--line);
    counter-increment: steps;
}

.step::before {
    content: counter(steps);
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    margin-bottom: 16px;
    border-radius: 12px;
    color: white;
    background: var(--primary);
    font-weight: 900;
}

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

.faq {
    display: grid;
    gap: 10px;
}

details {
    border: 1px solid var(--line);
    border-radius: 18px;
    background: white;
}

summary {
    padding: 20px 22px;
    cursor: pointer;
    font-weight: 850;
}

details p {
    margin: 0;
    padding: 0 22px 22px;
    color: var(--muted);
}

.cta {
    padding: 56px;
    border-radius: 32px;
    color: white;
    background: linear-gradient(135deg, #51228e, #7b39dd);
    box-shadow: var(--shadow);
}

.cta h2 {
    max-width: 700px;
}

.legal-hero {
    padding: 62px 0;
    color: white;
    background: linear-gradient(145deg, #51228e, #7838da);
}

.legal-hero h1 {
    max-width: 850px;
    font-size: clamp(42px, 7vw, 68px);
}

.legal-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 24px;
    padding: 48px 0 80px;
}

.legal-nav {
    position: sticky;
    top: 96px;
    align-self: start;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: white;
}

.legal-nav a {
    display: block;
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
}

.legal-nav a:hover {
    color: var(--primary);
    background: var(--primary-soft);
}

.legal-content {
    padding: clamp(24px, 5vw, 48px);
    border: 1px solid var(--line);
    border-radius: 28px;
    background: white;
    box-shadow: var(--shadow);
}

.legal-content section {
    scroll-margin-top: 96px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--line);
}

.legal-content section:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.legal-content h2 {
    margin-top: 34px;
    font-size: 28px;
}

.legal-content h3 {
    margin-top: 24px;
}

.legal-content p,
.legal-content li {
    color: #50566d;
}

.notice {
    padding: 16px 18px;
    border-radius: 15px;
    background: var(--primary-soft);
    border-left: 4px solid var(--primary);
    color: #4c257f;
}

.danger {
    background: var(--rose);
    border-color: var(--rose-ink);
    color: #932638;
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 620px;
}

th,
td {
    padding: 13px;
    text-align: left;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}

th {
    color: var(--primary);
    background: #faf8ff;
}

footer {
    padding: 52px 0 34px;
    color: #cfc5e2;
    background: #211331;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 30px;
}

footer strong {
    color: white;
}

footer a {
    display: block;
    margin-top: 8px;
    color: #cfc5e2;
    text-decoration: none;
}

.copyright {
    margin-top: 34px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 13px;
}

@media (max-width: 860px) {
    .nav {
        flex-wrap: wrap;
        padding: 10px 0 8px;
    }
    .nav-links {
        order: 2;
        width: 100%;
        overflow-x: auto;
        white-space: nowrap;
        border-top: 1px solid rgba(255, 255, 255, 0.12);
        padding-top: 7px;
    }
    .hero-grid,
    .detail-layout,
    .legal-layout {
        grid-template-columns: 1fr;
    }
    .hero {
        padding-top: 46px;
    }
    .phone {
        margin-top: 20px;
    }
    .cards {
        grid-template-columns: repeat(2, 1fr);
    }
    .trust-grid,
    .step-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .trust-item:nth-child(2) {
        border-right: 0;
    }
    .side-nav,
    .legal-nav {
        position: static;
        display: flex;
        overflow-x: auto;
        white-space: nowrap;
    }
    .mode-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .shell {
        width: min(100% - 24px, var(--max));
    }
    .nav {
        min-height: 64px;
    }
    .brand {
        font-size: 23px;
    }
    .brand-mark {
        width: 128px;
        height: 48px;
    }
    .nav-links a {
        padding: 7px 10px;
        font-size: 13px;
    }
    .hero {
        padding: 36px 0 58px;
    }
    h1 {
        font-size: 43px;
    }
    .cards,
    .trust-grid,
    .step-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .trust-item {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }
    .section {
        padding: 62px 0;
    }
    .cta {
        padding: 30px 24px;
    }
    .phone {
        width: 100%;
        transform: none;
    }
    .legal-layout {
        padding-top: 24px;
    }
}
