/* ===== Theme Variables (default warm coral) ===== */
:root {
    --theme-primary: #f97316;
    --theme-secondary: #dc2626;
    --theme-gradient-start: #f97316;
    --theme-gradient-end: #dc2626;
    --theme-gradient-start-hover: #ea580c;
    --theme-gradient-end-hover: #b91c1c;
    --theme-accent: #06b6d4;
    --theme-accent-dark: #0891b2;
    --theme-border-light: #fed7aa;
    --theme-bg-subtle: #fff7ed;
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* Header and Navigation */
header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex!important;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.logo h1 {
    font-family: "Roboto", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-variation-settings: "wdth" 100;
    font-size: 2.0rem;
}

.logo span {
    color: var(--theme-primary, #f97316);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--theme-primary, #f97316) !important;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    gap: 4rem;
}

.hero-content {
    flex: 1;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: white;
}

.hero p {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 2rem;
    max-width: 600px;
}

.hero-image {
    flex: 1;
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
}

.hero-wrapper {
    background: linear-gradient(to right, var(--theme-gradient-start, #662a00), var(--theme-gradient-end, #dc2626));
    width: 100%;
}

.hero-wrapper .cta-button {
    background: white;
    color: var(--theme-primary, #f97316);
}

.hero-wrapper .cta-button:hover {
    background: #fff7ed;
}

.hero-wrapper .cta-button.secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255,255,255,0.6);
}

.hero-wrapper .cta-button.secondary:hover {
    background: rgba(255,255,255,0.1);
    border-color: white;
}

/* Features Section */
.features {
    padding: 4rem 2rem;
    background-color: white;
    text-align: center;
}

.features h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #1a1a1a;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    padding: 2rem;
    background-color: #f8f9fa;
    border-radius: 10px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.feature-card i {
    font-size: 3rem;
    color: var(--theme-primary, #f97316);
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.feature-card p {
    color: #666;
}

/* CTA Sections */
.cta-section {
    padding: 4rem 2rem;
    text-align: center;
    background: linear-gradient(135deg, var(--theme-gradient-start, #f662a0), var(--theme-gradient-end, #dc2626));
    color: white;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Buttons */
.cta-button, .submit-btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--theme-gradient-start, #f97316), var(--theme-gradient-end, #dc2626));
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}


.cta-button:hover {
    background: linear-gradient(135deg, var(--theme-gradient-start-hover, #ea580c), var(--theme-gradient-end-hover, #b91c1c));
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.cta-button.secondary {
    background: white;
    color: var(--theme-primary, #f97316);
}

.cta-button.secondary:hover {
    background: #f8f9fa;
}

/* Pricing Section */
.pricing {
    padding: 4rem 2rem;
    background-color: #f8f9fa;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.pricing-card {
    background-color: white;
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.pricing-card.featured {
    border: 2px solid var(--theme-primary, #f97316);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--theme-gradient-start, #f97316), var(--theme-gradient-end, #dc2626));
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.pricing-header {
    margin-bottom: 2rem;
}

.pricing-header h3 {
    font-size: 1.8rem;
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.price {
    font-size: 3rem;
    font-weight: 700;
    color: var(--theme-primary, #f97316);
    margin-bottom: 0.5rem;
}

.price span {
    font-size: 1rem;
    color: #666;
    font-weight: 400;
}

.pricing-features {
    list-style: none;
    margin-bottom: 2rem;
    text-align: left;
}

.pricing-features li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.pricing-features i {
    margin-right: 0.5rem;
    font-size: 1rem;
}

.pricing-features .fa-check {
    color: #4CAF50;
}

.pricing-features .fa-times {
    color: #ff6b6b;
}

/* About Page */
.about-content {
    padding: 4rem 2rem;
}

.about-section {
    display: flex;
    align-items: center;
    gap: 4rem;
    margin-bottom: 4rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.about-section.reverse {
    flex-direction: row-reverse;
}

.about-text {
    flex: 1;
}

.about-text h2 {
    font-size: 2.5rem;
    color: #1a1a1a;
    margin-bottom: 1.5rem;
}

.about-text p {
    color: #666;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

.about-image {
    flex: 1;
    text-align: center;
}

.about-image img {
    max-width: 100%;
    height: auto;
}

.values {
    padding: 4rem 2rem;
    background-color: #f8f9fa;
    text-align: center;
}

.values h2 {
    font-size: 2.5rem;
    color: #1a1a1a;
    margin-bottom: 3rem;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.value-card {
    padding: 2rem;
    background-color: white;
    border-radius: 10px;
    transition: transform 0.3s;
}

.value-card:hover {
    transform: translateY(-5px);
}

.value-card i {
    font-size: 3rem;
    color: var(--theme-primary, #f97316);
    margin-bottom: 1rem;
}

.value-card h3 {
    font-size: 1.5rem;
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.value-card p {
    color: #666;
}

/* Thank You Page */
.success-icon {
    font-size: 4rem;
    color: #4CAF50;
    margin-bottom: 2rem;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.next-steps {
    padding: 4rem 2rem;
    background-color: white;
}

.next-steps h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #1a1a1a;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.step {
    text-align: center;
    padding: 2rem;
}

.step-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--theme-gradient-start, #f97316), var(--theme-gradient-end, #dc2626));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1rem;
}

.step h3 {
    font-size: 1.3rem;
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.step p {
    color: #666;
}

/* Contact Section */
.contact-section {
    padding: 4rem 2rem;
    background-color: #f8f9fa;
}

.contact-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info h2,
.contact-form h2 {
    font-size: 2rem;
    color: #1a1a1a;
    margin-bottom: 2rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--theme-primary, #f97316);
    margin-right: 1rem;
    margin-top: 0.25rem;
}

.info-item h3 {
    font-size: 1.2rem;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.info-item p {
    color: #666;
    margin-bottom: 0.25rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #1a1a1a;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--theme-primary, #f97316);
    box-shadow: 0 0 0 3px rgba(249,115,22,0.15);
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.checkbox-label input {
    margin-right: 0.5rem;
    width: auto;
}

.submit-button {
    width: 100%;
}

/* FAQ Section */
.faq {
    padding: 4rem 2rem;
    background-color: white;
}

.faq h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #1a1a1a;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.faq-item {
    padding: 2rem;
    background-color: #f8f9fa;
    border-radius: 10px;
}

.faq-item h3 {
    font-size: 1.3rem;
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.faq-item p {
    color: #666;
}

/* Footer */
footer {
    background-color: #1a1a1a;
    color: white;
    padding: 3rem 2rem 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
}

.footer-section h3 span {
    color: var(--theme-primary, #f97316);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: white;
}

.footer-section p {
    color: #ccc;
    margin-bottom: 0.5rem;
}

.footer-section i {
    margin-right: 0.5rem;
    color: var(--theme-primary, #f97316);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #333;
    color: #ccc;
}

/* Responsive Design */
@media (max-width: 768px) {
    nav {
        position: relative;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        border-bottom: 2px solid var(--theme-border-light, #fed7aa);
        padding: 0.5rem 0;
        z-index: 100;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        display: block;
        padding: 0.85rem 1rem;
        text-align: center;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .features h2,
    .cta-section h2 {
        font-size: 2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    nav {
        padding: 1rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .features,
    .cta-section {
        padding: 2rem 1rem;
    }
}

/* Voice Demo Styles */
.voice-demo-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.voice-demo-section {
    background: white;
    border-radius: 10px;
    padding: 3rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.voice-demo-section h2 {
    color: #1a1a1a;
    margin-bottom: 1rem;
    font-size: 2.2rem;
}

.voice-demo-section > p {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.demo-controls {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.voice-btn {
    padding: 1rem 2rem;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.voice-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.voice-btn:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.start-btn {
    background: linear-gradient(135deg, var(--theme-gradient-start, #f97316), var(--theme-gradient-end, #dc2626));
    color: white;
}

.start-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--theme-gradient-start-hover, #ea580c), var(--theme-gradient-end-hover, #b91c1c));
}

.stop-btn {
    background: #6c757d;
    color: white;
}

.stop-btn:hover {
    background: #545b62;
}

.clear-btn {
    background: #f8f9fa;
    color: #333;
    border: 1px solid #ddd;
}

.clear-btn:hover {
    background: #e9ecef;
}

.status-indicator {
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 5px;
    margin-bottom: 2rem;
    border-left: 4px solid #6c757d;
}

.status-indicator.active {
    border-left-color: #28a745;
}

.status-indicator.listening {
    border-left-color: #17a2b8;
}

.status-indicator.speaking {
    border-left-color: #ffc107;
}

.status-indicator.error {
    border-left-color: #dc3545;
}

.conversation-box {
    background: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 2rem;
    min-height: 300px;
    max-height: 500px;
    overflow-y: auto;
    margin-bottom: 1rem;
}

.welcome-message {
    color: #666;
}

.welcome-message p {
    margin-bottom: 1rem;
}

.welcome-message ul {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.welcome-message li {
    margin-bottom: 0.5rem;
}

.message {
    margin-bottom: 1.5rem;
    padding: 1rem;
    border-radius: 5px;
}

.message.user {
    background: #e3f2fd;
    margin-left: 2rem;
    border-left: 4px solid #1976d2;
}

.message.ai {
    background: #f3e5f5;
    margin-right: 2rem;
    border-left: 4px solid #7b1fa2;
}

.message.error {
    background: #ffebee;
    border-left: 4px solid #d32f2f;
    color: #c62828;
}

.message.system {
    background: #f5f5f5;
    border-left: 4px solid #757575;
}

.message-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.message-header strong {
    color: #333;
}

.message-header small {
    color: #666;
}

.browser-warning {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    padding: 1rem;
    border-radius: 5px;
    margin: 2rem 0;
    color: #856404;
}

.browser-warning i {
    margin-right: 0.5rem;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.pulse {
    animation: pulse 2s infinite;
}

/* ===== Verification Modal (shared) ===== */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-overlay.active {
    display: flex;
}

.modal-dialog {
    background: white;
    border-radius: 16px;
    padding: 2.5rem 2rem;
    max-width: 440px;
    width: 90%;
    height: auto;
    pointer-events: auto;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.modal-dialog .modal-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.modal-dialog h3 {
    font-size: 1.3rem;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.modal-dialog p {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.code-inputs {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.code-inputs input {
    width: 48px;
    height: 56px;
    text-align: center;
    font-size: 1.4rem;
    font-weight: 700;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    color: #333;
    outline: none;
    transition: border-color 0.2s;
}

.code-inputs input:focus {
    border-color: var(--theme-primary, #f97316);
    box-shadow: 0 0 0 3px rgba(249,115,22,0.15);
}

.modal-error {
    display: none;
    background: #fef2f2;
    border: 1px solid #ef4444;
    color: #b91c1c;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.modal-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
}

.modal-verify-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 2.5rem;
    background: linear-gradient(135deg, var(--theme-gradient-start, #f97316), var(--theme-gradient-end, #dc2626));
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.modal-verify-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(249,115,22,0.3);
}

.modal-verify-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.modal-close-btn {
    background: none;
    border: none;
    color: #888;
    font-size: 0.9rem;
    cursor: pointer;
    text-decoration: underline;
}

.modal-close-btn:hover {
    color: #555;
}

/* ===== Legal Pages (Privacy & Terms) ===== */
.legal-page {
    padding: 4rem 1.5rem;
    background: #fff;
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
}

.legal-content h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #1a1a2e;
}

.legal-content .last-updated {
    color: #666;
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.legal-content h2 {
    font-size: 1.25rem;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: #1a1a2e;
}

.legal-content p {
    margin-bottom: 1rem;
    line-height: 1.7;
    color: #444;
}

.legal-content ul {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.legal-content li {
    margin-bottom: 0.4rem;
    line-height: 1.6;
    color: #444;
}

/* Responsive voice demo */
@media (max-width: 768px) {
    .voice-demo-container {
        padding: 2rem 1rem;
    }
    
    .voice-demo-section {
        padding: 2rem;
    }
    
    .demo-controls {
        flex-direction: column;
    }
    
    .voice-btn {
        width: 100%;
        justify-content: center;
    }
    
    .message.user,
    .message.ai {
        margin-left: 0;
        margin-right: 0;
    }
}
