:root {
    --bg: #0f1724;
    --surface: #0b1220;
    --accent: #0066ff;
    --muted: #6b7280;
    --glass: rgba(255, 255, 255, 0.04);
    --max-width: 1200px;
    --radius: 12px;
    --gap: 20px;
    --container-pad: 24px;
    font-size: 16px;
}

* {
    box-sizing: border-box
}

html,
body {
    height: 100%
}

body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial;
    color: #e6eef8;
    background: linear-gradient(180deg, #071025 0%, #061220 100%);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.5;
}

main {
    padding-top: 80px;
    /* adjust if your header height changes */
}


/* container */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--container-pad);
}

/* -------- HEADER BASE -------- */
.site-header {
    position: sticky;
    top: 0;
    width: 100%;
    background: #fff;
    z-index: 1000;
    border-bottom: 1px solid #eee;
}

.header-inner {
    padding: 14px 0;
}


.mobile-toggle {
    display: none;
    font-size: 28px;
    background: none;
    border: none;
    cursor: pointer;
}

/* -------- MOBILE NAV HIDDEN -------- */
.mobile-nav {
    overflow: hidden;
    max-height: 0;
    transition: max-height .3s ease;
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 0 20px;
}

.mobile-nav a {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

/* -------- MOBILE BREAKPOINT -------- */
@media (max-width: 768px) {
    .nav {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    .mobile-nav {
        display: flex;
    }
}


/* header */
.site-header {
    position: fixed;
    /* stays fixed on top while scrolling */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 40;
    backdrop-filter: blur(6px);
    background: linear-gradient(180deg, rgba(6, 9, 14, 0.6), rgba(6, 9, 14, 0.35));
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}



.header-inner {
    display: flex;
    gap: 12px;
    align-items: center;
    height: 72px;
    justify-content: space-between;
}

.logo {
    font-weight: 700;
    letter-spacing: 0.2px;
    color: #fff;
    text-decoration: none;
}

.nav {
    display: flex;
    gap: 14px;
    align-items: center;
}

.nav a {
    color: var(--muted);
    text-decoration: none;
    padding: 8px 10px;
    border-radius: 8px;
    font-weight: 600;
    transition: all .18s;
}

.nav a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.02)
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700
}

.btn-primary {
    background: var(--accent);
    color: white;
    box-shadow: 0 6px 18px rgba(2, 6, 23, 0.6)
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--muted)
}

.btn-ghost {
    background: transparent;
    border: none;
    color: var(--muted)
}

.btn.large {
    padding: 12px 18px;
    font-size: 1rem;
    border-radius: 12px
}

.mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--muted);
    font-size: 20px
}

/* ---------------------------
   Header / Logo size fixes
   --------------------------- */

/* Ensure logo wrapper aligns items and doesn't allow tall images to overflow */
.header-inner .logo {
    display: inline-flex;
    /* align logo content */
    align-items: center;
    height: 72px;
    /* match header height */
    padding: 6px 0;
    /* optional vertical breathing room */
    text-decoration: none;
}

/* Constrain the image to fit inside the header cleanly */
.header-inner .logo img {
    display: block;
    height: 48px;
    /* visual logo height inside a 72px header (tweak as needed) */
    max-height: 56px;
    /* safety cap */
    width: auto;
    object-fit: contain;
}

/* If your logo file contains transparent padding/whitespace, use max-width to prevent overflow */
.header-inner .logo img {
    max-width: 220px;
    /* prevents ultra-wide images from pushing layout */
}

/* Reduce slightly on smaller screens */
@media (max-width: 880px) {
    .header-inner .logo img {
        height: 36px;
        max-width: 160px;
    }
}

/* Make sure the fixed header doesn't cover page content */
main {
    padding-top: 80px;
    /* at least header height (72) + small buffer; adjust if header height changes */
}

/* Optional: If your logo still looks too large because the image file itself contains whitespace,
   you can "zoom in" using this trick (cropping via object-position + larger height). */
/* .header-inner .logo img { height:56px; object-fit:cover; object-position:center left; } */



/* hero */
.hero {
    padding: 60px 0 36px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 520px;
    gap: 32px;
    align-items: center;
}

.eyebrow {
    color: var(--muted);
    font-weight: 600;
    margin-bottom: 8px
}

h1 {
    font-size: 2.2rem;
    line-height: 1.05;
    margin: 0 0 14px;
    color: #fff
}

.lead {
    color: #d7e6ff;
    margin-bottom: 18px;
    max-width: 60ch
}

.hero-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 18px
}

.hero-stats {
    display: flex;
    gap: 18px;
    list-style: none;
    padding: 0;
    margin: 18px 0 24px
}

.hero-stats li {
    background: rgba(255, 255, 255, 0.02);
    padding: 10px 14px;
    border-radius: 10px;
    text-align: center
}

.hero-stats strong {
    display: block;
    font-size: 1.05rem;
    color: #fff
}

.hero-trust {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--muted);
    margin-top: 6px
}

.logos {
    display: flex;
    gap: 10px;
    align-items: center
}

.logos img {
    height: 50px;
    opacity: 0.95
}

/* device mock */
.hero-media {
    display: flex;
    justify-content: center;
}

.device-mock {
    width: 460px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
    padding: 18px;
    box-shadow: 0 18px 40px rgba(2, 6, 23, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.device-topbar {
    height: 10px;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.2), rgba(255, 255, 255, 0.02));
    border-radius: 8px;
    margin-bottom: 12px
}

.device-screen {
    background: linear-gradient(180deg, #051127, #062033);
    border-radius: 12px;
    padding: 14px;
    color: #fff
}

/* Image-based device mock (simple, responsive, no telemetry) */
.device-mock--img {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    /* increased */
    width: 600px;
    /* increased (was 460px) */
    padding: 22px;
    /* increased from 18px */
    box-shadow: 0 18px 40px rgba(2, 6, 23, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.03);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
    display: block;
}

/* the actual image fills the card */
.device-mock--img .device-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* responsive breakpoints (match your existing responsive rules) */
/* responsive breakpoints */
@media (max-width: 1100px) {
    .device-mock--img {
        width: 450px;
        /* increased from 360px */
    }
}

@media (max-width: 880px) {
    .device-mock--img {
        width: 100%;
        max-width: 600px;
    }
}

@media (max-width: 520px) {
    .device-mock--img {
        border-radius: 16px;
    }
}


.chart {
    height: 140px;
    border-radius: 8px;
    background: linear-gradient(90deg, rgba(0, 120, 255, 0.18), rgba(0, 200, 180, 0.06));
    margin-bottom: 12px
}

.telemetry {
    display: flex;
    flex-direction: column;
    gap: 8px
}

.telemetry-row {
    display: flex;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.02);
    padding: 8px 10px;
    border-radius: 8px;
    font-weight: 600
}

/* features */
.section {
    padding: 56px 0
}

.section-title {
    font-size: 1.4rem;
    margin: 0 0 6px
}

.section-sub {
    color: var(--muted);
    margin: 10px 0 22px
}

.features .feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.feature-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
    padding: 20px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.03)
}

.feature-icon {
    font-size: 22px;
    margin-bottom: 12px
}

.feature-card h3 {
    margin: 0 0 8px
}

/* platform */
.platform-grid {
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 28px;
    align-items: center
}

.platform-image {
    height: 280px;
    border-radius: 14px;
    background: linear-gradient(90deg, #063a87, #0a6e7b);
    box-shadow: inset 0 -40px 80px rgba(0, 0, 0, 0.15)
}

.platform-list {
    margin-top: 12px;
    list-style: disc;
    padding-left: 20px;
    color: var(--muted)
}

/* customers */
.customers-row {
    display: flex;
    gap: 20px;
    align-items: flex-start
}

.quote-card {
    flex: 1;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.03)
}

.logos-grid {
    display: flex;
    gap: 10px;
    align-items: center
}

/* CTA band */
.cta-band {
    background: linear-gradient(90deg, rgba(0, 25, 60, 0.7), rgba(2, 8, 20, 0.7));
    padding: 28px 0;
    margin-top: 28px;
    border-radius: 12px;
    margin-bottom: 28px
}

.cta-inner {
    display: flex;
    gap: 18px;
    align-items: center;
    justify-content: space-between
}

.cta-inner h3 {
    margin: 0
}

.muted {
    color: var(--muted)
}

/* footer */
.site-footer {
    padding: 36px 0 18px;
    color: var(--muted)
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02)
}

.footer-logo {
    font-weight: 800;
    color: #fff
}

.footer-col a {
    display: block;
    text-decoration: none;
    color: var(--muted);
    margin: 8px 0
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 14px;
    font-size: 0.95rem
}

/* responsive */
@media (max-width:1100px) {
    .hero-grid {
        grid-template-columns: 1fr 360px
    }

    .platform-grid {
        grid-template-columns: 1fr
    }

    .device-mock {
        width: 360px
    }
}

@media (max-width:880px) {
    .nav {
        display: none
    }

    .mobile-toggle {
        display: block
    }

    .hero-grid {
        grid-template-columns: 1fr
    }

    .hero-media {
        order: -1;
        margin-bottom: 18px
    }

    .features .feature-grid {
        grid-template-columns: repeat(2, 1fr)
    }

    .cta-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr
    }

    .device-mock {
        width: 100%
    }
}

@media (max-width:520px) {
    .features .feature-grid {
        grid-template-columns: 1fr
    }

    .hero-stats {
        flex-direction: column
    }

    .header-inner {
        height: 64px
    }

    h1 {
        font-size: 1.6rem
    }

    .logos img {
        height: 22px
    }

    .footer-grid {
        grid-template-columns: 1fr
    }

    .mobile-nav {
        padding: 12px
    }
}

/* mobile nav */
.mobile-nav {
    overflow: hidden;
    max-height: 0;
    transition: max-height .28s ease;
    background: linear-gradient(180deg, rgba(6, 9, 14, 0.95), rgba(6, 9, 14, 0.9));
    border-top: 1px solid rgba(255, 255, 255, 0.02);
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0 var(--container-pad);
}

.mobile-nav a {
    padding: 12px 0;
    color: var(--muted);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02)
}

/* Contact Form Section */
.contact-section {
    margin-top: 40px;
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-top: 20px;
    background: rgba(255, 255, 255, 0.03);
    padding: 24px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(4px);
}

.contact-form .form-group {
    display: flex;
    flex-direction: column;
}

.contact-form .form-group.full {
    grid-column: span 2;
}

.contact-form label {
    font-weight: 600;
    margin-bottom: 6px;
    color: #fff;
}

.contact-form input,
.contact-form textarea {
    padding: 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 1rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--accent);
    outline: none;
}

.submit-btn {
    grid-column: span 2;
    justify-self: start;
    margin-top: 10px;
}

/* Mobile */
@media (max-width: 600px) {
    .contact-form {
        grid-template-columns: 1fr;
    }

    .contact-form .form-group.full,
    .submit-btn {
        grid-column: span 1;
    }
}

/* Footer brand (image + company name) — paste at end of styles.css */

/* container root selectors so both .footer and .site-footer cases work */
.footer,
.site-footer {
    color: var(--muted);
    background: linear-gradient(135deg, var(--bg) 0%, color-mix(in srgb, var(--bg), #000 10%) 100%);
    font-size: 14px;
    position: relative;
    border-top: 1px solid color-mix(in srgb, var(--accent), transparent 80%);
}

/* top padding area (if you use .footer-top elsewhere) */
.footer .footer-top,
.site-footer .footer-top {
    padding: 60px;
}

/* brand wrapper */
.site-footer .footer-brand,
.footer .footer-brand {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* logo link */
.site-footer .footer-brand .logo,
.footer .footer-brand .logo {
    display: flex;
    align-items: center;
    gap: 18px;
    text-decoration: none;
    line-height: 1;
    margin: 0;
    /* reset margins */
}

/* company image */
.site-footer .footer-brand .logo img,
.footer .footer-brand .logo img {
    width: 180px;
    height: auto;
    object-fit: contain;
    display: block;
}

/* company name block */
.site-footer .footer-brand .company-name,
.footer .footer-brand .company-name {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0;
    margin-left: 0;
    /* you previously used negative margin; reset for consistent layout */
}

/* h3 and tagline */
.site-footer .footer-brand .company-name h3,
.footer .footer-brand .company-name h3 {
    font-size: 14px;
    font-weight: 700;
    margin: 0;
    color: var(--muted);
    letter-spacing: 0.5px;
}

.site-footer .footer-brand .company-name .tagline,
.footer .footer-brand .company-name .tagline {
    font-size: 12px;
    color: color-mix(in srgb, var(--muted), transparent 30%);
    margin: 5px 0 0;
    font-style: italic;
}

/* Responsive: stack on smaller screens */
@media (max-width: 768px) {

    .site-footer .footer-brand .logo,
    .footer .footer-brand .logo {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }

    .site-footer .footer-brand .logo img,
    .footer .footer-brand .logo img {
        width: 160px;
        margin-bottom: 6px;
    }

    .site-footer .footer-brand .company-name,
    .footer .footer-brand .company-name {
        margin-left: 0;
    }
}


/* ===========================
   Mobile-first responsive fixes
   Paste at END of styles.css
   =========================== */

/* BASE mobile adjustments (applies first) */
:root {
    --header-height: 64px;
    /* default mobile header height */
    --logo-mobile-h: 36px;
    --container-pad-mobile: 16px;
}

/* Make the layout more compact on small screens */
@media (max-width: 880px) {
    :root {
        --header-height: 64px;
        --logo-mobile-h: 36px;
        --container-pad: 16px;
    }

    /* reduce container padding on small screens */
    .container {
        padding-left: var(--container-pad);
        padding-right: var(--container-pad);
    }

    /* header sizing */
    .site-header {
        height: var(--header-height);
        backdrop-filter: blur(8px);
    }

    .header-inner {
        height: var(--header-height);
        padding: 0 var(--container-pad);
    }

    /* logo */
    .header-inner .logo img {
        height: var(--logo-mobile-h) !important;
        max-width: 160px !important;
    }

    /* show hamburger, hide top nav */
    .nav {
        display: none !important;
    }

    .mobile-toggle {
        display: inline-flex !important;
    }

    /* mobile nav style */
    .mobile-nav {
        padding: 10px var(--container-pad);
        background: linear-gradient(180deg, rgba(6, 9, 14, 0.98), rgba(6, 9, 14, 0.95));
        border-top: 1px solid rgba(255, 255, 255, 0.02);
    }

    .mobile-nav a {
        padding: 12px 0;
        color: var(--muted);
        display: block;
    }

    /* hero grid stacks vertically on phones */
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .hero-media {
        order: -1;
    }

    /* show media above copy for small screens */
    .device-mock {
        width: 100%;
        max-width: 520px;
        margin: 0 auto;
    }

    /* typography scale down */
    h1 {
        font-size: 1.6rem;
        line-height: 1.08;
    }

    .lead {
        font-size: 0.98rem;
        max-width: 48ch;
    }

    .hero-actions {
        flex-direction: column;
        gap: 10px;
    }

    .btn.large {
        width: 100%;
        justify-content: center;
    }

    /* hero-stats wrap */
    .hero-stats {
        flex-wrap: wrap;
        gap: 10px;
    }

    .hero-stats li {
        padding: 10px 12px;
        min-width: 120px;
    }

    /* logos smaller */
    .logos img {
        height: 22px;
    }

    /* feature grid to 2 columns on tablet & 1 on phone */
    .features .feature-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    @media (max-width: 520px) {
        .features .feature-grid {
            grid-template-columns: 1fr;
        }
    }

    /* adjust platform grid stacking */
    .platform-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    /* footer: 2 columns -> 1 column on narrow */
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 18px;
        padding-bottom: 14px;
    }

    @media (max-width: 520px) {
        .footer-grid {
            grid-template-columns: 1fr;
            gap: 14px;
        }
    }

    /* footer-brand adjustments */
    .site-footer .footer-brand,
    .footer .footer-brand {
        align-items: start;
    }

    .site-footer .footer-brand .logo,
    .footer .footer-brand .logo {
        gap: 12px;
    }

    .site-footer .footer-brand .logo img,
    .footer .footer-brand .logo img {
        width: 140px;
    }

    /* footer texts smaller */
    .site-footer,
    .footer {
        font-size: 13px;
    }

    .site-footer .footer-brand .company-name h3 {
        font-size: 18px;
    }

    .site-footer .footer-brand .company-name .tagline {
        font-size: 13px;
    }

    /* contact form becomes single column if narrow */
    .contact-form {
        grid-template-columns: 1fr;
        padding: 18px;
    }

    .contact-form .form-group.full,
    .submit-btn {
        grid-column: span 1;
        width: 100%;
    }

    /* cta band stacking */
    .cta-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .cta-inner .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Larger tablets and small desktops */
@media (min-width: 881px) and (max-width: 1100px) {
    .hero-grid {
        grid-template-columns: 1fr 360px;
    }

    .header-inner .logo img {
        height: 42px;
        max-width: 200px;
    }

    .container {
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* Desktop (keep your existing desktop styles but ensure wrapping doesn't break) */
@media (min-width: 1101px) {
    .hero-grid {
        grid-template-columns: 1fr 520px;
        gap: 32px;
    }

    .header-inner .logo img {
        height: 48px;
    }
}

/* Accessibility: enlarge tap targets on small screens */
@media (max-width: 520px) {

    .nav a,
    .mobile-nav a,
    .btn {
        min-height: 44px;
        padding-top: 10px;
        padding-bottom: 10px;
    }
}

/* Improve button stacking visual on mobile */
.mobile-nav .btn-primary,
.mobile-nav .btn-outline {
    display: block;
    width: 100%;
    margin-top: 8px;
}

/* Quick helpers to avoid header overlap with anchors (improves UX for in-page links) */
.anchor-spacer {
    display: block;
    height: calc(var(--header-height) + 8px);
    margin-top: calc(-1 * (var(--header-height) + 8px));
    visibility: hidden;
}

/* If you want header to be smaller on very small devices */
@media (max-width: 380px) {
    .header-inner {
        height: 56px;
    }

    .site-header {
        height: 56px;
    }

    main {
        padding-top: 68px;
    }

    .header-inner .logo img {
        height: 30px;
        max-width: 140px;
    }
}

/* Make sure fixed header doesn't overlap popups or other absolute blocks */
.site-header {
    box-shadow: 0 6px 18px rgba(2, 6, 23, 0.5);
}

/* Final touch: ensure hero copy is readable on small screens (line length) */
.hero-copy {
    max-width: 100%;
}

/* End responsive rules */

.privacy-content h2 {
    margin-top: 30px;
    font-size: 1.3rem;
    color: #fff;
}

.privacy-content p,
.privacy-content li {
    color: var(--muted);
    line-height: 1.7;
}

.policy-table {
    width: 100%;
    margin: 20px 0;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.04);
}

.policy-table th,
.policy-table td {
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px;
}