:root {
    --bg: #0b0b10;
    --panel: rgba(255, 255, 255, 0.04);
    --ring: rgba(255, 255, 255, 0.08);
    --text: #ffffff;
    --muted: #d1d5db;
    --grad-a: #20124d;
    --grad-b: #0e1635;
    --grad-c: #0b0b10;
    --background: #0a0a0f;
    --foreground: #ffffff;
    --primary: #8b5cf6;
    --primary-dark: #6d28d9;
    --primary-light: #a78bfa;
    --secondary: #1e1e2e;
    --accent: #f472b6;
    --border: #2d2d3d;
    --card: #1a1a2e;
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --text-accent: #c084fc;
    --glow: 0 0 20px rgba(139, 92, 246, 0.3);
}
html,
body {
    color: var(--text);
}
.hero {
    background: radial-gradient(
            1200px 600px at 50% -200px,
            rgba(99, 102, 241, 0.18),
            transparent 60%
        ),
        radial-gradient(
            900px 450px at 80% -150px,
            rgba(124, 58, 237, 0.22),
            transparent 65%
        );
    padding-top: 2rem;
    padding-bottom: 2rem;
}
.marketing-hero-h1 {
    font-size: clamp(2rem, 6vw, 3.5rem);
}
.marketing-hero-sub {
    max-width: 46rem;
    margin-left: auto;
    margin-right: auto;
}
.marketing-cta-row {
    gap: 1rem;
    margin-top: 1.5rem;
}
.section {
    border-bottom: 1px solid var(--ring);
}
.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}
.use-card {
    text-align: center;
    padding: 2rem;
    background: var(--panel);
    border: 1px solid var(--ring);
    border-radius: 16px;
    box-shadow: var(--shadow, 0 1px 2px rgba(0, 0, 0, 0.2));
}
.use-card:hover {
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: 0 12px 48px -12px rgba(99, 102, 241, 0.35);
}
.use-icon {
    font-size: 2.5rem;
    line-height: 1;
    margin-bottom: 0.75rem;
    display: inline-block;
    filter: drop-shadow(0 4px 14px rgba(99, 102, 241, 0.25));
}
.use-title {
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #ffffff;
    letter-spacing: 0.2px;
}
.use-desc {
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.7;
    max-width: 36ch;
    margin-left: auto;
    margin-right: auto;
}
.glass {
    background: var(--panel);
    backdrop-filter: blur(8px);
    border: 1px solid var(--ring);
}
.footer-panel {
    background: linear-gradient(
        180deg,
        rgba(99, 102, 241, 0.06),
        rgba(12, 12, 18, 0.6)
    );
    border: 1px solid var(--ring);
    border-radius: 20px;
}
.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
}
.footer-links a:hover {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.kbd {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    background: #0f172a;
    border: 1px solid #1f2937;
    border-radius: 8px;
    padding: 0.25rem 0.5rem;
}
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

/* Carbon Ads override to keep ad on one line and centered */
#carbonads {
    display: block;
    overflow: hidden;
    background: #fff;
    color: #111;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}
#carbonads a {
    color: inherit;
    text-decoration: none;
}
#carbonads .carbon-wrap {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 16px;
    align-items: center;
    padding: 12px 12px;
}
#carbonads .carbon-img {
    display: block;
    line-height: 0;
}
#carbonads .carbon-text {
    font-size: 14px;
    line-height: 1.45;
}
#carbonads .carbon-poweredby {
    display: block;
    text-align: right;
    font-size: 12px;
    color: #6b7280;
    padding: 6px 12px 10px;
}
@media (max-width: 640px) {
    #carbonads .carbon-wrap {
        grid-template-columns: 1fr;
    }
    #carbonads .carbon-poweredby {
        text-align: center;
    }
}

/* Sponsor/Ad placeholder styles moved from index.html */
#impeccable-js {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
        Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', Helvetica, Arial,
        sans-serif;
    margin-bottom: 2rem;
}
#impeccable-js * {
    margin: initial;
    padding: initial;
}
#impeccable-js a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    overflow: hidden;
    max-width: 1200px;
    border-radius: 3px;
    background-color: #161616;
    box-shadow: 0 1px 4px 1px hsla(0, 0%, 0%, 0.1);
}
#impeccable-js :any-link {
    text-decoration: none;
}
#impeccable-js img {
    padding: 10px;
    box-sizing: content-box;
    width: 125px;
    height: 50px;
}
#impeccable-js .sponsor-description {
    margin: 0 1em;
    font-size: 14px;
    line-height: 1.4;
    color: #fff;
    text-align: left;
    flex: 1;
}
#impeccable-js .sponsor-cta {
    margin-right: 14px;
    padding: 1em;
    font-size: 11px;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
    border-radius: 4px;
}
@media (max-width: 600px) {
    .upgrade-mobile-btn {
        display: block !important;
        width: 100% !important;
        min-width: 0 !important;
        font-size: 1.1rem !important;
        padding: 12px 24px !important;
        margin: 0 auto !important;
        border-radius: 8px !important;
    }
}

/* FAQ contrast fixes when rendered on dark glass card */
.glass .marketing-faq-a {
    color: #f3f4f6 !important;
    line-height: 1.6;
}
.glass .marketing-faq-q {
    color: #ffffff !important;
    font-weight: 700;
    display: block;
    margin-bottom: 0.5rem;
}

/* Try API console visual polish */
.console.try-api-links {
    margin-top: 2rem;
}
.console .endpoints {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 8px;
}
.console .endpoints li {
    color: #e7e8ea;
}
.console .endpoints li.active {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.18),
        rgba(255, 255, 255, 0.05)
    );
    border-radius: 10px;
}
.console .output .request,
.console .output .response {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
}
.console .response .response-code {
    color: #22c55e;
}
.console pre {
    background: #0b0b10;
    color: #e7e8ea;
    border: 1px solid #1c1e26;
    border-radius: 8px;
    text-align: left;
    font-size: 0.775rem;
}

/* Code Showcase panels */
.code-panel {
    background: #0e0e16;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    box-shadow: var(
        --shadow,
        0 1px 2px rgba(0, 0, 0, 0.2),
        0 8px 40px -12px rgba(0, 0, 0, 0.35)
    );
    overflow: hidden;
}
.code-panel:hover {
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2),
        0 12px 48px -12px rgba(99, 102, 241, 0.45);
}
.code-panel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: #cbd5e1;
    font-size: 0.9rem;
}
.code-panel__pre {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.92rem;
    color: #e7e8ea;
    background: #0b0b10;
    padding: 1rem 0.75rem;
    overflow-x: auto;
    margin: 0;
    text-align: left;
    line-height: 1.6;
    tab-size: 2;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
.copy-btn {
    background: rgba(255, 255, 255, 0.08);
    color: #e7e8ea;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    cursor: pointer;
}
.copy-btn:hover {
    background: rgba(255, 255, 255, 0.14);
}

/* Smooth copy button reveal */
.code-panel .copy-btn {
    opacity: 0.85;
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.code-panel:hover .copy-btn {
    opacity: 1;
    transform: translateY(-1px);
}

/* Unified custom scrollbars for code blocks */
.code-panel__pre::-webkit-scrollbar,
.console pre::-webkit-scrollbar {
    height: 8px;
    width: 8px;
}
.code-panel__pre::-webkit-scrollbar-track,
.console pre::-webkit-scrollbar-track {
    background: transparent;
}
.code-panel__pre::-webkit-scrollbar-thumb,
.console pre::-webkit-scrollbar-thumb {
    background: linear-gradient(
        90deg,
        rgba(99, 102, 241, 0.35),
        rgba(139, 92, 246, 0.35)
    );
    border-radius: 9999px;
}
.code-panel__pre::-webkit-scrollbar-thumb:hover,
.console pre::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(
        90deg,
        rgba(99, 102, 241, 0.55),
        rgba(139, 92, 246, 0.55)
    );
}

/* Improve console pre typography too */
.console pre {
    line-height: 1.6;
    tab-size: 2;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* Getting Started: tidy tab spacing */
.getting-started .tab {
    margin: 1rem 0 2rem;
    text-align: left;
}
.getting-started {
    padding-left: 2rem;
    padding-right: 2rem;
}
.getting-started .tab-title {
    display: inline-block;
    margin-bottom: 0.5rem;
    padding: 0.35rem 0.75rem;
    border-radius: 10px;
    background: linear-gradient(90deg, #6366f1 0%, #7c3aed 100%);
    color: #fff;
    font-weight: 600;
}
.getting-started p {
    margin: 3rem;
    color: #e7e8ea;
    padding-left: 1rem;
    padding-right: 1rem;
}
.getting-started .code-panel__pre {
    margin-top: 0.5rem;
    padding: 1.5rem 1rem;
}

/* Pricing Teaser Styles */
.pricing-teaser {
    background: linear-gradient(
        135deg,
        rgba(99, 102, 241, 0.05),
        rgba(124, 58, 237, 0.05)
    );
}
.billing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}
.toggle-label {
    color: var(--text);
    font-weight: 500;
}
.save-badge {
    background: linear-gradient(90deg, #22c55e, #16a34a);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    display: inline-block;
}
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}
.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--ring);
    transition: 0.3s;
    border-radius: 24px;
}
.toggle-slider:before {
    position: absolute;
    content: '';
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background: white;
    transition: 0.3s;
    border-radius: 50%;
}
input:checked + .toggle-slider {
    background: linear-gradient(90deg, #6366f1, #7c3aed);
}
input:checked + .toggle-slider:before {
    transform: translateX(26px);
}
.plan-comparison {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}
.plan-card {
    background: var(--panel);
    border: 1px solid var(--ring);
    border-radius: 16px;
    padding: 2rem;
    position: relative;
    transition: all 0.3s ease;
}
.plan-card:hover {
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateY(-4px);
}
.plan-card.featured {
    border-color: #6366f1;
    background: linear-gradient(
        135deg,
        rgba(99, 102, 241, 0.1),
        rgba(124, 58, 237, 0.1)
    );
}
.plan-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(90deg, #6366f1, #7c3aed);
    color: white;
    padding: 0.375rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 10;
}
.plan-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff !important;
    margin-bottom: 1rem;
}
.plan-price {
    margin-bottom: 2rem;
}
.price {
    font-size: 3rem;
    font-weight: 800;
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}
.period {
    color: #d1d5db !important;
    font-size: 1rem;
}
.plan-features {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}
.plan-feature {
    padding: 0.5rem 0;
    color: #e5e7eb !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.plan-feature:last-child {
    border-bottom: none;
}
.plan-button {
    display: block;
    width: 100%;
    padding: 0.75rem 1.5rem;
    background: var(--ring);
    color: var(--text);
    text-decoration: none;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    transition: all 0.3s ease;
}
.plan-button:hover {
    background: rgba(99, 102, 241, 0.2);
    color: white;
}
.plan-button.primary {
    background: linear-gradient(90deg, #6366f1, #7c3aed);
    color: white;
}
.plan-button.primary:hover {
    background: linear-gradient(90deg, #5458df, #6d28d9);
}

/* Marketing Pillars Title Style */
.marketing-pillars-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    background: linear-gradient(
        135deg,
        var(--foreground) 0%,
        var(--text-accent) 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Text Contrast Improvements */
.text-muted {
    color: #d1d5db !important;
}

.glass p {
    color: #e5e7eb !important;
}

.glass .text-muted {
    color: #d1d5db !important;
}

/* Ensure good contrast on all text elements */
section p {
    color: #e5e7eb;
}

section .text-muted {
    color: #d1d5db;
}

/* Improve contrast for bullet points and lists */
.glass ul li {
    color: #e5e7eb;
}

.glass .plan-feature {
    color: #e5e7eb;
}

/* Mobile Responsive Optimizations */
@media (max-width: 768px) {
    /* Reduce container padding on mobile */
    .container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    /* Reduce section padding on mobile */
    .section {
        padding-top: 4rem !important;
        padding-bottom: 4rem !important;
    }

    /* Reduce glass card padding on mobile */
    .glass {
        padding: 1.5rem 1rem !important;
    }

    /* Reduce hero padding on mobile */
    .hero {
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }

    /* Optimize marketing buttons for mobile */
    .marketing-btn-primary,
    .marketing-btn-secondary {
        padding: 0.75rem 1.5rem !important;
        font-size: 0.9rem !important;
        min-height: 44px; /* Better touch target */
    }

    /* Reduce marketing hero spacing */
    .marketing-hero-h1 {
        font-size: 2rem !important;
        margin-bottom: 1rem !important;
    }

    .marketing-hero-sub {
        font-size: 1rem !important;
        margin-bottom: 1.5rem !important;
    }

    .marketing-cta-row {
        gap: 0.75rem !important;
        margin-top: 1rem !important;
    }

    /* Optimize grid layouts for mobile */
    .grid {
        gap: 1rem !important;
    }

    /* Reduce code panel padding on mobile */
    .code-panel__pre {
        padding: 1rem 0.5rem !important;
        font-size: 0.85rem !important;
    }

    /* Optimize pricing cards for mobile */
    .plan-comparison {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    .plan-card {
        padding: 1.5rem 1rem !important;
    }

    .plan-badge {
        top: 0.75rem !important;
        right: 0.75rem !important;
        padding: 0.25rem 0.5rem !important;
        font-size: 0.7rem !important;
    }

    /* Reduce marketing pillars title size on mobile */
    .marketing-pillars-title {
        font-size: 1.75rem !important;
        margin-bottom: 2rem !important;
    }

    /* Optimize FAQ for mobile */
    .marketing-faq-a {
        padding: 1rem 0 !important;
    }

    /* Reduce getting started padding */
    .getting-started {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    .getting-started p {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }

    /* Optimize console layout for mobile */
    .console {
        flex-direction: column !important;
        gap: 1rem !important;
    }

    .console .endpoints,
    .console .output {
        width: 100% !important;
    }

    /* Reduce use cases grid spacing */
    .use-cases-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    .use-card {
        padding: 1.5rem !important;
    }

    /* Optimize stats section for mobile */
    .stats-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    .stat-item {
        padding: 1rem !important;
    }

    /* Reduce billing toggle spacing */
    .billing-toggle {
        margin-bottom: 1.5rem !important;
        gap: 0.75rem !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
    }

    /* Fix save badge on mobile */
    .save-badge {
        margin-left: 0 !important;
        font-size: 0.7rem !important;
        padding: 0.2rem 0.4rem !important;
    }

    /* Optimize toggle switch for mobile */
    .toggle-switch {
        width: 44px !important;
        height: 24px !important;
    }

    .toggle-slider:before {
        height: 20px !important;
        width: 20px !important;
    }

    /* Additional mobile optimizations */
    .wrap {
        max-width: 100% !important;
        padding: 0 1rem !important;
    }

    /* Reduce heading sizes on mobile */
    .heading {
        font-size: 1.5rem !important;
        margin-bottom: 1.5rem !important;
    }

    /* Optimize text sizes for mobile */
    .text-lg {
        font-size: 1rem !important;
    }

    /* Reduce icon sizes on mobile */
    .fa {
        font-size: 1.5rem !important;
    }

    /* Optimize feature cards for mobile */
    .glass .w-16,
    .glass .w-12 {
        width: 3rem !important;
        height: 3rem !important;
    }

    /* Reduce list spacing on mobile */
    .space-y-2 > * + * {
        margin-top: 0.5rem !important;
    }

    .space-y-3 > * + * {
        margin-top: 0.75rem !important;
    }

    .space-y-5 > * + * {
        margin-top: 1rem !important;
    }

    /* Optimize button groups for mobile */
    .flex.flex-col.sm\\:flex-row {
        flex-direction: column !important;
        gap: 0.75rem !important;
    }

    /* Reduce margins on mobile */
    .mb-16 {
        margin-bottom: 2rem !important;
    }

    .mb-12 {
        margin-bottom: 1.5rem !important;
    }

    .mb-8 {
        margin-bottom: 1rem !important;
    }

    .mb-6 {
        margin-bottom: 0.75rem !important;
    }

    /* Optimize max-widths for mobile */
    .max-w-3xl,
    .max-w-4xl,
    .max-w-7xl {
        max-width: 100% !important;
    }

    /* Reduce padding on specific sections for wider mobile layout */
    .pricing-teaser .container,
    .plan-comparison,
    .billing-toggle {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }

    /* Make pricing cards use more width with better spacing */
    .plan-comparison {
        gap: 1.25rem !important;
    }

    /* Reduce padding on feature cards */
    .use-card,
    .stat-item {
        padding: 1rem 0.75rem !important;
    }

    /* Enhanced mobile styling for new Tailwind components */
    .text-foreground\/90 {
        color: rgba(255, 255, 255, 0.9) !important;
    }

    .text-foreground\/80 {
        color: rgba(255, 255, 255, 0.8) !important;
    }

    .bg-muted\/50 {
        background-color: rgba(255, 255, 255, 0.05) !important;
    }

    /* Ensure proper contrast for new Tailwind classes */
    .bg-primary {
        background-color: #6366f1 !important;
    }

    .text-primary-foreground {
        color: #ffffff !important;
    }

    .border-primary {
        border-color: #6366f1 !important;
    }

    .bg-background {
        background-color: #0b0b10 !important;
    }

    .text-foreground {
        color: #ffffff !important;
    }

    .border {
        border-color: rgba(255, 255, 255, 0.1) !important;
    }

    /* Fix alignment for other feature card sections */
    .how-it-works .glass,
    .build-ways .glass,
    .technical-bits .glass {
        text-align: left !important;
        padding: 1.5rem 1.25rem !important;
    }

    .how-it-works .glass h3,
    .build-ways .glass h3,
    .technical-bits .glass h3 {
        text-align: left !important;
        margin-bottom: 1rem !important;
    }

    .how-it-works .glass p,
    .build-ways .glass p,
    .technical-bits .glass p {
        text-align: left !important;
        line-height: 1.6 !important;
    }

    /* Make code showcase code blocks wider on mobile */
    .code-showcase .code-panel__pre {
        padding: 1rem 0.5rem !important;
        font-size: 0.85rem !important;
    }

    .code-showcase .glass {
        padding: 1.5rem 1rem !important;
    }

    /* Reduce padding on enterprise CTA promotional card */
    .enterprise-cta .glass {
        padding: 2rem 1.25rem !important;
    }

    /* Reduce padding on enterprise CTA pricing cards */
    .enterprise-cta .grid .glass {
        padding: 1.5rem 1rem !important;
    }

    /* Reduce padding on all glass cards with p-8 class */
    .glass.p-8 {
        padding: 1.5rem 1rem !important;
    }

    /* Reduce padding on FAQ section */
    .faq .glass {
        padding: 1.5rem 1rem !important;
    }

    /* Reduce padding on footer */
    .footer-panel {
        padding: 2rem 1.25rem !important;
    }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
    .container {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }

    .glass {
        padding: 1.25rem 0.75rem !important;
    }

    .plan-card {
        padding: 1.25rem 0.75rem !important;
    }

    .marketing-btn-primary,
    .marketing-btn-secondary {
        padding: 0.625rem 1.25rem !important;
        font-size: 0.85rem !important;
    }

    .marketing-pillars-title {
        font-size: 1.5rem !important;
    }

    .price {
        font-size: 2rem !important;
    }

    .code-panel__pre {
        padding: 0.75rem 0.375rem !important;
        font-size: 0.8rem !important;
    }

    /* Even more aggressive padding reduction for very small screens */
    .container {
        padding-left: 0.25rem !important;
        padding-right: 0.25rem !important;
    }

    .glass {
        padding: 0.5rem !important;
    }

    .plan-card {
        padding: 0.5rem !important;
    }

    .wrap {
        padding: 0 0.75rem !important;
    }

    .use-card,
    .stat-item {
        padding: 0.75rem 0.5rem !important;
    }

    /* Fix mobile alignment for benefits/feature cards on small screens */
    .benefits .glass {
        padding: 1.25rem 1rem !important;
    }

    .benefits .glass h3 {
        font-size: 1.125rem !important;
        margin-bottom: 0.75rem !important;
    }

    .benefits .glass p {
        font-size: 0.9rem !important;
        line-height: 1.5 !important;
        margin-bottom: 0.75rem !important;
    }

    .benefits .glass ul {
        font-size: 0.85rem !important;
    }

    .benefits .glass li {
        margin-bottom: 0.375rem !important;
    }

    /* More balanced padding for enterprise CTA */
    .enterprise-cta .glass {
        padding: 1.5rem 1rem !important;
    }

    .enterprise-cta .grid .glass {
        padding: 1.25rem 0.75rem !important;
    }

    /* More balanced padding for all glass cards */
    .glass.p-8 {
        padding: 1.25rem 0.75rem !important;
    }

    .faq .glass {
        padding: 1.25rem 0.75rem !important;
    }

    .footer-panel {
        padding: 1.5rem 1rem !important;
    }

    /* Extra small mobile touch targets */
    .marketing-btn-primary,
    .marketing-btn-secondary {
        min-height: 48px !important;
        min-width: 48px !important;
    }

    /* Reduce all margins even more on very small screens */
    .mb-16 {
        margin-bottom: 1rem !important;
    }

    .mb-12 {
        margin-bottom: 0.75rem !important;
    }

    .mb-8 {
        margin-bottom: 0.5rem !important;
    }

    .mb-6 {
        margin-bottom: 0.5rem !important;
    }
}

/* Mobile-specific improvements for better UX */
@media (max-width: 768px) {
    /* Improve touch targets */
    a,
    button,
    input,
    select,
    textarea {
        min-height: 44px;
        min-width: 44px;
    }

    /* Better text readability on mobile */
    body {
        -webkit-text-size-adjust: 100%;
        -ms-text-size-adjust: 100%;
    }

    /* Prevent horizontal scroll */
    html,
    body {
        overflow-x: hidden;
    }

    /* Improve scrolling performance */
    * {
        -webkit-overflow-scrolling: touch;
    }

    /* Better focus states for mobile */
    a:focus,
    button:focus,
    input:focus,
    select:focus,
    textarea:focus {
        outline: 2px solid #6366f1;
        outline-offset: 2px;
    }

    /* Fix oversized pill-shaped buttons on mobile */
    .inline-flex.rounded-full {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        text-align: center !important;
        border-radius: 12px !important;
        padding: 0.75rem 1rem !important;
        font-size: 0.875rem !important;
        line-height: 1.4 !important;
    }

    /* Ensure long text in buttons wraps properly */
    .inline-flex.rounded-full,
    .bg-gradient-to-r.rounded-full {
        white-space: normal !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }

    /* Fix any remaining pill-shaped elements */
    .rounded-full {
        border-radius: 12px !important;
    }
}

@media (min-width: 1024px) {
    .code-panel__pre {
        font-size: 0.98rem;
    }
}
