:root {
    --bg-color: #000000;
    --text-primary: #E5E5E5;
    --text-secondary: #8A8A8A;
    --text-tertiary: #4D4D4D;
    --border-color: #1A1A1A;
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-mono: 'JetBrains Mono', 'Courier New', Courier, monospace;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-main);
    /* Strict no-scroll one page layout */
    height: 100dvh; 
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden; /* absolutely no scrolling */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
}

::selection {
    background: var(--text-primary);
    color: var(--bg-color);
}

.noise-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    z-index: 50;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%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)'/%3E%3C/svg%3E");
}
.grid-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    z-index: 0;
}
.grid-line {
    position: absolute;
    background: var(--border-color);
}
.horizontal { left: 0; right: 0; height: 1px; }
.vertical { top: 0; bottom: 0; width: 1px; }

.horizontal.top { top: 12dvh; }
.horizontal.bottom { bottom: 12dvh; }
.vertical.left { left: 8vw; }
.vertical.right { right: 8vw; }

.container {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 84vw;
    height: 76dvh; /* exactly between the grid lines */
    padding: 0; /* margin/padding removed, handled by flex */
}

.header {
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.5rem;
}

.overline {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.25em;
    color: var(--text-secondary);
}


.hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1; /* Automatically takes all available middle space */
    padding-left: 2vw;
}

.headline {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4.5vw, 4.5rem);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    margin-bottom: 1rem;
    max-width: 900px;
}

.subheadline {
    font-size: clamp(0.95rem, 1.1vw, 1.1rem);
    font-weight: 400;
    color: var(--text-secondary);
    letter-spacing: 0.01em;
    line-height: 1.6;
    max-width: 500px;
}

.action-container {
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    display: flex;
    justify-content: flex-start;
    padding-left: 2vw;
}

.action-form {
    display: flex;
    align-items: flex-end;
    width: 100%;
    max-width: 540px;
    gap: 1.5rem;
}

.email-input {
    flex: 1;
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--text-tertiary);
    color: var(--text-primary);
    padding: 0.75rem 0;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    outline: none;
    transition: border-color 0.4s ease;
    border-radius: 0;
}

.email-input::placeholder {
    color: var(--text-tertiary);
}

.email-input:focus {
    border-color: var(--text-primary);
}

.submit-button {
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--text-tertiary);
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 0;
    transition: color 0.4s ease, border-color 0.4s ease;
    border-radius: 0;
    white-space: nowrap;
}

.submit-button:hover, .submit-button:focus {
    color: var(--text-primary);
    border-color: var(--text-primary);
}

.submit-button svg {
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.submit-button:hover svg, .submit-button:focus svg {
    transform: translateX(4px);
}

.fade-in {
    opacity: 0;
    animation: fadeIn 1.2s 0.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

.system-status {
    position: absolute;
    bottom: 5dvh;
    left: 0;
    right: 0;
    text-align: center;
    font-family: var(--font-mono);
    font-size: 0.55rem;
    font-weight: 500;
    letter-spacing: 0.3em;
    color: var(--text-tertiary);
    z-index: 10;
    pointer-events: none;
    text-transform: uppercase;
}

/* Strict Mobile Responsiveness - No Scroll */
@media (max-width: 768px) {
    .horizontal.top { top: 6dvh; }
    .horizontal.bottom { bottom: 6dvh; }
    .vertical.left { left: 5vw; }
    .vertical.right { right: 5vw; }

    .container {
        width: 90vw;
        height: 88dvh; /* Maximize usable space */
    }
    
    .hero, .action-container {
        padding-left: 0; /* Remove left padding to center text */
    }
    
    .header {
        padding-bottom: 1rem;
    }
    
    .headline {
        font-size: clamp(1.5rem, 7vw, 2.2rem);
        margin-bottom: 0.75rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .subheadline {
        font-size: clamp(0.9rem, 4vw, 1rem);
        line-height: 1.4;
    }
    
    .overline {
        font-size: 0.65rem;
        letter-spacing: 0.2em;
    }
    
    .action-container {
        padding-top: 1.5rem;
    }

    .action-form {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem; /* Tighter gap to save vertical space */
    }
    
    .email-input {
        padding-bottom: 0.5rem;
    }
    
    .submit-button {
        padding-bottom: 0.5rem;
    }

}
