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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: #111827;
    color: white;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    cursor: pointer;
    border: none;
    font-family: inherit;
    background: none;
    padding: 0;
    color: inherit;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-character {
    color: #8b5cf6;
    font-size: 2rem;
    margin-right: 0.5rem;
}

.logo-text {
    font-weight: 700;
    font-size: 1.25rem;
}

.logo-image {
    height: 40px;
    width: auto;
    margin-right: 0.5rem;
}

.footer-logo-image {
    height: 40px;
    width: auto;
    margin-right: 0.5rem;
}

.nav-links {
    display: none;
}

@media (min-width: 768px) {
    .nav-links {
        display: flex;
        gap: 2rem;
    }
}

.nav-link {
    transition: color 0.2s;
}

.nav-link:hover {
    color: #c4b5fd;
}

.login-btn {
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    background-color: #8b5cf6;
    font-weight: 500;
    transition: background-color 0.2s;
    color: white;
}

.login-btn:hover {
    background-color: #7c3aed;
}

.mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.375rem;
    background-color: #1f2937;
    color: white;
    border: none;
}

.mobile-menu-btn svg {
    width: 24px;
    height: 24px;
}


@media (min-width: 768px) {
    .mobile-menu-btn {
        display: none;
    }
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #111827;
    z-index: 50;
    padding: 2rem;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.mobile-menu-close {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    color: white;
    border: none;
}

.mobile-menu-close svg {
     width: 24px;
     height: 24px;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    font-size: 1.25rem;
}

.hero {
    padding: 3rem 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 768px) {
    .hero-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 3.5rem;
    }
}

.text-purple {
    color: #8b5cf6;
}

.hero-subtitle {
    color: #d1d5db;
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

.email-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
}

@media (min-width: 640px) {
    .email-form {
        flex-direction: row;
    }
}

.email-input {
    flex: 1;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border-radius: 0.375rem;
    border: 1px solid #374151;
    background-color: #1f2937;
    color: white;
    font-family: inherit;
}

.email-input:focus {
    outline: none;
    border-color: #8b5cf6;
    box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.3);
}

.submit-btn {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    background-color: #8b5cf6;
    color: white;
    border-radius: 0.375rem;
    transition: all 0.2s;
    border: none;
}

.submit-btn:hover {
    background-color: #7c3aed;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

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


.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: translateY(0);
    background-color: #6b7280;
    box-shadow: none;
}

.submit-btn .spinner {
    margin-left: 0.5rem;
    vertical-align: middle;
}

.success-message {
    display: none;
    padding: 0.75rem 1rem;
    background-color: #1f2937;
    border: 1px solid #10b981;
    border-radius: 0.375rem;
    margin-bottom: 1rem;
    color: #34d399;
}

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

.error-message {
    display: none;
    padding: 0.75rem 1rem;
    background-color: #1f2937;
    border: 1px solid #ef4444;
    border-radius: 0.375rem;
    margin-bottom: 1rem;
    color: #f87171;
}

.error-message.visible {
    display: block;
}


.privacy-note {
    display: flex;
    align-items: center;
    color: #9ca3af;
    font-size: 0.875rem;
}

.privacy-icon {
    margin-right: 0.5rem;
    flex-shrink: 0;
    color: #9ca3af;
}

.app-preview {
    background: linear-gradient(to bottom right, #8b5cf6, #4f46e5);
    border-radius: 1rem;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    height: 100%;
    min-height: 26rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.3s ease;
}

.app-preview:hover {
    transform: perspective(1000px) rotateY(0);
}

.chat-window {
    background-color: rgba(17, 24, 39, 0.9);
    border-radius: 0.75rem;
    padding: 1.5rem;
    width: 100%;
    max-width: 24rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
}

.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-shrink: 0;
}

.ai-avatar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ai-avatar .logo-image {
    height: 24px;
    width: auto;
    margin-right: 0;
}

.timestamp {
    font-size: 0.75rem;
    color: #9ca3af;
}

.chat-messages {
     flex-grow: 1;
     overflow-y: auto;
     margin-bottom: 1rem;
}

.message {
    padding: 0.75rem;
    border-radius: 0.5rem;
    margin-bottom: 0.75rem;
    animation: message-fade-in 0.5s ease-out;
    max-width: 90%;
}

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

.ai-message {
    background-color: #1f2937;
    align-self: flex-start;
}

.user-message {
    background-color: #374151;
    align-self: flex-end;
    opacity: 0.9;
}


.message-text {
    font-size: 0.875rem;
}

.message-translation {
    font-size: 0.75rem;
    color: #9ca3af;
    margin-top: 0.5rem;
    display: block;
}

.message-label {
    font-size: 0.75rem;
    color: #9ca3af;
    margin-bottom: 0.25rem;
    display: block;
}

.feedback-message {
    background-color: rgba(139, 92, 246, 0.2);
    border: 1px solid #8b5cf6;
    align-self: flex-start;
}

.speech-button-container {
    display: flex;
    justify-content: center;
    margin-top: auto;
    padding-top: 0.5rem;
    flex-shrink: 0;
}

.speech-button {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #8b5cf6;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

.speech-button svg {
     width: 24px;
     height: 24px;
     flex-shrink: 0;
}

.speech-button:hover {
    background-color: #7c3aed;
    transform: scale(1.05);
}

.speech-button:active {
    transform: scale(0.95);
    background-color: #6d28d9;
}

.features {
    background-color: #1f2937;
    padding: 5rem 0;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: white;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.feature-card {
    background-color: #111827;
    border-radius: 0.75rem;
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(139, 92, 246, 0.1), 0 4px 6px -2px rgba(139, 92, 246, 0.05);
}

.feature-icon-container {
    width: 3rem;
    height: 3rem;
    background-color: rgba(139, 92, 246, 0.2);
    border-radius: 0.375rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    flex-shrink: 0;
}

.feature-icon-container svg {
    width: 24px;
    height: 24px;
    stroke: #8b5cf6;
}


.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: white;
}

.feature-description {
    color: #9ca3af;
    flex-grow: 1;
}

#signup {
    padding: 5rem 0;
    background-color: #1f2937;
}

.cta-container {
    max-width: 48rem;
    margin: 0 auto;
    background-color: #111827;
    border-radius: 1rem;
    padding: 2.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}


.cta-text {
    font-size: 1.125rem;
    color: #d1d5db;
    margin-bottom: 2rem;
    text-align: center;
}

#cta-email-form {
   margin-bottom: 1.5rem;
}

.perks-list {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

@media (min-width: 640px) {
    .perks-list {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }
}

.perk-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #d1d5db;
    font-size: 0.875rem;
}

.perk-item svg {
     width: 20px;
     height: 20px;
     flex-shrink: 0;
     stroke: #8b5cf6;
}

.footer {
    background-color: #1f2937;
    padding: 3rem 0;
    margin-top: auto;
}

.footer-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

@media (min-width: 768px) {
    .footer-grid {
        flex-direction: row;
        justify-content: space-between;
    }
}

.footer-logo {
    display: flex;
    align-items: center;
}

.footer-logo-character {
    color: #8b5cf6;
    font-size: 1.5rem;
    margin-right: 0.5rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem 1.5rem;
}

.footer-link {
    color: #9ca3af;
    font-size: 0.875rem;
    transition: color 0.2s;
}

.footer-link:hover {
    color: white;
}

.copyright {
    text-align: center;
    color: #6b7280;
    font-size: 0.875rem;
    margin-top: 3rem;
    width: 100%;
}

.hidden {
    display: none !important;
}

.spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
    vertical-align: middle;
}

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

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- DASHBOARD STYLES --- */

/* Section containing the dashboard image */
.dashboard-section {
    padding: 5rem 0; /* Vertical padding */
    background-color: #111827; /* Darker background for contrast */
}

/* Styles for the dashboard SVG element itself */
#dashboard-image { /* Now targets the <svg> element */
    display: block; /* Treat SVG like a block */
    max-width: 100%; /* **Responsive**: Never wider than container */
    height: auto;    /* Maintain aspect ratio */
    width: 1000px;   /* Set the desired max width on large screens */

    margin: 0 auto;  /* Centers horizontally within its container */

    /* border-radius: 20px; */ /* No longer needed - SVG has internal radius */
    box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.3); /* Add a subtle shadow */
}

/* --- END DASHBOARD STYLES --- */