:root {
    --bg: #07131f;
    --panel: rgba(8, 26, 40, 0.72);
    --stroke: rgba(122, 202, 255, 0.14);
    --stroke-strong: rgba(122, 202, 255, 0.24);
    --text: #ecf6ff;
    --muted: #98aec0;
    --accent: #40d6ff;
    --lime: #7af98d;
    --shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 16px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    font-family: "Manrope", sans-serif;
    background:
        radial-gradient(circle at 15% 20%, rgba(14, 190, 255, 0.20), transparent 28%),
        radial-gradient(circle at 85% 10%, rgba(122, 249, 141, 0.10), transparent 24%),
        linear-gradient(180deg, #06111b 0%, #081722 35%, #0a1a28 100%);
    min-height: 100vh;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: linear-gradient(180deg, rgba(255,255,255,0.24), transparent 70%);
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

.site-shell {
    width: min(1180px, calc(100vw - 32px));
    margin: 0 auto;
    padding: 20px 0 48px;
}

.topbar {
    position: sticky;
    top: 16px;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 18px;
    margin-bottom: 28px;
    background: rgba(6, 18, 29, 0.7);
    border: 1px solid var(--stroke);
    border-radius: 999px;
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: "Space Grotesk", sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.brand-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
}

.topnav,
.footer-links,
.hero-actions,
.meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.topnav,
.footer-links {
    color: var(--muted);
    font-size: 0.95rem;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    gap: 28px;
    align-items: stretch;
    padding: 28px 0 18px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(64, 214, 255, 0.18);
    color: #d9f8ff;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero h1,
.legal-hero h1 {
    margin: 18px 0 14px;
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(2.6rem, 5vw, 4.7rem);
    line-height: 1.02;
    letter-spacing: -0.05em;
    max-width: 11ch;
}

.hero-text,
.section-heading p,
.legal-hero p,
.legal-card p,
.legal-card li,
.feature-card p,
.protocol-card p,
.privacy-card li,
.cta-panel p,
.footer p {
    color: var(--muted);
    line-height: 1.74;
    font-size: 1rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 22px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 800;
    letter-spacing: -0.01em;
    transition: transform 160ms ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, var(--lime) 135%);
    color: #041019;
    box-shadow: 0 20px 40px rgba(40, 200, 255, 0.24);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.03);
    border-color: var(--stroke-strong);
    color: var(--text);
}

.meta-pill,
.protocol-tag {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid var(--stroke);
    background: rgba(255, 255, 255, 0.03);
    color: #d8ecfa;
    font-size: 0.92rem;
}

.mock-window,
.signal-card,
.feature-card,
.protocol-card,
.privacy-card,
.cta-panel,
.legal-card,
.legal-hero {
    padding: 22px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--stroke);
    background: var(--panel);
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
}

.mock-window {
    height: 100%;
    background:
        radial-gradient(circle at top right, rgba(64,214,255,0.14), transparent 28%),
        linear-gradient(180deg, rgba(11, 29, 43, 0.94), rgba(7, 19, 31, 0.94));
}

.mock-dots {
    display: flex;
    gap: 8px;
    margin-bottom: 22px;
}

.mock-dots span {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.25);
}

.mock-body,
.stack {
    display: grid;
    gap: 18px;
}

.hero-logo {
    width: min(100%, 430px);
    filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.4));
}

.signal-card strong,
.stats-grid strong {
    display: block;
    margin-top: 8px;
}

.signal-card .label,
.stats-grid span,
.feature-card h3,
.privacy-card h3,
.legal-card h2,
.section-heading h2 {
    font-family: "Space Grotesk", sans-serif;
}

.stats-grid,
.feature-grid,
.protocol-grid,
.privacy-grid {
    display: grid;
    gap: 18px;
}

.stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.stats-grid article {
    padding: 16px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.section {
    margin-top: 34px;
}

.section-heading {
    max-width: 760px;
    margin-bottom: 20px;
}

.section-heading h2 {
    margin: 16px 0 10px;
    font-size: clamp(1.8rem, 3vw, 3rem);
    line-height: 1.06;
    letter-spacing: -0.04em;
}

.feature-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.protocol-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.privacy-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 18px;
}

.feature-card h3,
.privacy-card h3 {
    margin: 0 0 10px;
    font-size: 1.1rem;
}

.privacy-card ul,
.legal-card ul {
    padding-left: 18px;
}

.privacy-card li,
.legal-card li {
    margin-bottom: 10px;
}

.section-accent {
    padding: 28px;
    border-radius: calc(var(--radius-xl) + 4px);
    background:
        radial-gradient(circle at 80% 0%, rgba(122, 249, 141, 0.08), transparent 24%),
        linear-gradient(180deg, rgba(8, 22, 36, 0.96), rgba(8, 22, 36, 0.92));
    border: 1px solid var(--stroke);
}

.cta-panel,
.footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.footer {
    margin-top: 34px;
    padding: 18px 4px 0;
    border-top: 1px solid var(--stroke);
}

.footer code,
table code {
    font-family: "Space Grotesk", sans-serif;
    font-size: 0.92em;
    color: #cbf3ff;
}

.legal-page .site-shell {
    width: min(1080px, calc(100vw - 32px));
}

.legal-wrapper {
    display: grid;
    gap: 18px;
}

.table-wrap {
    overflow-x: auto;
    margin: 8px 0 18px;
}

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

thead th {
    text-align: left;
    font-family: "Space Grotesk", sans-serif;
    font-size: 0.95rem;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid var(--stroke-strong);
}

tbody td {
    padding: 16px;
    color: var(--muted);
    vertical-align: top;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

tbody tr:last-child td {
    border-bottom: 0;
}

@media (max-width: 1080px) {
    .hero,
    .feature-grid,
    .protocol-grid,
    .privacy-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .site-shell,
    .legal-page .site-shell {
        width: min(100vw - 20px, 100%);
    }

    .topbar,
    .footer,
    .cta-panel {
        flex-direction: column;
        align-items: flex-start;
        border-radius: 24px;
    }

    .hero h1,
    .legal-hero h1 {
        max-width: none;
    }

    .hero-actions {
        flex-direction: column;
        gap: 14px;
    }

    .btn {
        width: 100%;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }
}
