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

html {
    height: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #181A1F;
    color: #ffffff;
    min-height: 100%;
    overflow-x: hidden;
}

/* Landing Screen */
.landing-screen {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    width: 100%;
    background: #181A1F;
    padding-top: 5px;
    padding-bottom: 3rem;
}

.landing-content {
    text-align: center;
    max-width: 880px;
    padding: 2rem;
}

.logo {
    width: 391px;
    max-width: 391px;
    height: auto;
    margin-bottom: 3rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
    background: #FFFFFF;
    padding: 12px;
    border-radius: 12px;
    box-sizing: border-box;
}

.logo img,
.logo svg {
    width: 100%;
    height: auto;
    display: block;
}

.landing-title {
    font-size: 20px;
    font-weight: 400;
    margin-bottom: 4rem;
    line-height: 1.2;
    color: #ffffff;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

.btn-primary {
    width: 100%;
    max-width: 391px;
    padding: 1.5rem 3rem;
    font-size: 21.6px;
    font-weight: 500;
    background: #FFFFFF;
    color: #1a1a1a;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.btn-primary:hover {
    background: #F5F5F5;
    transform: scale(1.02);
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-secondary {
    width: 100%;
    max-width: 391px;
    padding: 1.5rem 3rem;
    font-size: 21.6px;
    font-weight: 500;
    background: transparent;
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, transform 0.1s;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.02);
}

.btn-secondary:active {
    transform: scale(0.98);
}

#partnerBtn {
    background: #3B3F58;
    border-color: #3B3F58;
    padding: 1.25rem 3rem;
}

#partnerBtn:hover {
    background: #4A4F6A;
    border-color: #4A4F6A;
}

.partner-info {
    width: 100%;
    max-width: 391px;
    margin: 0.5rem 0;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #e0e0e0;
    font-size: 16px;
    line-height: 1.6;
    text-align: left;
    max-height: 0;
    opacity: 0;
    padding: 0 1.5rem;
    overflow: hidden;
    transition: max-height 0.3s ease-out, opacity 0.3s ease-out, padding 0.3s ease-out;
}

.partner-info.expanded {
    max-height: none;
    opacity: 1;
    padding: 1.5rem;
    overflow: visible;
}

.partner-info p {
    margin: 0;
}

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    z-index: 1000;
    overflow-y: auto;
    padding-top: 5px;
}

.modal-content {
    background: #2a2a2a;
    padding: 2rem;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    text-align: center;
    max-height: calc(100vh - 20px);
    overflow-y: auto;
}

.modal-content h2 {
    font-size: 36px;
    font-weight: 400;
    margin-bottom: 2rem;
    color: #ffffff;
}

.scenario-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.btn-scenario {
    width: 100%;
    padding: 1.25rem 2rem;
    font-size: 18px;
    font-weight: 400;
    background: #3a3a3a;
    color: #ffffff;
    border: 2px solid #4a4a4a;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-scenario:hover {
    background: #4a4a4a;
    border-color: #ffffff;
}

.btn-scenario.selected {
    background: #FAFAFA;
    color: #1a1a1a;
    border-color: #ffffff;
}

.btn-start-demo {
    width: 100%;
    padding: 1.5rem 3rem;
    font-size: 21.6px;
    font-weight: 500;
    background: #FAFAFA;
    color: #1a1a1a;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-start-demo:hover {
    background: #f0f0f0;
}

/* Form Modal */
.form-modal {
    text-align: left;
    max-width: 500px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #e0e0e0;
    font-size: 16px;
    font-weight: 400;
}

.form-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 16px;
    background: #1a1a1a;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.5);
}

.form-group input:required:invalid {
    border-color: rgba(255, 100, 100, 0.5);
}

.form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 16px;
    background: #1a1a1a;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    box-sizing: border-box;
    transition: border-color 0.2s;
    cursor: pointer;
}

.form-group select:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.5);
}

.form-group select option {
    background: #1a1a1a;
    color: #ffffff;
}

.form-group.honeypot {
    position: absolute;
    left: -9999px;
    opacity: 0;
}


.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    justify-content: flex-end;
}

.form-actions button {
    padding: 0.75rem 2rem;
    font-size: 16px;
    border-radius: 50px;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.form-actions .btn-primary {
    background: #FAFAFA;
    color: #1a1a1a;
    max-width: none;
    width: auto;
}

.form-actions .btn-primary:hover {
    background: #f0f0f0;
}

.form-actions .btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-actions .btn-secondary {
    background: transparent;
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.3);
    max-width: none;
    width: auto;
}

.form-actions .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

.form-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 6px;
    font-size: 14px;
    text-align: center;
}

.form-message.success {
    background: rgba(100, 200, 100, 0.2);
    color: #90ee90;
    border: 1px solid rgba(100, 200, 100, 0.3);
}

.form-message.error {
    background: rgba(200, 100, 100, 0.2);
    color: #ff9999;
    border: 1px solid rgba(200, 100, 100, 0.3);
}

/* Demo Screen */
.demo-screen {
    display: flex;
    flex-direction: column;
    height: 100vh;
    width: 100vw;
    background: #1a1a1a;
}

.demo-header {
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.demo-status {
    font-size: 18px;
    color: #888888;
}

.language-indicator {
    animation: fadeIn 0.5s;
}

.language-notification {
    font-size: 14px;
    color: #4a9eff;
    padding: 0.5rem 1rem;
    background: rgba(74, 158, 255, 0.1);
    border-radius: 4px;
}

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

.demo-content {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
}

.transcript-container {
    max-width: 800px;
    margin: 0 auto;
    font-size: 20px;
    line-height: 1.6;
    color: #e0e0e0;
}

.transcript-message {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #2a2a2a;
    border-radius: 8px;
}

.transcript-message.user {
    background: #3a3a3a;
    text-align: right;
}

.transcript-message.assistant {
    background: #2a2a2a;
}

.btn-end-demo {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    padding: 1rem 2rem;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-end-demo:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Text Input Fallback (for browsers without speech recognition) */
.text-input-fallback {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    right: 8rem;
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 8px;
}

.text-input-fallback input {
    flex: 1;
    padding: 1rem;
    font-size: 16px;
    background: #2a2a2a;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.text-input-fallback input:focus {
    outline: none;
    border-color: #ffffff;
}

.text-input-fallback button {
    padding: 1rem 2rem;
    font-size: 16px;
    background: #FAFAFA;
    color: #1a1a1a;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.text-input-fallback button:hover {
    background: #f0f0f0;
}

/* Exit Screen */
.exit-screen {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    width: 100vw;
    background: #1a1a1a;
}

.exit-content {
    text-align: center;
    max-width: 800px;
    padding: 2rem;
}

.exit-content h2 {
    font-size: 48px;
    font-weight: 400;
    margin-bottom: 4rem;
    line-height: 1.2;
    color: #ffffff;
}

.exit-buttons {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

.btn-exit {
    width: 100%;
    max-width: 400px;
    padding: 1.5rem 3rem;
    font-size: 21.6px;
    font-weight: 500;
    background: #FAFAFA;
    color: #1a1a1a;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.btn-exit:hover {
    background: #f0f0f0;
    transform: scale(1.02);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .landing-title {
        font-size: 18.6px;
        margin-bottom: 3rem;
    }

    .btn-primary {
        font-size: 18px;
        padding: 1.25rem 2rem;
    }

    .modal-content h2 {
        font-size: 28px;
    }

    .btn-scenario {
        font-size: 16.2px;
        padding: 1rem 1.5rem;
    }

    .exit-content h2 {
        font-size: 32px;
    }

    .btn-exit {
        font-size: 18px;
        padding: 1.25rem 2rem;
    }
}
