:root {
    --primary: #4f46e5;
    --primary-dark: #4338ca;
    --text-main: #1f2937;
    --text-muted: #6b7280;
    --bg-body: #ffffff;
    --bg-alt: #f3f4f6;
    --border: #e5e7eb;
}

@media (prefers-color-scheme: dark) {
    :root {
        --primary: #6366f1;
        --primary-dark: #4f46e5;
        --text-main: #f9fafb;
        --text-muted: #9ca3af;
        --bg-body: #111827;
        --bg-alt: #1f2937;
        --border: #374151;
    }
}

/* Manual Dark Mode Override */
[data-theme="dark"] {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --text-main: #f9fafb;
    --text-muted: #9ca3af;
    --bg-body: #111827;
    --bg-alt: #1f2937;
    --border: #374151;
}

[data-theme="light"] {
    --primary: #4f46e5;
    --primary-dark: #4338ca;
    --text-main: #1f2937;
    --text-muted: #6b7280;
    --bg-body: #ffffff;
    --bg-alt: #f3f4f6;
    --border: #e5e7eb;
}

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

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--text-main);
    background-color: var(--bg-body);
    line-height: 1.6;
    transition: background-color 0.3s, color 0.3s;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
.navbar {
    padding: 16px 0;
    /* Slightly shorter navbar */
    border-bottom: none;
    /* Removed hard line */
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    /* Subtle shadow */
    position: sticky;
    top: 0;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(16px);
    /* Stronger blur */
    z-index: 1000;
    transition: all 0.3s ease;
}

@media (prefers-color-scheme: dark) {
    .navbar {
        background-color: rgba(17, 24, 39, 0.9);
    }
}

[data-theme="dark"] .navbar {
    background-color: rgba(17, 24, 39, 0.9);
}

/* Force light background when manually toggled to light */
[data-theme="light"] .navbar {
    background-color: rgba(255, 255, 255, 0.9);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.2rem;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--primary);
}

/* Theme Toggle Button */
.theme-toggle {
    background: none;
    border: 1px solid var(--border);
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
    transition: all 0.2s;
}

.theme-toggle:hover {
    background-color: var(--bg-alt);
    color: var(--primary);
    border-color: var(--primary);
}

/* Hero Section */
.hero {
    padding: 80px 0;
    text-align: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.badge {
    background-color: rgba(79, 70, 229, 0.08);
    /* More subtle */
    color: var(--primary);
    padding: 6px 14px;
    /* Slightly tighter */
    border-radius: 9999px;
    /* Pill */
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
    display: inline-block;
    border: 1px solid rgba(79, 70, 229, 0.15);
    /* Subtle border */
    backdrop-filter: blur(4px);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4.2rem);
    /* Massive responsive text */
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.03em;
    /* Tighter tracking */
    max-width: 900px;
    margin-bottom: 24px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, #a855f7 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 30px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 16px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 10px;
    /* Increased slightly */
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.3), 0 2px 4px -1px rgba(79, 70, 229, 0.15);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(79, 70, 229, 0.4), 0 4px 6px -2px rgba(79, 70, 229, 0.2);
}

.btn-secondary {
    background-color: var(--bg-alt);
    color: var(--text-main);
}

.btn-secondary:hover {
    background-color: var(--border);
}

.hero-note {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Browser Mockup */
.hero-visual {
    width: 100%;
    max-width: 800px;
    margin-top: 40px;
}

/* Social Proof Bar */
.logo-strip {
    padding: 30px 0;
    /* background-color: var(--bg-alt); */
    /* Optional: background strip */
    border-bottom: 1px solid var(--border);
    text-align: center;
}

.logo-strip-title {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 20px;
    opacity: 0.8;
}

.logos {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    align-items: center;
}

.logo-wrapper {
    position: relative;
    display: inline-block;
}

/* Tooltip Styles */
.logo-wrapper::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 110%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background-color: var(--text-main);
    color: var(--bg-body);
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: none;
    font-weight: 600;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.logo-wrapper:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.logos svg {
    height: 32px;
    width: auto;
    color: var(--text-muted);
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
    display: block;
    /* Removes weird spacing */
}

.logos .logo-wrapper:hover svg {
    filter: grayscale(0%);
    opacity: 1;
    color: var(--primary);
    /* Optional: tint them brand color, or keep natural if SVG has color */
    transform: scale(1.1);
}

/* Feature Highlights */
.highlight-card {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.03) 0%, rgba(255, 255, 255, 0) 100%);
}

.highlight-card .icon-box {
    transform: scale(1.1);
    display: inline-block;
}

/* Browser Mockup */
.hero-visual {
    width: 100%;
    max-width: 800px;
    margin-top: 40px;
}

.browser-mockup {
    background-color: var(--bg-body);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.browser-header {
    background-color: var(--bg-alt);
    padding: 12px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    gap: 8px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot.red {
    background-color: #ef4444;
}

.dot.yellow {
    background-color: #f59e0b;
}

.dot.green {
    background-color: #10b981;
}

.browser-content {
    padding: 60px 20px;
    min-height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 500;
}

.highlight {
    background-color: rgba(99, 102, 241, 0.2);
    color: var(--primary);
    padding: 0 4px;
    border-radius: 4px;
    border-bottom: 2px solid var(--primary);
}

/* Features */
.features {
    padding: 80px 0;
    background-color: var(--bg-body);
    /* Change to White */
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.2rem;
    margin-bottom: 12px;
}

.features .container {
    max-width: 1250px;
    /* Expand container just for this section to fit 4 wider cards */
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* Back to 4 columns */
    gap: 30px;
    align-items: stretch;
}

@media (max-width: 1024px) {
    .features-grid {
        /* Fallback to wrapping on smaller screens */
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

.feature-card {
    background-color: var(--bg-body);
    padding: 30px;
    border-radius: 16px;
    /* Enhanced radius */
    border: 1px solid rgba(229, 231, 235, 1);
    /* var(--border) but hardcoded for reliability */
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    height: 100%;
    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: center;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.icon-box {
    font-size: 3rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-muted);
}

/* Tech Specs */
.tech-specs {
    padding: 80px 0;
    background-color: var(--bg-body);
    /* Ensure White */
    text-align: center;
    /* Center h2 */
}

.tech-list {
    list-style: none;
    margin: 30px auto 0;
    /* Center the list block */
    max-width: 600px;
    /* Constrain width for better reading */
    text-align: left;
    /* Keep items left-aligned */
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.tech-list li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    /* Align icon with top of text */
    font-size: 1.1rem;
}

.check-icon {
    color: var(--primary);
    font-weight: bold;
}

/* Footer */
footer {
    padding: 60px 0 20px;
    border-top: 1px solid var(--border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 40px;
}

/* Contact Form */
.contact-section {
    padding: 60px 0;
    background-color: var(--bg-body);
    /* Change back to White */
    border-top: 1px solid var(--border);
}

.contact-form-wrapper {
    max-width: 500px;
    margin: 0 auto;
    background-color: var(--bg-alt);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background-color: var(--bg-body);
    color: var(--text-main);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.btn-block {
    width: 100%;
    justify-content: center;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    position: relative;
}

.btn-block:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.form-status {
    margin-top: 15px;
    padding: 10px;
    border-radius: 6px;
    font-size: 0.9rem;
    text-align: center;
}

.form-status.success {
    background-color: rgba(16, 185, 129, 0.1);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.form-status.error {
    background-color: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.loader {
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    margin-left: 8px;
}

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

.form-note {
    margin-top: 15px;
    text-align: center;
    color: var(--text-muted);
    opacity: 0.8;
}

/* FAQ Section */
.faq-section {
    padding: 80px 0;
    background-color: var(--bg-alt);
    /* Change back to Gray */
}

.faq-grid {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background-color: var(--bg-body);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.faq-item[open] {
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.faq-item summary {
    padding: 20px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-item summary::after {
    content: '+';
    font-size: 1.2rem;
    color: var(--primary);
    transition: transform 0.2s;
}

.faq-item[open] summary::after {
    content: '−';
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 20px 20px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Final CTA */
.final-cta {
    padding: 100px 0;
    text-align: center;
    background: linear-gradient(135deg, var(--bg-body) 0%, var(--bg-alt) 100%);
    border-top: 1px solid var(--border);
}

.final-cta h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.final-cta p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
}

/* How It Works Section */
.how-it-works {
    padding: 80px 0;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.step-card {
    background-color: var(--bg-body);
    padding: 30px;
    border-radius: 16px;
    border: 1px solid rgba(229, 231, 235, 1);
    position: relative;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

.step-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}



.step-number {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-body);
    color: var(--text-muted);
    font-weight: 800;
    font-size: 1.4rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    z-index: 10;
}

.step-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    background: none;
    border: none;
    width: auto;
    height: auto;
}

.step-card h3 {
    font-size: 1.25rem;
    margin-bottom: 15px;
    color: var(--text-main);
}

.step-card p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
    margin-top: 10px;
}

.step-card strong {
    color: var(--primary);
}

.step-card code.shortcut {
    display: inline-block;
    background: var(--bg-body);
    border: 1px solid var(--border);
    padding: 4px 8px;
    border-radius: 6px;
    font-family: monospace;
    font-weight: 700;
    color: var(--primary);
    font-size: 0.9em;
}

/* Mobile adjustments handled by existing media queries since we used auto-fit grid */

@media (max-width: 768px) {

    /* Layout & Containers */
    .container {
        width: 100%;
        padding: 0 20px;
    }

    /* Navbar Stacking */
    .navbar .container {
        flex-direction: column;
        gap: 16px;
    }

    .nav-links {
        gap: 16px;
        flex-wrap: wrap;
        justify-content: center;
    }

    /* Typography Adjustments */
    h1 {
        font-size: 2rem;
        word-wrap: break-word;
        /* Prevent overflow on long words */
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .final-cta h2 {
        font-size: 1.8rem;
    }

    /* Reduce Vertical Spacing */
    .hero {
        padding: 50px 0;
    }

    .features,
    .tech-specs,
    .faq-section,
    .contact-section,
    .final-cta {
        padding: 50px 0;
    }

    .hero-content {
        gap: 30px;
    }

    /* Stack Features Grid closer */
    .features-grid {
        grid-template-columns: 1fr;
        /* Force single column */
        gap: 20px;
    }

    .browser-content {
        font-size: 1.1rem;
        padding: 40px 10px;
    }

    /* Footer Stacking */
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .footer-links {
        align-items: center;
    }
}