:root {
    --bg: #0d0419;
    --bg-soft: #130722;
    --surface: #190d28;
    --surface-strong: #211134;
    --line: rgba(255, 255, 255, 0.09);
    --text: #f7f5fa;
    --muted: #a7a2af;
    --subtle: #76707e;
    --accent: #b84cff;
    --accent-deep: #6e16d8;
    --pink: #ff4fd8;
    --mint: #48e0b2;
    --violet: #8d72ff;
    --radius: 22px;
    --content: 1160px;
}

* { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    background: var(--bg);
}

body {
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(circle at 50% -20%, rgba(184, 76, 255, 0.12), transparent 40%),
        var(--bg);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.72;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.skip-link {
    position: fixed;
    z-index: 100;
    top: 12px;
    left: 12px;
    padding: 10px 14px;
    color: #190323;
    background: var(--accent);
    border-radius: 10px;
    transform: translateY(-160%);
    transition: transform .2s ease;
}

.skip-link:focus { transform: translateY(0); }

.site-header {
    position: sticky;
    z-index: 20;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 72px;
    padding: 0 max(24px, calc((100vw - var(--content)) / 2));
    border-bottom: 1px solid var(--line);
    background: rgba(9, 8, 13, 0.78);
    -webkit-backdrop-filter: blur(24px);
    backdrop-filter: blur(24px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: var(--text);
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
}

.brand-mark {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    color: var(--accent);
    border: 1px solid rgba(184, 76, 255, .3);
    border-radius: 12px;
    background: rgba(184, 76, 255, .11);
}

.brand-mark svg,
.summary-icon svg,
.contact-icon svg {
    width: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.header-link {
    padding: 8px 14px;
    color: var(--muted);
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: color .2s ease, border-color .2s ease, background .2s ease;
}

.header-link:hover {
    color: var(--text);
    border-color: rgba(184, 76, 255, .38);
    background: rgba(184, 76, 255, .09);
}

.hero {
    position: relative;
    overflow: hidden;
    min-height: 580px;
    padding: 120px 24px 90px;
    border-bottom: 1px solid var(--line);
}

.hero::before {
    position: absolute;
    inset: 0;
    content: "";
    opacity: .15;
    background-image:
        linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
    background-size: 52px 52px;
    mask-image: linear-gradient(to bottom, black, transparent 88%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(840px, 100%);
    margin: 0 auto;
    text-align: center;
}

.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(95px);
    pointer-events: none;
}

.hero-glow-one {
    top: 80px;
    left: calc(50% - 280px);
    width: 420px;
    height: 300px;
    background: rgba(178, 40, 255, .24);
}

.hero-glow-two {
    top: 90px;
    right: calc(50% - 330px);
    width: 350px;
    height: 300px;
    background: rgba(255, 51, 200, .16);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 28px;
    padding: 8px 13px;
    color: #e6c8f7;
    border: 1px solid rgba(184, 76, 255, .24);
    border-radius: 999px;
    background: rgba(184, 76, 255, .08);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--mint);
    box-shadow: 0 0 12px rgba(53, 223, 175, .8);
}

h1 {
    margin: 0;
    font-size: clamp(48px, 7vw, 82px);
    font-weight: 780;
    letter-spacing: -.055em;
    line-height: .99;
}

h1 span {
    color: transparent;
    background: linear-gradient(110deg, #f7f5fa 12%, var(--accent) 58%, var(--pink));
    -webkit-background-clip: text;
    background-clip: text;
}

.hero-copy {
    width: min(680px, 100%);
    margin: 30px auto 0;
    color: var(--muted);
    font-size: clamp(16px, 2vw, 19px);
}

.meta-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 32px;
    color: var(--subtle);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.network-route {
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(610px, 100%);
    margin: 30px auto 0;
    padding: 14px 16px;
    border: 1px solid rgba(184, 76, 255, .2);
    border-radius: 20px;
    background: rgba(18, 7, 31, .72);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
}

.route-device {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 9px;
    color: #eee8f3;
    font-size: 12px;
    font-weight: 650;
}

.route-device svg {
    width: 24px;
    fill: none;
    stroke: var(--accent);
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.route-path {
    position: relative;
    flex: 1 1 120px;
    min-width: 80px;
    height: 28px;
    margin: 0 18px;
}

.route-path::before {
    position: absolute;
    top: 50%;
    right: 0;
    left: 0;
    height: 1px;
    content: "";
    background: linear-gradient(90deg, rgba(184,76,255,.3), var(--accent), rgba(255,79,216,.35));
}

.route-path::after {
    position: absolute;
    top: calc(50% - 3px);
    right: 0;
    width: 6px;
    height: 6px;
    content: "";
    border-top: 1px solid var(--pink);
    border-right: 1px solid var(--pink);
    transform: rotate(45deg);
}

.route-path span {
    position: relative;
    z-index: 1;
    display: block;
    width: max-content;
    margin: -2px auto 0;
    padding: 0 8px;
    color: var(--subtle);
    background: #12071f;
    font-size: 10px;
    font-weight: 650;
    letter-spacing: .03em;
}

.route-note {
    margin: 9px 0 0;
    color: var(--subtle);
    font-size: 11px;
}

.summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    width: min(var(--content), calc(100% - 48px));
    margin: -44px auto 80px;
    position: relative;
    z-index: 3;
}

.summary-card {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    min-height: 132px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(145deg, rgba(28, 25, 36, .97), rgba(16, 14, 21, .97));
    box-shadow: 0 22px 60px rgba(0,0,0,.24);
}

.summary-icon {
    display: grid;
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 14px;
}

.summary-icon.purple { color: var(--accent); background: rgba(184,76,255,.12); }
.summary-icon.mint { color: var(--mint); background: rgba(53,223,175,.1); }
.summary-icon.pink { color: var(--pink); background: rgba(255,79,216,.1); }

.summary-card div { display: flex; flex-direction: column; gap: 7px; }
.summary-card strong { font-size: 15px; line-height: 1.35; }
.summary-card span { color: var(--muted); font-size: 13px; line-height: 1.55; }

.policy-layout {
    display: grid;
    grid-template-columns: 220px minmax(0, 760px);
    gap: clamp(52px, 7vw, 100px);
    width: min(1060px, calc(100% - 48px));
    margin: 0 auto 120px;
}

.toc {
    position: sticky;
    top: 112px;
    align-self: start;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.toc p {
    margin: 0 0 12px 12px;
    color: var(--subtle);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.toc a {
    padding: 8px 12px;
    color: #8d8795;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 560;
    line-height: 1.35;
    text-decoration: none;
    transition: color .18s ease, background .18s ease;
}

.toc a:hover,
.toc a:focus-visible {
    color: var(--text);
    background: rgba(255,255,255,.05);
}

.policy section {
    scroll-margin-top: 105px;
    padding-bottom: 62px;
}

.policy section + section {
    padding-top: 62px;
    border-top: 1px solid var(--line);
}

.section-number {
    margin: 0 0 10px;
    color: var(--accent);
    font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
}

h2 {
    margin: 0 0 24px;
    font-size: clamp(28px, 3.2vw, 39px);
    line-height: 1.15;
    letter-spacing: -.035em;
}

h3 {
    margin: 34px 0 9px;
    font-size: 17px;
    line-height: 1.4;
}

.policy p,
.policy li {
    color: #b4afba;
}

.policy p { margin: 0 0 18px; }
.policy strong { color: #e8e5eb; }
.policy em { color: #d8d4dd; }
.policy ul { margin: 18px 0 0; padding: 0; list-style: none; }
.policy li { position: relative; margin: 0 0 13px; padding-left: 28px; }
.policy li::before {
    position: absolute;
    top: .66em;
    left: 4px;
    width: 7px;
    height: 7px;
    content: "";
    border: 2px solid var(--accent);
    border-radius: 50%;
}

.notice {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    margin-top: 30px;
    padding: 18px 20px;
    border: 1px solid rgba(184,76,255,.2);
    border-radius: 16px;
    background: rgba(184,76,255,.06);
}

.notice > span {
    display: grid;
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    place-items: center;
    color: var(--accent);
    border: 1px solid currentColor;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 800;
}

.notice p { margin: 0; color: #b9acbf; font-size: 13px; }

.party-list {
    display: grid;
    gap: 1px;
    overflow: hidden;
    margin: 28px 0;
    border: 1px solid var(--line);
    border-radius: 17px;
    background: var(--line);
}

.party-list div {
    display: grid;
    grid-template-columns: 155px 1fr;
    gap: 22px;
    padding: 17px 19px;
    background: var(--surface);
}

.party-list strong { font-size: 13px; }
.party-list span { color: var(--muted); font-size: 13px; }

.contact-card {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 24px 0 14px;
    padding: 18px;
    color: var(--text);
    border: 1px solid rgba(184,76,255,.24);
    border-radius: 18px;
    background: linear-gradient(115deg, rgba(184,76,255,.12), rgba(22,11,35,.92));
    text-decoration: none;
    transition: transform .2s ease, border-color .2s ease;
}

.contact-card:hover { transform: translateY(-2px); border-color: rgba(184,76,255,.5); }
.contact-icon { display: grid; width: 43px; height: 43px; place-items: center; color: var(--accent); border-radius: 14px; background: rgba(184,76,255,.13); }
.contact-card > span:nth-child(2) { display: flex; min-width: 0; flex-direction: column; }
.contact-card small { color: var(--muted); font-size: 11px; }
.contact-card strong { overflow-wrap: anywhere; font-size: 14px; }
.contact-card .arrow { margin-left: auto; color: var(--accent); font-size: 18px; }
.contact-note { color: #817b88 !important; font-size: 12px; }
code { padding: 2px 5px; color: #ebd1ff; border-radius: 5px; background: rgba(184,76,255,.1); font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; font-size: .92em; }

.external-policies { padding-bottom: 0 !important; }
.external-policies h2 { font-size: 22px; }
.link-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.link-grid a {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 15px;
    color: #c4beca;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: color .18s ease, border-color .18s ease;
}
.link-grid a:hover { color: var(--text); border-color: rgba(184,76,255,.32); }
.link-grid span { color: var(--accent); }

.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    min-height: 140px;
    padding: 32px max(24px, calc((100vw - var(--content)) / 2));
    border-top: 1px solid var(--line);
    background: #07060a;
}

.site-footer div { display: flex; flex-direction: column; gap: 4px; }
.site-footer strong { font-size: 14px; }
.site-footer span,
.site-footer p { margin: 0; color: var(--subtle); font-size: 11px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

@media (max-width: 840px) {
    .hero { min-height: 530px; padding-top: 100px; }
    .summary { grid-template-columns: 1fr; margin-top: -34px; }
    .summary-card { min-height: auto; }
    .policy-layout { display: block; width: min(760px, calc(100% - 40px)); }
    .toc { display: none; }
}

@media (max-width: 560px) {
    .site-header { min-height: 64px; padding-inline: 18px; }
    .brand-mark { width: 34px; height: 34px; }
    .header-link { padding: 7px 12px; }
    .hero { min-height: 500px; padding: 84px 20px 72px; }
    .hero-copy { margin-top: 24px; font-size: 15px; }
    .meta-row { flex-wrap: wrap; margin-top: 26px; }
    .network-route { padding: 13px; }
    .route-device { flex-direction: column; gap: 4px; }
    .route-path { min-width: 48px; margin-inline: 10px; }
    .summary { width: calc(100% - 28px); margin-bottom: 62px; }
    .summary-card { padding: 19px; border-radius: 18px; }
    .policy-layout { width: calc(100% - 36px); margin-bottom: 80px; }
    .policy section { padding-bottom: 46px; }
    .policy section + section { padding-top: 46px; }
    .party-list div { grid-template-columns: 1fr; gap: 5px; }
    .link-grid { grid-template-columns: 1fr; }
    .site-footer { align-items: flex-start; flex-direction: column; min-height: 160px; padding-inline: 20px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: .01ms !important; }
}

@media print {
    :root { --bg: #fff; --text: #111; --muted: #444; --subtle: #666; --line: #ddd; --surface: #f7f7f7; }
    body { background: #fff; color: #111; }
    .site-header, .toc, .hero-glow { display: none; }
    .hero { min-height: 0; padding: 40px 0; border-bottom: 1px solid #ddd; }
    .hero::before { display: none; }
    h1, h1 span { color: #111; background: none; -webkit-text-fill-color: initial; }
    .summary { width: 100%; margin: 24px 0 50px; }
    .summary-card { border: 1px solid #ddd; box-shadow: none; background: #fff; }
    .policy-layout { display: block; width: 100%; }
    .policy p, .policy li, .party-list span, .notice p { color: #333; }
    .site-footer { padding-inline: 0; background: #fff; }
}
