/* ==========================================================================
   NISCALA EKSOTIKA — RESPONSIVE STYLESHEET
   Project : Single Landing Page
   Domain  : https://niscala.abpeworks.com
   Theme   : White-dominant with navy contrast anchors

   Breakpoint strategy:
   - Base styles            : Desktop / large tablet
   - 1280px and below       : Compact desktop
   - 1100px and below       : Tablet landscape
   - 900px and below        : Tablet portrait / mobile navigation
   - 768px and below        : Mobile
   - 640px and below        : Small mobile
   - 480px and below        : Extra small mobile
   ========================================================================== */


/* ==========================================================================
   01. LARGE DESKTOP
   ========================================================================== */

@media (min-width: 1441px) {
  :root {
    --container-width: 1240px;
    --container-wide: 1420px;
  }

  .hero__container {
    min-height: 100svh;
  }

  .hero__visual {
    min-height: 680px;
  }

  .portfolio__grid {
    grid-auto-rows: 310px;
  }
}


/* ==========================================================================
   02. COMPACT DESKTOP — 1280px AND BELOW
   ========================================================================== */

@media (max-width: 1280px) {
  :root {
    --container-width: 1120px;
    --container-wide: 1220px;
    --space-28: 6.25rem;
    --space-32: 7rem;
  }

  .site-header__inner,
  .hero__container {
    width: min(calc(100% - 40px), var(--container-wide));
  }

  .container,
  .container--wide {
    width: min(calc(100% - 40px), var(--container-width));
  }

  .hero__container {
    grid-template-columns: minmax(0, 1fr) minmax(390px, 0.9fr);
    gap: clamp(2.5rem, 5vw, 5rem);
  }

  .hero__visual {
    min-height: 580px;
  }

  .services__grid {
    gap: var(--space-5);
  }

  .service-card {
    min-height: 290px;
    padding: var(--space-6);
  }

  .advantages__layout {
    gap: clamp(3.5rem, 6vw, 6rem);
  }

  .portfolio__grid {
    grid-auto-rows: 260px;
  }

  .contact-cta__shell {
    padding: clamp(2.75rem, 5.5vw, 5rem);
  }
}


/* ==========================================================================
   03. TABLET LANDSCAPE — 1100px AND BELOW
   ========================================================================== */

@media (max-width: 1100px) {
  :root {
    --header-height: 78px;
    --space-24: 5rem;
    --space-28: 5.5rem;
  }

  .site-nav {
    gap: var(--space-5);
  }

  .site-nav__list {
    gap: var(--space-5);
  }

  .site-header__actions .btn {
    padding-inline: 1.1rem;
  }

  .hero__container {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.85fr);
    gap: 3rem;
  }

  .hero__visual {
    min-height: 540px;
  }

  .hero__floating-card {
    max-width: 190px;
    padding: var(--space-4);
  }

  .hero__floating-card--top {
    left: -2%;
  }

  .hero__floating-card--bottom {
    right: -1%;
  }

  .services__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .advantages__layout {
    grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.1fr);
    gap: 3.75rem;
  }

  .advantages__visual {
    min-height: 570px;
  }

  .portfolio__grid {
    grid-template-columns: 1.1fr 0.9fr;
  }

  .portfolio-card:nth-child(4) {
    grid-column: 1 / -1;
  }

  .contact-cta__shell {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.78fr);
    gap: var(--space-8);
  }

  .site-footer__main {
    grid-template-columns: 1.3fr repeat(2, minmax(160px, 0.7fr));
  }

  .site-footer__column:last-child {
    grid-column: 2 / -1;
  }
}


/* ==========================================================================
   04. TABLET PORTRAIT / MOBILE NAVIGATION — 900px AND BELOW
   ========================================================================== */

@media (max-width: 900px) {
  :root {
    --header-height: 74px;
    --space-20: 4.5rem;
    --space-24: 4.75rem;
    --space-28: 5rem;
  }

  html {
    scroll-padding-top: calc(var(--header-height) + var(--space-3));
  }

  .container,
  .container--wide,
  .site-header__inner,
  .hero__container {
    width: min(calc(100% - 36px), var(--container-width));
  }

  .site-header,
  .site-header.is-scrolled {
    height: var(--header-height);
  }

  .site-brand__logo,
  .site-header.is-scrolled .site-brand__logo {
    height: 42px;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-height) 0 auto;
    display: block;
    max-height: calc(100svh - var(--header-height));
    padding: var(--space-5) 18px var(--space-8);
    overflow-y: auto;
    color: var(--color-heading);
    border-top: 1px solid var(--color-border);
    background: rgba(250, 250, 248, 0.98);
    box-shadow: 0 24px 60px rgba(8, 27, 58, 0.14);
    backdrop-filter: blur(20px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-18px);
    transition:
      opacity var(--transition-base),
      visibility var(--transition-base),
      transform var(--transition-base);
  }

  .site-header.nav-open .site-nav {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .site-nav__list {
    display: grid;
    gap: 0;
  }

  .site-nav__item {
    border-bottom: 1px solid var(--color-border);
  }

  .site-nav__link {
    display: flex;
    min-height: 58px;
    align-items: center;
    justify-content: space-between;
    padding: 0;
    font-size: var(--font-size-base);
    opacity: 1;
  }

  .site-nav__link::after {
    display: none;
  }

  .site-nav__link::before {
    order: 2;
    color: var(--color-primary);
    font-size: 1.1rem;
    content: "↗";
  }

  .site-nav .btn {
    width: 100%;
    margin-top: var(--space-5);
  }

  .site-header__actions>.btn {
    display: none;
  }

  .nav-toggle {
    display: grid;
  }

  .site-header.nav-open .nav-toggle__line {
    background: transparent;
  }

  .site-header.nav-open .nav-toggle__line::before {
    top: 0;
    transform: rotate(45deg);
  }

  .site-header.nav-open .nav-toggle__line::after {
    top: 0;
    transform: rotate(-45deg);
  }

  .hero {
    min-height: auto;
  }

  .hero__container {
    grid-template-columns: 1fr;
    gap: var(--space-10);
    min-height: 100svh;
    padding-top: calc(var(--header-height) + var(--space-14));
    padding-bottom: var(--space-20);
  }

  .hero__content {
    max-width: 760px;
  }

  .hero__title {
    max-width: 11ch;
  }

  .hero__visual {
    min-height: 560px;
  }

  .hero__visual-frame {
    inset: 0 7% 0 7%;
  }

  .hero__product {
    right: 12%;
    width: min(58%, 410px);
  }

  .hero__floating-card--top {
    top: 10%;
    left: 2%;
  }

  .hero__floating-card--bottom {
    right: 2%;
    bottom: 10%;
  }

  .hero__scroll {
    display: none;
  }

  .section__header {
    max-width: 680px;
  }

  .advantages__layout {
    grid-template-columns: 1fr;
    gap: var(--space-14);
  }

  .advantages__visual {
    min-height: 600px;
    order: 2;
  }

  .advantages__content {
    order: 1;
  }

  .advantages__image-shell {
    inset: 0 10% 6% 0;
  }

  .advantages__stat {
    width: min(48%, 290px);
  }

  .portfolio__header {
    align-items: flex-start;
    flex-direction: column;
  }

  .portfolio__controls {
    align-self: flex-end;
  }

  .portfolio__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 260px;
  }

  .portfolio-card--featured {
    grid-column: 1 / -1;
    grid-row: auto;
    min-height: 420px;
  }

  .portfolio-card:nth-child(4) {
    grid-column: auto;
  }

  .contact-cta__shell {
    grid-template-columns: 1fr;
  }

  .contact-cta__title {
    max-width: 14ch;
  }

  .contact-cta__info {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-footer__main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-footer__brand {
    grid-column: 1 / -1;
  }

  .site-footer__column:last-child {
    grid-column: auto;
  }

  [data-parallax] {
    transform: translate3d(calc(var(--parallax-x) * 0.55),
        calc(var(--parallax-y) * 0.55),
        0);
  }
}


/* ==========================================================================
   05. MOBILE — 768px AND BELOW
   ========================================================================== */

@media (max-width: 768px) {
  :root {
    --font-size-lg: 1.0625rem;
    --space-16: 3.5rem;
    --space-20: 4rem;
    --space-24: 4.25rem;
    --space-28: 4.5rem;
    --radius-xl: 1.5rem;
    --radius-2xl: 2rem;
  }

  .container,
  .container--wide,
  .site-header__inner,
  .hero__container {
    width: min(calc(100% - 32px), var(--container-width));
  }

  .section {
    padding-block: var(--space-20);
  }

  .section--compact {
    padding-block: var(--space-16);
  }

  .section__header {
    margin-bottom: var(--space-10);
  }

  .section__eyebrow {
    margin-bottom: var(--space-4);
  }

  .section__title {
    max-width: 16ch;
  }

  .section__description {
    font-size: var(--font-size-base);
  }

  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: 1fr;
  }

  .btn {
    min-height: 50px;
  }

  .btn--lg {
    min-height: 56px;
    padding-inline: 1.4rem;
  }

  .hero__container {
    gap: var(--space-8);
    min-height: auto;
    padding-top: calc(var(--header-height) + var(--space-14));
    padding-bottom: var(--space-14);
  }

  .hero__badge {
    margin-bottom: var(--space-5);
  }

  .hero__title {
    max-width: 12ch;
    font-size: clamp(3.2rem, 14vw, 5.25rem);
  }

  .hero__description {
    margin-top: var(--space-5);
    font-size: var(--font-size-base);
    line-height: 1.75;
  }

  .hero__actions {
    margin-top: var(--space-6);
  }

  .hero__trust {
    gap: var(--space-3) var(--space-5);
    margin-top: var(--space-8);
  }

  .hero__visual {
    min-height: 500px;
  }

  .hero__visual-frame {
    inset: 0 4%;
    border-radius: 38% 38% var(--radius-xl) var(--radius-xl);
  }

  .hero__product {
    right: 8%;
    bottom: 1%;
    width: min(68%, 390px);
  }

  .hero__floating-card {
    max-width: 175px;
  }

  .hero__floating-card--top {
    top: 8%;
    left: 0;
  }

  .hero__floating-card--bottom {
    right: 0;
    bottom: 8%;
  }

  .services__grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: auto;
    padding: var(--space-6);
  }

  .advantages__visual {
    min-height: 520px;
  }

  .advantages__image-shell {
    inset: 0 8% 7% 0;
  }

  .advantages__stat {
    width: min(62%, 270px);
    padding: var(--space-6);
  }

  .advantages__stat-value {
    font-size: 3.35rem;
  }

  .advantages__list {
    grid-template-columns: 1fr;
  }

  .portfolio__grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }

  .portfolio-card,
  .portfolio-card--featured {
    grid-column: auto;
    min-height: 330px;
  }

  .portfolio-card--featured {
    min-height: 420px;
  }

  .portfolio__controls {
    align-self: flex-start;
  }

  .contact-cta__shell {
    gap: var(--space-8);
    padding: var(--space-10) var(--space-6);
  }

  .contact-cta__description {
    font-size: var(--font-size-base);
  }

  .contact-cta__info {
    grid-template-columns: 1fr;
  }

  .contact-card {
    padding: var(--space-4);
  }

  .site-footer__main {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-10) var(--space-6);
    padding-block: var(--space-16);
  }

  .site-footer__brand {
    grid-column: 1 / -1;
  }

  .site-footer__bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .whatsapp-float {
    right: var(--space-4);
    bottom: var(--space-4);
  }

  .whatsapp-float__text {
    display: none;
  }

  .whatsapp-float {
    width: 58px;
    height: 58px;
    min-height: 58px;
    justify-content: center;
    padding: 0;
  }

  .whatsapp-float__icon {
    width: 44px;
    height: 44px;
  }

  [data-parallax] {
    transform: translate3d(calc(var(--parallax-x) * 0.35),
        calc(var(--parallax-y) * 0.35),
        0);
  }
}


/* ==========================================================================
   06. SMALL MOBILE — 640px AND BELOW
   ========================================================================== */

@media (max-width: 640px) {
  :root {
    --header-height: 70px;
  }

  .site-brand__name {
    display: none;
  }

  .site-brand__logo,
  .site-header.is-scrolled .site-brand__logo {
    height: 40px;
  }

  .site-header__inner {
    gap: var(--space-4);
  }

  .hero::before {
    background-size: 52px 52px;
  }

  .hero__container {
    padding-top: calc(var(--header-height) + var(--space-12));
  }

  .hero__actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .hero__trust {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero__visual {
    min-height: 440px;
  }

  .hero__visual-frame {
    inset: 0;
  }

  .hero__product {
    right: 7%;
    width: min(72%, 340px);
  }

  .hero__floating-card {
    max-width: 150px;
    padding: var(--space-3);
    border-radius: var(--radius-md);
  }

  .hero__floating-label {
    font-size: 0.58rem;
  }

  .hero__floating-value {
    font-size: 0.84rem;
  }

  .hero__floating-card--top {
    top: 5%;
    left: -2%;
  }

  .hero__floating-card--bottom {
    right: -2%;
    bottom: 5%;
  }

  .section__title {
    font-size: clamp(2.35rem, 10vw, 3.4rem);
  }

  .section__eyebrow::before {
    width: 24px;
  }

  .service-card__number {
    top: var(--space-5);
    right: var(--space-5);
  }

  .advantages__visual {
    min-height: 450px;
  }

  .advantages__image-shell {
    inset: 0 5% 8% 0;
  }

  .advantages__stat {
    width: min(70%, 250px);
    padding: var(--space-5);
  }

  .advantage-item {
    padding: var(--space-4);
  }

  .portfolio-card {
    min-height: 300px;
  }

  .portfolio-card--featured {
    min-height: 380px;
  }

  .portfolio-card__content {
    right: var(--space-5);
    bottom: var(--space-5);
    left: var(--space-5);
  }

  .contact-cta__shell {
    border-radius: var(--radius-xl);
  }

  .contact-cta__actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .contact-cta__actions .btn {
    width: 100%;
  }

  .site-footer__main {
    grid-template-columns: 1fr;
  }

  .site-footer__brand {
    grid-column: auto;
  }

  .site-footer__legal {
    align-items: flex-start;
    flex-direction: column;
    gap: var(--space-2);
  }
}


/* ==========================================================================
   07. EXTRA SMALL MOBILE — 480px AND BELOW
   ========================================================================== */

@media (max-width: 480px) {
  :root {
    --font-size-base: 0.96rem;
    --space-20: 3.75rem;
    --space-24: 4rem;
  }

  .container,
  .container--wide,
  .site-header__inner,
  .hero__container {
    width: min(calc(100% - 24px), var(--container-width));
  }

  .site-nav {
    padding-inline: 12px;
  }

  .hero__title {
    font-size: clamp(2.9rem, 15vw, 4.4rem);
  }

  .hero__description {
    line-height: 1.7;
  }

  .hero__visual {
    min-height: 390px;
  }

  .hero__product {
    right: 5%;
    width: min(76%, 305px);
  }

  .hero__floating-card {
    max-width: 132px;
  }

  .hero__floating-card--top {
    top: 4%;
    left: -1%;
  }

  .hero__floating-card--bottom {
    right: -1%;
    bottom: 4%;
  }

  .card,
  .service-card,
  .portfolio-card,
  .contact-cta__shell {
    border-radius: 1.25rem;
  }

  .advantages__visual {
    min-height: 400px;
  }

  .advantages__stat {
    width: min(78%, 235px);
  }

  .advantages__stat-value {
    font-size: 3rem;
  }

  .portfolio-card {
    min-height: 280px;
  }

  .portfolio-card--featured {
    min-height: 340px;
  }

  .contact-card__value {
    overflow-wrap: anywhere;
  }

  .site-footer__socials {
    flex-wrap: wrap;
  }
}

/* ==========================================================================
   PARTNER BRANDS RESPONSIVE
   ========================================================================== */

/* Tablet landscape */
@media (max-width: 1100px) {
  .partners {
    padding-block: var(--space-20);
  }

  .partners__header {
    max-width: 700px;
    margin-bottom: var(--space-8);
  }

  .partners__title {
    max-width: 17ch;
  }

  .partners__description {
    max-width: 620px;
  }

  .partners__group {
    gap: var(--space-4);
    padding-right: var(--space-4);
  }

  .partner-logo {
    width: 200px;
    height: 122px;
  }

  .partners__marquee::before,
  .partners__marquee::after {
    width: 90px;
  }
}


/* Tablet portrait */
@media (max-width: 900px) {
  .partners {
    padding-block: var(--space-16);
  }

  .partners__header {
    width: min(calc(100% - 36px), 680px);
    margin-inline: auto;
    margin-bottom: var(--space-8);
  }

  .partners__title {
    font-size: clamp(2.35rem, 7vw, 3.5rem);
  }

  .partners__description {
    font-size: var(--font-size-base);
  }

  .partner-logo {
    width: 188px;
    height: 116px;
    padding: var(--space-4);
  }

  .partners__marquee::before,
  .partners__marquee::after {
    width: 72px;
  }

  .partners__note {
    width: min(calc(100% - 36px), var(--container-width));
    margin-top: var(--space-6);
  }
}


/* Mobile */
@media (max-width: 768px) {
  .partners {
    padding-block: var(--space-16);
  }

  .partners__header {
    width: min(calc(100% - 32px), 620px);
    margin-bottom: var(--space-6);
  }

  .partners__eyebrow {
    gap: var(--space-2);
    font-size: 0.68rem;
    letter-spacing: 0.13em;
  }

  .partners__eyebrow::before,
  .partners__eyebrow::after {
    width: 22px;
  }

  .partners__title {
    max-width: 16ch;
    margin-top: var(--space-4);
    font-size: clamp(2.2rem, 9vw, 3.1rem);
  }

  .partners__description {
    margin-top: var(--space-3);
    font-size: var(--font-size-sm);
    line-height: 1.75;
  }

  .partners__group {
    gap: var(--space-3);
    padding-right: var(--space-3);
  }

  .partner-logo {
    width: 168px;
    height: 106px;
    padding: var(--space-3);
    border-radius: var(--radius-md);
  }

  .partners__marquee::before,
  .partners__marquee::after {
    width: 52px;
  }

  .partners__note {
    width: min(calc(100% - 32px), var(--container-width));
    font-size: 0.68rem;
  }
}


/* Small mobile */
@media (max-width: 640px) {
  .partners {
    padding-block: 3.75rem;
  }

  .partners__header {
    width: min(calc(100% - 28px), 560px);
  }

  .partners__eyebrow::before,
  .partners__eyebrow::after {
    width: 16px;
  }

  .partners__title {
    font-size: clamp(2rem, 10vw, 2.8rem);
  }

  .partner-logo {
    width: 152px;
    height: 96px;
    padding: 0.7rem;
  }

  .partners__marquee::before,
  .partners__marquee::after {
    width: 36px;
  }

  .partners__note {
    width: min(calc(100% - 28px), var(--container-width));
    margin-top: var(--space-5);
  }
}


/* Extra small mobile */
@media (max-width: 480px) {
  .partners__header {
    width: min(calc(100% - 24px), 480px);
  }

  .partners__eyebrow {
    letter-spacing: 0.1em;
  }

  .partners__eyebrow::before,
  .partners__eyebrow::after {
    display: none;
  }

  .partners__title {
    max-width: 15ch;
    font-size: clamp(1.9rem, 11vw, 2.55rem);
  }

  .partners__description {
    font-size: 0.82rem;
  }

  .partner-logo {
    width: 138px;
    height: 90px;
    padding: 0.65rem;
  }

  .partners__marquee::before,
  .partners__marquee::after {
    width: 26px;
  }

  .partners__note {
    width: min(calc(100% - 24px), var(--container-width));
  }
}


/* Touch device */
@media (hover: none) and (pointer: coarse) {
  .partner-logo:hover {
    border-color: rgba(8, 27, 58, 0.09);
    box-shadow: 0 12px 34px rgba(8, 27, 58, 0.06);
    transform: none;
  }

  .partner-logo:hover::before {
    opacity: 0;
  }

  .partner-logo:hover .partner-logo__image {
    filter:
      saturate(0.82) contrast(1.03);
    transform: none;
  }
}



/* ==========================================================================
   WHITE-DOMINANT THEME RESPONSIVE TUNING
   ========================================================================== */

/*
 * Desktop compact:
 * menjaga Hero putih tetap lega tanpa membuat visual produk terlalu berat.
 */
@media (max-width: 1280px) {
  .hero__container {
    gap: clamp(2.75rem, 4.5vw, 4.75rem);
  }

  .hero__visual-frame {
    inset: 5% 1% 1% 8%;
  }

  .hero__product {
    right: 7%;
    width: min(63%, 410px);
  }

  .hero .glass-panel {
    box-shadow: 0 16px 40px rgba(8, 27, 58, 0.1);
  }
}


/*
 * Tablet landscape:
 * memperkecil dekorasi agar background putih tetap menjadi fokus utama.
 */
@media (max-width: 1100px) {
  .hero__container {
    gap: 2.75rem;
  }

  .hero__visual-frame {
    inset: 4% 1% 1% 7%;
  }

  .hero__product {
    right: 6%;
    width: min(62%, 380px);
  }

  .hero__orb--blue {
    width: 160px;
    height: 160px;
  }

  .hero__orb--gold {
    width: 92px;
    height: 92px;
  }

  .hero__floating-card {
    max-width: 182px;
    padding: 0.9rem 1rem;
  }
}


/*
 * Tablet portrait dan mobile navigation:
 * Hero berubah satu kolom, sehingga ritme konten dan visual dibuat lebih rapi.
 */
@media (max-width: 900px) {
  .site-header {
    background: rgba(6, 21, 46, 0.96);
  }

  .site-header.is-scrolled,
  .site-header.nav-open {
    color: var(--color-white);
    border-color: rgba(255, 255, 255, 0.08);
    background: rgba(6, 21, 46, 0.96);
    box-shadow: 0 12px 36px rgba(8, 27, 58, 0.16);
  }

  .site-header.nav-open .site-brand__logo {
    filter: none;
  }

  .site-header.nav-open .site-brand__subtitle {
    color: var(--color-accent);
  }

  .hero__container {
    gap: var(--space-10);
    padding-top: calc(var(--header-height) + var(--space-14));
  }

  .hero__content {
    max-width: 720px;
  }

  .hero__title {
    max-width: 10.5ch;
  }

  .hero__description {
    max-width: 620px;
  }

  .hero__visual {
    width: min(100%, 680px);
    min-height: 535px;
    margin-inline: auto;
  }

  .hero__visual-frame {
    inset: 0 7% 1% 7%;
    border-radius: 38% 38% var(--radius-2xl) var(--radius-2xl);
    box-shadow: 0 28px 70px rgba(8, 27, 58, 0.14);
  }

  .hero__product {
    right: 11%;
    bottom: 1%;
    width: min(57%, 390px);
  }

  .hero__floating-card--top {
    top: 9%;
    left: 2%;
  }

  .hero__floating-card--bottom {
    right: 2%;
    bottom: 9%;
  }

  .hero .badge--glass {
    background: rgba(255, 255, 255, 0.94);
  }

  .hero__trust-item {
    padding: 0.55rem 0.8rem;
    border: 1px solid rgba(8, 27, 58, 0.09);
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.76);
    box-shadow: 0 8px 20px rgba(8, 27, 58, 0.04);
  }

  .hero__orb--blue {
    opacity: 0.72;
  }

  .hero__orb--gold {
    opacity: 0.78;
  }
}


/*
 * Mobile:
 * memperpendek Hero, memperjelas CTA, dan menjaga visual produk tidak menekan copy.
 */
@media (max-width: 768px) {
  .hero__container {
    gap: var(--space-8);
    padding-top: calc(var(--header-height) + var(--space-12));
    padding-bottom: var(--space-12);
  }

  .hero__content {
    width: 100%;
  }

  .hero__badge {
    max-width: 100%;
    white-space: normal;
  }

  .hero__title {
    max-width: 11ch;
    font-size: clamp(3rem, 13vw, 4.8rem);
  }

  .hero__description {
    max-width: 560px;
    margin-top: var(--space-4);
    line-height: 1.72;
  }

  .hero__actions {
    margin-top: var(--space-6);
  }

  .hero__trust {
    gap: var(--space-3);
    margin-top: var(--space-7, 1.75rem);
  }

  .hero__trust-item {
    font-size: 0.78rem;
  }

  .hero__visual {
    min-height: 470px;
  }

  .hero__visual-frame {
    inset: 0 4% 1%;
    border-radius: 36% 36% var(--radius-xl) var(--radius-xl);
    box-shadow: 0 24px 56px rgba(8, 27, 58, 0.13);
  }

  .hero__product {
    right: 8%;
    bottom: 0;
    width: min(65%, 360px);
  }

  .hero__floating-card {
    max-width: 160px;
    padding: 0.8rem 0.9rem;
  }

  .hero__floating-card--top {
    top: 7%;
    left: 0;
  }

  .hero__floating-card--bottom {
    right: 0;
    bottom: 7%;
  }

  .hero__floating-label {
    font-size: 0.6rem;
  }

  .hero__floating-value {
    font-size: 0.88rem;
  }

  .partners__marquee::before,
  .partners__marquee::after {
    background-color: transparent;
  }
}


/*
 * Small mobile:
 * CTA menjadi full-width, trust point tetap terbaca, dan visual lebih sederhana.
 */
@media (max-width: 640px) {
  .site-header {
    box-shadow: 0 8px 26px rgba(8, 27, 58, 0.12);
  }

  .hero__container {
    padding-top: calc(var(--header-height) + var(--space-10));
    padding-bottom: var(--space-10);
  }

  .hero__title {
    max-width: 10.5ch;
  }

  .hero__description {
    font-size: 0.95rem;
  }

  .hero__actions {
    gap: var(--space-3);
  }

  .hero .btn--outline-light {
    background: rgba(255, 255, 255, 0.94);
  }

  .hero__trust {
    gap: var(--space-2);
  }

  .hero__trust-item {
    width: 100%;
    justify-content: flex-start;
    padding: 0.65rem 0.8rem;
    border-radius: var(--radius-md);
  }

  .hero__visual {
    min-height: 405px;
  }

  .hero__visual-frame {
    inset: 0 1% 1%;
    border-radius: 32% 32% var(--radius-xl) var(--radius-xl);
  }

  .hero__product {
    right: 6%;
    width: min(69%, 320px);
  }

  .hero__floating-card {
    max-width: 138px;
    padding: 0.7rem 0.75rem;
  }

  .hero__floating-card--top {
    top: 4%;
    left: 0;
  }

  .hero__floating-card--bottom {
    right: 0;
    bottom: 4%;
  }

  .hero__orb--blue {
    top: 4%;
    right: -12%;
    width: 130px;
    height: 130px;
  }

  .hero__orb--gold {
    right: 16%;
    bottom: 4%;
    width: 76px;
    height: 76px;
  }
}


/*
 * Extra small mobile:
 * satu floating card disembunyikan supaya tampilan tidak terlalu ramai.
 */
@media (max-width: 480px) {
  .hero__container {
    padding-top: calc(var(--header-height) + var(--space-8));
  }

  .hero__badge {
    font-size: 0.66rem;
    line-height: 1.35;
  }

  .hero__title {
    max-width: 10ch;
    font-size: clamp(2.75rem, 14vw, 4rem);
  }

  .hero__description {
    font-size: 0.9rem;
  }

  .hero__visual {
    min-height: 360px;
  }

  .hero__visual-frame {
    inset: 0;
    border-radius: 29% 29% 1.2rem 1.2rem;
  }

  .hero__product {
    right: 4%;
    width: min(72%, 285px);
  }

  .hero__floating-card--top {
    top: 4%;
    left: -1%;
  }

  .hero__floating-card--bottom {
    display: none;
  }

  .hero__orb--blue {
    opacity: 0.55;
  }

  .hero__orb--gold {
    opacity: 0.62;
  }
}


/*
 * Mobile landscape dan viewport pendek:
 * mencegah visual Hero menjadi terlalu tinggi.
 */
@media (orientation: landscape) and (max-height: 560px) and (max-width: 900px) {
  .hero__container {
    gap: var(--space-6);
    padding-top: calc(var(--header-height) + var(--space-6));
    padding-bottom: var(--space-8);
  }

  .hero__visual {
    min-height: 380px;
  }

  .hero__visual-frame {
    inset: 0 8%;
  }
}


/*
 * Touch devices:
 * hilangkan elevasi semu yang bisa tersangkut setelah tap.
 */
@media (hover: none) and (pointer: coarse) {
  .hero .btn--outline-light:hover {
    color: var(--color-navy);
    border-color: rgba(8, 27, 58, 0.18);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 28px rgba(8, 27, 58, 0.05);
  }

  .hero__trust-item {
    transform: none;
  }
}


/* ==========================================================================
   08. SHORT VIEWPORT HEIGHT
   ========================================================================== */

@media (max-height: 720px) and (min-width: 901px) {
  .hero__container {
    padding-top: calc(var(--header-height) + var(--space-8));
    padding-bottom: var(--space-10);
  }

  .hero__visual {
    min-height: 500px;
  }

  .hero__description {
    margin-top: var(--space-4);
  }

  .hero__actions {
    margin-top: var(--space-6);
  }

  .hero__trust {
    margin-top: var(--space-6);
  }
}


/* ==========================================================================
   09. LANDSCAPE MOBILE
   ========================================================================== */

@media (orientation: landscape) and (max-height: 560px) and (max-width: 900px) {
  .site-nav {
    max-height: calc(100dvh - var(--header-height));
  }

  .hero__container {
    min-height: auto;
  }

  .hero__visual {
    min-height: 420px;
  }

  .hero__floating-card {
    display: none;
  }
}


/* ==========================================================================
   10. TOUCH DEVICES
   ========================================================================== */

@media (hover: none) and (pointer: coarse) {

  .btn:hover,
  .card:hover,
  .service-card:hover,
  .advantage-item:hover,
  .portfolio__control:hover,
  .site-footer__social:hover,
  .whatsapp-float:hover {
    transform: none;
  }

  .card:hover,
  .service-card:hover {
    box-shadow: var(--shadow-xs);
  }

  .portfolio-card:hover .portfolio-card__image {
    transform: none;
  }

  .btn:hover::before {
    transform: translateX(-120%);
  }
}


/* ==========================================================================
   11. HIGH RESOLUTION / RETINA TWEAKS
   ========================================================================== */

@media (min-resolution: 2dppx) {

  .hero::before,
  .u-surface-grid {
    background-position: 0.5px 0.5px;
  }
}


/* ==========================================================================
   12. PRINT FALLBACK
   ========================================================================== */

@media print {

  .site-header,
  .nav-toggle,
  .hero__scroll,
  .portfolio__controls,
  .whatsapp-float,
  .site-footer__socials {
    display: none !important;
  }

  body {
    color: #000000;
    background: #ffffff;
  }

  .hero,
  .portfolio,
  .contact-cta__shell,
  .site-footer {
    color: #000000;
    background: #ffffff !important;
    box-shadow: none;
  }

  .hero {
    min-height: auto;
  }

  .section,
  .hero__container,
  .site-footer__main {
    padding-block: 2rem;
  }

  .hero__container,
  .advantages__layout,
  .contact-cta__shell,
  .site-footer__main {
    display: block;
  }

  .hero__visual,
  .advantages__visual,
  .portfolio__grid {
    margin-top: 2rem;
  }

  .hero__title,
  .hero__description,
  .hero__trust,
  .hero__floating-label,
  .hero__floating-value {
    color: #000000 !important;
  }

  .hero .badge--glass,
  .hero .glass-panel,
  .hero .btn--outline-light {
    color: #000000 !important;
    border-color: #cccccc !important;
    background: #ffffff !important;
    box-shadow: none !important;
  }

  a {
    text-decoration: underline;
  }
}


/* ==========================================================================
   END OF RESPONSIVE.CSS
   ========================================================================== */