/* ═══════════════════════════════════════════════════════
   TECHSOLUTION – tablet-fix.css (v2 – light mode)
   Tambahkan di index.html SETELAH mobile-fix.css
   Target: iPad & tablet (481px – 1024px)
   ═══════════════════════════════════════════════════════ */

@media (min-width: 481px) and (max-width: 1024px) {

    /* ─── CONTAINER ─────────────────────────────────── */
    .container {
        padding: 0 48px;
        max-width: 100%;
    }

    /* ─── NAVBAR ────────────────────────────────────── */
    :root { --nav-h: 68px; }
    .nav-inner { padding: 0; }

    /* ─── HERO ──────────────────────────────────────── */
    .hero-section {
        min-height: 100svh;
        align-items: flex-start;
    }

    .hero-content {
        padding: 72px 0 100px;
        width: 100%;
        max-width: 680px;
    }

    .hero-meta { margin-bottom: 24px; }
    .meta-chip {
        font-size: .68rem;
        letter-spacing: .1em;
    }

    .hero-eyebrow {
        font-size: .85rem;
        letter-spacing: .07em;
        margin-bottom: 16px;
    }

    .hero-title {
        font-size: clamp(2.8rem, 6.5vw, 4rem);
        line-height: 1.0;
        letter-spacing: -.02em;
        margin-bottom: 24px;
        max-width: 620px;
    }

    .hero-sub br { display: none; }
    .hero-sub {
        font-size: 1rem;
        max-width: 520px;
        margin-bottom: 40px;
        line-height: 1.72;
    }

    /* CTA buttons: horizontal, tidak full-width */
    .hero-actions {
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        gap: 14px;
        margin-bottom: 56px;
        width: auto;
    }
    .hero-actions .btn-primary,
    .hero-actions .btn-ghost {
        width: auto;
        white-space: nowrap;
    }
    .hero-actions .btn-primary {
        font-size: 1rem;
        padding: 15px 28px;
    }
    .hero-actions .btn-ghost {
        font-size: .95rem;
        padding: 14px 26px;
        /* LIGHT: reset warna */
        color: var(--text2);
        border-color: var(--line);
        background: transparent;
    }

    /* Stats: satu baris horizontal, LIGHT */
    .hero-stats {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        gap: 0;
        width: auto;
        max-width: 100%;
        /* LIGHT: putih */
        background: #fff;
        border: 1px solid var(--line);
        border-radius: 14px;
        box-shadow: 0 4px 24px rgba(26,80,200,.07);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        padding: 6px 0;
        grid-template-columns: unset;
    }

    .hstat-divider {
        display: flex !important;
        width: 1px;
        height: 44px;
        background: var(--line);
        align-self: center;
        flex-shrink: 0;
    }

    .hstat {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 14px 28px;
        /* LIGHT: reset — tidak ada background card gelap */
        background: transparent;
        border: none;
        border-radius: 0;
        backdrop-filter: none;
        box-shadow: none;
        width: auto;
        height: auto;
    }

    .hstat-num {
        font-family: var(--fd);
        font-size: 1.6rem;
        font-weight: 700;
        line-height: 1;
        /* LIGHT: teks gelap */
        color: var(--text);
        margin-bottom: 5px;
        letter-spacing: -.01em;
        background: none;
        -webkit-text-fill-color: var(--text);
    }
    /* Gradient hanya di stat pertama */
    .hstat:first-of-type .hstat-num {
        background: linear-gradient(90deg, var(--blue-l) 0%, var(--cyan) 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

    .hstat-label {
        font-size: .7rem;
        color: var(--text3);
        letter-spacing: .02em;
        line-height: 1.3;
        max-width: 110px;
        text-align: left;
    }

    /* Terminal */
    .hero-terminal {
        margin-top: 56px;
        max-width: 580px;
        width: 100%;
    }
    .terminal-body {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: rgba(26,111,245,.3) transparent;
    }
    .tline { font-size: .78rem; }

    /* ─── SERVICES ──────────────────────────────────── */
    .services-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
    .services-grid .svc-card:last-child {
        grid-column: 1 / -1;
        max-width: 50%;
        margin: 0 auto;
    }

    /* ─── WHY US (dark section — tidak di-override warna) ── */
    .why-section { padding: 90px 0; }
    .why-inner {
        grid-template-columns: 1fr 1fr;
        gap: 52px;
        align-items: start;
    }
    .why-right {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    .bigstat-card { padding: 22px 16px; }
    .bigstat-num  { font-size: clamp(1.6rem, 3.5vw, 2.2rem); }

    /* ─── PRICING ───────────────────────────────────── */
    .pricing-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
        max-width: 100%;
    }
    .pricing-grid .price-card:last-child {
        grid-column: 1 / -1;
        max-width: 50%;
        margin: 0 auto;
    }
    .price-card-pop {
        transform: none;
        border-color: rgba(26,111,245,.25);
        box-shadow: 0 8px 40px rgba(26,80,200,.12);
    }
    .price-card-pop:hover { transform: translateY(-4px); }

    /* ─── CLIENTS ───────────────────────────────────── */
    .client-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
    }

    /* ─── TESTIMONIALS ──────────────────────────────── */
    .testi-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        max-width: 100%;
    }
    .testi-img-wrap {
        aspect-ratio: 3/4;
        max-height: 380px;
    }

    /* ─── ABOUT ─────────────────────────────────────── */
    .vm-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    /* ─── FOOTER (dark section — tidak di-override warna) ── */
    .footer-sect { padding: 80px 0 36px; }
    .footer-cta .btn-primary {
        font-size: 1.05rem;
        padding: 16px 36px;
    }
    .footer-bottom {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    /* ─── WA FLOAT ──────────────────────────────────── */
    .float-wa {
        bottom: 28px;
        right: 24px;
        width: 54px;
        height: 54px;
    }
    .wa-tip { display: none; }

    /* ─── SECTION GENERAL ───────────────────────────── */
    .section-pad { padding: 90px 0; }
    .sec-header  { margin-bottom: 56px; }
    .sec-title   { font-size: clamp(2rem, 5vw, 3.2rem); }
}

/* ═══════════════════════════════════════════════════
   Tablet portrait only (481–768): hamburger + fix
   ═══════════════════════════════════════════════════ */
@media (min-width: 481px) and (max-width: 768px) {

    .nav-links, .nav-cta { display: none; }
    .hamburger { display: flex; }

    .services-grid { grid-template-columns: 1fr; }
    .services-grid .svc-card:last-child {
        grid-column: unset;
        max-width: 100%;
        margin: 0;
    }

    .pricing-grid { grid-template-columns: 1fr; max-width: 440px; }
    .pricing-grid .price-card:last-child {
        grid-column: unset;
        max-width: 100%;
        margin: 0;
    }

    .client-grid { grid-template-columns: repeat(3, 1fr); }

    .testi-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
}

/* ═══════════════════════════════════════════════════
   Tablet landscape (769–1024): nav links muncul
   ═══════════════════════════════════════════════════ */
@media (min-width: 769px) and (max-width: 1024px) {

    .nav-links { display: flex; gap: 2px; }
    .nav-cta   { display: inline-flex; }
    .hamburger { display: none; }

    .nav-link { font-size: .85rem; padding: 7px 10px; }
    .nav-cta  { font-size: .82rem; padding: 7px 14px; }

    .hero-content { max-width: 720px; }

    .services-grid { grid-template-columns: repeat(3, 1fr); }
    .services-grid .svc-card:last-child {
        grid-column: unset;
        max-width: 100%;
        margin: 0;
    }

    .pricing-grid { grid-template-columns: repeat(3, 1fr); max-width: 100%; }
    .pricing-grid .price-card:last-child {
        grid-column: unset;
        max-width: 100%;
        margin: 0;
    }

    .client-grid { grid-template-columns: repeat(6, 1fr); gap: 10px; }

    .testi-grid { grid-template-columns: 1fr 1fr; }
}

/* ═══════════════════════════════════════════════════
   Safe area support
   ═══════════════════════════════════════════════════ */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    @media (min-width: 481px) and (max-width: 1024px) {
        .float-wa {
            bottom: calc(28px + env(safe-area-inset-bottom));
        }
    }
}