/* ═══════════════════════════════════════════════════════
   TECHSOLUTION – mobile-fix.css  (v5 – light mode)
   Link SETELAH style.css, SEBELUM tablet-fix.css
   ═══════════════════════════════════════════════════════ */

html, body {
    overflow-x: hidden;
    max-width: 100%;
}

/* ═══════════════════════════════════════════════════
   SEMUA HP: 0 – 768px
   ═══════════════════════════════════════════════════ */
@media (max-width: 768px) {

    .container {
        padding-left: 20px;
        padding-right: 20px;
    }

    /* Navbar */
    :root        { --nav-h: 64px; }
    .nav-inner   { padding: 0; }
    .nav-right   { gap: 10px; }
    .hamburger   { display: flex; }
    .nav-links,
    .nav-cta     { display: none; }

    /* Hero section */
    .hero-section {
        min-height: 100svh;
        align-items: flex-start;
    }
    .hero-content {
        padding-top: 44px;
        padding-bottom: 72px;
        width: 100%;
    }
    .hero-meta   { margin-bottom: 18px; }
    .meta-chip   { font-size: .62rem; letter-spacing: .08em; padding: 6px 12px; }
    .hero-eyebrow{ font-size: .76rem; letter-spacing: .06em; margin-bottom: 12px; }
    .hero-title  {
        font-size: clamp(2.2rem, 10vw, 3rem);
        line-height: 1.0;
        letter-spacing: -.02em;
        max-width: 100%;
        margin-bottom: 18px;
        word-break: keep-all;
    }
    .hero-sub br { display: none; }
    .hero-sub    {
        font-size: .95rem;
        max-width: 100%;
        margin-bottom: 28px;
        line-height: 1.7;
    }

    /* CTA Buttons */
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        margin-bottom: 32px;
        width: 100%;
    }
    .hero-actions .btn-primary {
        width: 100%;
        justify-content: center;
        padding: 15px 20px;
        font-size: .98rem;
        box-sizing: border-box;
    }
    .hero-actions .btn-ghost {
        width: 100%;
        justify-content: center;
        padding: 13px 20px;
        font-size: .9rem;
        /* LIGHT: override ke border biru muda */
        color: var(--text2);
        border-color: var(--line);
        background: transparent;
        box-sizing: border-box;
    }

    /* Stats — grid 2×2 card, LIGHT */
    .hero-stats {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        width: 100%;
        background: transparent;
        border: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        padding: 0;
        margin-bottom: 0;
        box-sizing: border-box;
        box-shadow: none;
    }
    .hstat-divider { display: none !important; }
    .hstat {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        padding: 14px 14px 12px;
        /* LIGHT: putih dengan shadow */
        background: #fff;
        border: 1px solid var(--line);
        border-radius: 12px;
        box-shadow: 0 2px 12px rgba(26,80,200,.06);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        box-sizing: border-box;
        min-width: 0;
    }
    .hstat:first-of-type {
        border-color: rgba(26,111,245,.18);
    }
    .hstat-num {
        font-family: var(--fd);
        font-size: 1.6rem;
        font-weight: 700;
        line-height: 1;
        /* LIGHT: teks gelap */
        color: var(--text);
        margin-bottom: 0;
        letter-spacing: -.01em;
        white-space: nowrap;
        background: none;
        -webkit-text-fill-color: var(--text);
    }
    .hstat:first-of-type .hstat-num {
        background: linear-gradient(90deg, var(--blue-l), var(--cyan));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
    .hstat-label {
        font-size: .64rem;
        /* LIGHT: abu-abu gelap */
        color: var(--text3);
        letter-spacing: .01em;
        line-height: 1.35;
        max-width: 100%;
    }

    /* Terminal (tetap dark, ini memang code editor) */
    .hero-terminal {
        margin-top: 36px;
        max-width: 100%;
        border-radius: var(--r);
    }
    .terminal-body {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding: 14px 16px 16px;
        scrollbar-width: thin;
        scrollbar-color: rgba(26,111,245,.3) transparent;
    }
    .terminal-body::-webkit-scrollbar       { height: 2px; }
    .terminal-body::-webkit-scrollbar-thumb {
        background: rgba(26,111,245,.4);
        border-radius: 10px;
    }
    .tline      { font-size: .72rem; }
    .scroll-cue { display: none; }

    /* Sections */
    .section-pad { padding: 64px 0; }
    .sec-header  { margin-bottom: 40px; }
    .sec-title   { font-size: clamp(1.85rem, 8vw, 2.6rem); }
    .sec-sub     { font-size: .93rem; max-width: 100%; }

    /* Services */
    .services-grid { grid-template-columns: 1fr; gap: 12px; }
    .svc-card-gfx  { height: 96px; }
    .svc-card-body { padding: 18px 18px 20px; }

    /* Why Us — dark section, mobile-fix TIDAK override warna disini */
    .why-section         { padding: 64px 0; }
    .why-inner           { grid-template-columns: 1fr; gap: 36px; }
    .why-left .sec-title { font-size: clamp(1.85rem, 8vw, 2.6rem); }
    .why-right           { grid-template-columns: 1fr 1fr; gap: 10px; }
    .bigstat-card        { padding: 16px 12px; }
    .bigstat-num         { font-size: clamp(1.35rem, 5.5vw, 1.8rem); }
    .bigstat-label       { font-size: .72rem; }
    .cmp-label           { width: 80px; font-size: .62rem; }

    /* Pricing */
    .pricing-grid    { grid-template-columns: 1fr; max-width: 100%; gap: 14px; }
    .price-card-pop  {
        transform: none;
        border-color: rgba(26,111,245,.3);
        box-shadow: 0 0 32px rgba(26,80,200,.10);
    }
    .price-card-pop:hover { transform: translateY(-4px); }
    .price-card      { padding: 24px 18px; }
    .price-num       { font-size: 2rem; }
    .promo-band      { font-size: .78rem; padding: 8px 14px; }

    /* Clients */
    .client-grid      { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .client-logo-slot { padding: 10px; }

    /* Testimonials */
    .testi-grid     { grid-template-columns: 1fr; max-width: 100%; margin: 0; }
    .testi-img-wrap { aspect-ratio: 3/4; max-height: 300px; }
    .testi-body     { padding: 18px; }
    .testi-quote    { font-size: .87rem; }

    /* About */
    .vm-grid { grid-template-columns: 1fr; gap: 12px; }
    .vm-card { padding: 24px 20px; }

    /* Footer — dark section, tidak di-override */
    .footer-sect  { padding: 60px 0 28px; }
    .footer-cta   { margin-bottom: 48px; }
    .footer-bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 14px;
    }
    .footer-contact { align-items: center; }
    .footer-cta .btn-primary {
        display: flex;
        width: 100%;
        justify-content: center;
        margin-top: 28px;
    }

    /* WA Float */
    .float-wa {
        bottom: 18px;
        right: 14px;
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
    .wa-tip { display: none; }

    /* Mobile menu — LIGHT */
    .mobile-menu   { padding: 32px 20px; overflow-y: auto; }
    .mobile-menu a { font-size: 1.3rem; padding: 12px 0; }

    /* Overflow guard */
    section, footer { overflow-x: hidden; }
}

/* ═══════════════════════════════════════════════════
   HP KECIL: 0 – 400px
   ═══════════════════════════════════════════════════ */
@media (max-width: 400px) {
    .container    { padding-left: 16px; padding-right: 16px; }
    .hero-title   { font-size: clamp(2rem, 11vw, 2.6rem); }
    .hstat        { padding: 12px 10px 10px; }
    .hstat-num    { font-size: 1.4rem; }
    .hstat-label  { font-size: .6rem; }
    .client-grid  { grid-template-columns: repeat(2, 1fr); }
}

/* ═══════════════════════════════════════════════════
   SAFE AREA — notch / Dynamic Island
   ═══════════════════════════════════════════════════ */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .float-wa {
        bottom: calc(18px + env(safe-area-inset-bottom));
    }
    .mobile-menu {
        padding-bottom: calc(32px + env(safe-area-inset-bottom));
    }
}

/* Instagram WebView fix */
@media (max-width: 768px) {
  .mobile-menu { 
    display: none !important; 
  }
  .mobile-menu.open { 
    display: flex !important; 
  }
}