@font-face {
    font-family: 'Inter';
    src: url('../fonts/inter-regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('../fonts/inter-medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

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

:root {
    --bg-deep: #050507;
    --bg-surface: #0a0a0c;
    --text: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.35);
    --glow-core: rgba(255, 255, 255, 0.9);
    --glow-mid: rgba(200, 210, 255, 0.4);
    --glow-outer: rgba(120, 140, 200, 0.15);
}

html, body {
    height: 100%;
}

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--bg-deep);
    color: var(--text);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Animated gradient background - barely visible, creates depth */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% 50%,
            rgba(30, 35, 60, 0.3) 0%,
            transparent 50%),
        radial-gradient(ellipse 60% 80% at 20% 80%,
            rgba(20, 25, 50, 0.2) 0%,
            transparent 40%),
        radial-gradient(ellipse 50% 60% at 80% 20%,
            rgba(25, 30, 55, 0.15) 0%,
            transparent 40%);
    animation: gradientShift 20s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes gradientShift {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

/* Film grain overlay */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
    z-index: 1000;
    mix-blend-mode: overlay;
}

main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

/* The name - emanating quiet power */
h1 {
    font-size: clamp(2.5rem, 10vw, 6rem);
    font-weight: 500;
    letter-spacing: 0.02em;
    position: relative;
    opacity: 0;
    animation: revealName 2s cubic-bezier(0.23, 1, 0.32, 1) 0.3s forwards;
}

/* Subtle glow layers behind text */
h1::before {
    content: 'Nucleus47';
    position: absolute;
    inset: 0;
    color: transparent;
    text-shadow:
        0 0 60px var(--glow-outer),
        0 0 120px var(--glow-outer);
    animation: pulseGlow 8s ease-in-out infinite;
    z-index: -1;
}

h1::after {
    content: 'Nucleus47';
    position: absolute;
    inset: 0;
    color: transparent;
    text-shadow:
        0 0 20px var(--glow-mid),
        0 0 40px var(--glow-mid);
    animation: pulseGlow 8s ease-in-out infinite;
    animation-delay: -4s;
    z-index: -1;
}

@keyframes revealName {
    0% {
        opacity: 0;
        transform: translateY(10px);
        filter: blur(4px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

@keyframes pulseGlow {
    0%, 100% {
        opacity: 0.6;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.02);
    }
}

footer {
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    z-index: 1;
    opacity: 0;
    animation: fadeIn 1s ease 1.5s forwards;
    font-size: 0.7rem;
    letter-spacing: 0.03em;
}

footer span,
footer a {
    color: rgba(255, 255, 255, 0.25);
    transition: color 0.4s ease;
}

footer a {
    text-decoration: none;
    text-transform: lowercase;
}

footer a:hover {
    color: rgba(255, 255, 255, 0.5);
}

@keyframes fadeIn {
    to { opacity: 1; }
}

/* ==================== */
/* Privacy page styles  */
/* ==================== */

article {
    max-width: 640px;
    margin: 0 auto;
    padding: 4rem 2rem;
    position: relative;
    z-index: 1;
}

article h1 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    animation: none;
    opacity: 1;
    letter-spacing: 0;
}

article h1::before,
article h1::after {
    display: none;
}

article .updated {
    color: var(--text-muted);
    font-size: 0.8rem;
    letter-spacing: 0.02em;
    margin-bottom: 3rem;
}

article section {
    margin-bottom: 2.5rem;
}

article h2 {
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
    color: var(--text);
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

article p, article li {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9375rem;
    line-height: 1.8;
}

article ul {
    margin: 0.75rem 0 0 1.25rem;
}

article li {
    margin-bottom: 0.5rem;
}

article a {
    color: var(--text);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    transition: border-color 0.3s ease;
}

article a:hover {
    border-color: var(--text);
}

article nav {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

article nav a {
    color: var(--text-muted);
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    border: none;
}

article nav a:hover {
    color: var(--text);
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Selection styling */
::selection {
    background: rgba(255, 255, 255, 0.15);
    color: var(--text);
}
