:root {
    --clr-bg: #0e0e10;
    --clr-surface: #1c1c21;
    --clr-text-main: #ffffff;
    --clr-text-muted: #a1a1aa;
    --clr-border: #27272a;
    --clr-nav-hover: rgba(255, 255, 255, 0.1); 
    --gradient-primary: linear-gradient(to right, #ff00cc, #333399);
    --shadow: 0 4px 20px rgba(0,0,0,0.5);
    --radius-pill: 100vw;
    --ff-primary: 'Barlow', sans-serif;
    --ff-serif: 'Fraunces', serif;
    --clr-selection-bg: #ffffff; 
    --clr-selection-text: #0e0e10;
}

[data-theme="light"] {
    --clr-bg: #efeae2;
    --clr-surface: #fdfbf7;
    --clr-text-main: #27272a;
    --clr-text-muted: #6e6e73;
    --clr-border: #dcd8d0;
    --clr-nav-hover: rgba(0, 0, 0, 0.04);
    --shadow: 0 4px 20px rgba(0,0,0,0.06);
    --clr-selection-bg: #27272a;
    --clr-selection-text: #fdfbf7;
}

::selection {
    background: var(--clr-selection-bg);
    color: var(--clr-selection-text);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    background-color: var(--clr-bg);
    color: var(--clr-text-main);
    font-family: var(--ff-primary);
    line-height: 1.6;
    overflow: hidden; 
    min-height: 100vh;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
button { font-family: inherit; }

main {
    animation: fadeIn 0.8s ease-out forwards;
    opacity: 0; 
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

h1, .logo {
    font-family: var(--ff-serif);
    font-weight: 800;
}

.wrapper {
    width: min(100% - 2rem, 1100px);
    margin-inline: auto;
    position: relative;
    z-index: 2;
}

.text-center {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.gradient-hover {
    background-image: var(--gradient-primary);
    background-size: 100%;
    background-repeat: no-repeat;
    background-clip: text;
    -webkit-background-clip: text;
    color: var(--clr-text-main);
    transition: color 0.4s ease;
}
.gradient-hover:hover { color: transparent; }

.floating-header {
    position: fixed; 
    top: 20px; 
    left: 0; 
    right: 0;
    width: 100%;
    max-width: 1280px; 
    margin-inline: auto;
    display: flex; 
    justify-content: center;
    z-index: 1000; 
}

.nav-container {
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    gap: 3rem;
    padding: 0.75rem 2rem; 
    width: max-content;
    background: var(--clr-surface); 
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-pill);
    box-shadow: 0 10px 40px -10px rgba(0,0,0,0.2);
    backdrop-filter: blur(10px);
}

[data-theme="dark"] .nav-container { background: rgba(28, 28, 33, 0.85); }
[data-theme="light"] .nav-container { background: rgba(253, 251, 247, 0.85); }

.logo { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.5px; }

.nav-controls { display: flex; align-items: center; padding-left: 2rem; border-left: 1px solid var(--clr-border); }

.theme-toggle { 
    background: transparent; 
    border: none; 
    cursor: pointer; 
    color: var(--clr-text-muted); 
    padding: 0; 
    display: flex; 
    align-items: center; 
    justify-content: center;
    width: 24px;
    height: 24px;
    transition: color 0.3s ease;
}

.theme-toggle:hover { color: var(--clr-text-main); }

.theme-icon {
    width: 24px;
    height: 24px;
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.sun-core { fill: currentColor; transition: r 0.4s, transform 0.5s; transform-origin: center; r: 9; }
.moon-cutout { transition: transform 0.5s; transform-origin: center; transform: translate(0, 0); }
.sun-rays { stroke: currentColor; stroke-width: 1.5px; transition: transform 0.5s, opacity 0.5s; transform-origin: center; opacity: 0; transform: scale(0.6); }

[data-theme="light"] .theme-icon { transform: rotate(90deg); }
[data-theme="light"] .sun-core { r: 5; }
[data-theme="light"] .moon-cutout { transform: translate(25px, -15px); }
[data-theme="light"] .sun-rays { opacity: 1; transform: scale(1); }

::view-transition-old(root),
::view-transition-new(root) {
    animation: none;
    mix-blend-mode: normal;
}
::view-transition-new(root) { z-index: 2147483647; }
::view-transition-old(root) { z-index: 1; }

.bg-grid {
    background-color: var(--clr-bg);
    background-image: radial-gradient(var(--clr-border) 1px, transparent 1px);
    background-size: 30px 30px; 
    position: relative;
}

.bg-grid::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle, transparent 20%, var(--clr-bg) 90%);
    pointer-events: none;
}

.hero { 
    min-height: 100vh; 
    display: flex; 
    align-items: center; 
    justify-content: center;
    position: relative; 
}

.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px); 
    opacity: 0.25; 
    z-index: 1; 
    transition: transform 0.1s ease-out;
    animation: pulse-opacity 5s infinite alternate ease-in-out;
}

.hero-title {
    animation: title-float 6s ease-in-out infinite;
}

@keyframes title-float {
    0%, 100% { transform: translateY(0); filter: brightness(1); }
    50% { transform: translateY(-10px); filter: brightness(1.2); }
}

.glow-1 {
    top: 10%; right: 20%; 
    width: 700px; height: 700px;
    background: radial-gradient(circle, #ff00cc 0%, transparent 70%);
}

.glow-2 {
    bottom: 10%; left: 20%; 
    width: 600px; height: 600px;
    background: radial-gradient(circle, #333399 0%, transparent 70%);
    animation-delay: -2.5s; 
}

@keyframes pulse-opacity {
    0% { opacity: 0.15; }
    100% { opacity: 0.35; }
}

.hero-title { 
    font-size: clamp(4rem, 10vw, 8rem);
    line-height: 0.95; 
    margin-bottom: 3rem; 
    letter-spacing: -0.04em;
    font-weight: 800;
}

.scroll-reveal-text { color: var(--gradient-primary); }

.countdown-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    background: var(--clr-surface);
    padding: 2rem 3rem;
    border: 1px solid var(--clr-border);
    border-radius: 24px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
    user-select: none;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
}

.countdown-value {
    font-size: clamp(2rem, 5vw, 4rem);
    font-family: var(--ff-serif);
    font-weight: 800;
    line-height: 1;
    color: var(--clr-text-main);
    font-variant-numeric: tabular-nums; 
}

.ms-item { min-width: 100px; }

.countdown-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--clr-text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 0.5rem;
}

.countdown-separator {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    color: var(--clr-border);
    margin-top: -1.5rem; 
}

@media (max-width: 768px) {
    .nav-container { padding: 0.5rem 1.5rem; gap: 1rem; }
    .countdown-container { 
        gap: 0.5rem; 
        padding: 1.5rem 1rem; 
        flex-wrap: wrap;
    }
    .countdown-item { min-width: 60px; }
    .countdown-separator { display: none; } 
}