/* Modern Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Variables & Theming */
:root {
    /* Light Mode */
    color-scheme: light dark;
    --bg-color: #f8fafc;
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --accent: #2563eb;
    --accent-glow: rgba(37, 99, 235, 0.2);
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
}

@media (prefers-color-scheme: dark) {
    :root {
        /* Dark Mode */
        --bg-color: #020617;
        /* Even darker background for contrast */
        --text-primary: #ffffff;
        /* Pure white text */
        --text-secondary: #cbd5e1;
        --accent: #38bdf8;
        --accent-glow: rgba(56, 189, 248, 0.2);
        --glass-bg: rgba(15, 23, 42, 0.6);
        --glass-border: rgba(255, 255, 255, 0.1);
    }
}

/* Core Styles */
body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    width: 90%;
    max-width: 1200px;
    z-index: 10;
    text-align: center;
    padding: 2rem;
}

/* Typography & Layout */
header {
    margin-bottom: 4rem;
    animation: fadeInDown 1s ease-out;
}

.logo {
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    text-transform: uppercase;
    /* Removed text gradient for better readability on mobile dark mode browsers */
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.hero {
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

.content {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    padding: 4rem 2rem;
    border-radius: 2rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 800px;
    animation: fadeInUp 1s ease-out 0.2s backwards;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.content:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px -12px var(--accent-glow);
}

.intro {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.main-title {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.04em;
    margin-bottom: 0.5rem;
}

.highlight {
    display: inline-block;
    color: var(--accent);
    position: relative;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 10px;
    background: var(--accent);
    opacity: 0.2;
    z-index: -1;
    transform: skewX(-15deg);
}

/* Background Animation */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background: radial-gradient(circle at 50% 50%, var(--bg-color), transparent 80%),
        linear-gradient(45deg, var(--bg-color) 0%, var(--accent-glow) 50%, var(--bg-color) 100%);
    background-size: 200% 200%;
    animation: gradientMove 15s ease infinite;
    opacity: 0.5;
}

/* Floating Shapes */
.background-animation::before,
.background-animation::after {
    content: '';
    position: absolute;
    width: 60vmax;
    height: 60vmax;
    border-radius: 50%;
    background: var(--accent);
    opacity: 0.05;
    filter: blur(80px);
    animation: float 20s infinite ease-in-out;
}

.background-animation::before {
    top: -20%;
    left: -10%;
    animation-delay: 0s;
}

.background-animation::after {
    bottom: -20%;
    right: -10%;
    background: var(--text-secondary);
    animation-delay: -10s;
}

/* Keyframes */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0);
    }

    33% {
        transform: translate(30px, -50px);
    }

    66% {
        transform: translate(-20px, 20px);
    }
}

@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .container {
        padding: 1.5rem;
    }

    .content {
        padding: 3rem 1.5rem;
    }

    header {
        margin-bottom: 2rem;
    }
}