:root {
    color-scheme: light dark;
    --bg: #f7f8fc;
    --surface: rgba(255, 255, 255, .78);
    --surface-solid: #fff;
    --text: #171526;
    --muted: #686577;
    --line: rgba(37, 31, 65, .11);
    --purple: #7357e8;
    --purple-deep: #5a3fd0;
    --purple-soft: #eeeaff;
    --shadow: 0 26px 70px rgba(45, 32, 99, .12);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
    line-height: 1.65;
    background: var(--bg);
    color: var(--text);
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0f0e16;
        --surface: rgba(29, 27, 40, .78);
        --surface-solid: #1b1925;
        --text: #f4f2fb;
        --muted: #aaa6ba;
        --line: rgba(255, 255, 255, .10);
        --purple: #a892ff;
        --purple-deep: #8d72fa;
        --purple-soft: rgba(132, 101, 255, .16);
        --shadow: 0 26px 70px rgba(0, 0, 0, .34);
    }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    min-height: 100vh;
    margin: 0;
    background:
        radial-gradient(circle at 12% -8%, rgba(126, 91, 245, .18), transparent 32rem),
        radial-gradient(circle at 92% 12%, rgba(76, 162, 255, .12), transparent 28rem),
        var(--bg);
}
img { max-width: 100%; }
a { color: var(--purple-deep); }
.shell { width: min(1160px, calc(100% - 44px)); margin: 0 auto; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid var(--line);
    background: color-mix(in srgb, var(--bg) 82%, transparent);
    backdrop-filter: blur(22px) saturate(150%);
}
.site-header .shell,
.site-footer .shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.site-header .shell { min-height: 68px; }
.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: var(--text);
    text-decoration: none;
}
.brand-mark {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 10px;
    background: linear-gradient(145deg, #9e8bff, #6043d8);
    box-shadow: 0 8px 22px rgba(91, 63, 208, .28);
    color: white;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: -.04em;
}
.brand-copy { display: grid; line-height: 1.08; }
.brand-copy strong { font-size: .96rem; }
.brand-copy small { margin-top: 4px; color: var(--muted); font-size: .68rem; font-weight: 500; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
    padding: 7px 11px;
    border-radius: 9px;
    color: var(--muted);
    font-size: .9rem;
    font-weight: 600;
    text-decoration: none;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { background: var(--purple-soft); color: var(--purple-deep); }

main { min-height: calc(100vh - 152px); }
.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
    align-items: center;
    gap: 68px;
    padding: 92px 0 56px;
}
.hero-copy { max-width: 720px; }
.product-heading { display: flex; align-items: center; gap: 22px; }
.app-icon {
    width: 108px;
    height: 108px;
    flex: 0 0 auto;
    border-radius: 24px;
    box-shadow: 0 22px 48px rgba(52, 31, 127, .24);
}
.eyebrow {
    margin: 0 0 12px;
    color: var(--purple-deep);
    font-size: .82rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}
h1 { margin: 0 0 18px; font-size: clamp(2.55rem, 5.4vw, 4.8rem); line-height: 1.06; letter-spacing: -.045em; }
h2 { margin: 0 0 18px; font-size: clamp(1.75rem, 3.6vw, 2.75rem); line-height: 1.18; letter-spacing: -.03em; }
h3 { margin: 0 0 8px; font-size: 1.12rem; }
p { margin: 8px 0; }
.lead { max-width: 720px; color: color-mix(in srgb, var(--text) 78%, transparent); font-size: 1.22rem; }
.secondary { color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 26px; }
.button {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    padding: 8px 17px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: var(--surface);
    color: var(--text);
    font-weight: 650;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(33, 24, 72, .05);
    transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.button:hover { transform: translateY(-1px); border-color: color-mix(in srgb, var(--purple) 42%, var(--line)); }
.button.primary { border-color: transparent; background: linear-gradient(135deg, var(--purple), var(--purple-deep)); color: white; }
.hero-visual { position: relative; }
.hero-visual::before {
    position: absolute;
    inset: 12% 8% -7%;
    z-index: -1;
    border-radius: 50%;
    background: rgba(113, 82, 226, .22);
    filter: blur(48px);
    content: "";
}

section { padding: 78px 0 0; }
.section-heading { max-width: 730px; margin-bottom: 28px; }
.card {
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--surface);
    box-shadow: 0 12px 35px rgba(41, 30, 87, .06);
    backdrop-filter: blur(16px);
}
.product-card { display: grid; grid-template-columns: 86px 1fr auto; align-items: center; gap: 22px; padding: 24px; }
.product-card .app-icon { width: 86px; height: 86px; border-radius: 19px; }
.product-card p { color: var(--muted); }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature-grid .card { padding: 22px; }
.feature-grid .card p { color: var(--muted); }
.resource-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.resource-grid .card { padding: 24px; }
.resource-grid .card p { min-height: 3.3em; color: var(--muted); }
.text-link { font-weight: 700; text-underline-offset: 4px; }
.eyebrow a { color: inherit; text-decoration: none; }
.showcase {
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 23px;
    background: #171127;
    box-shadow: var(--shadow);
}
.showcase img { display: block; width: 100%; height: auto; }
.showcase figcaption { padding: 13px 18px; background: var(--surface-solid); color: var(--muted); }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.notice { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 25px; }
.notice p { max-width: 760px; color: var(--muted); }
.requirements { padding-bottom: 78px; text-align: center; }

.page-hero { max-width: 800px; padding: 82px 0 32px; }
.page-hero h1 { font-size: clamp(2.35rem, 5vw, 4.1rem); }
.content-card { max-width: 900px; padding: 30px; }
.content-card + .content-card { margin-top: 18px; }
.content-card h2 { margin-top: 32px; font-size: 1.55rem; }
.content-card h2:first-child { margin-top: 0; }
.content-card hr { margin: 38px 0; border: 0; border-top: 1px solid var(--line); }
.content-card ul { padding-left: 1.25rem; }
.content-card li + li { margin-top: 8px; }

.site-footer { margin-top: 76px; border-top: 1px solid var(--line); color: var(--muted); }
.site-footer .shell { min-height: 84px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 17px; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--purple-deep); }

@media (max-width: 800px) {
    .shell { width: min(100% - 28px, 1160px); }
    .site-header .shell { min-height: 62px; }
    .brand-copy small { display: none; }
    .nav-links { gap: 0; }
    .nav-links a { padding: 7px 8px; font-size: .84rem; }
    .hero { grid-template-columns: 1fr; gap: 36px; padding: 62px 0 30px; }
    .product-heading { align-items: flex-start; }
    .app-icon { width: 76px; height: 76px; border-radius: 17px; }
    .feature-grid, .resource-grid, .gallery { grid-template-columns: 1fr; }
    .product-card { grid-template-columns: 68px 1fr; }
    .product-card .app-icon { width: 68px; height: 68px; }
    .product-card .button { grid-column: 1 / -1; }
    .notice { align-items: flex-start; flex-direction: column; }
    .site-footer .shell { align-items: flex-start; flex-direction: column; padding: 24px 0; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .button { transition: none; }
}
