@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&family=Space+Mono:wght@400;700&family=Inter:wght@300;400&display=swap');

:root {
    /* Color Palette - Laboratory/Clinical High-Tech */
    --bg-dark: 230 15% 4%;
    /* Deep Obsidian */
    --bg-surface: 230 15% 8%;
    /* Steel Grey */
    --accent-glow: 180 100% 50%;
    /* Clinical Cyan */
    --accent-deep: 260 60% 50%;
    /* Holographic Violet */
    --text-primary: 0 0% 100%;
    --text-secondary: 220 10% 70%;
    --text-mono: 180 100% 50%;

    /* Technical Elements */
    --grid-color: rgba(0, 255, 255, 0.03);
    --border-glass: rgba(0, 255, 255, 0.1);
}

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

body {
    background-color: hsl(var(--bg-dark));
    color: hsl(var(--text-primary));
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Base Typography */
h1,
h2,
h3 {
    font-family: 'Outfit', sans-serif;
}

.mono {
    font-family: 'Space Mono', monospace;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    color: hsl(var(--text-mono));
}

/* Grid Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: -2;
    pointer-events: none;
}

/* Glassmorphism 2.0 (Laboratory Grade) */
.glass {
    background: rgba(15, 17, 26, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: 4px;
    /* Industrial Sharpness */
    position: relative;
    overflow: hidden;
}

.glass::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 100% 4px;
    pointer-events: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1rem 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-glass);
    background: rgba(4, 5, 10, 0.8);
    backdrop-filter: blur(10px);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1rem;
    font-weight: 800;
    font-family: 'Space Mono', monospace;
    color: hsl(var(--accent-glow));
    text-decoration: none;
    text-transform: uppercase;
}

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

.nav-links a {
    color: hsl(var(--text-secondary));
    text-decoration: none;
    font-size: 0.75rem;
    font-family: 'Space Mono', monospace;
    text-transform: uppercase;
    transition: 0.3s;
}

.nav-links a:hover {
    color: hsl(var(--accent-glow));
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 60px;
    background:
        radial-gradient(circle at 70% 50%, hsl(var(--accent-glow) / 0.1), transparent 50%),
        url('hero.png');
    background-size: cover;
    background-position: center;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background: linear-gradient(transparent, hsl(var(--bg-dark)));
}

.hero-content {
    max-width: 1200px;
    position: relative;
    z-index: 2;
    background: rgba(4, 5, 10, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 4rem;
    border: 1px solid var(--border-glass);
    border-radius: 8px;
}

.hero h1 {
    font-size: clamp(3rem, 7vw, 4.5rem);
    font-weight: 800;
    line-height: 0.95;
    letter-spacing: -0.03em;
    margin-bottom: 2rem;
}


.hero h1 span {
    color: hsl(var(--accent-glow));
    text-shadow: 0 0 20px hsl(var(--accent-glow) / 0.5);
}

.hero p {
    font-size: 1.1rem;
    color: hsl(var(--text-secondary));
    margin-bottom: 3rem;
    max-width: 500px;
    border-left: 2px solid hsl(var(--accent-glow));
    padding-left: 1.5rem;
}

.cta-group {
    display: flex;
    gap: 1.5rem;
}

.btn {
    padding: 0.8rem 2rem;
    font-family: 'Space Mono', monospace;
    font-size: 0.8rem;
    text-transform: uppercase;
    text-decoration: none;
    transition: 0.3s;
    cursor: pointer;
}

.btn-primary {
    background: hsl(var(--accent-glow));
    color: black;
    border: none;
}

.btn-primary:hover {
    box-shadow: 0 0 30px hsl(var(--accent-glow) / 0.4);
    transform: scale(1.05);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 1px solid white;
}

.btn-secondary:hover {
    background: white;
    color: black;
}

/* Features */
.features {
    padding: 10rem 0;
    position: relative;
}

.section-title {
    margin-bottom: 6rem;
}

.section-title h2 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1px;
    /* Precision gap */
    background: var(--border-glass);
}

.feature-card {
    padding: 4rem 2rem;
    background: hsl(var(--bg-surface));
    transition: 0.4s;
}

.feature-card:hover {
    background: hsl(var(--bg-surface) / 0.5);
    color: hsl(var(--accent-glow));
}

.feature-card h3 {
    font-size: 1.25rem;
    margin: 1.5rem 0 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.feature-card p {
    font-size: 0.9rem;
    color: hsl(var(--text-secondary));
}

/* Waitlist Custom Section */
#waitlist {
    margin: 10rem auto;
    padding: 8rem 0;
    border: 1px solid var(--border-glass);
    text-align: center;
}

#waitlist-form {
    max-width: 600px;
    margin: 4rem auto 0;
    display: flex;
    border: 1px solid hsl(var(--accent-glow) / 0.3);
    background: rgba(4, 5, 10, 0.3);
    transition: 0.3s;
}

#waitlist-form:hover {
    border-color: hsl(var(--accent-glow) / 0.6);
    box-shadow: 0 0 20px hsl(var(--accent-glow) / 0.1);
}

#waitlist-form:focus-within {
    border-color: hsl(var(--accent-glow));
    box-shadow: 0 0 30px hsl(var(--accent-glow) / 0.3);
}

#waitlist-form input {
    flex: 1;
    background: transparent;
    border: none;
    border-right: 1px solid var(--border-glass);
    padding: 1.5rem;
    color: white;
    font-size: 1rem;
    font-family: 'Space Mono', monospace;
    outline: none;
    transition: 0.3s;
}

#waitlist-form input:focus {
    background: rgba(180, 100, 50, 0.05);
}

#waitlist-form button {
    background: hsl(var(--accent-glow));
    border: none;
    padding: 0 3rem;
    font-family: 'Space Mono', monospace;
    font-weight: 700;
    cursor: pointer;
}

/* Reveal */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }

    .hero-content {
        max-width: 100%;
        padding: 2.5rem 1.5rem;
        text-align: center;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

    .hero h1 {
        font-size: 2.8rem;
        white-space: normal !important;
        line-height: 1.1;
    }

    .hero h1 span {
        white-space: normal !important;
    }

    .hero p {
        margin: 0 auto 3rem;
        border-left: none;
        padding-left: 0;
    }

    .cta-group {
        justify-content: center;
        flex-direction: column;
    }

    .nav-links {
        display: none;
    }

    .section-title {
        text-align: center;
        margin-bottom: 4rem;
    }

    .section-title h2 {
        font-size: 2.5rem;
    }

    #waitlist {
        margin: 5rem 0;
        padding: 4rem 1.5rem;
    }

    #waitlist-form {
        flex-direction: column;
        border: 2px solid hsl(var(--accent-glow));
        box-shadow: 0 0 20px hsl(var(--accent-glow) / 0.2);
    }

    #waitlist-form input {
        text-align: center;
        border-bottom: 1px solid var(--border-glass);
    }

    #waitlist-form button {
        padding: 1.5rem;
    }
}