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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

.page-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    background: linear-gradient(to bottom, #0D0D0F 0%, #111214 50%, #16181C 100%);
}

.vignette {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(0,0,0,0.4) 100%);
    z-index: 1;
}

.cinematic-light {
    position: absolute;
    top: 0;
    right: 0;
    width: 800px;
    height: 800px;
    background: linear-gradient(to bottom right, rgba(113, 113, 122, 0.1), transparent);
    filter: blur(120px);
    z-index: 1;
}

/* Header */
.header {
    position: relative;
    z-index: 20;
    padding: 1.5rem;
}

.header-content {
    max-width: 80rem;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    color: white;
    font-size: 1.25rem;
    font-weight: 500;
    letter-spacing: -0.02em;
}

.patent-text {
    font-size: 0.75rem;
    color: #52525b;
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

/* Main content */
.main-content {
    position: relative;
    z-index: 10;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    padding-bottom: 5rem;
}

.content-wrapper {
    max-width: 56rem;
    margin: 0 auto;
    text-align: center;
    width: 100%;
}

.overline {
    margin-bottom: 2rem;
    font-size: 0.75rem;
    letter-spacing: 0.25em;
    color: #71717a;
    text-transform: uppercase;
    animation: fadeIn 1s ease-out;
}

.headline {
    font-size: 3rem;
    color: white;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    line-height: 0.95;
    font-weight: 600;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.gradient-text {
    background: linear-gradient(to right, #e4e4e7, #bfdbfe, #e4e4e7);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% 100%;
}

.subheadline {
    font-size: 1.125rem;
    color: #a1a1aa;
    margin-bottom: 4rem;
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
    font-weight: 300;
    line-height: 1.6;
    animation: fadeIn 1s ease-out 0.4s both;
}

/* Keyboard preview */
.keyboard-preview {
    position: relative;
    max-width: 48rem;
    margin: 0 auto 4rem;
    animation: fadeInUp 1.2s ease-out 0.6s both;
}

.language-indicator {
    position: absolute;
    top: -1.5rem;
    left: 0;
    color: #52525b;
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    font-weight: 300;
    transition: opacity 0.5s;
}

.keyboard {
    position: relative;
    background: linear-gradient(to bottom, rgba(39, 39, 42, 0.8), rgba(0, 0, 0, 0.9));
    padding: 3rem;
    border-radius: 1rem;
    box-shadow: 
        0 20px 60px rgba(0,0,0,0.5),
        inset 0 1px 0 rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
}

.keyboard-keys {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.key {
    position: relative;
    width: 4rem;
    height: 4rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    background: linear-gradient(145deg, #1a1a1c, #0f0f10);
    box-shadow: 
        0 2px 8px rgba(0,0,0,0.3),
        inset 0 1px 0 rgba(255,255,255,0.05);
    font-weight: 300;
    cursor: pointer;
    transition: all 0.2s;
    opacity: 0;
    transform: translateY(10px);
}

.key.visible {
    animation: keyAppear 0.4s ease-out forwards;
}

.key:hover .key-glow {
    background: rgba(59, 130, 246, 0.1);
}

.key-glow {
    position: absolute;
    inset: 0;
    border-radius: 0.5rem;
    background: rgba(59, 130, 246, 0);
    transition: all 0.3s;
}

.key-char {
    position: relative;
    z-index: 10;
}

/* Email form */
.email-form-container {
    max-width: 28rem;
    margin: 0 auto 3rem;
    animation: fadeInUp 1s ease-out 1s both;
}

.email-form {
    position: relative;
}

.form-group {
    display: flex;
    gap: 0.75rem;
}

.email-input {
    flex: 1;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 9999px;
    color: white;
    font-size: 1rem;
    font-weight: 400;
    outline: none;
    transition: all 0.2s;
}

.email-input::placeholder {
    color: #52525b;
}

.email-input:focus {
    border-color: rgba(255, 255, 255, 0.3);
}

.submit-btn {
    padding: 1rem 2rem;
    background: white;
    color: black;
    border: none;
    border-radius: 9999px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    transition: all 0.2s;
}

.submit-btn:hover {
    background: #e4e4e7;
}

.success-message {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 9999px;
    color: white;
    font-weight: 400;
    animation: scaleIn 0.3s ease-out;
}

.success-message.visible {
    display: flex;
}

.check-icon {
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 9999px;
    background: rgba(34, 197, 94, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4ade80;
}

/* Trust signals */
.trust-signals {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    font-size: 0.75rem;
    color: #52525b;
    animation: fadeIn 1s ease-out 1.2s both;
}

/* Footer */
.footer {
    position: relative;
    z-index: 10;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2rem 1.5rem;
}

.footer-content {
    max-width: 80rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    font-size: 0.75rem;
    color: #52525b;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: #52525b;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #a1a1aa;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive */
@media (min-width: 768px) {
    .header {
        padding: 2rem 1.5rem;
    }

    .logo {
        font-size: 1.5rem;
    }

    .headline {
        font-size: 4.5rem;
    }

    .subheadline {
        font-size: 1.25rem;
    }

    .footer-content {
        flex-direction: row;
        justify-content: space-between;
    }
}

@media (min-width: 1024px) {
    .headline {
        font-size: 6rem;
    }

    .trust-signals {
        gap: 2rem;
    }
}

@media (max-width: 640px) {
    .keyboard-keys {
        gap: 0.5rem;
    }

    .key {
        width: 3rem;
        height: 3rem;
        font-size: 1.25rem;
    }

    .keyboard {
        padding: 2rem 1rem;
    }

    .form-group {
        flex-direction: column;
    }

    .submit-btn {
        width: 100%;
        justify-content: center;
    }

    .trust-signals {
        font-size: 0.625rem;
        gap: 1rem;
    }
}
