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

body {
    min-height: 100vh;
    font-family: 'Inter', -apple-system, sans-serif;
    background: #04161a;
    color: #e8f7f4;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Animated hi-tech background layers */
.bg-layer {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.bg-base {
    background: radial-gradient(ellipse at 20% 20%, #0a2e33 0%, #04161a 55%),
    radial-gradient(ellipse at 80% 80%, #06262b 0%, transparent 60%);
}

.bg-glow {
    background:
        radial-gradient(circle at 25% 30%, rgba(45, 212, 191, 0.12), transparent 35%),
        radial-gradient(circle at 75% 65%, rgba(56, 189, 248, 0.1), transparent 40%),
        radial-gradient(circle at 60% 20%, rgba(110, 231, 212, 0.08), transparent 30%);
    animation: drift 24s ease-in-out infinite alternate;
}

@keyframes drift {
    0%   { transform: translate(0, 0) scale(1); }
    50%  { transform: translate(3%, -2%) scale(1.08); }
    100% { transform: translate(-2%, 3%) scale(1.04); }
}

.bg-grid {
    background-image:
        linear-gradient(rgba(45, 212, 191, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(45, 212, 191, 0.06) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
    animation: gridmove 30s linear infinite;
}

@keyframes gridmove {
    0%   { background-position: 0 0, 0 0; }
    100% { background-position: 60px 60px, 60px 60px; }
}

.bg-scan {
    background: linear-gradient(115deg, transparent 40%, rgba(110, 231, 212, 0.04) 50%, transparent 60%);
    background-size: 300% 300%;
    animation: scan 18s ease-in-out infinite;
}

@keyframes scan {
    0%   { background-position: 0% 0%; }
    100% { background-position: 100% 100%; }
}

nav {
    position: sticky;
    top: 1rem;
    z-index: 100;
    margin: 1rem 1.5rem 0;
    padding: 0 1.5rem;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, rgba(255,255,255,0.12), rgba(255,255,255,0.03));
    backdrop-filter: blur(30px) saturate(160%);
    -webkit-backdrop-filter: blur(30px) saturate(160%);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 18px;
    box-shadow:
        0 8px 32px rgba(0,0,0,0.3),
        inset 0 1px 1px rgba(255,255,255,0.25);
}

.nav-logo {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #fff;
    text-decoration: none;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.nav-logo span {
    background: linear-gradient(90deg, #6ee7d4, #5eead4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 0.25rem;
    list-style: none;
}

.nav-links a {
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.45rem 0.95rem;
    border-radius: 12px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-links a:hover,
.nav-links a.active {
    color: #fff;
    background: linear-gradient(135deg, rgba(255,255,255,0.18), rgba(255,255,255,0.06));
    box-shadow: inset 0 1px 1px rgba(255,255,255,0.25);
}

main {
    position: relative;
    z-index: 1;
    max-width: 1100px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.glass {
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.02));
    backdrop-filter: blur(40px) saturate(160%);
    -webkit-backdrop-filter: blur(40px) saturate(160%);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 24px;
    box-shadow:
        0 12px 40px rgba(0,0,0,0.4),
        inset 0 1px 1px rgba(255,255,255,0.25),
        inset 0 -1px 1px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.glass::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(255,255,255,0.08), transparent);
    pointer-events: none;
}
