/* 
   Swadesh Labs - Main Stylesheet 
   Theme: Deep Tech / Restricted Industrial (Tractian-Inspired)
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    /* Palette - Deep Blue & Tech */
    /* Primary Brand */
    --primary: #3B82F6;
    /* Bright Tech Blue */
    --primary-dark: #2563EB;
    --primary-glow: rgba(59, 130, 246, 0.5);

    /* Backgrounds */
    --bg-body: #0B1121;
    /* Deepest Navy */
    --bg-surface: #151F32;
    /* Lighter Navy for cards */
    --bg-surface-hover: #1E293B;
    --bg-glass: rgba(15, 23, 42, 0.7);

    /* Text */
    --text-main: #F8FAFC;
    /* Slate 50 */
    --text-muted: #94A3B8;
    /* Slate 400 */
    --text-dim: #64748B;
    /* Slate 500 */

    /* Accents */
    --accent-teal: #14B8A6;
    /* Success/Safe */
    --accent-orange: #F59E0B;
    /* Warning */
    --accent-red: #EF4444;
    /* Danger */

    /* Borders */
    --border-color: rgba(148, 163, 184, 0.1);
    --border-hover: rgba(59, 130, 246, 0.3);

    /* Typography */
    --font-main: 'Inter', sans-serif;

    /* Spacing */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 32px;
    --spacing-xl: 80px;
    --spacing-2xl: 120px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
    --shadow-glow: 0 0 20px rgba(59, 130, 246, 0.15);

    /* Radius */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
}

/* === Global Resets === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text-main);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: var(--spacing-md);
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: var(--spacing-md);
    color: var(--text-muted);
    font-size: 1.05rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

/* === Layout Utilities === */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.max-w-800 {
    max-width: 800px;
}

.section {
    padding: var(--spacing-xl) 0;
    border-bottom: 1px solid var(--border-color);
}

.grid {
    display: grid;
    gap: var(--spacing-lg);
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.grid-5 {
    grid-template-columns: repeat(5, 1fr);
}

.text-center {
    text-align: center;
}

/* Background Helpers */
.bg-light {
    background-color: var(--bg-body);
    /* Override light bg to match dark theme */
}

.bg-dark {
    background-color: var(--bg-body);
}

/* === Buttons & Interactions === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-weight: 600;
    border-radius: 50px;
    /* Pill shape */
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.btn-outline {
    background: transparent;
    border-color: var(--border-color);
    color: var(--text-main);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-text {
    background: none;
    color: var(--text-main);
    padding: 0;
}

.btn-text:hover {
    color: var(--primary);
}

.btn-lg {
    padding: 16px 40px;
    font-size: 1.125rem;
}

.full-width {
    width: 100%;
    border-radius: var(--radius-sm);
}

/* === Navigation === */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(11, 17, 33, 0.8);
    backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    height: 80px;
    display: flex;
    align-items: center;
}

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

.logo {
    font-family: var(--font-main);
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    letter-spacing: -0.5px;
}

.logo-dot {
    color: var(--primary);
}

758

    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
}

.nav-links a:hover {
    color: white;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
}

.mobile-menu-btn .bar {
    width: 24px;
    height: 2px;
    background-color: white;
}

/* === Hero Section === */
.hero {
    position: relative;
    padding-top: 180px;
    padding-bottom: 120px;
    min-height: 90vh;
    display: flex;
    align-items: center;
    background: radial-gradient(circle at 50% 50%, #172554 0%, #0B1121 70%);
    /* Subtle blue radial */
    overflow: hidden;
}

/* Hero Background Image Override */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../assets/hero-factory.png') no-repeat center center/cover;
    opacity: 0.2;
    /* Very subtle texture */
    mix-blend-mode: overlay;
    z-index: 0;
}

.hero-overlay {
    display: none;
    /* Handled by CSS gradients above */
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    text-align: center;
    margin: 0 auto;
}

.hero-title {
    font-size: 4rem;
    background: linear-gradient(to right, #FFFFFF, #94A3B8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 40px;
}

.hero-cta-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.hero-trust {
    font-size: 0.9rem;
    color: var(--text-dim);
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 600;
}

/* === Cards (Glassmorphism) === */
.card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 32px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card:hover {
    border-color: var(--border-hover);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    background: var(--bg-surface-hover);
}

.icon-box {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.75rem;
    margin-bottom: 24px;
    background: rgba(255, 255, 255, 0.05);
}

.warning {
    color: var(--accent-orange);
    background: rgba(245, 158, 11, 0.1);
}

.info {
    color: var(--primary);
    background: rgba(59, 130, 246, 0.1);
}

.danger {
    color: var(--accent-red);
    background: rgba(239, 68, 68, 0.1);
}

.stat {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
}

.link-arrow {
    display: inline-flex;
    margin-top: 16px;
    color: var(--primary);
    font-weight: 600;
    align-items: center;
}

.link-arrow::after {
    content: '→';
    margin-left: 6px;
    transition: transform 0.2s;
}

.link-arrow:hover::after {
    transform: translateX(4px);
}

/* === Solution Section === */
.solution-card {
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.5) 0%, rgba(15, 23, 42, 0.5) 100%);
    backdrop-filter: blur(10px);
    text-align: left;
}

.badge {
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary);
    border: 1px solid rgba(59, 130, 246, 0.2);
    padding: 6px 12px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 16px;
    display: inline-block;
}

.specs-list li {
    padding-left: 24px;
    margin-bottom: 8px;
    position: relative;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.specs-list li::before {
    content: "";
    width: 6px;
    height: 6px;
    background-color: var(--primary);
    border-radius: 50%;
    position: absolute;
    left: 4px;
    top: 9px;
    box-shadow: 0 0 10px var(--primary);
}

.pricing-callout {
    background: rgba(30, 41, 59, 0.3);
    border: 1px solid var(--border-color);
    padding: 40px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    margin-top: 60px;
}

.price-divider {
    font-size: 2rem;
    color: var(--text-dim);
    font-weight: 300;
}

.price-val {
    font-size: 2.5rem;
    color: white;
    font-weight: 700;
    display: block;
}

.price-val small {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 400;
}

.price-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* === How It Works === */
.process-flow {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-top: 60px;
}

/* Connecting Line */
.process-flow::before {
    content: '';
    position: absolute;
    top: 50px;
    left: 50px;
    right: 50px;
    height: 2px;
    background: linear-gradient(90deg, rgba(59, 130, 246, 0) 0%, rgba(59, 130, 246, 0.3) 50%, rgba(59, 130, 246, 0) 100%);
    z-index: 0;
    display: none;
}

@media(min-width: 768px) {
    .process-flow::before {
        display: block;
    }
}

.step {
    flex: 1;
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 0 16px;
}

.step-icon {
    width: 100px;
    height: 100px;
    background: var(--bg-body);
    /* Mask line */
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 24px;
    font-size: 2.5rem;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    color: var(--primary);
}

.step h4 {
    color: white;
    margin-bottom: 12px;
}

.step-arrow {
    display: none;
}

/* Removed for clean line design */

/* === Comparison Table === */
.comparison-table {
    width: 100%;
    background: var(--bg-surface);
    border-radius: var(--radius-md);
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid var(--border-color);
}

.comparison-table th,
.comparison-table td {
    padding: 24px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-muted);
}

.comparison-table th {
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8rem;
    color: var(--text-dim);
    background: rgba(0, 0, 0, 0.2);
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.highlight-col {
    background: rgba(59, 130, 246, 0.05);
    color: white !important;
    position: relative;
}

.highlight-col strong {
    color: var(--primary);
}

/* === Dashboard Preview === */
.dashboard-showcase {
    position: relative;
    padding: 20px;
    background: radial-gradient(circle at center, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
}

.dashboard-img {
    border-radius: 12px;
    border: 4px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.7);
}

.feature-tag {
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid var(--primary);
    color: var(--primary);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.3);
    padding: 10px 20px;
}

/* === ROI Calculator === */
.calculator-wrapper {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
}

.form-group label {
    color: var(--text-main);
}

.form-group input,
.form-group select {
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    color: white;
    padding: 12px;
}

.calc-results {
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid var(--border-color);
}

.text-success {
    color: var(--accent-teal);
}

.text-danger {
    color: var(--accent-red);
}

/* === FAQ === */
.faq-question {
    background: transparent;
    color: white;
    padding: 24px 0;
    border-top: 1px solid var(--border-color);
    font-size: 1.125rem;
}

.faq-item:last-child .faq-question {
    border-bottom: 1px solid var(--border-color);
}

.faq-answer {
    color: var(--text-muted);
}

/* === Footer === */
.footer {
    background: #020617;
    /* Even darker */
    border-top: 1px solid var(--border-color);
    padding: 80px 0 40px;
}

.footer-logo {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    display: block;
}

.footer h4 {
    color: white;
    font-size: 1rem;
    margin-bottom: 24px;
}

.footer a {
    color: var(--text-muted);
    display: block;
    margin-bottom: 12px;
}

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

.footer-bottom {
    margin-top: 60px;
    border-top: 1px solid var(--border-color);
    padding-top: 32px;
    color: var(--text-dim);
    font-size: 0.9rem;
}

/* === Mobile === */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    .hero {
        padding-top: 120px;
        text-align: left;
    }

    .nav-links {
        background: var(--bg-surface);
        position: fixed;
        width: 100%;
        top: 80px;
        left: 0;
        flex-direction: row;
           flex-wrap: wrap;
        padding: 40px;
        transform: translateY(-150%);
        transition: transform 0.3s ease;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-links.active {
        transform: translateY(0);
    }

    .mobile-menu-btn {
        display: flex;
    }

    .grid-2,
    .grid-3,
    .grid-4,
    .grid-5 {
        grid-template-columns: 1fr;
    }

    .process-flow {
        flex-direction: row;
        gap: 40px;
    }

    .process-flow::before {
        display: none;
    }

    .pricing-callout {
        flex-direction: column;
        text-align: center;
        gap: 24px;
    }

    .price-divider {
        display: none;
    }

    .feature-tag {
        position: relative;
        margin: 10px auto;
        top: auto;
        left: auto;
        right: auto;
        bottom: auto;
        display: inline-block;
    }

    .dashboard-showcase {
        text-align: center;
    }
}

/* === Pilot Page Specifics (Restored & Themed) === */

.pilot-badge {
    background: rgba(245, 158, 11, 0.15);
    color: var(--accent-orange);
    border: 1px solid rgba(245, 158, 11, 0.3);
    font-size: 0.85rem;
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 24px;
    display: inline-block;
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.2);
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Hero Benefits */
.hero-pilot-benefits {
    margin: 40px 0;
    gap: 20px;
}

.benefit-item {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(5px);
    padding: 20px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    text-align: left;
    transition: transform 0.3s;
}

.benefit-item:hover {
    background: var(--bg-surface-hover);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.benefit-item .check-icon {
    font-size: 1.5rem;
    margin-bottom: 8px;
    color: var(--accent-teal);
    text-shadow: 0 0 10px rgba(20, 184, 166, 0.4);
}

.benefit-item strong {
    display: block;
    font-size: 1rem;
    color: white;
    margin-bottom: 4px;
}

.benefit-item p {
    font-size: 0.9rem;
    margin-bottom: 0;
    color: var(--text-muted);
}

.justify-center {
    justify-content: center;
}

/* Pilot Value Grid */
.pilot-value-grid .value-card {
    text-align: center;
    background: var(--bg-surface);
}

/* Timeline */
.timeline-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    margin: 60px 0;
    flex-wrap: wrap;
    gap: 20px;
}

.timeline-step {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 2;
    padding: 0 10px;
    min-width: 200px;
    margin-bottom: 30px;
}

.t-circle {
    width: 60px;
    height: 60px;
    background: var(--bg-body);
    border: 2px solid var(--primary);
    color: var(--primary);
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.5rem;
    box-shadow: var(--shadow-glow);
    position: relative;
}

.t-circle::after {
    content: '';
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    background: var(--primary);
    opacity: 0.1;
}

/* Connectors */
@media (min-width: 1024px) {
    .timeline-step:not(:last-child)::after {
        content: '';
        position: absolute;
        top: 30px;
        right: -50%;
        width: 100%;
        height: 2px;
        background: linear-gradient(90deg, var(--primary) 0%, rgba(59, 130, 246, 0.2) 100%);
        z-index: -1;
        opacity: 0.5;
    }
}

.timeline-step h4 {
    margin-bottom: 8px;
    color: white;
    font-size: 1.1rem;
}

.timeline-step p strong {
    color: var(--primary);
    font-weight: 500;
}

.timeline-step ul {
    text-align: left;
    display: inline-block;
    margin-top: 15px;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.02);
    padding: 15px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

.timeline-step li {
    margin-bottom: 6px;
    position: relative;
    padding-left: 20px;
    color: var(--text-muted);
}

.timeline-step li::before {
    content: "•";
    color: var(--primary);
    position: absolute;
    left: 4px;
    font-weight: bold;
}

/* Decision Box */
.decision-box {
    background: var(--bg-surface);
    padding: 40px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    margin-top: 80px;
    position: relative;
    overflow: hidden;
}

.decision-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.decision-options {
    margin-top: 30px;
}

.decision-options .opt {
    background: var(--bg-body);
    padding: 24px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    transition: 0.3s;
}

.decision-options .opt:hover {
    border-color: var(--primary);
    background: var(--bg-surface-hover);
}

.decision-options .opt strong {
    color: white;
    display: block;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

/* Eligibility */
.check-list-lg li,
.cross-list-lg li {
    font-size: 1.1rem;
    margin-bottom: 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--text-main);
}

.priority-box {
    background: rgba(245, 158, 11, 0.05);
    /* Orange tint */
    padding: 30px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(245, 158, 11, 0.2);
    margin-top: 30px;
}

.priority-box h4 {
    color: var(--accent-orange);
}

.dont-want-box {
    background: rgba(239, 68, 68, 0.05);
    /* Red tint */
    padding: 30px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Comparisons */
.pilot-comparison th.highlight-col {
    background-color: var(--bg-surface-hover);
    border: 2px solid var(--primary);
    border-bottom: none;
    position: relative;
    top: -4px;
    border-radius: 12px 12px 0 0;
    box-shadow: 0 -10px 20px rgba(0, 0, 0, 0.2);
}

.pilot-comparison td.highlight-col {
    background-color: var(--bg-surface-hover);
    border-left: 2px solid var(--primary);
    border-right: 2px solid var(--primary);
    font-weight: 600;
}

.pilot-comparison tr:last-child td.highlight-col {
    border-bottom: 2px solid var(--primary);
    border-radius: 0 0 12px 12px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Form */
.form-wrapper {
    border-top: 4px solid var(--primary);
    box-shadow: var(--shadow-glow);
}

.checkbox-group,
.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 8px;
}

.checkbox-group label,
.radio-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 500;
    background: var(--bg-body);
    padding: 8px 16px;
    border-radius: 50px;
    border: 1px solid var(--border-color);
    font-size: 0.9rem;
    transition: 0.2s;
}

.checkbox-group label:hover,
.radio-group label:hover {
    border-color: var(--primary);
    color: white;
}

input[type="checkbox"]:checked+label,
input[type="radio"]:checked+label {
    background: var(--primary);

   /* Mobile-Responsive Design - First priority on smallest screens */

/* Extra Small Devices (< 480px) */
@media (max-width: 479px) {
  html, body {
    font-size: 14px;
  }
  
  h1, .h1 {
    font-size: 1.5rem;
  }
  
  h2, .h2 {
    font-size: 1.3rem;
  }
  
  h3, .h3 {
    font-size: 1.1rem;
  }
  
  /* Hero and main container adjustments */
  .hero, section, [class*="container"], [class*="section"] {
    padding: 16px;
  }
  
  /* Ensure images are responsive */
  img {
    max-width: 100%;
    height: auto;
    display: block;
  }
  
  /* Stack flex layouts vertically */
  .flex-row, [class*="flex-row"], [style*="flex-direction: row"], [style*="display: flex"] {
    flex-direction: column !important;
  }
  
  /* Grid layouts - single column */
  .grid, [class*="grid"], [style*="display: grid"], [style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }
  
  /* Buttons full width */
  button, input[type="button"], input[type="submit"], .btn {
    width: 100%;
    margin-bottom: 12px;
    padding: 12px 16px;
    font-size: 0.95rem;
  }
  
  /* Form inputs full width */
  input, select, textarea {
    width: 100% !important;
    max-width: 100%;
    margin-bottom: 12px;
    padding: 10px 12px;
    font-size: 16px; /* Prevents zoom on iOS */
    box-sizing: border-box;
  }
  
  /* Navigation adjustments */
  nav, header {
    padding: 12px;
    765
  }
  
  /* Remove side padding on containers for max mobile space */
  .container, [class*="container"] {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* Small Devices (480px - 767px) */
@media (min-width: 480px) and (max-width: 767px) {
  html, body {
    font-size: 15px;
  }
  
  h1, .h1 {
    font-size: 1.8rem;
  }
  
  h2, .h2 {
    font-size: 1.5rem;
  }
  
  h3, .h3 {
    font-size: 1.2rem;
  }
  
  section, [class*="container"] {
    padding: 24px;
  }
  
  img {
    max-width: 100%;
    height: auto;
  }
  
  /* Stack flex items but allow some side-by-side on larger phones */
  .flex-row, [class*="flex-row"] {
    flex-direction: column;
  }
  
  /* Single column grids */
  [class*="grid"], [style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }
  
  button, input[type="button"], input[type="submit"] {
    width: 100%;
    padding: 12px 16px;
    margin-bottom: 12px;
  }
  
  input, select, textarea {
    width: 100% !important;
    padding: 10px 12px;
    margin-bottom: 12px;
    font-size: 16px;
    box-sizing: border-box;
  }
}

/* Tablets (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
  h1, .h1 {
    font-size: 2.2rem;
  }
  
  h2, .h2 {
    font-size: 1.8rem;
  }
  
  section, [class*="container"] {
    padding: 32px 24px;
  }
  
  /* Allow 2-column layouts on tablets */
  [class*="grid"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  
  /* Flex items can be side-by-side now */
  .flex-row, [class*="flex-row"] {
    flex-direction: row;
    flex-wrap: wrap;
  }
  
  button, input[type="button"], input[type="submit"] {
    width: auto;
    padding: 12px 24px;
  }
  
  input, select, textarea {
    width: auto;
    box-sizing: border-box;
  }
}

/* Large Devices (1024px+) - Desktop */
@media (min-width: 1024px) {
  h1, .h1 {
    font-size: 2.5rem;
  }
  
  h2, .h2 {
    font-size: 2rem;
  }
  
  section, [class*="container"] {
    padding: 40px 60px;
  }
}

/* Ensure viewport meta tag is respected */
* {
  box-sizing: border-box;
}

/* Prevent horizontal scrolling */
body, html {
  overflow-x: hidden;
  width: 100%;
}

/* Touch-friendly targets (min 44x44px) */
button, a, input[type="button"], input[type="submit"], [role="button"] {
  min-height: 44px;
  min-width: 44px;
}

/* Responsive typography */
@media (max-width: 768px) {
  body {
    line-height: 1.5;
    letter-spacing: 0.3px;
  }
  
  p {
    font-size: 0.95rem;
    margin-bottom: 12px;
  }
}
    color: white;


        /* Mobile Navigation Fix - Keep horizontal layout on mobile */
@media (max-width: 767px) {
  /* Header/nav container */
  header, nav {
    padding: 12px 16px !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
  }
  
  /* Logo/brand */
  header > *:first-child, nav > *:first-child {
    flex-basis: 100% !important;
    margin-bottom: 8px !important;
  }
  
  /* Navigation links - show horizontally */
  header a, nav a {
    flex: 1 1 auto !important;
    margin: 0 !important;
    padding: 8px 6px !important;
    font-size: 0.85rem !important;
    text-align: center !important;
    white-space: nowrap !important;
    display: inline-block !important;
    min-width: 60px !important;
  }
  
  /* Get Demo button stays visible */
  header button, nav button, button.get-demo {
    flex: 0 0 auto !important;
    width: auto !important;
    margin: 0 !important;
    padding: 8px 12px !important;
    font-size: 0.85rem !important;
  }
}

/* Extra small devices - even more compact nav */
@media (max-width: 479px) {
  header a, nav a {
    font-size: 0.75rem !important;
    padding: 6px 4px !important;
    min-width: 50px !important;
  }
  
  header button, nav button, button.get-demo {
    padding: 6px 8px !important;
    font-size: 0.8rem !important;
  }

   
/* Additional mobile nav fix - target all nav containers */
@media (max-width: 767px) {
  /* Force any nav container to horizontal layout */
  [class*="nav"], [class*="header"], [class*="menu"] {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 8px !important;
  }
  
  /* Ensure nav links don't stack */
  nav > a, header > a, [class*="nav"] > a, [class*="header"] > a {
    margin: 0 !important;
    padding: 8px 6px !important;
    font-size: 0.85rem !important;
    white-space: nowrap !important;
    min-width: auto !important;
    flex: 1 1 auto !important;
  }
  
  /* Brand/logo */
  nav > *:first-child, header > *:first-child {
    flex-basis: auto !important;
    margin-right: auto !important;
  }
  
  /* Buttons in nav */
  nav > button, header > button {
    flex: 0 0 auto !important;
    width: auto !important;
    margin: 0 !important;
    padding: 8px 12px !important;
  }
}

/* Ensure links display inline on mobile */
@media (max-width: 767px) {
  a {
    display: inline-block !important;
  }
  
  /* Prevent text wrapping in nav */
  header a, nav a {
    text-overflow: ellipsis !important;
    overflow: hidden !important;
  }
}
}}


/* CRITICAL FIX: Force navigation links horizontal on mobile */
@media (max-width: 767px) {
  /* All links must display inline/inline-block */
  a {
    display: inline !important;
    width: auto !important;
    margin-right: 4px !important;
  }
  
  /* Navigation links specifically */
  header a, nav a, [class*="nav"] a, [class*="header"] a {
    display: inline !important;
    margin: 0 4px !important;
    padding: 4px 6px !important;
    font-size: 0.8rem !important;
    white-space: nowrap !important;
    flex: none !important;
  }
  
  /* Buttons in navigation */
  header button, nav button, header button[type="button"], nav button[type="button"] {
    display: inline-block !important;
    width: auto !important;
    margin-left: 4px !important;
    padding: 6px 12px !important;
    font-size: 0.8rem !important;
  }
}

/* Ultra-aggressive for very small screens */
@media (max-width: 479px) {
  a {
    display: inline !important;
  }
  
  header a, nav a {
    font-size: 0.7rem !important;
    padding: 2px 3px !important;
    margin: 0 2px !important;
  }
}


/* FINAL FIX: Header/Nav wrapping with proper layout on mobile */
@media (max-width: 767px) {
  /* Navigation wrapper - allow wrapping */
  header, nav, [class*="nav"], [class*="header"] {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 4px !important;
    width: 100% !important;
    background: white !important;
    padding: 8px 12px !important;
    box-sizing: border-box !important;
  }
  
  /* Navigation links - allow wrapping with proper sizing */
  a {
    flex: 0 1 auto !important;
    white-space: normal !important;
    word-break: break-word !important;
    padding: 4px 6px !important;
    margin: 2px !important;
    display: inline-block !important;
    line-height: 1.2 !important;
  }
  
  header a, nav a {
    flex-basis: auto !important;
    min-width: max-content !important;
  }
  
  /* Get Demo button styling on mobile */
  button[class*="demo"], .get-demo, header button, nav button {
    flex: 0 1 auto !important;
    white-space: nowrap !important;
    padding: 6px 12px !important;
    margin: 2px !important;
    display: inline-block !important;
    background: #0066cc !important;
    color: white !important;
    border: none !important;
    border-radius: 4px !important;
    font-size: 0.85rem !important;
  }
  
  /* Brand/Logo takes up less space */
  header > *:first-child, nav > *:first-child, [class*="nav"] > *:first-child {
    flex: 0 0 auto !important;
    margin-right: auto !important;
  }
}
