/* Import fonts */
@font-face {
    font-family: 'EB Garamond';
    font-style: normal;
    font-display: swap;
    font-weight: 400;
    src: url('https://fonts.gstatic.com/s/ebgaramond/v26/SlGFmQSNjdsmc35JDF1K5E55YMjF_7DPuGi-2fRQHEd0.woff2') format('woff2');
}

@font-face {
    font-family: 'EB Garamond';
    font-style: italic;
    font-display: swap;
    font-weight: 400;
    src: url('https://fonts.gstatic.com/s/ebgaramond/v26/SlGDmQSNjdsmc35JDF1K5GRweDdLYQZM3m1YfA.woff2') format('woff2');
}

/* CSS Variables */
:root {
    --background: #000000;
    --text: #FFFFFF;
    --white: #FFFFFF;
    --blue: #0C50FF;
    --gray: #666666;
}

/* Reset and base styles */
*, *:before, *:after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 62.5%;
    font-family: 'EB Garamond', serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    margin: 0;
    background-color: var(--background);
    color: var(--text);
    font-family: 'EB Garamond', serif;
    line-height: 1.5;
    overflow-x: hidden;
}

/* Typography */
.company-name {
    font-family: monospace;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 32px;
    color: var(--white);
}

.heading {
    font-family: 'EB Garamond', serif;
    font-size: 32px;
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: normal;
    color: var(--white);
}

.heading.italic {
    font-style: italic;
}

.mono {
    font-family: monospace;
    font-size: 14px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 2.1px;
    line-height: normal;
}

/* Layout utilities */
.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.gap-12 {
    gap: 12px;
}

.gap-14 {
    gap: 14px;
}

.gap-20 {
    gap: 20px;
}

.gap-40 {
    gap: 40px;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.mt-50 {
    margin-top: 50px;
}

.pt-50 {
    padding-top: 50px;
}

.pt-70 {
    padding-top: 70px;
}

.pb-20 {
    padding-bottom: 20px;
}

.px-20 {
    padding-left: 20px;
    padding-right: 20px;
}

.text-center {
    text-align: center;
}

.max-w-720 {
    max-width: 720px;
}

.max-w-21ch {
    max-width: 100%;
}

.w-full {
    width: 100%;
}

.min-h-screen {
    min-height: 100vh;
}

/* Mouse Trail Canvas */
#mouseTrail {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}

/* Hide mouse trail on mobile */
@media (pointer: coarse) {
    #mouseTrail {
        display: none;
    }
}

/* Components */
.container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 70px 20px 20px;
    position: relative;
    z-index: 10;
}

.content {
    max-width: 720px;
    width: 100%;
}

/* Waitlist Form */
.waitlist-form {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.form-group {
    display: flex;
    gap: 12px;
    flex-direction: column;
    align-items: center;
}

.email-input {
    width: 100%;
    max-width: 400px;
    padding: 16px 20px;
    font-family: monospace;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2.1px;
    background-color: transparent;
    border: 2px solid var(--white);
    border-radius: 8px;
    color: var(--white);
    transition: all 0.3s ease;
    outline: none;
}

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

.email-input:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(12, 80, 255, 0.1);
}

.submit-button {
    width: 100%;
    max-width: 400px;
    padding: 16px 32px;
    font-family: monospace;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    background-color: var(--blue);
    color: var(--white);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
}

.submit-button:hover {
    background-color: #0A45D9;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(12, 80, 255, 0.3);
}

.submit-button:active {
    transform: translateY(0);
}

/* Stealth Badge */
.stealth-badge {
    font-family: monospace;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gray);
    opacity: 0.8;
}

.heading-link {
    font-family: 'EB Garamond', serif;
    font-size: inherit;
    font-weight: 400;
    line-height: inherit;
    text-decoration: none;
    padding: 0;
    border: 2px dotted transparent;
    border-bottom-color: currentcolor;
    transition: border 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
    color: inherit;
}

.heading-link.italic {
    font-style: italic;
}

.heading-link:hover,
.heading-link:focus {
    outline: none;
    border: 2px dotted;
}

.button-link {
    font-family: monospace;
    font-size: 14px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 2.1px;
    position: relative;
    display: flex;
    width: max-content;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-decoration: none;
    color: currentColor;
}

.button-link:before {
    content: "";
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 2px dotted transparent;
    pointer-events: none;
    transition: border 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.button-link:hover:before,
.button-link:focus:before {
    outline: none;
    border: 2px dotted;
}

.mono-link {
    font-family: monospace;
    font-size: 14px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 2.1px;
    line-height: normal;
    position: relative;
    display: inline-block;
    text-decoration: none;
    color: var(--white);
}

.mono-link:before {
    content: "";
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 2px dotted transparent;
    pointer-events: none;
    transition: border 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.mono-link:hover:before,
.mono-link:focus:before {
    outline: none;
    border: 2px dotted;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

footer {
    margin-top: 50px;
}

footer nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

footer nav.nav-centered {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fade-in {
    animation: fadeIn 0.8s ease-out forwards;
    opacity: 0;
}

.fade-in-delay-1 {
    animation: fadeIn 0.8s ease-out 0.2s forwards;
    opacity: 0;
}

.fade-in-delay-2 {
    animation: fadeIn 0.8s ease-out 0.4s forwards;
    opacity: 0;
}

.fade-in-delay-3 {
    animation: fadeIn 0.8s ease-out 0.6s forwards;
    opacity: 0;
}

/* CTA Button Enhancement */
.cta-button {
    background-color: var(--blue);
    color: var(--white);
    padding: 12px 24px;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(12, 80, 255, 0.3);
}

.cta-button:before {
    border-color: var(--blue);
}

/* Smooth transitions for all interactive elements */
a, button {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

/* Page load animation */
@keyframes pageLoad {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

body {
    animation: pageLoad 0.5s ease-out;
}

/* Link hover animations */
.mono-link:hover,
.button-link:not(.cta-button):hover {
    transform: translateX(2px);
}

.heading-link {
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.heading-link:hover {
    transform: translateY(-1px);
}

/* Footer links animation */
footer nav a {
    opacity: 0;
    animation: slideIn 0.5s ease-out forwards;
}

footer nav a:nth-child(1) {
    animation-delay: 0.7s;
}

footer nav a:nth-child(2) {
    animation-delay: 0.8s;
}

/* SVG icon animations */
svg {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.button-link:hover svg {
    transform: scale(1.1);
}

/* Container entrance */
.container {
    animation: fadeIn 0.6s ease-out;
}

@media (min-width: 800px) {
    .company-name {
        font-size: 14px;
        letter-spacing: 5px;
        margin-bottom: 40px;
    }

    .heading {
        font-size: 42px;
    }

    .form-group {
        flex-direction: row;
        justify-content: center;
    }

    .email-input {
        max-width: 300px;
    }

    .submit-button {
        max-width: 200px;
        width: auto;
    }

    .stealth-badge {
        font-size: 13px;
    }

    .pt-70 {
        padding-top: 0;
    }

    .pt-50 {
        padding-top: 75px;
    }

    .mt-50 {
        margin-top: 75px;
    }

    .max-w-21ch {
        max-width: 100%;
    }

    footer nav {
        flex-direction: row;
        justify-content: center;
        gap: 40px;
    }

    footer nav.nav-centered {
        max-width: 800px;
    }

    /* Enhanced animations for larger screens */
    .fade-in {
        animation-duration: 1s;
    }

    .cta-button:hover {
        transform: translateY(-3px);
    }
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

