/* VitKit Pre-Launch Page */

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

html, body {
    height: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #3A1D6E 0%, #C45E2C 100%);
    background-size: 120% 120%;
    background-attachment: fixed;
    animation: gradientShift 30s ease-in-out infinite;
    color: white;
    line-height: 1.6;
    min-height: 100vh;
}

@keyframes gradientShift {
    0% { background-position: 50% 50%; }
    50% { background-position: 0% 0%; }
    100% { background-position: 50% 50%; }
}

.page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 24px 16px;
    text-align: center;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
    margin-bottom: 48px;
}

.logo-mark {
    width: 48px;
    height: 48px;
    color: white;
}

.logo-mark svg {
    width: 100%;
    height: 100%;
}

.logo-text {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

/* Hero */
.hero {
    max-width: 700px;
    margin-bottom: 96px;
}

.hero h1 {
    font-size: clamp(32px, 6vw, 52px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -1px;
    margin-bottom: 24px;
}

.subtitle {
    font-size: clamp(18px, 3vw, 22px);
    opacity: 0.85;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* Waitlist */
.waitlist {
    width: 100%;
    max-width: 440px;
}

.coming-soon {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.7;
    margin-bottom: 12px;
}

.waitlist-form {
    display: flex;
    gap: 12px;
    margin-bottom: 8px;
}

.waitlist-form input {
    flex: 1;
    padding: 16px 20px;
    font-size: 16px;
    font-family: inherit;
    border: none;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    outline: none;
    transition: all 0.2s;
}

.waitlist-form input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.waitlist-form input:focus {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

.waitlist-form button {
    padding: 16px 28px;
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    border: none;
    border-radius: 12px;
    background: white;
    color: #3A1D6E;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.waitlist-form button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.waitlist-form button:disabled {
    opacity: 0.9;
    cursor: default;
}

.waitlist-form input:disabled {
    opacity: 0.7;
}

.privacy-note {
    font-size: 13px;
    opacity: 0.5;
}

/* Footer - Dictionary Definitions */
.footer {
    margin-top: auto;
    padding-top: 40px;
}

.definitions-container {
    position: relative;
}

/* Collapsed state (default) */
.definition-collapsed {
    opacity: 1;
    transition: opacity 0.3s ease;
    min-height: 48px;
}

/* Expanded state (hidden by default) */
.definitions-expanded {
    display: flex;
    gap: 48px;
    justify-content: center;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    white-space: nowrap;
}

/* Hover: hide collapsed, show expanded */
.definitions-container:hover .definition-collapsed {
    opacity: 0;
}

.definitions-container:hover .definitions-expanded {
    opacity: 1;
    pointer-events: auto;
}

.definition {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: center;
    gap: 6px;
    opacity: 0.6;
    font-size: 15px;
}

.definition .word {
    font-weight: 700;
    font-style: italic;
    font-size: 18px;
}

.definition .pronunciation {
    font-family: 'Times New Roman', Georgia, serif;
    font-size: 14px;
    opacity: 0.8;
}

.definition .pos {
    font-style: italic;
    font-size: 13px;
    opacity: 0.7;
}

.definition .origin {
    font-size: 13px;
    opacity: 0.7;
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
}

.definition .meaning {
    width: 100%;
    margin-top: 0;
    font-size: 14px;
    opacity: 0.8;
}

/* Responsive */
@media (max-width: 600px) {
    .definitions-expanded {
        flex-direction: column;
        gap: 24px;
        white-space: normal;
    }
}

@media (max-width: 520px) {
    .waitlist-form {
        flex-direction: column;
    }

    .waitlist-form button {
        width: 100%;
    }
}
