/* === Reset & Base === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.6;
    color: #0A0A0A;
    background-color: #FAF8F3;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 24px;
}

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

.wordmark { animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both; }
.headline { animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both; }
.subtitle { animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both; }
.waitlist-form { animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.55s both; }
.footer { animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.65s both; }

/* === Wordmark === */
.wordmark {
    display: flex;
    align-items: center;
    gap: 10px;
    position: fixed;
    top: 32px;
    left: 40px;
    z-index: 10;
}

.wordmark-icon {
    width: 24px;
    height: 24px;
    display: block;
}

.wordmark-text {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 500;
    font-size: 18px;
    letter-spacing: -0.02em;
    color: #0A0A0A;
}

/* --- Main Content --- */
main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    max-width: 680px;
    width: 100%;
    text-align: center;
    padding: 120px 0 80px;
}

/* --- Headline --- */
.headline {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 400;
    font-size: clamp(40px, 7vw, 80px);
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: #0A0A0A;
    margin-bottom: 28px;
    max-width: 680px;
}

.headline em {
    font-style: italic;
    font-weight: 500;
    font-variation-settings: 'SOFT' 100;
}

/* --- Subtitle --- */
.subtitle {
    font-size: 18px;
    line-height: 1.7;
    color: #6B6B6B;
    max-width: 520px;
    margin-bottom: 48px;
    font-weight: 400;
}

/* --- Use Cases --- */
.use-cases {
    width: 100%;
    max-width: 680px;
    margin-bottom: 56px;
    animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.45s both;
}

.use-cases-heading {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 22px;
    font-weight: 500;
    letter-spacing: -0.02em;
    color: #0A0A0A;
    margin-bottom: 28px;
    text-align: center;
}

.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.use-case-card {
    background: #FFFFFF;
    border: 1px solid #E8E4DB;
    border-radius: 12px;
    padding: 24px 20px;
    text-align: left;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.use-case-card:hover {
    border-color: #0A0A0A;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.use-case-icon {
    display: inline-block;
    font-size: 18px;
    color: #0A0A0A;
    margin-bottom: 10px;
    opacity: 0.6;
}

.use-case-title {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: -0.01em;
    color: #0A0A0A;
    margin-bottom: 6px;
}

.use-case-desc {
    font-size: 13px;
    line-height: 1.6;
    color: #6B6B6B;
    font-weight: 400;
}

/* --- Waitlist Form --- */
.waitlist-form {
    width: 100%;
    max-width: 400px;
}

/* Card container */
.waitlist-card {
    background: #FFFFFF;
    border: 1px solid #E8E4DB;
    border-radius: 20px;
    padding: 36px 32px 32px;
    box-shadow: 0 2px 24px rgba(0, 0, 0, 0.05), 0 1px 4px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.3s ease;
}

.waitlist-card:hover {
    box-shadow: 0 6px 40px rgba(0, 0, 0, 0.08), 0 1px 4px rgba(0, 0, 0, 0.04);
}

/* Card header */
.waitlist-card-header {
    margin-bottom: 28px;
    text-align: left;
}

.waitlist-card-title {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #0A0A0A;
    margin-bottom: 6px;
}

.waitlist-card-subtitle {
    font-size: 13px;
    color: #9A958E;
    font-weight: 400;
    line-height: 1.5;
}

/* Individual field */
.waitlist-field {
    margin-bottom: 18px;
    text-align: left;
}

.waitlist-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #0A0A0A;
    margin-bottom: 7px;
    letter-spacing: 0.005em;
}

.waitlist-input {
    width: 100%;
    border: 1px solid #E8E4DB;
    border-radius: 10px;
    outline: none;
    padding: 12px 16px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #0A0A0A;
    background: #FAFAF8;
    letter-spacing: 0.002em;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.waitlist-input:focus {
    border-color: #0A0A0A;
    background: #FFFFFF;
    box-shadow: 0 0 0 3px rgba(10, 10, 10, 0.06);
}

.waitlist-input::placeholder {
    color: #C0BBB3;
}

/* Submit button */
.waitlist-submit {
    width: 100%;
    margin-top: 8px;
    border: none;
    border-radius: 10px;
    background: #0A0A0A;
    color: #FFFFFF;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 500;
    padding: 14px 22px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    letter-spacing: 0.01em;
}

.waitlist-submit:hover {
    background-color: #1E1E1E;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(10, 10, 10, 0.18);
}

.waitlist-submit:active {
    transform: translateY(0);
    box-shadow: none;
}

.waitlist-submit:disabled {
    background-color: #6B6B6B;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* --- Spinner --- */
.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #FFFFFF;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.hidden {
    display: none !important;
}

/* --- Form Messages --- */
.form-message {
    margin-top: 12px;
    font-size: 14px;
    font-weight: 400;
    min-height: 20px;
}

.form-message.error {
    color: #C0392B;
}

.form-message.success {
    color: #1E7E34;
}

/* --- Success State --- */
.success-state {
    width: 100%;
    max-width: 400px;
    animation: fadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.success-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 40px 32px;
    text-align: center;
}

.success-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #0A0A0A;
    color: #FFFFFF;
    font-size: 18px;
    font-weight: 600;
}

.success-text {
    font-size: 16px;
    font-weight: 450;
    color: #0A0A0A;
    line-height: 1.5;
}

/* --- Footer --- */
.footer {
    width: 100%;
    max-width: 680px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0 32px;
    border-top: 1px solid #E8E4DB;
}

.footer-copy {
    font-size: 13px;
    color: #6B6B6B;
    font-weight: 400;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-link {
    font-size: 13px;
    color: #6B6B6B;
    text-decoration: none;
    font-weight: 400;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: #0A0A0A;
}

/* --- Utilities --- */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border-width: 0;
}

/* --- Selection --- */
::selection {
    background-color: #0A0A0A;
    color: #FFFFFF;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    body { padding: 0 20px; }

    .wordmark {
        top: 24px;
        left: 20px;
    }

    main { padding: 100px 0 60px; }

    .headline {
        font-size: clamp(36px, 9vw, 48px);
        margin-bottom: 20px;
    }

    .subtitle {
        font-size: 16px;
        margin-bottom: 36px;
    }

    .use-cases-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .waitlist-card {
        padding: 28px 22px 24px;
    }

    .footer {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .wordmark { left: 16px; top: 20px; }
    .headline { font-size: 34px; }

    .use-cases-grid {
        grid-template-columns: 1fr;
    }
}