@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

/* ──────────────────────────────────────────────
   CSS CUSTOM PROPERTIES
   ────────────────────────────────────────────── */
:root {
    --primary: #0d9488;
    --primary-dark: #0f766e;
    --primary-light: #14b8a6;
    --accent: #0284c7;
    --dark-bg: #0f172a;
    --dark-card: #1e293b;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --gradient-hero: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #0f766e 100%);
    --gradient-card: linear-gradient(145deg, rgba(30, 41, 59, 0.8) 0%, rgba(15, 23, 42, 0.9) 100%);
    --nav-height: 70px;
    --strip-height: auto;
}

/* ──────────────────────────────────────────────
   RESET & BASE
   ────────────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img, video, iframe {
    max-width: 100%;
    height: auto;
    display: block;
}

svg:not(.svg-inline--fa) {
    max-width: 100%;
    height: auto;
}

.svg-inline--fa {
    display: inline-block;
    height: 1em;
    overflow: visible;
    vertical-align: -0.125em;
}

/* Spacing Utilities */
.mr-1 { margin-right: 0.45rem !important; }
.mr-2 { margin-right: 0.65rem !important; }
.mr-3 { margin-right: 1rem !important; }
.mr-4 { margin-right: 1.5rem !important; }
.ml-1 { margin-left: 0.45rem !important; }
.ml-2 { margin-left: 0.65rem !important; }
.ml-3 { margin-left: 1rem !important; }
.ml-4 { margin-left: 1.5rem !important; }
.mb-1 { margin-bottom: 0.25rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mt-1 { margin-top: 0.25rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.gap-1 { gap: 0.25rem !important; }
.gap-2 { gap: 0.5rem !important; }
.gap-3 { gap: 1rem !important; }

h1, h2, h3, h4, h5, h6, .font-heading {
    font-family: 'Outfit', sans-serif;
    line-height: 1.2;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ──────────────────────────────────────────────
   TOP SUPPORT STRIP  ← FIXED FOR MOBILE
   ────────────────────────────────────────────── */
.top-support-strip {
    width: 100%;
    position: relative;
    z-index: 1001;
}

.top-support-strip > div {
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    padding: 7px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

.top-support-strip .support-left {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 12px;
    flex-shrink: 0;
}

.top-support-strip .support-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.top-support-strip .support-right a {
    font-size: 12px;
    white-space: nowrap;
}

/* Hide top support strip on phone / mobile screens (≤ 768px) */
@media (max-width: 768px) {
    .top-support-strip {
        display: none !important;
    }
}

/* ──────────────────────────────────────────────
   NAVBAR
   ────────────────────────────────────────────── */
.landing-nav {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 12px 0;
    transition: padding 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.nav-container {
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    position: relative;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    flex-shrink: 0;
    z-index: 2;
}

.brand-logo img {
    max-height: 40px;
    width: auto;
    object-fit: contain;
}

.brand-icon {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    box-shadow: 0 4px 14px rgba(13, 148, 136, 0.4);
    flex-shrink: 0;
}

/* Desktop nav links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
    flex: 1;
    justify-content: center;
}

.nav-link-item {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 14.5px;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.nav-link-item:hover,
.nav-link-item.active {
    color: var(--primary-light);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

/* Mobile hamburger toggle */
@media (min-width: 1025px) {
    .mobile-nav-toggle {
        display: none !important;
    }
    .mobile-only-actions {
        display: none !important;
    }
}

.mobile-nav-toggle {
    display: none;
    background: transparent;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-size: 18px;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
    z-index: 2;
}

.mobile-nav-toggle:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary-light);
}

/* Mobile-only actions inside the dropdown */
.mobile-only-actions {
    display: none;
    width: 100%;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ──────────────────────────────────────────────
   BUTTONS
   ────────────────────────────────────────────── */
.btn-landing-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    padding: 11px 24px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14.5px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(13, 148, 136, 0.4);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    white-space: nowrap;
}

.btn-landing-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(13, 148, 136, 0.6);
    color: #fff;
}

.btn-landing-outline {
    background: transparent;
    color: #fff;
    padding: 11px 24px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14.5px;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    white-space: nowrap;
}

.btn-landing-outline:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary-light);
    color: #fff;
}

/* ──────────────────────────────────────────────
   HERO SECTION
   ────────────────────────────────────────────── */
.hero-section {
    padding: clamp(48px, 7vw, 86px) 0 clamp(40px, 6vw, 70px);
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    top: 25%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(650px, 90vw);
    height: min(650px, 90vw);
    background: radial-gradient(circle, rgba(13, 148, 136, 0.28) 0%, rgba(0,0,0,0) 70%);
    pointer-events: none;
}

.hero-container {
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    padding: 0 24px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(13, 148, 136, 0.18);
    border: 1px solid rgba(45, 212, 191, 0.4);
    padding: 6px 18px;
    border-radius: 30px;
    color: var(--primary-light);
    font-size: clamp(12px, 1.8vw, 13.5px);
    font-weight: 600;
    margin-bottom: 20px;
    box-shadow: 0 0 20px rgba(13, 148, 136, 0.2);
}

.hero-title {
    font-size: clamp(28px, 5.5vw, 54px);
    font-weight: 800;
    line-height: 1.16;
    margin-bottom: 18px;
    max-width: 920px;
    margin-left: auto;
    margin-right: auto;
    background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 50%, #2dd4bf 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    word-break: break-word;
}

.hero-subtitle {
    font-size: clamp(14px, 2vw, 17.5px);
    color: #94a3b8;
    max-width: 720px;
    margin: 0 auto 32px;
    font-weight: 400;
    line-height: 1.65;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-bottom: 44px;
    flex-wrap: wrap;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 860px;
    margin: 0 auto;
    background: rgba(30, 41, 59, 0.55);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 22px 20px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.3);
}

.stat-item {
    text-align: center;
    padding: 0 8px;
}

.stat-item h3 {
    font-size: clamp(24px, 4.5vw, 34px);
    font-weight: 800;
    color: var(--primary-light);
    line-height: 1.1;
}

.stat-item p {
    color: #94a3b8;
    font-size: clamp(11.5px, 1.4vw, 13.5px);
    margin-top: 5px;
    line-height: 1.4;
}

/* ──────────────────────────────────────────────
   SECTION COMMONS
   ────────────────────────────────────────────── */
.section-padding {
    padding: clamp(50px, 8vw, 84px) 0;
}

.section-container {
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    padding: 0 24px;
}

.section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto clamp(32px, 5vw, 52px);
}

.section-tag {
    color: var(--primary-light);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 10px;
    display: inline-block;
    background: rgba(13, 148, 136, 0.12);
    border: 1px solid rgba(45, 212, 191, 0.25);
    padding: 4px 12px;
    border-radius: 20px;
}

.section-title {
    font-size: clamp(24px, 4.5vw, 38px);
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.2;
    color: #ffffff;
}

.section-desc {
    color: #94a3b8;
    font-size: clamp(14px, 1.8vw, 16px);
    line-height: 1.6;
}

/* ──────────────────────────────────────────────
   FEATURES GRID
   ────────────────────────────────────────────── */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--gradient-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 28px 24px;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(45, 212, 191, 0.4);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: rgba(13, 148, 136, 0.15);
    border: 1px solid rgba(45, 212, 191, 0.25);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--primary-light);
    margin-bottom: 18px;
    flex-shrink: 0;
}

.feature-card h3 {
    font-size: 19px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
    line-height: 1.3;
}

.feature-card p {
    color: #94a3b8;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

/* ──────────────────────────────────────────────
   PRICING GRID
   ────────────────────────────────────────────── */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
    max-width: 900px;
    margin: 0 auto;
    align-items: stretch;
}

.pricing-card {
    background: var(--gradient-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 22px;
    padding: 32px 28px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s ease;
}

.pricing-card.featured {
    border-color: rgba(45, 212, 191, 0.6);
    box-shadow: 0 16px 40px rgba(13, 148, 136, 0.25);
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.9) 0%, rgba(13, 148, 136, 0.15) 100%);
}

.featured-badge {
    position: absolute;
    top: -12px;
    right: 22px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.4);
}

.plan-name {
    font-size: 21px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 6px;
}

.plan-desc {
    color: #94a3b8;
    font-size: 13.5px;
    margin-bottom: 18px;
    line-height: 1.5;
}

.plan-price {
    margin-bottom: 20px;
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.plan-price .amount {
    font-size: 38px;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.plan-price .cycle {
    color: #94a3b8;
    font-size: 14.5px;
}

.plan-features {
    list-style: none;
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.plan-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #cbd5e1;
    font-size: 14px;
    line-height: 1.4;
}

.plan-features li i {
    color: #2dd4bf;
    flex-shrink: 0;
}

/* ──────────────────────────────────────────────
   DEMO SANDBOX
   ────────────────────────────────────────────── */
.demo-sandbox {
    background: rgba(30, 41, 59, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: clamp(28px, 4vw, 44px) clamp(20px, 4vw, 36px);
    text-align: center;
    box-shadow: 0 16px 36px rgba(0,0,0,0.3);
}

.demo-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 24px;
}

/* ──────────────────────────────────────────────
   FOOTER (global reset — scoped styles below)
   ────────────────────────────────────────────── */
.landing-footer {
    background: #0b1120;
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: clamp(40px, 7vw, 60px) 0 28px;
    color: #94a3b8;
    font-size: 14px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ──────────────────────────────────────────────
   FOOTER: APP DOWNLOADS CARD
   ────────────────────────────────────────────── */
.apps-download-card {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(13, 148, 136, 0.2) 100%);
    border: 1px solid rgba(20, 184, 166, 0.35);
    border-radius: 16px;
    padding: clamp(20px, 4vw, 32px);
    margin-bottom: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.apps-download-info {
    max-width: 520px;
    flex: 1 1 auto;
}

.apps-download-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(20, 184, 166, 0.2);
    color: #2dd4bf;
    border: 1px solid rgba(45, 212, 191, 0.35);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.apps-download-title {
    color: #ffffff;
    font-size: clamp(16px, 3vw, 22px);
    font-weight: 700;
    margin-bottom: 6px;
    font-family: 'Outfit', sans-serif;
    line-height: 1.3;
}

.apps-download-desc {
    color: #94a3b8;
    font-size: 13.5px;
    line-height: 1.5;
    margin: 0;
}

.apps-download-buttons {
    display: grid;
    grid-template-columns: repeat(2, minmax(180px, 1fr));
    align-items: center;
    gap: 12px;
    flex: 1 1 auto;
    max-width: 480px;
}

.app-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 10px 16px;
    text-decoration: none;
    color: #ffffff;
    transition: all 0.25s ease;
    min-width: 160px;
    min-height: 54px;
}

.app-btn:hover {
    border-color: #2dd4bf;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
    color: #ffffff;
}

.app-btn-sub {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #94a3b8;
    line-height: 1.2;
}

.app-btn-title {
    font-size: 13.5px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.3;
}

.app-btn-ver {
    font-size: 10px;
    font-weight: 600;
    line-height: 1.2;
}

/* ──────────────────────────────────────────────
   FOOTER: GRID COLUMNS
   ────────────────────────────────────────────── */
.footer-main-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.3fr 1.3fr;
    gap: 36px;
    padding-bottom: 36px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-col-title {
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    margin-bottom: 14px;
    font-family: 'Outfit', sans-serif;
}

.footer-link-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.footer-link {
    color: #94a3b8;
    text-decoration: none;
    font-size: 13.5px;
    transition: color 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    line-height: 1.4;
}

.footer-link:hover {
    color: #2dd4bf;
}

.footer-social-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    text-decoration: none;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.footer-social-btn:hover {
    border-color: #2dd4bf;
    color: #2dd4bf;
    transform: translateY(-2px);
}

.footer-bottom-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 20px;
    font-size: 12.5px;
}

/* ──────────────────────────────────────────────
   CONTAINER PADDING RESPONSIVENESS
   ────────────────────────────────────────────── */
.hero-container,
.section-container,
.nav-container,
.footer-container {
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .hero-container,
    .section-container,
    .nav-container,
    .footer-container {
        padding: 0 18px;
    }
}

@media (max-width: 480px) {
    .hero-container,
    .section-container,
    .nav-container,
    .footer-container {
        padding: 0 14px;
    }
}

@media (max-width: 360px) {
    .hero-container,
    .section-container,
    .nav-container,
    .footer-container {
        padding: 0 10px;
    }
}

/* ──────────────────────────────────────────────
   RESPONSIVE: ≤ 1024px  (Tablet / Small Desktop)
   ────────────────────────────────────────────── */
@media (max-width: 1024px) {
    /* Show hamburger, hide desktop nav items */
    .mobile-nav-toggle {
        display: flex !important;
    }

    .nav-actions {
        display: none !important;
    }

    /* Mobile-only actions shown inside dropdown */
    .mobile-only-actions {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
        width: 100% !important;
        margin-top: 14px !important;
        padding-top: 14px !important;
        border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    }

    /* Nav links become a dropdown drawer */
    .nav-links {
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        right: 0 !important;
        background: rgba(12, 20, 40, 0.98) !important;
        backdrop-filter: blur(20px) !important;
        -webkit-backdrop-filter: blur(20px) !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
        flex-direction: column !important;
        align-items: stretch !important;
        padding: 18px 20px 24px !important;
        gap: 4px !important;
        display: none;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6) !important;
        max-height: calc(100vh - 75px) !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

    .nav-links li {
        width: 100% !important;
    }

    .nav-link-item {
        display: block !important;
        padding: 11px 8px !important;
        border-bottom: 1px solid rgba(255,255,255,0.06) !important;
        font-size: 15px !important;
    }

    .nav-links.active {
        display: flex !important;
        animation: fadeInDown 0.25s ease forwards !important;
    }

    @keyframes fadeInDown {
        from { opacity: 0; transform: translateY(-8px); }
        to   { opacity: 1; transform: translateY(0); }
    }

    /* Footer grid → 2 columns */
    .footer-main-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 28px !important;
    }

    .apps-download-card {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
        padding: 24px 20px;
    }

    .apps-download-info {
        width: 100%;
        max-width: 100%;
        flex: none;
    }

    .apps-download-buttons {
        width: 100%;
        max-width: 100%;
        flex: none;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

/* ──────────────────────────────────────────────
   RESPONSIVE: ≤ 768px  (Mobile Large / Phablet)
   ────────────────────────────────────────────── */
@media (max-width: 768px) {

    /* Top support strip hidden on phone */
    .top-support-strip {
        display: none !important;
    }

    /* Hero stats: 2 columns on tablet/large mobile */
    .hero-stats {
        grid-template-columns: repeat(2, 1fr) !important;
        padding: 18px 16px !important;
        gap: 14px !important;
    }

    .stat-item {
        padding: 8px 4px !important;
    }

    /* Hero actions: full-width buttons */
    .hero-actions {
        flex-direction: column !important;
        align-items: center !important;
        gap: 12px !important;
        width: 100% !important;
        max-width: 360px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .hero-actions .btn-landing-primary,
    .hero-actions .btn-landing-outline {
        width: 100% !important;
        max-width: 100% !important;
        justify-content: center !important;
    }

    .features-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    .pricing-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    /* Demo buttons: full-width */
    .demo-buttons {
        flex-direction: column !important;
        align-items: center !important;
        width: 100% !important;
    }

    .demo-buttons .btn-landing-primary,
    .demo-buttons .btn-landing-outline {
        width: 100% !important;
        max-width: 360px !important;
        justify-content: center !important;
    }

    /* App download card on mobile */
    .apps-download-card {
        padding: 20px 16px !important;
        gap: 16px !important;
        margin-bottom: 28px !important;
    }

    .apps-download-info {
        width: 100% !important;
        max-width: 100% !important;
        flex: none !important;
        text-align: center !important;
    }

    .apps-download-title {
        font-size: 18px !important;
        text-align: center !important;
    }

    .apps-download-desc {
        font-size: 13px !important;
        text-align: center !important;
        margin-bottom: 0 !important;
    }

    .apps-download-badge {
        margin: 0 auto 10px !important;
        display: table !important;
    }

    /* App download buttons → full width */
    .apps-download-buttons {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
        width: 100% !important;
    }

    .app-btn {
        width: 100% !important;
        min-width: 0 !important;
    }
}

/* ──────────────────────────────────────────────
   RESPONSIVE: ≤ 640px  (Standard Mobile)
   ────────────────────────────────────────────── */
@media (max-width: 640px) {

    /* All multi-column cards collapse cleanly to 1 column */
    [style*="minmax(320px"],
    [style*="minmax(300px"],
    [style*="minmax(280px"],
    [style*="minmax(260px"],
    [style*="minmax(240px"] {
        grid-template-columns: 1fr !important;
        gap: 18px !important;
    }

    /* Footer main grid collapses to 1 column */
    .footer-main-grid {
        grid-template-columns: 1fr !important;
        gap: 28px !important;
    }

    /* Footer bottom bar stacks and centers */
    .footer-bottom-bar {
        flex-direction: column !important;
        text-align: center !important;
        justify-content: center !important;
        gap: 14px !important;
    }

    .footer-bottom-badges {
        justify-content: center !important;
        width: 100% !important;
    }

    /* Contact form input fields */
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    textarea,
    select {
        font-size: 16px !important; /* Prevents auto-zoom in iOS Safari */
    }

    /* Hero section top padding */
    .hero-section {
        padding-top: clamp(38px, 8vw, 64px) !important;
        padding-bottom: clamp(36px, 6vw, 56px) !important;
    }

    .section-padding {
        padding: 44px 0 !important;
    }
}

/* ──────────────────────────────────────────────
   RESPONSIVE: ≤ 480px  (Small Mobile Phones)
   ────────────────────────────────────────────── */
@media (max-width: 480px) {

    /* Top support strip already hidden on phone */

    /* Brand logo compact */
    .brand-logo {
        font-size: 17px !important;
    }

    .brand-icon {
        width: 32px !important;
        height: 32px !important;
        font-size: 15px !important;
    }

    .brand-logo img {
        width: 32px !important;
        height: 32px !important;
    }

    /* Card & demo sandbox padding */
    .feature-card,
    .pricing-card,
    .demo-sandbox {
        padding: 20px 16px !important;
    }

    /* Stats → single column on small phones */
    .hero-stats {
        grid-template-columns: 1fr !important;
        padding: 16px 14px !important;
        gap: 8px !important;
    }

    .stat-item {
        padding: 8px 0 !important;
        border-bottom: 1px solid rgba(255,255,255,0.06) !important;
    }

    .stat-item:last-child {
        border-bottom: none !important;
    }

    /* Pricing featured badge positioning */
    .featured-badge {
        right: 14px !important;
        font-size: 10px !important;
        padding: 3px 10px !important;
    }

    /* Apps download buttons stack */
    .apps-download-buttons {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        gap: 10px !important;
    }

    .app-btn {
        width: 100% !important;
        box-sizing: border-box !important;
    }
}

/* ──────────────────────────────────────────────
   RESPONSIVE: ≤ 360px  (Ultra-compact Phones e.g. iPhone SE)
   ────────────────────────────────────────────── */
@media (max-width: 360px) {
    .hero-title {
        font-size: 24px !important;
    }

    .hero-subtitle {
        font-size: 13px !important;
    }

    .btn-landing-primary,
    .btn-landing-outline {
        font-size: 13px !important;
        padding: 10px 16px !important;
    }

    .section-title {
        font-size: 20px !important;
    }

    .brand-name {
        font-size: 18px !important;
    }
}

/* ──────────────────────────────────────────────
   TABLE & CODE BLOCK HORIZONTAL SCROLL HELPERS
   ────────────────────────────────────────────── */
.table-responsive-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(15, 23, 42, 0.6);
    margin: 16px 0;
}

.table-responsive-wrapper table {
    width: 100%;
    min-width: 580px;
    border-collapse: collapse;
}

.code-tree-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: pre;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: clamp(11px, 2.5vw, 13px);
    line-height: 1.8;
}

/* ──────────────────────────────────────────────
   UTILITIES & GLOBAL OVERFLOW PREVENTION
   ────────────────────────────────────────────── */
html, body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
    width: 100% !important;
}

*, *::before, *::after {
    box-sizing: border-box;
}

img, svg:not(.svg-inline--fa), video, canvas, audio, iframe, embed, object {
    max-width: 100%;
    height: auto;
}

.mt-5 {
    margin-top: 2rem;
}

.text-center {
    text-align: center;
}

[id] {
    scroll-margin-top: 80px;
}

a, button {
    -webkit-tap-highlight-color: transparent;
}

h1, h2, h3, h4, h5, h6 {
    word-break: break-word;
    overflow-wrap: break-word;
}

p, li, span, a {
    overflow-wrap: break-word;
}
