:root {
    --ink: #F4F6FB;
    --ink-2: #10131C;
    --paper: #08090F;
    --white: #141824;
    --muted: #9AA4B8;
    --line: rgba(255, 255, 255, 0.12);
    --line-soft: rgba(255, 255, 255, 0.07);
    --magenta: #FF3D8A;
    --magenta-deep: #FF6BAA;
    --teal: #22D3EE;
    --max: 1140px;
    --nav-h: 72px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: "DM Sans", system-ui, sans-serif;
    color: var(--ink);
    background: var(--paper);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; border: 0; cursor: pointer; background: none; color: inherit; }
ul { list-style: none; }

.skip {
    position: absolute;
    left: -999px;
    top: 0;
    z-index: 200;
    background: var(--ink-2);
    color: var(--ink);
    padding: 0.75rem 1rem;
    border-radius: 10px;
}
.skip:focus { left: 1rem; top: 1rem; }

.float-download {
    position: fixed;
    top: calc(var(--nav-h) + 0.75rem);
    right: max(1rem, env(safe-area-inset-right));
    z-index: 80;
    min-height: 48px;
    padding: 0.75rem 1.25rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.92rem;
    color: #fff;
    background: linear-gradient(120deg, var(--magenta) 0%, #7C3AED 100%);
    box-shadow: 0 12px 32px rgba(255, 61, 138, 0.42);
}
.float-download:hover { filter: brightness(1.05); }
body.nav-open .float-download { visibility: hidden; }

.site-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--nav-h);
    display: flex;
    align-items: center;
    background: rgba(8, 9, 15, 0.78);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line-soft);
}
.nav-inner {
    width: min(100% - 2rem, var(--max));
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.nav-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    font-family: "Syne", sans-serif;
    font-weight: 700;
    font-size: clamp(0.85rem, 2.8vw, 1.05rem);
    letter-spacing: -0.02em;
    z-index: 110;
}
.nav-brand img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
}
.nav-links {
    display: none;
    align-items: center;
    gap: 0.15rem;
}
.nav-links a {
    padding: 0.55rem 0.85rem;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--muted);
    transition: color 0.2s ease, background 0.2s ease;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
    color: var(--ink);
    background: rgba(255,255,255,0.06);
}
.nav-cta {
    display: none;
    align-items: center;
    gap: 0.5rem;
}
.nav-toggle {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    background: var(--white);
    z-index: 110;
    color: var(--ink);
}
.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--ink);
    position: relative;
}
.nav-toggle span::before,
.nav-toggle span::after {
    content: "";
    position: absolute;
    left: 0;
    width: 18px;
    height: 2px;
    background: var(--ink);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
body.nav-open .nav-toggle span { background: transparent; }
body.nav-open .nav-toggle span::before { top: 0; transform: rotate(45deg); }
body.nav-open .nav-toggle span::after { top: 0; transform: rotate(-45deg); }

.mobile-drawer {
    position: fixed;
    inset: 0;
    z-index: 90;
    background: rgba(10, 14, 23, 0.42);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}
body.nav-open .mobile-drawer {
    opacity: 1;
    pointer-events: auto;
}
.mobile-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: min(88vw, 360px);
    height: 100%;
    background: var(--ink-2);
    padding: calc(var(--nav-h) + 1rem) 1.35rem 2rem;
    transform: translateX(100%);
    transition: transform 0.3s var(--ease);
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
body.nav-open .mobile-panel { transform: translateX(0); }
.mobile-panel a {
    padding: 0.95rem 0.85rem;
    border-radius: 14px;
    font-weight: 600;
    font-size: 1.05rem;
}
.mobile-panel .drawer-cta {
    margin-top: auto;
    display: grid;
    gap: 0.65rem;
}
@media (min-width: 900px) {
    .nav-toggle { display: none; }
    .nav-links { display: flex; }
    .nav-cta { display: flex; }
    .mobile-drawer { display: none; }
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 48px;
    padding: 0.8rem 1.35rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
}
.btn-primary {
    background: linear-gradient(120deg, var(--magenta) 0%, #7C3AED 100%);
    color: #fff;
    box-shadow: 0 10px 28px rgba(255, 61, 138, 0.32);
}
.btn-ghost {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.28);
}
.btn-outline {
    background: transparent;
    border: 1px solid var(--line);
    color: var(--ink);
}
.btn-sm { min-height: 42px; padding: 0.55rem 1.1rem; font-size: 0.9rem; }

.page-hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    isolation: isolate;
    padding: clamp(2.75rem, 7vw, 4.5rem) 0 2.25rem;
}
.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(80% 70% at 90% 0%, rgba(255, 61, 138, 0.32), transparent 55%),
        linear-gradient(155deg, #070A12 0%, #12182A 55%, #1A1030 100%);
}
.page-hero-inner {
    width: min(100% - 2rem, var(--max));
    margin: 0 auto;
}
.crumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.5rem;
    font-size: 0.88rem;
    color: var(--muted);
    margin-bottom: 1.1rem;
}
.crumbs a:hover { color: var(--ink); }
.section-kicker {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--magenta);
    margin-bottom: 0.6rem;
}
.page-hero h1,
.section h2,
.prose h2 {
    font-family: "Syne", sans-serif;
    letter-spacing: -0.03em;
    line-height: 1.12;
}
.page-hero h1 {
    font-weight: 800;
    font-size: clamp(2rem, 4.8vw, 3.15rem);
    max-width: 16em;
    text-wrap: balance;
    margin-bottom: 0.85rem;
}
.page-hero p {
    color: rgba(255,255,255,0.76);
    font-size: 1.08rem;
    max-width: 46ch;
}

.section {
    width: min(100% - 2rem, var(--max));
    margin: 0 auto;
    padding: clamp(2.25rem, 5vw, 4rem) 0;
    scroll-margin-top: calc(var(--nav-h) + 0.75rem);
}
.section-head {
    max-width: 40rem;
    margin-bottom: 1.75rem;
}
.section-head h2,
.section h2 {
    font-size: clamp(1.55rem, 3.4vw, 2.15rem);
    margin-bottom: 0.55rem;
}
.section-head p { color: var(--muted); font-size: 1.05rem; }

.prose p,
.prose li {
    color: var(--muted);
    font-size: 1.05rem;
    max-width: 68ch;
}
.prose p { margin-bottom: 1rem; }
.prose h2 { font-size: clamp(1.4rem, 3vw, 1.85rem); margin: 2rem 0 0.7rem; }
.prose h3 {
    font-family: "Syne", sans-serif;
    font-size: 1.15rem;
    letter-spacing: -0.02em;
    margin: 1.4rem 0 0.45rem;
}
.prose a {
    color: var(--magenta-deep);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.prose ul,
.prose ol {
    margin: 0 0 1.15rem 1.2rem;
}
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: 0.45rem; }
.prose strong { color: var(--ink); font-weight: 600; }

.faq-list {
    display: grid;
    gap: 0.75rem;
    max-width: 760px;
}
.faq-item {
    background: var(--white);
    border: 1px solid var(--line-soft);
    border-radius: 18px;
    overflow: hidden;
}
.faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 1.15rem 1.25rem;
    font-weight: 600;
    font-size: 1.02rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: "+";
    font-size: 1.35rem;
    font-weight: 500;
    color: var(--muted);
    line-height: 1;
}
.faq-item[open] summary::after { content: "–"; }
.faq-item .faq-body {
    padding: 0 1.25rem 1.2rem;
    color: var(--muted);
    font-size: 0.98rem;
    max-width: 58ch;
}
.faq-item .faq-body a {
    color: var(--magenta-deep);
    text-decoration: underline;
}

.related {
    display: grid;
    gap: 0.85rem;
}
@media (min-width: 800px) {
    .related { grid-template-columns: repeat(3, 1fr); }
}
.related a {
    background: var(--white);
    border: 1px solid var(--line-soft);
    border-radius: 20px;
    padding: 1.3rem 1.25rem;
    display: block;
    transition: transform 0.2s var(--ease), border-color 0.2s ease;
}
.related a:hover {
    transform: translateY(-3px);
    border-color: var(--line);
}
.related h3 {
    font-family: "Syne", sans-serif;
    font-size: 1.12rem;
    letter-spacing: -0.02em;
    margin-bottom: 0.35rem;
}
.related p { color: var(--muted); font-size: 0.92rem; }

.band {
    background:
        radial-gradient(80% 80% at 90% 0%, rgba(255,61,138,0.28), transparent 50%),
        linear-gradient(180deg, #0C0E16, #05060A);
    color: #fff;
    padding: clamp(3.5rem, 8vw, 5.5rem) 0;
    border-top: 1px solid var(--line-soft);
}
.band-inner {
    width: min(100% - 2rem, var(--max));
    margin: 0 auto;
    display: grid;
    gap: 1.5rem;
}
@media (min-width: 800px) {
    .band-inner {
        grid-template-columns: 1.35fr auto;
        align-items: center;
    }
}
.band h2 {
    font-family: "Syne", sans-serif;
    font-size: clamp(1.85rem, 4vw, 2.5rem);
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 0.55rem;
}
.band p { color: rgba(255,255,255,0.68); max-width: 38ch; }
.band-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.site-footer {
    padding: 2rem 0 calc(2rem + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line-soft);
    background: var(--white);
}
.footer-inner {
    width: min(100% - 2rem, var(--max));
    margin: 0 auto;
    display: grid;
    gap: 1.5rem;
}
@media (min-width: 800px) {
    .footer-inner {
        grid-template-columns: 1.2fr 2fr;
        align-items: start;
    }
}
.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-family: "Syne", sans-serif;
    font-weight: 700;
    margin-bottom: 0.55rem;
}
.footer-brand img { width: 32px; height: 32px; border-radius: 50%; }
.footer-inner p { color: var(--muted); font-size: 0.92rem; max-width: 40ch; margin-bottom: 0.55rem; }
.footer-cols {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}
@media (min-width: 800px) {
    .footer-cols { grid-template-columns: repeat(4, 1fr); }
}
.footer-cols h3 {
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.7rem;
    font-weight: 700;
}
.footer-cols a {
    display: block;
    padding: 0.25rem 0;
    color: var(--ink);
    font-weight: 500;
    font-size: 0.95rem;
}
.footer-cols a:hover { color: var(--magenta-deep); }
.footer-bottom {
    width: min(100% - 2rem, var(--max));
    margin: 1.5rem auto 0;
    padding-top: 1.25rem;
    border-top: 1px solid var(--line-soft);
    color: var(--muted);
    font-size: 0.88rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    justify-content: space-between;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
a:focus-visible,
button:focus-visible,
summary:focus-visible {
    outline: 2px solid var(--magenta);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
    }
}
