/* ---------- Design tokens ---------- */
:root {
    --primary: #818df8;
    --primary-50: rgba(129, 141, 248, 0.08);
    --primary-20: rgba(129, 141, 248, 0.2);
    --primary-30: rgba(129, 141, 248, 0.3);
    --primary-glow: rgba(129, 141, 248, 0.5);

    --bg-dark: #101222;
    --bg-elev-1: #181a2e;
    --bg-elev-2: #1f2238;

    --text-100: #f1f5f9;
    --text-200: #cbd5e1;
    --text-300: #94a3b8;
    --text-400: #64748b;

    --border-subtle: rgba(148, 163, 184, 0.1);
    --border-primary: rgba(129, 141, 248, 0.25);

    --radius-sm: 0.5rem;
    --radius-md: 1rem;
    --radius-lg: 1.5rem;
    --radius-pill: 9999px;

    --font-display: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

    --nav-height: 72px;
    --content-max: 1120px;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    color-scheme: dark;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-display);
    background-color: var(--bg-dark);
    color: var(--text-100);
    line-height: 1.6;
    min-height: 100dvh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    color: inherit;
}

/* ---------- Background blobs ---------- */
.bg-gradient {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.35;
    overflow: hidden;
}

.bg-gradient::before,
.bg-gradient::after {
    content: "";
    position: absolute;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    filter: blur(140px);
}

.bg-gradient::before {
    top: -15%;
    left: -10%;
    background: var(--primary);
}

.bg-gradient::after {
    bottom: -20%;
    right: -10%;
    background: rgba(129, 141, 248, 0.45);
}

/* ---------- Layout wrappers ---------- */
.page {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
}

.container {
    width: 100%;
    max-width: var(--content-max);
    margin: 0 auto;
    padding-left: max(1.5rem, env(safe-area-inset-left, 0px));
    padding-right: max(1.5rem, env(safe-area-inset-right, 0px));
}

/* ---------- Navigation ---------- */
.nav {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: saturate(180%) blur(18px);
    -webkit-backdrop-filter: saturate(180%) blur(18px);
    background: rgba(16, 18, 34, 0.7);
    border-bottom: 1px solid var(--border-subtle);
}

.nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--nav-height);
    position: relative;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: -0.01em;
}

.brand__mark {
    width: 34px;
    height: 34px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--primary-30), var(--primary-50));
    border: 1px solid var(--border-primary);
    display: grid;
    place-items: center;
    color: var(--primary);
    box-shadow: 0 0 20px var(--primary-50);
}

.brand__mark .material-symbols-outlined {
    font-size: 20px;
}

.nav__links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav__link {
    display: inline-block;
    padding: 0.55rem 1rem;
    border-radius: var(--radius-pill);
    color: var(--text-300);
    font-weight: 500;
    font-size: 0.925rem;
    white-space: nowrap;
    transition: color 180ms ease, background-color 180ms ease;
}

.nav__link:hover {
    color: var(--text-100);
    background-color: var(--primary-50);
}

.nav__link.is-active {
    color: var(--primary);
    background-color: var(--primary-50);
}

.nav__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1.1rem;
    border-radius: var(--radius-pill);
    background: var(--primary);
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
    box-shadow: 0 8px 24px -8px var(--primary-glow);
}

.nav__cta:hover {
    background: #6f7cf0;
    transform: translateY(-1px);
}

.nav__right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav__toggle {
    display: none;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    color: var(--text-200);
    border: 1px solid var(--border-subtle);
    background: transparent;
    align-items: center;
    justify-content: center;
    transition: background-color 160ms ease, color 160ms ease;
}

.nav__toggle:hover {
    color: var(--primary);
    background: var(--primary-50);
}

.nav__toggle .material-symbols-outlined {
    font-size: 22px;
}

.nav__toggle-icon--close {
    display: none;
}

.nav.nav--open .nav__toggle-icon--menu {
    display: none;
}

.nav.nav--open .nav__toggle-icon--close {
    display: block;
}

/* ---------- Hero ---------- */
.hero {
    padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(3rem, 7vw, 5rem);
    text-align: center;
}

.hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border-primary);
    background: var(--primary-50);
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 1.75rem;
}

.hero__eyebrow .material-symbols-outlined {
    font-size: 16px;
}

.hero__title {
    font-size: clamp(2.25rem, 5.5vw, 3.75rem);
    line-height: 1.1;
    letter-spacing: -0.03em;
    font-weight: 700;
    margin: 0 auto 1.25rem;
    max-width: 760px;
}

.hero__title .accent {
    color: var(--primary);
}

.hero__subtitle {
    font-size: clamp(1rem, 1.4vw, 1.15rem);
    color: var(--text-300);
    max-width: 620px;
    margin: 0 auto 2.5rem;
    line-height: 1.65;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-bottom: 4rem;
}

/* ---------- Shield visual ---------- */
.shield-visual {
    position: relative;
    width: clamp(220px, 34vw, 320px);
    height: clamp(220px, 34vw, 320px);
    margin: 0 auto;
}

.shield-visual::before {
    content: "";
    position: absolute;
    inset: -18%;
    border-radius: 50%;
    background: var(--primary-20);
    filter: blur(60px);
    z-index: -1;
}

.shield-visual__circle {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-30), var(--primary-50));
    border: 1px solid var(--border-primary);
    display: grid;
    place-items: center;
    position: relative;
    box-shadow: inset 0 0 60px rgba(129, 141, 248, 0.15);
}

.shield-visual__icon {
    font-size: clamp(80px, 11vw, 120px);
    color: var(--primary);
    filter: drop-shadow(0 0 24px var(--primary-glow));
}

.shield-visual__badge {
    position: absolute;
    top: -8px;
    right: 8%;
    width: 54px;
    height: 54px;
    border-radius: var(--radius-md);
    background: var(--bg-dark);
    border: 1px solid var(--border-primary);
    display: grid;
    place-items: center;
    color: var(--primary);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.6);
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.95rem 1.65rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.975rem;
    transition: transform 160ms ease, box-shadow 160ms ease,
        background-color 160ms ease, border-color 160ms ease;
    border: 1px solid transparent;
}

.btn--primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 12px 32px -10px var(--primary-glow);
}

.btn--primary:hover {
    background: #6f7cf0;
    transform: translateY(-2px);
}

.btn--primary:active {
    transform: scale(0.98);
}

.btn--ghost {
    background: transparent;
    color: var(--text-100);
    border-color: var(--border-subtle);
}

.btn--ghost:hover {
    border-color: var(--border-primary);
    background: var(--primary-50);
}

.btn .material-symbols-outlined {
    font-size: 20px;
}

/* ---------- Sections ---------- */
.section {
    padding: clamp(3rem, 7vw, 5.5rem) 0;
}

.section__head {
    text-align: center;
    max-width: 620px;
    margin: 0 auto 3rem;
}

.section__eyebrow {
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 0.75rem;
}

.section__title {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    letter-spacing: -0.02em;
    font-weight: 700;
    margin: 0 0 0.75rem;
}

.section__description {
    color: var(--text-300);
    font-size: 1.05rem;
    margin: 0;
}

/* ---------- Feature grid ---------- */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
    gap: 1.25rem;
}

.feature-card {
    padding: 1.75rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    transition: transform 200ms ease, border-color 200ms ease,
        background-color 200ms ease;
}

.feature-card:hover {
    transform: translateY(-3px);
    border-color: var(--border-primary);
    background: var(--primary-50);
}

.feature-card__icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: var(--primary-50);
    color: var(--primary);
    display: grid;
    place-items: center;
    margin-bottom: 1.25rem;
    border: 1px solid var(--border-primary);
}

.feature-card__icon .material-symbols-outlined {
    font-size: 24px;
}

.feature-card__title {
    font-size: 1.15rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
    letter-spacing: -0.01em;
}

.feature-card__description {
    color: var(--text-300);
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.6;
}

/* ---------- Content pages (About / Privacy / Terms) ---------- */
.content {
    padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(4rem, 9vw, 7rem);
}

.content__header {
    text-align: center;
    margin-bottom: 3rem;
}

.content__kicker {
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 0.5rem;
}

.content__title {
    font-size: clamp(2rem, 4.5vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    margin: 0 0 0.65rem;
}

.content__meta {
    color: var(--text-400);
    font-size: 0.9rem;
    margin: 0;
}

.content__body {
    max-width: 760px;
    margin: 0 auto;
    overflow-wrap: break-word;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: clamp(1.75rem, 4vw, 3rem);
}

.content__body h2 {
    font-size: 1.35rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin: 2.25rem 0 0.75rem;
    color: var(--text-100);
}

.content__body h2:first-child {
    margin-top: 0;
}

.content__body p,
.content__body li {
    color: var(--text-200);
    font-size: 1rem;
    line-height: 1.75;
}

.content__body p {
    margin: 0 0 1rem;
}

.content__body ul {
    margin: 0 0 1.25rem;
    padding-left: 1.25rem;
}

.content__body li {
    margin-bottom: 0.4rem;
}

.content__body a {
    color: var(--primary);
    border-bottom: 1px solid transparent;
    transition: border-color 160ms ease;
}

.content__body a:hover {
    border-bottom-color: var(--primary);
}

.content__body strong {
    color: var(--text-100);
}

/* ---------- Footer ---------- */
.footer {
    margin-top: auto;
    padding: 2.5rem 0 3rem;
    border-top: 1px solid var(--border-subtle);
}

.footer__inner {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
    align-items: center;
    color: var(--text-400);
    font-size: 0.875rem;
}

.footer__links {
    display: flex;
    gap: 1.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer__links a:hover {
    color: var(--primary);
}

/* ---------- Progress bar (decorative) ---------- */
.progress-rail {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: rgba(148, 163, 184, 0.08);
    z-index: 15;
}

.progress-rail__fill {
    height: 100%;
    width: 22%;
    background: linear-gradient(90deg, transparent, var(--primary));
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
    .nav__links {
        display: none;
    }

    .nav__toggle {
        display: inline-flex;
    }

    .nav__cta {
        display: none;
    }

    .nav--open .nav__links {
        display: flex;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 21;
        flex-direction: column;
        align-items: stretch;
        gap: 0.25rem;
        padding: 0.75rem 1.25rem 1.5rem;
        margin: 0;
        background: var(--bg-dark);
        border-bottom: 1px solid var(--border-subtle);
        box-shadow: 0 18px 32px -18px rgba(0, 0, 0, 0.6);
    }

    body.nav-menu-open {
        overflow: hidden;
    }

    .hero__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero__actions .btn {
        width: 100%;
        max-width: 22rem;
        margin-inline: auto;
        justify-content: center;
        min-height: 44px;
    }

    .nav--open .nav__links li {
        list-style: none;
    }

    .nav--open .nav__link {
        display: block;
        width: 100%;
        padding: 0.85rem 1rem;
        font-size: 1rem;
        border-radius: var(--radius-sm);
        white-space: normal;
    }

    .footer__inner {
        justify-content: center;
        text-align: center;
    }

    .hero__title {
        font-size: clamp(2rem, 9vw, 2.75rem);
    }
}

/* ---------- Subtle entrance animations ---------- */
@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: no-preference) {
    .hero__eyebrow,
    .hero__title,
    .hero__subtitle,
    .hero__actions,
    .shield-visual {
        animation: rise 700ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
    }

    .hero__title {
        animation-delay: 60ms;
    }

    .hero__subtitle {
        animation-delay: 120ms;
    }

    .hero__actions {
        animation-delay: 180ms;
    }

    .shield-visual {
        animation-delay: 240ms;
    }
}
