/* Shared across every page: reset, background effects, floating nav, buttons,
   and footer. Page-specific styles (hero, dashboard states, legal copy, ...)
   live in each page's own <style> block and load after this file, so a local
   :root override (e.g. --max-width) still wins. */

:root {
    --background: #030303;
    --surface: rgba(255, 255, 255, 0.045);
    --surface-hover: rgba(255, 255, 255, 0.075);
    --border: rgba(255, 255, 255, 0.12);
    --text: #ffffff;
    --muted: #a7a7a7;
    --soft: #707070;
    --good: #28c840;
    --max-width: 1180px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    background: var(--background);
    color: var(--text);
    font-family:
        Inter,
        ui-sans-serif,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    line-height: 1.6;
}

body::before,
body::after {
    content: "";
    position: fixed;
    z-index: -2;
    top: 8%;
    width: 360px;
    height: 85vh;
    pointer-events: none;
    filter: blur(100px);
    opacity: 0.25;
    border-radius: 50%;
    animation: sidePulse 9s ease-in-out infinite;
}

body::before {
    left: -280px;
    background:
        radial-gradient(
            ellipse at center,
            rgba(255, 255, 255, 0.95) 0%,
            rgba(190, 190, 190, 0.42) 35%,
            transparent 72%
        );
}

body::after {
    right: -280px;
    background:
        radial-gradient(
            ellipse at center,
            rgba(255, 255, 255, 0.85) 0%,
            rgba(150, 150, 150, 0.38) 35%,
            transparent 72%
        );
    animation-delay: -4.5s;
}

.background-grid {
    position: fixed;
    z-index: -3;
    inset: 0;
    pointer-events: none;
    opacity: 0.18;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: linear-gradient(
        to bottom,
        transparent,
        black 20%,
        black 75%,
        transparent
    );
}

.background-vignette {
    position: fixed;
    z-index: -1;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(
            circle at center,
            transparent 0%,
            rgba(0, 0, 0, 0.18) 55%,
            rgba(0, 0, 0, 0.72) 100%
        );
}

@keyframes sidePulse {
    0%,
    100% {
        opacity: 0.18;
        transform: translateY(0) scale(0.92);
    }

    50% {
        opacity: 0.34;
        transform: translateY(30px) scale(1.08);
    }
}

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

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    font: inherit;
    color: inherit;
    cursor: pointer;
}

.container {
    width: min(calc(100% - 40px), var(--max-width));
    margin-inline: auto;
}

/* Floating pill navigation, shared by every page */
.navigation {
    position: fixed;
    z-index: 100;
    top: 18px;
    left: 50%;
    width: min(calc(100% - 32px), var(--max-width));
    transform: translateX(-50%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    background: rgba(5, 5, 5, 0.72);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.navigation-inner {
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 0 20px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    font-size: 1.05rem;
    font-weight: 750;
    letter-spacing: -0.03em;
}

.logo-icon {
    width: 35px;
    height: 35px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 10px;
    background: #ffffff;
    color: #000000;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.09);
}

.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.navigation-links {
    display: flex;
    align-items: center;
    gap: 28px;
    color: var(--muted);
    font-size: 0.9rem;
}

.navigation-links a {
    transition: color 180ms ease;
}

.navigation-links a:hover {
    color: #ffffff;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* Buttons */
.button {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 22px;
    border: 1px solid transparent;
    border-radius: 12px;
    font-size: 0.92rem;
    font-weight: 650;
    transition:
        transform 180ms ease,
        background 180ms ease,
        border-color 180ms ease,
        box-shadow 180ms ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button-primary {
    background: #ffffff;
    color: #050505;
    box-shadow: 0 12px 40px rgba(255, 255, 255, 0.1);
}

.button-primary:hover {
    background: #e8e8e8;
    box-shadow: 0 16px 50px rgba(255, 255, 255, 0.16);
}

.button-secondary {
    border-color: var(--border);
    background: rgba(255, 255, 255, 0.04);
    color: #ffffff;
}

.button-secondary:hover {
    border-color: rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.08);
}

.button-small {
    min-height: 40px;
    padding: 0 17px;
    border-radius: 10px;
    font-size: 0.86rem;
}

/* Section labels, used as an "eyebrow" heading across pages */
.section-label {
    display: block;
    margin-bottom: 13px;
    color: #8f8f8f;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

/* Footer, shared by every page */
footer {
    padding: 30px 0 42px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.footer-text {
    color: var(--soft);
    font-size: 0.82rem;
}

.footer-links {
    display: flex;
    gap: 22px;
    color: var(--muted);
    font-size: 0.82rem;
}

.footer-links a:hover {
    color: #ffffff;
}

@media (max-width: 850px) {
    .navigation-links {
        display: none;
    }
}

@media (max-width: 620px) {
    .container {
        width: min(calc(100% - 28px), var(--max-width));
    }

    .navigation {
        top: 10px;
        width: calc(100% - 20px);
    }

    .navigation-inner {
        min-height: 62px;
        padding: 0 13px;
    }

    .navigation .button {
        min-height: 38px;
        padding: 0 13px;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
