/* Global Styles */
:root {
    --primary-color: #6366f1;
    --secondary-color: #a855f7;
    --dark-bg: #0f172a;
    --light-bg: #f8fafc;
    --text-color: #334155;
    --heading-color: #1e293b;
    --white: #ffffff;
    --gray: #94a3b8;
    --border-color: #e2e8f0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-bg);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

/* Header & Navigation */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo i {
    color: var(--primary-color);
    -webkit-text-fill-color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    font-weight: 600;
    color: var(--heading-color);
    font-size: 0.95rem;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary-color);
}

.menu-toggle {
    display: none;
}

.cta-button {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white) !important;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: inline-block;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(99, 102, 241, 0.4);
    color: var(--white) !important;
}

/* Hero Section */
.hero {
    background: var(--dark-bg);
    color: var(--white);
    padding: 6rem 2rem 4rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.15) 0%, rgba(15,23,42,0) 70%);
    pointer-events: none;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    background: linear-gradient(to right, #fff, #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--gray);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.secondary-button {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.secondary-button:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
}

.hero-visual {
    position: relative;
}

.mockup-window {
    background: #1e293b;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2), 0 10px 10px -5px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    aspect-ratio: 16/9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray);
    font-size: 1.2rem;
}

/* Stats Section */
.stats-section {
    background: var(--white);
    padding: 3rem 2rem;
    border-bottom: 1px solid var(--border-color);
}

.stats-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-color);
    font-weight: 600;
}

/* Features Section */
.features {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3.5rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--heading-color);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.feature-icon-wrapper {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(168, 85, 247, 0.1));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.feature-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--heading-color);
}

.feature-card p {
    color: var(--text-color);
    flex: 1;
}

/* Installation Steps */
.section-white {
    background-color: var(--white);
    padding: 5rem 2rem;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.step-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 16px;
    text-align: center;
    position: relative;
    border: 1px solid var(--border-color);
}

.step-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
    box-shadow: 0 4px 10px rgba(99, 102, 241, 0.3);
}

/* How It Works */
.workflow-section {
    padding: 5rem 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.workflow-item {
    display: flex;
    align-items: center;
    gap: 4rem;
    margin-bottom: 4rem;
}

.workflow-item:last-child {
    margin-bottom: 0;
}

.workflow-item:nth-child(even) {
    flex-direction: row-reverse;
}

.workflow-text {
    flex: 1;
}

.workflow-text h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--heading-color);
}

.workflow-text p {
    color: var(--text-color);
    font-size: 1.1rem;
}

.workflow-image {
    flex: 1;
    background: var(--white);
    height: 350px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: #cbd5e1;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
}

/* Audio & Customization (Dark Section) */
.section-dark {
    background-color: var(--dark-bg);
    color: var(--white);
    padding: 5rem 2rem;
    position: relative;
}

.section-dark .section-title {
    color: var(--white);
}

.section-dark .section-subtitle {
    color: var(--gray);
}

.audio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.audio-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.audio-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.05);
}

.audio-icon {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
}

.audio-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.audio-card p {
    color: var(--gray);
    font-size: 0.95rem;
}

/* Testimonials */
.testimonials-section {
    padding: 5rem 2rem;
    background: var(--light-bg);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonial-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.testimonial-stars {
    color: #fbbf24;
    margin-bottom: 1rem;
}

.testimonial-text {
    font-style: italic;
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 48px;
    height: 48px;
    background: #e2e8f0;
    border-radius: 50%;
}

.author-info h4 {
    color: var(--heading-color);
    font-size: 0.95rem;
}

.author-info span {
    color: var(--gray);
    font-size: 0.85rem;
}

/* Pricing */
.pricing-section {
    padding: 5rem 2rem;
    background: var(--white);
}

.pricing-grid {
    display: flex;
    justify-content: center;
    padding: 0 1rem;
}

.pricing-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 3rem;
    position: relative;
    transition: all 0.3s ease;
    max-width: 900px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.pricing-card.featured {
    border: 2px solid var(--primary-color);
    box-shadow: 0 20px 40px -5px rgba(99, 102, 241, 0.15);
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 50px -10px rgba(99, 102, 241, 0.2);
}

.pricing-info {
    text-align: center;
    position: relative;
    flex: 1;
}

.pricing-form {
    flex: 1;
    background: var(--light-bg);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 1rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Ensure datetime input is consistent and visible */
input[type="datetime-local"] {
    appearance: none;
    -webkit-appearance: none;
    background-color: var(--white);
    color: var(--text-color);
    min-height: 48px; /* Standard touch target size */
}

.popular-badge {
    position: absolute;
    top: -3rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: var(--white);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 4px 6px -1px rgba(99, 102, 241, 0.4);
    white-space: nowrap;
}

.price {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--heading-color);
    margin: 1rem 0;
    line-height: 1;
}

.price span {
    font-size: 1.25rem;
    color: var(--text-color);
    font-weight: 400;
}

.pricing-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
    text-align: left;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.1rem;
    color: var(--text-color);
}

.pricing-features i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

/* Desktop Horizontal Layout */
@media (min-width: 900px) {
    .pricing-card {
        flex-direction: row;
        align-items: flex-start; /* Changed from center to align top */
        text-align: left;
        padding: 4rem;
        gap: 4rem;
    }

    .pricing-info {
        text-align: left;
        border-right: 1px solid var(--border-color);
        padding-right: 2rem;
    }

    .pricing-form {
        flex: 0.8; /* Make form slightly narrower */
    }

    .popular-badge {
        left: 4rem;
        transform: none;
        top: -3rem;
    }
}

/* FAQ Section */
.faq-section {
    padding: 5rem 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--primary-color);
}

.faq-question {
    padding: 1.5rem;
    font-weight: 600;
    color: var(--heading-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question i {
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-item.active .faq-answer {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.faq-answer {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-color);
    display: none;
    line-height: 1.6;
}

/* Footer */
footer {
    background: var(--dark-bg);
    color: var(--gray);
    padding: 4rem 2rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto 3rem;
}

.footer-col h4 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--gray);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar {
        flex-wrap: wrap;
        justify-content: space-between;
        padding: 1rem;
        gap: 0;
    }

    .menu-toggle {
        display: block;
        font-size: 1.5rem;
        cursor: pointer;
        color: var(--heading-color);
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        gap: 1.5rem;
        text-align: center;
        padding-top: 1.5rem;
        margin-top: 1rem;
        border-top: 1px solid rgba(0,0,0,0.1);
    }

    .nav-links.active {
        display: flex;
        animation: fadeIn 0.3s ease;
    }

    .hero {
        padding: 3rem 1.5rem 2rem;
        text-align: center;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        margin: 0 auto 1.5rem;
    }

    .hero-buttons {
        justify-content: center;
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .cta-button, .secondary-button {
        padding: 0.6rem 1.25rem;
        font-size: 0.95rem;
        width: 100%;
        text-align: center;
        display: block;
    }

    .section-title {
        font-size: 1.75rem;
    }

    /* Workflow/Steps Section Mobile Fix */
    .workflow-item, 
    .workflow-item:nth-child(even) {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
        margin-bottom: 3rem;
    }

    .workflow-image {
        width: 100%;
        height: auto;
        min-height: 250px;
        flex: none; /* Prevent flex shrinking */
        font-size: 3rem;
        order: -1; /* Move image to top visually */
    }
    
    /* Reduced padding for mobile sections */
    .features,
    .section-white,
    .workflow-section,
    .section-dark,
    .testimonials-section,
    .pricing-section,
    .faq-section {
        padding: 2rem 1rem;
    }
    
    .pricing-card {
        padding: 2rem;
        gap: 2rem;
    }
    
    .pricing-features li {
        font-size: 1rem;
    }
    
    .pricing-form {
        padding: 1.5rem;
    }

    /* Better mobile visibility for datetime input */
    input[type="datetime-local"] {
        width: 100%;
        max-width: 100%;
        font-size: 16px; /* Prevents iOS zoom */
        line-height: 1.5;
        padding: 0.75rem;
    }
}

/* Documentation Page Styles */
.docs-container {
    display: flex;
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
    gap: 4rem;
    min-height: 80vh;
}

.docs-sidebar {
    flex: 0 0 250px;
    position: sticky;
    top: 100px; /* Below fixed header */
    height: calc(100vh - 100px);
    overflow-y: auto;
    padding-right: 1rem;
    border-right: 1px solid var(--border-color);
}

.docs-nav h3 {
    font-size: 0.9rem;
    text-transform: uppercase;
    color: var(--gray);
    margin-bottom: 1rem;
    margin-top: 2rem;
    letter-spacing: 0.05em;
}

.docs-nav h3:first-child {
    margin-top: 0;
}

.docs-nav ul {
    list-style: none;
}

.docs-nav li {
    margin-bottom: 0.5rem;
}

.docs-nav a {
    display: block;
    color: var(--text-color);
    padding: 0.5rem;
    border-radius: 6px;
    font-size: 0.95rem;
}

.docs-nav a:hover, .docs-nav a.active {
    background: rgba(99, 102, 241, 0.05);
    color: var(--primary-color);
    font-weight: 500;
}

.docs-content {
    flex: 1;
    min-width: 0; /* Prevent overflow */
}

.docs-section {
    margin-bottom: 4rem;
    scroll-margin-top: 120px; /* Offset for sticky header */
}

.docs-section h2 {
    font-size: 2rem;
    color: var(--heading-color);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.docs-section h3 {
    font-size: 1.5rem;
    color: var(--heading-color);
    margin: 2rem 0 1rem;
}

.docs-section p {
    margin-bottom: 1rem;
    color: var(--text-color);
}

.docs-section ul, .docs-section ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
    color: var(--text-color);
}

.docs-section li {
    margin-bottom: 0.5rem;
}

.docs-section pre {
    background: var(--dark-bg);
    color: #e2e8f0;
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.5rem 0;
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
}

.docs-section code {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Fira Code', monospace;
    font-size: 0.9em;
}

@media (max-width: 768px) {
    .docs-container {
        flex-direction: column;
        gap: 2rem;
    }

    .docs-sidebar {
        position: static;
        height: auto;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding-bottom: 2rem;
    }
}
