*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --void: #060a10;
    --deep: #0a1018;
    --well: #0f1722;
    --surface: #162030;
    --steel-dark: #1a2d4a;
    --steel: #3a6fa0;
    --steel-bright: #4a85b8;
    --steel-glow: #5a9ad0;
    --muted: #2e4260;
    --dim: #4a6585;
    --text: #7a95b5;
    --bright: #b8cfe0;
    --white: #e0eaf2;
    --gold: #c9a84c;
    --gold-bright: #ddc06a;
    --gold-dim: #9a8040;
    --gold-ghost: rgba(201, 168, 76, 0.07);
    --steel-ghost: rgba(58, 111, 160, 0.06);
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background: var(--void);
    color: var(--text);
    font-family: 'DM Mono', monospace;
    font-weight: 400;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

.atmosphere {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.atmosphere::before {
    content: '';
    position: absolute;
    top: -30%;
    left: 50%;
    transform: translateX(-50%);
    width: 120%;
    height: 70%;
    background: radial-gradient(
        ellipse at center,
        rgba(58, 111, 160, 0.04) 0%,
        rgba(201, 168, 76, 0.015) 30%,
        transparent 65%
    );
}

.atmosphere::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: radial-gradient(
        ellipse at 50% 100%,
        rgba(10, 16, 24, 0.9) 0%,
        transparent 70%
    );
}

.grain {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 100;
    opacity: 0.25;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.5'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
}

.page {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
}

.container {
    max-width: 680px;
    width: 100%;
}

.rule {
    width: 100%;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        var(--muted) 15%,
        var(--steel) 40%,
        var(--gold-dim) 55%,
        var(--steel) 70%,
        var(--muted) 85%,
        transparent 100%
    );
    margin-bottom: 3.5rem;
    opacity: 0;
    animation: ruleFade 1.5s ease-out 0.2s forwards;
}

.watermark {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 480px;
    height: 480px;
    opacity: 0;
    pointer-events: none;
    z-index: 0;
    animation: watermarkReveal 3s ease-out 1.8s forwards;
}

.watermark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(0.3) saturate(0.4);
}

.brand {
    margin-bottom: 0.5rem;
    opacity: 0;
    animation: fadeUp 0.8s ease-out 0.4s forwards;
}

.wordmark {
    height: 52px;
    width: auto;
    display: block;
}

.subtitle {
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--dim);
    margin-top: 1rem;
    opacity: 0;
    animation: fadeUp 0.8s ease-out 0.6s forwards;
}

.description {
    margin-top: 2.5rem;
    opacity: 0;
    animation: fadeUp 0.8s ease-out 0.8s forwards;
}

.description p {
    font-family: 'Instrument Serif', serif;
    font-size: 1.35rem;
    line-height: 1.65;
    color: var(--bright);
    font-style: italic;
}

.description p em {
    color: var(--gold);
    font-style: italic;
}

.features {
    margin-top: 3rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    opacity: 0;
    animation: fadeUp 0.8s ease-out 1s forwards;
}

.feature {
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--dim);
    padding: 0.45rem 0.85rem;
    border: 1px solid var(--surface);
    border-radius: 2px;
    transition: all 0.4s ease;
    cursor: default;
}

.feature:hover {
    border-color: var(--steel);
    color: var(--steel-bright);
    background: var(--steel-ghost);
}

.feature.accent:hover {
    border-color: var(--gold-dim);
    color: var(--gold);
    background: var(--gold-ghost);
}

.cta {
    margin-top: 3.5rem;
    opacity: 0;
    animation: fadeUp 0.8s ease-out 1.2s forwards;
}

.cta-label {
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 1rem;
}

.email-form {
    display: flex;
    gap: 0;
    max-width: 440px;
}

.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.email-form input {
    flex: 1;
    font-family: 'DM Mono', monospace;
    font-size: 0.85rem;
    padding: 0.8rem 1rem;
    background: var(--deep);
    border: 1px solid var(--surface);
    border-right: none;
    border-radius: 2px 0 0 2px;
    color: var(--bright);
    outline: none;
    transition: border-color 0.3s ease;
}

.email-form input::placeholder {
    color: var(--muted);
}

.email-form input:focus {
    border-color: var(--steel);
}

.email-form button {
    font-family: 'DM Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.8rem 1.5rem;
    background: var(--steel);
    border: 1px solid var(--steel);
    border-radius: 0 2px 2px 0;
    color: var(--white);
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-weight: 500;
}

.email-form button:hover {
    background: var(--steel-bright);
    border-color: var(--steel-bright);
}

.form-note {
    font-size: 0.65rem;
    color: var(--muted);
    margin-top: 0.75rem;
    display: none;
}

.turnstile-wrap {
    margin-top: 0.75rem;
    min-height: 65px;
}

.form-note.visible {
    display: block;
    animation: fadeUp 0.4s ease-out forwards;
}

.form-note.success {
    color: var(--gold);
}

.form-note.error {
    color: var(--steel-bright);
}

.bottom {
    margin-top: 4rem;
    opacity: 0;
    animation: fadeUp 0.8s ease-out 1.4s forwards;
}

.bottom .rule {
    margin-bottom: 1.5rem;
    animation: ruleFade 1.5s ease-out 1.4s forwards;
}

.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-left {
    font-size: 0.65rem;
    color: var(--muted);
    letter-spacing: 0.05em;
}

.footer-left a {
    color: var(--dim);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-left a:hover {
    color: var(--steel-bright);
}

.origin {
    font-size: 0.6rem;
    color: var(--muted);
    letter-spacing: 0.08em;
    opacity: 0.6;
}

.rune-mark {
    position: fixed;
    font-family: 'DM Mono', monospace;
    font-weight: 300;
    color: var(--steel);
    opacity: 0;
    pointer-events: none;
    z-index: 0;
}

.rune-mark.left {
    top: 50%;
    left: 2.5rem;
    transform: translateY(-50%) rotate(-90deg);
    font-size: 0.55rem;
    letter-spacing: 0.5em;
    animation: runeReveal 2s ease-out 2s forwards;
}

.rune-mark.right {
    top: 50%;
    right: 2.5rem;
    transform: translateY(-50%) rotate(90deg);
    font-size: 0.55rem;
    letter-spacing: 0.5em;
    animation: runeReveal 2s ease-out 2.3s forwards;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes ruleFade {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes runeReveal {
    from { opacity: 0; }
    to { opacity: 0.12; }
}

@keyframes watermarkReveal {
    from { opacity: 0; }
    to { opacity: 0.025; }
}

@media (max-width: 640px) {
    .page {
        padding: 2rem 1.5rem;
    }

    .wordmark {
        height: 40px;
    }

    .description p {
        font-size: 1.15rem;
    }

    .email-form {
        flex-direction: column;
        gap: 0;
    }

    .email-form input {
        border-right: 1px solid var(--surface);
        border-radius: 2px 2px 0 0;
        border-bottom: none;
    }

    .email-form input:focus {
        border-color: var(--steel);
    }

    .email-form button {
        border-radius: 0 0 2px 2px;
        padding: 0.9rem 1.5rem;
    }

    .rune-mark {
        display: none;
    }

    .watermark {
        width: 300px;
        height: 300px;
    }
}
