/* FlowSuite Landing Page - Clean Professional Design */

/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
    --primary: #3b82f6;
    --secondary: #8b5cf6;
    --success: #10b981;
    --dark: #1e293b;
    --gray-dark: #475569;
    --gray: #64748b;
    --light: #f8fafc;
    --white: #ffffff;
    --border: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Dark Mode Variables */
[data-theme="dark"] {
    --primary: #60a5fa;
    --secondary: #a78bfa;
    --success: #34d399;
    --dark: #f1f5f9;
    --gray-dark: #cbd5e1;
    --gray: #94a3b8;
    --light: #1e293b;
    --white: #0f172a;
    --border: #334155;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
}

/* Dark Mode Specific Overrides */
[data-theme="dark"] body {
    background-color: #0f172a;
    color: var(--gray-dark);
}

/* Removed previous dark mode navbar overrides as they are now handled in the main navbar block */

/* Dark mode link state handling */
[data-theme="dark"] .nav-link,
[data-theme="dark"] .nav-link:visited {
    color: #cbd5e1;
    /* slate-300 */
    background: transparent !important;
}

[data-theme="dark"] .nav-link:hover,
[data-theme="dark"] .nav-link:focus,
[data-theme="dark"] .nav-link:active {
    color: #ffffff;
    background: transparent !important;
}

[data-theme="dark"] .logo,
[data-theme="dark"] .logo:visited,
[data-theme="dark"] .logo:hover,
[data-theme="dark"] .logo:focus,
[data-theme="dark"] .logo:active {
    color: #ffffff;
}

[data-theme="dark"] .hero {
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
}

[data-theme="dark"] .feature-card,
[data-theme="dark"] .pricing-card,
[data-theme="dark"] .use-case-card,
[data-theme="dark"] .step-card,
[data-theme="dark"] .faq-item {
    background: #1e293b;
    border-color: var(--border);
}

[data-theme="dark"] .faq-question {
    background: #1e293b;
}

[data-theme="dark"] .pricing-card.featured {
    background: #1e293b;
    border-color: var(--primary);
}

[data-theme="dark"] .step-number {
    background: #1e293b;
    box-shadow: 0 0 0 10px #0f172a;
}

[data-theme="dark"] .dropdown-menu {
    background: #1e293b;
    border-color: var(--border);
}

[data-theme="dark"] .dropdown-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .hero-card {
    background: #1e293b;
    border-color: var(--border);
}

[data-theme="dark"] .workflow-step .step-icon {
    background: #0f172a;
    border-color: #334155;
}

[data-theme="dark"] .workflow-info {
    background: #0f172a;
    color: #e2e8f0;
}

[data-theme="dark"] .card-header span,
[data-theme="dark"] .dropdown-item strong,
[data-theme="dark"] .dropdown-header {
    color: var(--dark);
}

[data-theme="dark"] .trust-section {
    background: #0f172a;
    border-bottom-color: var(--border);
}

[data-theme="dark"] .features {
    background: #0f172a;
}

[data-theme="dark"] .how-it-works {
    background: #0f172a;
}

[data-theme="dark"] .use-cases {
    background: #0f172a;
}

[data-theme="dark"] .pricing {
    background: #0f172a;
}

[data-theme="dark"] .faq {
    background: #0f172a;
}

[data-theme="dark"] .cta {
    background: linear-gradient(135deg, #1e293b, #334155);
    color: white;
}

[data-theme="dark"] .cta-subtitle {
    color: var(--gray-dark);
}

[data-theme="dark"] .footer {
    background: #0f172a;
    border-top-color: #1e293b;
}

[data-theme="dark"] .footer-logo {
    color: white;
}

[data-theme="dark"] .footer-title {
    color: white;
}

[data-theme="dark"] .social-links a {
    background: #1e293b;
    color: white;
    border-color: transparent;
}

[data-theme="dark"] .social-links a:hover {
    background: var(--primary);
}

[data-theme="dark"] .footer-bottom {
    border-top-color: #1e293b;
}

/* Dark Mode Button Overrides */
[data-theme="dark"] .btn-secondary {
    background: transparent;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-weight: 600;
}

[data-theme="dark"] .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
}

[data-theme="dark"] .btn-portal {
    background: var(--primary);
    color: white;
}

[data-theme="dark"] .btn-portal:hover {
    background: #2563eb;
}

[data-theme="dark"] .mobile-toggle {
    color: var(--dark);
}

[data-theme="dark"] .nav-menu {
    background: #1e293b;
}


/* Theme Toggle - Modern Frameless */
.theme-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.theme-toggle:hover {
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary);
    transform: rotate(15deg);
}

.theme-toggle i {
    font-size: 20px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #ffffff;
    color: var(--gray-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* =========================================
   2. NAVIGATION
   ========================================= */
.navbar {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--border);
    padding: 12px 24px;
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    z-index: 1000;
    backdrop-filter: blur(12px);
    border-radius: 50px;
    /* Round corners */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

/* Adjust dark mode navbar for floating style */
[data-theme="dark"] .navbar {
    background: #0f172a !important;
    /* Fully opaque, no transparency */
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: none;
    /* Remove blur since we're fully opaque */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 700;
    color: var(--dark);
    text-decoration: none;
}

.logo:visited,
.logo:hover,
.logo:focus,
.logo:active {
    color: var(--dark);
    text-decoration: none;
}

.logo img {
    display: block;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
    background: transparent !important;
    /* Force remove any background */
}

[data-theme="dark"] .nav-menu {
    background: transparent !important;
}

.nav-link {
    color: var(--gray);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: all 0.3s ease;
    position: relative;
    padding-bottom: 4px;
    background: transparent;
    /* Changed from !important to allow overrides */
    /* Prevent any background color */
}

/* Explicit state handling to prevent browser color leaking */
.nav-link:visited {
    color: var(--gray);
}

.nav-link:hover,
.nav-link:focus,
.nav-link:active {
    color: var(--primary);
    outline: none;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}



/* Dropdown */
.nav-dropdown {
    position: relative;
    padding: 10px 0;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--white);
    min-width: 280px;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow-xl);
    padding: 8px;
    display: none;
    z-index: 1001;
}

.nav-dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    text-decoration: none;
    color: var(--dark);
    border-radius: 8px;
    transition: background 0.2s;
}

.dropdown-item:hover {
    background: var(--light);
}

.dropdown-item i {
    color: var(--primary);
    margin-top: 3px;
}

.dropdown-item strong {
    display: block;
    font-size: 14px;
}

.dropdown-item span {
    display: block;
    font-size: 13px;
    color: var(--gray);
    font-weight: 400;
}

.dropdown-divider {
    height: 1px;
    background: var(--border);
    margin: 8px 0;
}

.dropdown-header {
    font-size: 12px;
    font-weight: 600;
    color: var(--gray);
    padding: 8px 12px;
    text-transform: uppercase;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--white);
    color: var(--dark);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--light);
}

.btn-portal {
    background: var(--dark);
    color: white;
}

.btn-portal:hover {
    background: var(--gray-dark);
}

/* =========================================
   3. HERO SECTION
   ========================================= */
.hero {
    padding: 80px 0 100px;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary);
    padding: 4px 10px;
    /* Reduced padding */
    border-radius: 20px;
    font-size: 13px;
    /* Reduced font size */
    font-weight: 600;
    margin-bottom: 24px;
    margin-top: 100px;
    /* Increased top margin to prevent header overlap */
}

.hero-title {
    font-size: 48px;
    line-height: 1.1;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--gray);
    margin-bottom: 32px;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

.hero-stats {
    display: flex;
    gap: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.stat-number {
    font-size: 24px;
    color: var(--primary);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
}

/* Hero Visual */
.hero-card {
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--border);
    padding: 32px;
    position: relative;
    z-index: 10;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--light);
}

.card-header i {
    font-size: 24px;
    color: var(--primary);
}

.card-header span {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark);
}

.workflow-demo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
}

.workflow-step {
    text-align: center;
}

.step-icon {
    width: 48px;
    height: 48px;
    background: var(--light);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin: 0 auto 12px;
    border: 2px solid var(--white);
    box-shadow: var(--shadow-sm);
}

.workflow-step span {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-dark);
}

.workflow-arrow {
    color: var(--gray);
    font-size: 20px;
}

.workflow-info {
    background: var(--light);
    padding: 16px;
    border-radius: 8px;
    font-size: 14px;
    color: var(--gray-dark);
}

/* =========================================
   4. TRUST SECTION
   ========================================= */
.trust-section {
    padding: 60px 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
}

.trust-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    text-align: center;
}

.trust-item i {
    font-size: 32px;
    color: var(--primary);
    margin-bottom: 16px;
}

.trust-item h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
}

.trust-item p {
    font-size: 14px;
    color: var(--gray);
    line-height: 1.5;
}

/* =========================================
   5. FEATURES SECTION
   ========================================= */
.features {
    padding: 100px 0;
    background: var(--light);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-title {
    font-size: 36px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 18px;
    color: var(--gray);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.feature-card {
    background: var(--white);
    padding: 32px;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
    border: 1px solid transparent;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border);
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 24px;
}

.feature-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 12px;
}

/* =========================================
   6. APP SHOWCASE (New)
   ========================================= */
.showcase {
    padding: 100px 0;
    background: var(--light);
    overflow: hidden;
}

[data-theme="dark"] .showcase {
    background: #0f172a;
}

.showcase-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.showcase-text h2 {
    font-size: 36px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 24px;
}

.showcase-text p {
    font-size: 18px;
    color: var(--gray);
    margin-bottom: 32px;
}

.screenshot-placeholder {
    width: 100%;
    height: 400px;
    background: var(--white);
    border: 2px dashed var(--border);
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--gray);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

[data-theme="dark"] .screenshot-placeholder {
    background: #1e293b;
    border-color: #334155;
    color: #94a3b8;
}

.screenshot-placeholder i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.screenshot-label {
    font-weight: 600;
    font-size: 14px;
    padding: 8px 16px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 50px;
}

/* =========================================
   6. HOW IT WORKS (Redesigned)
   ========================================= */
.how-it-works {
    padding: 120px 0;
    background: var(--white);
    position: relative;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
    margin-top: 80px;
    position: relative;
}

/* Connecting Line */
.steps-grid::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 15%;
    right: 15%;
    height: 3px;
    background: linear-gradient(90deg, var(--light), var(--primary), var(--light));
    z-index: 1;
}

.step-card {
    text-align: center;
    position: relative;
    z-index: 2;
    background: var(--white);
    padding: 0 20px 48px;
    /* Increased bottom padding */
    height: 100%;
}

.step-number {
    width: 80px;
    height: 80px;
    background: var(--white);
    color: var(--primary);
    border: 3px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 32px;
    margin: 0 auto 32px;
    box-shadow: 0 0 0 10px var(--white);
    /* Create gap around line */
    transition: transform 0.3s;
}

.step-card:hover .step-number {
    transform: scale(1.1);
    background: var(--primary);
    color: white;
}

.step-card h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 16px;
}

.step-card p {
    color: var(--gray);
    font-size: 16px;
    line-height: 1.6;
}

/* =========================================
   7. USE CASES (Perfect For)
   ========================================= */
.use-cases {
    padding: 100px 0;
    background: var(--light);
}

.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.use-case-card {
    background: var(--white);
    padding: 32px;
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: all 0.3s;
}

.use-case-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.use-case-icon {
    width: 48px;
    height: 48px;
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 20px;
}

.use-case-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
}

/* =========================================
   8. PRICING
   ========================================= */
.pricing {
    padding: 120px 0 100px;
    background: var(--white);
}

.billing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 60px;
}

.toggle-switch {
    width: 60px;
    height: 32px;
    background: var(--border);
    border-radius: 20px;
    position: relative;
    cursor: pointer;
    transition: 0.3s;
}

.toggle-switch input {
    opacity: 0;
}

.toggle-slider {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 24px;
    height: 24px;
    background: var(--white);
    border-radius: 50%;
    transition: 0.3s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

input:checked+.toggle-slider {
    transform: translateX(28px);
    background: var(--white);
}

.toggle-switch:has(input:checked) {
    background: var(--primary);
}

/* Pricing Cards - Improved */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    max-width: 1100px;
    margin: 0 auto;
    align-items: center;
}

.pricing-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 48px 32px;
    text-align: center;
}

.pricing-card.featured {
    border: 2px solid var(--primary);
    box-shadow: var(--shadow-xl);
    transform: scale(1.05);
    z-index: 10;
    position: relative;
    background: var(--white);
}

.price-amount {
    font-size: 56px;
    font-weight: 800;
    color: var(--dark);
    display: block;
    margin: 20px 0 8px;
}

.pricing-features {
    text-align: left;
    list-style: none;
    margin-bottom: 32px;
    padding: 0;
}

.pricing-features li {
    padding: 10px 0;
    color: var(--gray-dark);
    display: flex;
    gap: 12px;
    align-items: flex-start;
    border-bottom: 1px solid var(--light);
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features i {
    color: var(--success);
    flex-shrink: 0;
    margin-top: 4px;
}

/* =========================================
   9. FAQ (Redesigned - Accordion)
   ========================================= */
.faq {
    padding: 120px 0;
    background: var(--light);
}

.faq-grid {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: var(--white);
    border-radius: 12px;
    border: 1px solid var(--border);
    overflow: hidden;
    transition: all 0.3s;
}

.faq-question {
    padding: 24px;
    font-size: 18px;
    font-weight: 600;
    color: var(--dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background: var(--white);
}

.faq-question i {
    color: var(--primary);
    transition: transform 0.3s;
    font-size: 20px;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 24px 24px;
    color: var(--gray);
    line-height: 1.6;
    display: none;
    border-top: 1px solid var(--light);
    padding-top: 24px;
}

.faq-item.active .faq-answer {
    display: block;
}

/* =========================================
   10. CTA Section
   ========================================= */
.cta {
    padding: 100px 0;
    background: var(--light);
    color: var(--dark);
    text-align: center;
}

.cta-title {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 24px;
}

.cta-subtitle {
    font-size: 20px;
    color: var(--gray);
    margin-bottom: 48px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* =========================================
   11. FOOTER (Dark Theme)
   ========================================= */
.footer {
    background: var(--light);
    color: var(--gray);
    padding: 80px 0 40px;
    border-top: 1px solid var(--border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--dark);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-logo i {
    color: var(--primary);
}

.footer-description {
    line-height: 1.6;
    margin-bottom: 24px;
    max-width: 300px;
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--white);
    color: var(--gray);
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    text-decoration: none;
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-2px);
}

.footer-title {
    color: var(--dark);
    font-weight: 700;
    margin-bottom: 24px;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.footer-bottom-links {
    display: flex;
    gap: 24px;
}

.footer-bottom-links a {
    color: #94a3b8;
    text-decoration: none;
}

.footer-bottom-links a:hover {
    color: white;
}


/* =========================================
   12. CONTACT PAGE
   ========================================= */
.contact-hero {
    padding: 120px 0 80px;
    background: linear-gradient(180deg, var(--light) 0%, var(--white) 100%);
    text-align: center;
}

.contact-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.contact-hero-title {
    font-size: 48px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.contact-hero-subtitle {
    font-size: 18px;
    color: var(--gray);
    line-height: 1.6;
}

.contact-section {
    padding: 0 0 100px;
    background: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 48px;
    max-width: 1000px;
    margin: 0 auto;
}

/* Info Cards (Sidebar) */
.contact-info-cards {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.info-card {
    background: var(--white);
    padding: 32px;
    border-radius: 16px;
    border: 1px solid var(--border);
    transition: all 0.3s;
}

.info-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.info-icon {
    width: 48px;
    height: 48px;
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 20px;
}

.info-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
}

.info-description {
    font-size: 14px;
    color: var(--gray);
    margin-bottom: 16px;
}

.info-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: gap 0.2s;
}

.info-link:hover {
    gap: 12px;
}

.info-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--dark);
}

/* Contact Form */
.contact-form-wrapper {
    background: var(--white);
    padding: 48px;
    border-radius: 24px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-xl);
}

.form-header {
    margin-bottom: 32px;
    text-align: center;
}

.form-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 12px;
}

.form-header p {
    color: var(--gray);
    font-size: 15px;
    line-height: 1.6;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 14px 18px;
    border: 2px solid var(--border);
    border-radius: 12px;
    font-size: 15px;
    color: var(--dark);
    background: var(--white);
    transition: all 0.3s ease;
    font-family: inherit;
    width: 100%;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
    transform: translateY(-1px);
}

.form-group textarea {
    height: 160px;
    resize: vertical;
    min-height: 120px;
}

.form-submit {
    width: 100%;
    margin-top: 24px;
    justify-content: center;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.form-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

.form-note {
    text-align: center;
    font-size: 13px;
    color: var(--gray);
    margin-top: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Dark Mode Overrides for Contact */
[data-theme="dark"] .contact-hero {
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
}

[data-theme="dark"] .contact-section {
    background: #0f172a;
}

[data-theme="dark"] .info-card {
    background: #1e293b;
    border-color: var(--border);
}

[data-theme="dark"] .contact-form-wrapper {
    background: #1e293b;
    border-color: var(--border);
}

[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group select,
[data-theme="dark"] .form-group textarea {
    background: #0f172a;
    border-color: var(--border);
    color: white;
}

[data-theme="dark"] .form-group input:focus,
[data-theme="dark"] .form-group select:focus,
[data-theme="dark"] .form-group textarea:focus {
    background: #1e293b;
}

@media (max-width: 968px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .contact-form-wrapper {
        padding: 32px 24px;
    }
    
    .form-header h2 {
        font-size: 24px;
    }
    
    .form-header p {
        font-size: 14px;
    }
}

/* =========================================
   13. MOBILE
   ========================================= */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--dark);
    cursor: pointer;
}

@media (max-width: 768px) {
    .nav-menu {
        display: flex;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: #ffffff !important;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 40px 20px;
        gap: 24px;
        z-index: 1000;
        opacity: 0;
        visibility: hidden;
        transform: scale(0.95);
        transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        overflow-y: auto;
    }

    /* Dark mode override */
    [data-theme="dark"] .nav-menu {
        background: #0f172a !important;
    }

    .nav-menu.active {
        opacity: 1;
        visibility: visible;
        transform: scale(1);
    }

    /* Enhanced Mobile Menu Links */
    .nav-menu .nav-link {
        font-size: 20px;
        font-weight: 600;
        color: var(--dark);
        width: 100%;
        text-align: center;
        padding: 14px 24px;
        border-radius: 12px;
        transition: all 0.3s ease;
        letter-spacing: -0.02em;
    }
    
    .nav-menu .nav-link:hover {
        background: rgba(59, 130, 246, 0.1);
        color: var(--primary);
        transform: translateX(4px);
    }
    
    [data-theme="dark"] .nav-menu .nav-link {
        color: var(--white);
    }
    
    [data-theme="dark"] .nav-menu .nav-link:hover {
        background: rgba(59, 130, 246, 0.15);
    }
    
    /* Portal Button in Mobile Menu */
    .nav-menu .btn-portal {
        margin-top: 12px;
        padding: 14px 32px;
        font-size: 16px;
        font-weight: 600;
        width: auto;
        min-width: 200px;
    }

    /* Overlay no longer needed for full screen */
    .menu-overlay {
        display: none !important;
    }

    /* Dropdown - Accordion Style */
    .nav-dropdown {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .dropdown-menu {
        display: none;
        position: static;
        width: 100%;
        max-width: 300px;
        background: rgba(0, 0, 0, 0.03);
        border-radius: 12px;
        margin-top: 10px;
        padding: 10px 0;
        box-shadow: none;
        border: none;
        transform: none;
        opacity: 1;
        visibility: visible;
    }

    .dropdown-menu.active {
        display: block;
        animation: fadeIn 0.3s ease;
    }

    @keyframes fadeIn {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .dropdown-item {
        padding: 12px 20px;
        font-size: 16px;
        text-align: left;
    }

    /* Dark mode dropdown */
    [data-theme="dark"] .dropdown-menu {
        background: rgba(255, 255, 255, 0.05);
    }

    .mobile-toggle {
        display: block;
        z-index: 1001;
        position: relative;
        font-size: 26px;
        padding: 8px;
        border-radius: 8px;
        transition: all 0.3s ease;
    }
    
    .mobile-toggle:hover {
        background: rgba(0, 0, 0, 0.05);
    }
    
    [data-theme="dark"] .mobile-toggle:hover {
        background: rgba(255, 255, 255, 0.1);
    }

    /* Ensure theme toggle remains visible on mobile */
    .theme-toggle {
        display: flex;
        z-index: 1002;
    }

    .hero-title {
        font-size: 32px;
    }

    .trust-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 968px) {
    .showcase-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .showcase-text {
        order: 1;
    }

    .showcase-visual {
        order: 2;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .steps-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .steps-grid::before {
        display: none;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }

    /* Improved Pricing Toggle for Mobile - FORCED NO WRAP */
    .billing-toggle {
        display: flex !important;
        flex-direction: row !important;
        gap: 8px !important;
        flex-wrap: nowrap !important;
        white-space: nowrap !important;
        align-items: center !important;
        justify-content: center !important;
        transform: scale(0.95);
        width: 100%;
    }

    .toggle-label {
        font-size: 13px !important;
        font-weight: 600;
        white-space: nowrap;
    }

    /* Absolute position the discount badge so it doesn't take up flow space */
    .toggle-discount {
        position: absolute;
        top: -24px;
        right: 0;
        left: 0;
        margin: auto;
        width: max-content;
        font-size: 10px;
        letter-spacing: 0.5px;
        padding: 4px 8px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-badge {
        margin-top: 80px;
        font-size: 12px;
    }

    .hero-title {
        font-size: 28px;
        line-height: 1.2;
    }

    .pricing-card {
        padding: 32px 20px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .contact-form-wrapper {
        padding: 28px 20px;
        border-radius: 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 18px;
        margin-bottom: 18px;
    }
    
    .form-header h2 {
        font-size: 22px;
    }
    
    .form-header p {
        font-size: 14px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 13px 16px;
        font-size: 16px;
    }
    
    .form-submit {
        padding: 15px 28px;
        font-size: 15px;
    }

    .features-grid,
    .use-cases-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   12. ABOUT PAGE
   ========================================= */
.about-hero {
    padding: 120px 0 80px;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    text-align: center;
}

[data-theme="dark"] .about-hero {
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    padding: 80px 0;
}

@media (max-width: 968px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .order-2-mobile {
        order: 2;
    }
}

.trust-item {
    margin-bottom: 24px;
}
}

/* =========================================
   14. URGENT MOBILE FIXES
   ========================================= */
@media screen and (max-width: 768px) {

    /* FORCE 1 COLUMN LAYOUT */
    .contact-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 32px !important;
        width: 100% !important;
        padding: 0 16px !important;
    }

    /* FORCE INPUTS TO STACK */
    .form-row {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 18px !important;
        margin-bottom: 18px !important;
    }

    /* FIX PADDING AND SPACING */
    .contact-form-wrapper {
        padding: 28px 20px !important;
        width: 100% !important;
        box-sizing: border-box !important;
        margin: 0 !important;
    }
    
    /* Ensure form elements are properly sized */
    .form-group {
        width: 100% !important;
        margin-bottom: 0 !important;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        width: 100% !important;
        box-sizing: border-box !important;
        font-size: 16px !important;
    }

    /* Ensure no horizontal overflow */
    .contact-section .container {
        padding: 0 16px !important;
        overflow-x: hidden !important;
    }
    
    .contact-section {
        padding: 60px 0 !important;
    }
}

/* End of file */