:root {
    --bg-color: #050505;
    --text-primary: #ffffff;
    --text-secondary: #888888;
    --accent: #00ffff;
    --accent-glow: rgba(0, 255, 255, 0.4);
    --font-primary: 'Space Grotesk', sans-serif;
    --glitch-offset: 2px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-weight: 400;
    overflow-x: hidden;
    /* Prevent horizontal scroll from effects */
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: crosshair;
    /* Visible, thematic cursor */
    perspective: 1000px;
    padding: 2rem 0;
    /* Add padding to prevent edge touching on small screens */
}

/* Custom Cursor */
.cursor-glow {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 255, 255, 0.1) 0%, rgba(0, 255, 255, 0) 70%);
    /* Slightly lowered opacity */
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 1;
    /* Behind text */
    transition: opacity 0.3s ease;
}

#network-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    /* Very back */
    pointer-events: none;
    opacity: 0.6;
    /* Subtle */
}

/* Noise Overlay */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)" opacity="0.05"/%3E%3Csvg%3E');
    opacity: 0.3;
    /* Adjusted opacity */
    pointer-events: none;
    z-index: 2;
}

.container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1200px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.logo-container {
    margin-bottom: 3rem;
    position: relative;
    perspective: 500px;
}

h1 {
    font-size: clamp(2.5rem, 8vw, 7rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    position: relative;
    color: transparent;
    background: linear-gradient(135deg, #fff 40%, #555);
    -webkit-background-clip: text;
    background-clip: text;
    /* subtle reflection animation */
    background-size: 200% auto;
    animation: shine 5s linear infinite;
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

/* Glitch Effect */
.glitch-text {
    position: relative;
    display: inline-block;
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
    color: var(--text-primary);
    /* Ensure visibility */
    z-index: -1;
    /* Behind the gradient text but above background? No, usually glitch sits on top. */
}

.glitch-text::before {
    left: var(--glitch-offset);
    text-shadow: -2px 0 #ff00c1;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
    z-index: 2;
    /* On top of main text to glitch it */
}

.glitch-text::after {
    left: calc(var(--glitch-offset) * -1);
    text-shadow: -2px 0 #00fff9;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim-2 5s infinite linear alternate-reverse;
    z-index: 2;
}

@keyframes glitch-anim {
    0% {
        clip: rect(42px, 9999px, 44px, 0);
        transform: skew(0.5deg);
    }

    5% {
        clip: rect(12px, 9999px, 5px, 0);
        transform: skew(0.5deg);
    }

    10% {
        clip: rect(85px, 9999px, 60px, 0);
        transform: skew(0.5deg);
    }

    15% {
        clip: rect(12px, 9999px, 5px, 0);
        transform: skew(0.5deg);
    }

    20% {
        clip: rect(0, 0, 0, 0);
        transform: skew(0);
    }

    /* Hide */
    100% {
        clip: rect(0, 0, 0, 0);
        transform: skew(0);
    }
}

@keyframes glitch-anim-2 {
    0% {
        clip: rect(12px, 9999px, 44px, 0);
        transform: skew(0.5deg);
    }

    5% {
        clip: rect(82px, 9999px, 5px, 0);
        transform: skew(0.5deg);
    }

    10% {
        clip: rect(15px, 9999px, 60px, 0);
        transform: skew(0.5deg);
    }

    15% {
        clip: rect(82px, 9999px, 5px, 0);
        transform: skew(0.5deg);
    }

    20% {
        clip: rect(0, 0, 0, 0);
        transform: skew(0);
    }

    100% {
        clip: rect(0, 0, 0, 0);
        transform: skew(0);
    }
}

.status-line {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 3rem;
    opacity: 0;
    animation: fadeIn 1s 1s forwards;
}

.pulse {
    width: 8px;
    height: 8px;
    background-color: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent);
    animation: pulse 2s infinite;
}

.status-text {
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    color: var(--text-secondary);
    text-transform: uppercase;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(0, 255, 255, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(0, 255, 255, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(0, 255, 255, 0);
    }
}

.tagline {
    font-size: clamp(1rem, 2vw, 1.5rem);
    color: var(--text-secondary);
    letter-spacing: 0.5em;
    margin-bottom: 4rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s 1.5s forwards;
    text-transform: uppercase;
}

.countdown-container {
    display: flex;
    gap: 1.5rem;
    /* Reduced gap slightly */
    margin-bottom: 5rem;
    font-family: var(--font-primary);
    opacity: 0;
    /* Changed to start hidden */
    animation: fadeIn 1s 1.8s forwards;
}

.time-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.time-unit span {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 300;
    line-height: 1;
    color: var(--text-primary);
}

.time-unit label {
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    margin-top: 0.5rem;
    color: var(--text-secondary);
}

.separator {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 300;
    line-height: 1;
    color: var(--text-secondary);
    padding-bottom: 1rem;
}

.notify-form {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s 2.2s forwards;
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.notify-text {
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    text-transform: uppercase;
}

#subscribe-form {
    display: flex;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 0.5rem;
    transition: border-color 0.3s ease;
}

#subscribe-form:focus-within {
    border-color: var(--accent);
}

input {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 1rem;
    flex-grow: 1;
    outline: none;
    padding: 0.5rem 0;
}

input::placeholder {
    color: #444;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
}

button {
    background: transparent;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0 1rem;
    transition: transform 0.3s ease, color 0.3s ease;
}

button span {
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

button:hover {
    color: var(--accent);
    transform: translateX(5px);
}

/* Animations Helpers */
@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === New Content Styles === */

.content-wrapper {
    min-height: 90vh;
    /* Takes up most of the screen initially */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 100%;
}

.scroll-indicator {
    position: relative;
    bottom: auto;
    margin-top: 4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0;
    animation: fadeIn 1s 3s forwards;
}

.scroll-indicator span {
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.scroll-indicator .line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--accent), transparent);
    animation: scrollLine 2s infinite;
}

@keyframes scrollLine {
    0% {
        transform: scaleY(0);
        transform-origin: top;
    }

    50% {
        transform: scaleY(1);
        transform-origin: top;
    }

    51% {
        transform: scaleY(1);
        transform-origin: bottom;
    }

    100% {
        transform: scaleY(0);
        transform-origin: bottom;
    }
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    width: 100%;
    max-width: 1200px;
    margin-top: 5rem;
    padding: 2rem;
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease;
}

.features-grid.active {
    opacity: 1;
    transform: translateY(0);
}

.feature-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    transition: all 0.4s ease;
    cursor: crosshair;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(0, 255, 255, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.feature-card:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px -10px rgba(0, 255, 255, 0.1);
}

.feature-card:hover::before {
    transform: translateX(100%);
}

.card-icon {
    font-size: 3rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.1);
    margin-bottom: 0.5rem;
    font-family: var(--font-primary);
}

.feature-card h3 {
    font-size: 1.2rem;
    color: var(--text-primary);
    letter-spacing: 0.1em;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

footer {
    margin-top: 5rem;
    padding: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    max-width: 1200px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease;
}

footer.active {
    opacity: 1;
    transform: translateY(0);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-content p {
    font-size: 0.7rem;
    color: var(--text-secondary);
    letter-spacing: 0.1em;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--accent);
}


/* Responsive tweaks */
@media (max-width: 768px) {
    .countdown-container {
        gap: 0.5rem;
    }

    .time-unit span {
        font-size: 1.5rem;
    }

    .separator {
        font-size: 1.5rem;
    }

    .glitch-text::before,
    .glitch-text::after {
        display: none;
        /* Reduce load on mobile */
    }
}