/* =========================================================
   AntiRibet ID - responsive.css
   Concept: Clean Lightmode Responsive Rules
   Flow: main.css > responsive.css > animations.css > main.js
========================================================= */

/* =========================
   LARGE DESKTOP
========================= */

@media (min-width: 1440px) {
  :root {
    --container-width: 1240px;
  }

  .hero-grid {
    gap: 72px;
  }

  .hero-visual {
    min-height: 640px;
  }
}

/* =========================
   SMALL DESKTOP / LAPTOP
========================= */

@media (max-width: 1180px) {
  :root {
    --container-width: 1040px;
    --section-padding: 96px;
  }

  .nav-menu {
    gap: 22px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(390px, 0.9fr);
    gap: 42px;
  }

  .hero-title {
    font-size: clamp(2.8rem, 5.7vw, 5rem);
  }

  .service-card {
    padding: 24px;
  }

  .service-title {
    font-size: 1.13rem;
  }

  .floating-card {
    min-width: 160px;
  }
}

/* =========================
   TABLET LANDSCAPE
========================= */

@media (max-width: 1024px) {
  :root {
    --nav-height: 76px;
    --section-padding: 86px;
  }

  .container {
    width: min(100% - 32px, var(--container-width));
  }

  .nav-actions .btn {
    min-height: 46px;
    padding-inline: 18px;
    font-size: 0.9rem;
  }

  .hero {
    min-height: auto;
    padding: calc(var(--nav-height) + 58px) 0 76px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-content {
    max-width: 780px;
    text-align: center;
    margin: 0 auto;
  }

  .hero-description {
    margin-inline: auto;
  }

  .hero-actions,
  .hero-points {
    justify-content: center;
  }

  .hero-visual {
    width: min(100%, 680px);
    min-height: 560px;
    margin: 0 auto;
  }

  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-wrapper {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .process-panel {
    text-align: center;
  }

  .footer-grid {
    grid-template-columns: 1.2fr 1fr 1fr;
  }

  .footer-grid > div:first-child {
    grid-column: 1 / -1;
  }

  .footer-brand {
    max-width: 560px;
  }
}

/* =========================
   TABLET PORTRAIT / MOBILE NAV
========================= */

@media (max-width: 900px) {
  .site-header {
    height: var(--nav-height);
  }

  .navbar {
    gap: 16px;
  }

  .nav-toggle {
    display: inline-block;
    position: relative;
    z-index: 1001;
  }

  .nav-toggle.is-active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle.is-active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.is-active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .nav-menu {
    position: fixed;
    top: var(--nav-height);
    left: 16px;
    right: 16px;
    display: grid;
    gap: 4px;
    padding: 18px;
    border-radius: 26px;
    background: rgba(255, 253, 248, 0.96);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(18px);
    transform: translateY(-18px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
      opacity var(--transition-normal),
      visibility var(--transition-normal),
      transform var(--transition-normal);
  }

  .nav-menu.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav-link {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 0 14px;
    border-radius: 16px;
  }

  .nav-link::after {
    display: none;
  }

  .nav-link:hover,
  .nav-link.is-active {
    background: var(--color-red-pale);
  }

  .nav-actions .btn {
    display: none;
  }

  .hero-title {
    letter-spacing: -0.065em;
  }

  .section-title,
  .cta-title,
  .page-title {
    letter-spacing: -0.045em;
  }

  .cta-box {
    padding: 44px;
  }
}

/* =========================
   MOBILE LARGE
========================= */

@media (max-width: 768px) {
  :root {
    --nav-height: 72px;
    --section-padding: 74px;
  }

  body {
    line-height: 1.65;
  }

  .container {
    width: min(100% - 28px, var(--container-width));
  }

  .brand-logo {
    width: 42px;
    height: 42px;
    border-radius: 14px;
  }

  .brand-name {
    font-size: 0.96rem;
  }

  .brand-tagline {
    font-size: 0.72rem;
  }

  .section-header {
    margin-bottom: 40px;
  }

  .section-label {
    font-size: 0.82rem;
    padding: 7px 13px;
  }

  .section-title {
    font-size: clamp(1.9rem, 8vw, 2.8rem);
  }

  .section-description {
    font-size: 0.98rem;
  }

  .hero {
    padding: calc(var(--nav-height) + 42px) 0 66px;
  }

  .hero-badge {
    font-size: 0.82rem;
    margin-bottom: 20px;
  }

  .hero-title {
    font-size: clamp(2.45rem, 12vw, 4rem);
    line-height: 1.02;
  }

  .hero-description {
    margin-top: 20px;
    font-size: 1rem;
  }

  .hero-actions {
    margin-top: 28px;
  }

  .hero-actions .btn,
  .cta-actions .btn {
    width: 100%;
  }

  .hero-points {
    display: grid;
    justify-content: center;
    gap: 10px;
  }

  .hero-visual {
    min-height: 500px;
  }

  .visual-orbit {
    inset: 70px 26px 50px;
  }

  .hero-main-card {
    top: 120px;
    width: min(370px, 88%);
    padding: 22px;
  }

  .floating-card {
    min-width: auto;
    padding: 12px 13px;
    border-radius: 18px;
  }

  .floating-icon {
    width: 36px;
    height: 36px;
    border-radius: 13px;
    font-size: 1rem;
  }

  .floating-copy strong {
    font-size: 0.82rem;
  }

  .floating-copy span {
    font-size: 0.7rem;
  }

  .floating-card.passport {
    left: 4px;
    top: 54px;
  }

  .floating-card.sim {
    right: 4px;
    top: 56px;
  }

  .floating-card.tax {
    left: 8px;
    bottom: 88px;
  }

  .floating-card.bpkb {
    right: 6px;
    bottom: 54px;
  }

  .trust-strip {
    margin-top: -28px;
  }

  .trust-grid {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .services-grid,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: auto;
  }

  .process-panel {
    padding: 28px;
  }

  .process-panel-title {
    font-size: 1.7rem;
  }

  .process-item {
    grid-template-columns: 46px 1fr;
    gap: 14px;
    padding: 18px;
  }

  .process-number {
    width: 46px;
    height: 46px;
    border-radius: 15px;
  }

  .faq-question {
    padding: 19px 20px;
    font-size: 0.95rem;
  }

  .faq-answer-inner {
    padding: 0 20px 20px;
    font-size: 0.92rem;
  }

  .cta-section {
    padding: 74px 0;
  }

  .cta-box {
    padding: 34px 26px;
    border-radius: 30px;
  }

  .cta-title {
    font-size: clamp(1.9rem, 8vw, 2.6rem);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .page-header {
    padding: calc(var(--nav-height) + 54px) 0 62px;
  }

  .page-title {
    font-size: clamp(2.15rem, 10vw, 3.5rem);
  }

  .page-description {
    font-size: 1rem;
  }

  .form-card {
    padding: 24px;
  }
}

/* =========================
   MOBILE MEDIUM
========================= */

@media (max-width: 576px) {
  .container {
    width: min(100% - 24px, var(--container-width));
  }

  .section {
    padding: 64px 0;
  }

  .brand-copy {
    max-width: 145px;
  }

  .brand-tagline {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .hero {
    padding-top: calc(var(--nav-height) + 34px);
  }

  .hero-grid {
    gap: 34px;
  }

  .hero-title {
    font-size: clamp(2.25rem, 13vw, 3.35rem);
  }

  .hero-description {
    font-size: 0.96rem;
  }

  .btn {
    min-height: 50px;
    padding: 0 20px;
    font-size: 0.94rem;
  }

  .hero-visual {
    min-height: 440px;
  }

  .visual-orbit {
    inset: 62px 12px 48px;
  }

  .hero-main-card {
    top: 110px;
    width: min(340px, 90%);
    padding: 18px;
    border-radius: 30px;
  }

  .hero-card-title {
    font-size: 1rem;
  }

  .hero-card-status {
    font-size: 0.7rem;
  }

  .document-row {
    gap: 10px;
    padding: 11px;
    border-radius: 16px;
  }

  .document-icon {
    width: 38px;
    height: 38px;
    border-radius: 13px;
    font-size: 1.05rem;
  }

  .document-copy strong {
    font-size: 0.86rem;
  }

  .document-copy span {
    font-size: 0.74rem;
  }

  .floating-card {
    gap: 8px;
    padding: 10px 11px;
  }

  .floating-card.passport,
  .floating-card.sim {
    top: 36px;
  }

  .floating-card.tax {
    bottom: 76px;
  }

  .floating-card.bpkb {
    bottom: 36px;
  }

  .floating-icon {
    width: 32px;
    height: 32px;
  }

  .floating-copy span {
    display: none;
  }

  .blob-red {
    width: 96px;
    height: 96px;
  }

  .blob-yellow {
    width: 120px;
    height: 120px;
  }

  .blob-small {
    width: 42px;
    height: 42px;
  }

  .trust-item,
  .feature-card,
  .service-card,
  .process-item {
    border-radius: 20px;
  }

  .service-card,
  .feature-card {
    padding: 24px;
  }

  .service-icon,
  .feature-icon {
    width: 54px;
    height: 54px;
    border-radius: 18px;
  }

  .process-panel {
    padding: 24px;
    border-radius: 28px;
  }

  .process-panel-title {
    font-size: 1.5rem;
  }

  .cta-box {
    padding: 30px 22px;
  }

  .disclaimer-card {
    padding: 20px;
  }

  .footer-logo-row {
    align-items: flex-start;
  }
}

/* =========================
   MOBILE SMALL
========================= */

@media (max-width: 420px) {
  .brand-logo {
    width: 39px;
    height: 39px;
  }

  .brand-copy {
    max-width: 126px;
  }

  .brand-name {
    font-size: 0.9rem;
  }

  .nav-toggle {
    width: 42px;
    height: 42px;
  }

  .hero-title {
    font-size: clamp(2.08rem, 14vw, 3rem);
  }

  .hero-badge {
    gap: 8px;
    padding: 8px 12px;
    font-size: 0.78rem;
  }

  .hero-badge-icon {
    width: 25px;
    height: 25px;
  }

  .hero-visual {
    min-height: 410px;
  }

  .hero-main-card {
    top: 104px;
    width: 92%;
    padding: 16px;
  }

  .document-list {
    gap: 10px;
  }

  .document-row {
    padding: 10px;
  }

  .floating-card {
    max-width: 145px;
  }

  .floating-copy strong {
    font-size: 0.76rem;
  }

  .floating-card.passport {
    left: -2px;
  }

  .floating-card.sim {
    right: -2px;
  }

  .floating-card.tax {
    left: 0;
  }

  .floating-card.bpkb {
    right: 0;
  }

  .trust-grid {
    gap: 10px;
  }

  .trust-item {
    padding: 14px;
  }

  .trust-icon {
    width: 38px;
    height: 38px;
  }

  .section-label {
    font-size: 0.76rem;
  }

  .section-description,
  .cta-description,
  .page-description {
    font-size: 0.94rem;
  }

  .faq-question {
    gap: 12px;
  }

  .faq-icon {
    width: 28px;
    height: 28px;
  }
}

/* =========================
   EXTRA SMALL MOBILE
========================= */

@media (max-width: 360px) {
  .container {
    width: min(100% - 20px, var(--container-width));
  }

  .brand-copy {
    display: none;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-visual {
    min-height: 390px;
  }

  .floating-card {
    padding: 9px;
  }

  .floating-copy strong {
    font-size: 0.72rem;
  }

  .hero-main-card {
    border-radius: 26px;
  }

  .document-icon {
    width: 34px;
    height: 34px;
  }

  .document-copy strong {
    font-size: 0.8rem;
  }

  .document-copy span {
    font-size: 0.7rem;
  }

  .service-card,
  .feature-card,
  .form-card {
    padding: 20px;
  }

  .cta-box {
    padding: 26px 18px;
  }
}

/* =========================
   REDUCED MOTION FRIENDLY
========================= */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}