/*
   CATATAN PENTING
   --------------------------------------------------------------------------
   - Jangan menambahkan patch baru di paling bawah kecuali benar-benar perlu.
   - Kalau ingin tuning mobile, ubah nilai di section "MOBILE HERO" saja.
   - Kalau ingin tuning modal, ubah section "VERIFICATION MODAL" saja.
   - Jangan pakai transform: scale() pada seluruh halaman untuk responsivitas.
   - Desktop product image sengaja width:auto + height:100% agar tidak over-zoom.
   ========================================================================== */


/* ========================================================================== 
   01. DESIGN TOKENS
   ========================================================================== */

:root {
  --bg: #f7f1e9;
  --bg-light: #fbf8f3;
  --mobile-hero-bg: #f4ead9;
  --mobile-visual-bg: #efe4d5;

  --text: #171717;
  --muted: #746e66;

  --gold: #a9782e;
  --gold-soft: rgba(169, 120, 46, 0.45);

  --white: #ffffff;
  --black: #161616;

  --font-sans: Arial, Helvetica, sans-serif;
  --font-serif:
    "Bodoni MT",
    "Bodoni 72",
    Didot,
    Georgia,
    "Times New Roman",
    serif;

  --side-padding: clamp(32px, 3.5vw, 64px);

  --shadow-button: 0 16px 36px rgba(0, 0, 0, 0.12);
  --shadow-badge: 0 20px 50px rgba(65, 45, 22, 0.08);
  --shadow-card: 0 40px 100px rgba(30, 22, 14, 0.20);

  --radius-pill: 999px;
}


/* ========================================================================== 
   02. RESET / GLOBAL
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

html {
  width: 100%;
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  width: 100%;
  min-height: 100%;
  margin: 0;

  overflow-x: hidden;

  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);

  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  border: 0;
}

img,
video,
canvas,
svg {
  display: block;
}

[hidden] {
  display: none !important;
}


/* ========================================================================== 
   03. PAGE
   ========================================================================== */

.page {
  width: 100%;
  min-height: 100vh;
}


/* ========================================================================== 
   04. HERO — BASE / DESKTOP
   ========================================================================== */

.hero {
  position: relative;
  isolation: isolate;

  width: 100%;
  min-height: 100vh;

  overflow: hidden;

  background:
    radial-gradient(
      circle at 15% 17%,
      rgba(255, 255, 255, 0.96) 0%,
      rgba(255, 255, 255, 0.55) 24%,
      rgba(255, 255, 255, 0) 55%
    ),
    linear-gradient(
      110deg,
      #fbf8f3 0%,
      #f8f2ea 48%,
      #eee1d0 100%
    );
}


/* -------------------------------------------------------------------------- 
   04A. PRODUCT VISUAL

   NOTE:
   Desktop sengaja tidak memakai width:100% + height:100% + object-fit:cover.
   Kombinasi itu sebelumnya membuat produk terlalu zoom.
   -------------------------------------------------------------------------- */

.hero__visual {
  position: absolute;
  inset: 0;
  z-index: 0;

  width: 100%;
  height: 100%;

  overflow: hidden;
  pointer-events: none;
}

.hero__image {
  position: absolute;
  top: 0;
  right: 0;

  width: auto;
  height: 100%;
  max-width: none;

  object-fit: contain;

  z-index: 1;
}

/* Desktop fade: menyatukan sisi kiri foto dengan background copy. */
.hero__visual::after {
  content: "";

  position: absolute;
  inset: 0;
  z-index: 2;

  pointer-events: none;

  background:
    linear-gradient(
      90deg,
      #f9f5ef 0%,
      #f9f5ef 20%,
      rgba(249, 245, 239, 0.99) 25%,
      rgba(249, 245, 239, 0.96) 30%,
      rgba(249, 245, 239, 0.83) 35%,
      rgba(249, 245, 239, 0.58) 40%,
      rgba(249, 245, 239, 0.28) 45%,
      rgba(249, 245, 239, 0.08) 50%,
      transparent 56%
    );
}

/* Mobile menggunakan ::before sebagai mist. Base desktop tidak perlu. */
.hero__visual::before {
  content: none;
}

/* Legacy decorative element. Asset hero sekarang sudah memiliki arch sendiri. */
.hero__circle {
  display: none;
}


/* -------------------------------------------------------------------------- 
   04B. WATERMARK
   -------------------------------------------------------------------------- */

.hero__watermark {
  position: absolute;
  left: -1.5%;
  bottom: -5%;
  z-index: 3;

  width: max-content;

  font-family: var(--font-serif);
  font-size: clamp(8rem, 13vw, 14rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.06em;

  white-space: nowrap;
  color: rgba(156, 111, 40, 0.045);

  user-select: none;
  pointer-events: none;
}


/* -------------------------------------------------------------------------- 
   04C. BADGE
   -------------------------------------------------------------------------- */

.hero__badge {
  position: absolute;
  right: 2.2%;
  bottom: 2.5%;
  z-index: 5;

  width: 112px;
  height: 98px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;

  border: 1px solid rgba(150, 112, 54, 0.10);
  border-radius: 17px;

  background: rgba(252, 250, 247, 0.91);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  box-shadow: var(--shadow-badge);
}

.hero__badge-number {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1;
  color: var(--gold);
}

.hero__badge-label {
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: #282828;
}


/* -------------------------------------------------------------------------- 
   04D. CONTENT LAYER
   -------------------------------------------------------------------------- */

.hero__container {
  position: relative;
  z-index: 10;

  width: 100%;
  min-height: 100vh;

  margin: 0;
  padding:
    clamp(44px, 6vh, 68px)
    var(--side-padding);

  display: flex;
  flex-direction: column;
}


/* -------------------------------------------------------------------------- 
   04E. BRAND / LOGO

   NOTE:
   Dulu .hero__header didefinisikan dua kali. Sekarang seluruh properti header
   desktop berada pada satu rule saja.
   -------------------------------------------------------------------------- */

.hero__header {
  position: absolute;
  top: 38px;
  left: var(--side-padding);
  right: auto;
  z-index: 20;

  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;

  flex-shrink: 0;
}

.hero__brand {
  display: block;
  text-decoration: none;
}

.hero__logo {
  width: 190px;
  height: auto;

  object-fit: contain;
}


/* -------------------------------------------------------------------------- 
   04F. MAIN COPY
   -------------------------------------------------------------------------- */

.hero__content {
  width: 500px;
  max-width: 38vw;

  margin-top: auto;
  margin-bottom: auto;

  transform: translateY(10px);
}

.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 16px;

  margin-bottom: 32px;

  color: #98702b;
  font-size: clamp(0.65rem, 0.72vw, 0.76rem);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  white-space: nowrap;
}

.hero__eyebrow > span {
  width: 44px;
  height: 1px;
  flex-shrink: 0;

  background: rgba(169, 120, 46, 0.58);
}

.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(4rem, 4.8vw, 5.6rem);
  font-weight: 400;
  line-height: 0.86;
  letter-spacing: -0.05em;
  color: var(--text);
}

.hero__title > span {
  display: block;

  margin-top: 0.12em;
  margin-left: 0.48em;

  color: var(--gold);
  font-style: italic;
  font-weight: 400;
}

.hero__description {
  max-width: 450px;
  margin-top: 39px;

  color: var(--muted);
  font-size: clamp(0.88rem, 0.92vw, 1rem);
  line-height: 1.65;
}

.hero__actions {
  width: 430px;
  max-width: 100%;

  margin-top: 42px;

  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero__button {
  width: 100%;
  min-height: 58px;

  padding: 0 26px;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  border-radius: var(--radius-pill);

  font-size: clamp(0.68rem, 0.72vw, 0.76rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;

  cursor: pointer;
  pointer-events: auto;

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    background-color 0.3s ease,
    border-color 0.3s ease;
}

.hero__button--primary {
  color: var(--white);
  background: linear-gradient(105deg, #111111, #242424);
  box-shadow: var(--shadow-button);
}

.hero__button--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.16);
}

.hero__official {
  margin-top: auto;

  display: flex;
  align-items: center;
  gap: 16px;

  color: #787269;
  font-size: 0.67rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero__official > span {
  width: 44px;
  height: 1px;
  flex-shrink: 0;

  background: rgba(169, 120, 46, 0.52);
}


/* ========================================================================== 
   05. RESPONSIVE HERO
   ========================================================================== */


/* -------------------------------------------------------------------------- 
   05A. LARGE DESKTOP

   NOTE:
   Breakpoint lama min-width:1400px dan min-width:1281px sebelumnya saling
   menimpa ukuran title/content. Sekarang rule large desktop hanya mengatur
   spacing global; tuning utama desktop berada di >=1281px di bawah.
   -------------------------------------------------------------------------- */

@media (min-width: 1400px) {
  :root {
    --side-padding: clamp(48px, 3.2vw, 70px);
  }
}


/* -------------------------------------------------------------------------- 
   05B. FINAL DESKTOP TUNING
   -------------------------------------------------------------------------- */

@media (min-width: 1281px) {
  .hero__content {
    width: 520px;
    max-width: 39vw;
    transform: translateY(58px);
  }

  .hero__eyebrow {
    margin-bottom: 36px;
    font-size: 0.72rem;
    letter-spacing: 0.23em;
  }

  .hero__title {
    font-size: clamp(5.3rem, 6vw, 7rem);
    line-height: 0.78;
  }

  .hero__title > span {
    margin-top: 0.13em;
    margin-left: 0.48em;
  }

  .hero__description {
    max-width: 470px;
    margin-top: 42px;
    font-size: 0.98rem;
  }

  .hero__actions {
    width: 435px;
    margin-top: 44px;
    gap: 13px;
  }

  .hero__button {
    min-height: 62px;
    font-size: 0.72rem;
    letter-spacing: 0.18em;
  }

  .hero__badge {
    right: 2.3%;
    bottom: 2.3%;
    width: 108px;
    height: 94px;
  }

  .hero__watermark {
    left: -1.5%;
    bottom: -6%;
    color: rgba(156, 111, 40, 0.038);
  }
}


/* -------------------------------------------------------------------------- 
   05C. LAPTOP
   -------------------------------------------------------------------------- */

@media (max-width: 1280px) {
  :root {
    --side-padding: 42px;
  }

  .hero__logo {
    width: 160px;
  }

  .hero__container {
    padding-top: 42px;
    padding-bottom: 42px;
  }

  .hero__content {
    width: 430px;
    max-width: 42vw;
  }

  .hero__title {
    font-size: clamp(4rem, 6vw, 5.5rem);
  }

  .hero__description {
    max-width: 390px;
    margin-top: 34px;
  }

  .hero__actions {
    width: 370px;
    margin-top: 36px;
  }

  .hero__button {
    min-height: 54px;
    font-size: 0.68rem;
  }

  .hero__badge {
    width: 105px;
    height: 92px;
  }
}


/* -------------------------------------------------------------------------- 
   05D. SMALL LAPTOP / TABLET LANDSCAPE
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
  :root {
    --side-padding: 32px;
  }

  .hero__content {
    width: 410px;
    max-width: 45vw;
  }

  .hero__eyebrow {
    gap: 12px;
    font-size: 0.61rem;
  }

  .hero__eyebrow > span {
    width: 32px;
  }

  .hero__title {
    font-size: clamp(3.8rem, 6.8vw, 5rem);
  }

  .hero__description {
    max-width: 350px;
    font-size: 0.86rem;
  }

  .hero__actions {
    width: 340px;
  }

  .hero__button {
    min-height: 52px;
    font-size: 0.63rem;
  }

  .hero__visual::after {
    background:
      linear-gradient(
        90deg,
        #f9f5ef 0%,
        #f9f5ef 23%,
        rgba(249, 245, 239, 0.98) 29%,
        rgba(249, 245, 239, 0.88) 36%,
        rgba(249, 245, 239, 0.55) 43%,
        rgba(249, 245, 239, 0.20) 49%,
        transparent 56%
      );
  }
}


/* -------------------------------------------------------------------------- 
   05E. MOBILE HERO — REFERENCE COMPOSITION

   SAFE TUNING ZONE
   --------------------------------------------------------------------------
   Kalau ingin menyesuaikan tampilan mobile, prioritaskan nilai berikut:

   -- posisi mulai foto       : .hero__visual { top: ... }
   -- posisi card             : .hero__content { top: ... }
   -- lebar card              : .hero__content { width: ... }
   -- ukuran logo             : .hero__logo { width: ... }
   -- kekuatan transisi foto  : mask-image + .hero__visual::before

   Jangan ubah struktur positioning kecuali layout reference memang berubah.
   -------------------------------------------------------------------------- */

@media (max-width: 820px) {
  .page {
    min-height: 100svh;
  }

  .hero {
    width: 100%;
    height: 100svh;
    min-height: 680px;

    background: var(--mobile-hero-bg);
  }

  /* ------------------------------
     PRODUCT PHOTO
     ------------------------------ */

  .hero__visual {
    position: absolute;
    top: clamp(220px, 26svh, 255px);
    right: 0;
    bottom: 0;
    left: 0;

    width: 100%;
    height: auto;

    margin: 0;

    overflow: hidden;

    background: var(--mobile-visual-bg);
    z-index: 1;
  }

  .hero__image {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;
    max-width: none;

    object-fit: cover;
    object-position: 63% center;

    /*
      Ini fade utama yang menghilangkan garis horizontal keras di bagian atas
      foto. Mask membuat bagian awal foto transparan sehingga background hero
      terlihat menembus secara gradual.
    */
    -webkit-mask-image:
      linear-gradient(
        to bottom,
        transparent 0%,
        rgba(0, 0, 0, 0.30) 5%,
        rgba(0, 0, 0, 0.78) 13%,
        #000 22%,
        #000 100%
      );

    mask-image:
      linear-gradient(
        to bottom,
        transparent 0%,
        rgba(0, 0, 0, 0.30) 5%,
        rgba(0, 0, 0, 0.78) 13%,
        #000 22%,
        #000 100%
      );

    z-index: 1;
  }

  /*
    Mist / cloud overlay.
    Tujuannya bukan membuat awan literal, tetapi memecah garis lurus antara
    background polos dan foto agar transisinya terasa organik.
  */
  .hero__visual::before {
    content: "";

    position: absolute;
    top: -58px;
    left: -10%;
    right: -10%;
    z-index: 3;

    height: 170px;

    pointer-events: none;

    background:
      radial-gradient(
        34% 76% at 8% 42%,
        rgba(244, 234, 217, 0.98) 0%,
        rgba(244, 234, 217, 0.78) 48%,
        rgba(244, 234, 217, 0) 78%
      ),
      radial-gradient(
        36% 82% at 34% 36%,
        rgba(244, 234, 217, 0.96) 0%,
        rgba(244, 234, 217, 0.72) 46%,
        rgba(244, 234, 217, 0) 80%
      ),
      radial-gradient(
        37% 78% at 62% 38%,
        rgba(244, 234, 217, 0.95) 0%,
        rgba(244, 234, 217, 0.66) 46%,
        rgba(244, 234, 217, 0) 80%
      ),
      radial-gradient(
        34% 76% at 90% 44%,
        rgba(244, 234, 217, 0.96) 0%,
        rgba(244, 234, 217, 0.70) 46%,
        rgba(244, 234, 217, 0) 80%
      ),
      linear-gradient(
        to bottom,
        rgba(244, 234, 217, 1) 0%,
        rgba(244, 234, 217, 0.92) 34%,
        rgba(244, 234, 217, 0.50) 62%,
        rgba(244, 234, 217, 0) 100%
      );

    filter: blur(14px);
    transform: scaleX(1.06);
  }

  /* Desktop horizontal fade tidak dipakai pada mobile. */
  .hero__visual::after {
    display: none;
  }

  .hero__watermark,
  .hero__badge,
  .hero__official {
    display: none;
  }

  /* ------------------------------
     OVERLAY CONTENT LAYER
     ------------------------------ */

  .hero__container {
    position: relative;
    z-index: 10;

    width: 100%;
    height: 100svh;
    min-height: 680px;

    margin: 0;
    padding: 34px 18px 20px;

    display: block;

    pointer-events: none;
  }

  /* ------------------------------
     LOGO
     ------------------------------ */

  .hero__header {
    position: relative;
    inset: auto;
    z-index: 20;

    width: fit-content;
    margin: 0;

    pointer-events: auto;
  }

  .hero__logo {
    width: clamp(150px, 32vw, 175px);
    height: auto;
  }

  /* ------------------------------
     FLOATING AUTHENTICITY CARD
     ------------------------------ */

  .hero__content {
    position: absolute;
    top: clamp(112px, 15svh, 132px);
    left: 18px;

    width: min(66vw, 275px);
    max-width: none;

    margin: 0;
    padding: 12px 12px 13px;

    transform: none;

    border: 1px solid rgba(169, 120, 46, 0.10);
    border-radius: 14px;

    background: rgba(255, 253, 249, 0.96);

    box-shadow:
      0 9px 25px rgba(65, 45, 22, 0.12);

    pointer-events: auto;
  }

  .hero__eyebrow {
    gap: 6px;
    margin: 0 0 5px;

    color: var(--gold);
    font-size: clamp(0.34rem, 1.25vw, 0.42rem);
    line-height: 1.2;
    letter-spacing: 0.16em;
    white-space: nowrap;
  }

  .hero__eyebrow > span {
    width: 16px;
  }

  .hero__title {
    max-width: 100%;
    margin: 0;

    font-size: clamp(1.75rem, 7vw, 2.25rem);
    line-height: 0.88;
    letter-spacing: -0.045em;
  }

  .hero__title > span {
    display: block;
    margin: 0.06em 0 0;
    line-height: 0.92;
  }

  .hero__description {
    max-width: 100%;
    margin-top: 8px;

    color: #777067;
    font-size: clamp(0.48rem, 1.8vw, 0.6rem);
    line-height: 1.35;
  }

  .hero__actions {
    width: 100%;
    margin-top: 10px;
    gap: 0;
  }

  .hero__button {
    width: 100%;
    min-height: 30px;

    padding: 0 12px;

    border-radius: var(--radius-pill);

    font-size: clamp(0.38rem, 1.45vw, 0.47rem);
    line-height: 1;
    letter-spacing: 0.12em;

    box-shadow:
      0 6px 14px rgba(0, 0, 0, 0.12);
  }

  .hero__button--primary:hover {
    transform: none;
  }
}


/* -------------------------------------------------------------------------- 
   05F. SMALL MOBILE

   NOTE:
   Logo tidak lagi diperkecil sampai 108px. Override lama itu yang membuat
   logo terlihat terlalu kecil di screenshot mobile.
   -------------------------------------------------------------------------- */

@media (max-width: 480px) {
  .hero {
    min-height: 640px;
  }

  .hero__container {
    min-height: 640px;
    padding: 30px 16px 18px;
  }

  .hero__logo {
    width: clamp(140px, 36vw, 158px);
  }

  .hero__content {
    top: 108px;
    left: 16px;

    width: min(68vw, 255px);
    padding: 11px 11px 12px;
  }

  .hero__visual {
    top: 225px;
  }

  .hero__image {
    object-position: 64% center;
  }

  .hero__title {
    font-size: clamp(1.65rem, 7.2vw, 2rem);
  }
}


/* ========================================================================== 
   06. VERIFICATION MODAL

   MARKUP YANG DIDUKUNG
   --------------------------------------------------------------------------
   JS terbaru:
     .verification-methods
     .verification-method
     .verification-method--camera
     .verification-method--upload

   Legacy aliases tetap ikut di-style agar file JS lama tidak langsung rusak:
     .verification-scan-button
     .verification-upload-button
   ========================================================================== */

.verification-open {
  overflow: hidden;
}

.verification-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 24px;

  opacity: 0;
  visibility: hidden;

  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}

.verification-modal--open {
  opacity: 1;
  visibility: visible;
}




/* -------------------------------------------------------------------------- 
   06A. BACKDROP / CARD
   -------------------------------------------------------------------------- */

.verification-modal__backdrop {
  position: absolute;
  inset: 0;

  background: rgba(22, 18, 14, 0.38);

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  cursor: pointer;
}

.verification-modal__card {
  width: min(100%, 500px);

  padding:
    46px
    28px
    26px;

  border:
    1px solid rgba(169, 120, 46, 0.12);

  border-radius: 30px;

  background: #ffffff;

  box-shadow:
    0 36px 90px rgba(34, 25, 16, 0.16),
    0 10px 28px rgba(34, 25, 16, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);

  overflow: hidden;
}

.verification-modal--open .verification-modal__card {
  transform: translateY(0) scale(1);
}

/* Decorative curve di kanan atas card. */
.verification-modal__card::before {
  content: "";

  position: absolute;
  top: -180px;
  right: -120px;

  width: 280px;
  height: 280px;

  border: 1px solid rgba(169, 120, 46, 0.16);
  border-radius: 50%;

  pointer-events: none;
}

.verification-modal__card::after {
  content: "";

  position: absolute;

  width: 180px;
  height: 180px;

  top: -135px;
  right: -80px;

  border:
    1px solid rgba(169, 120, 46, 0.08);

  border-radius: 50%;

  pointer-events: none;
}

/* -------------------------------------------------------------------------- 
   06B. CLOSE BUTTON
   -------------------------------------------------------------------------- */

.verification-modal__close {
  top: 18px;
  right: 18px;

  width: 38px;
  height: 38px;

  border: 1px solid #eeeeec;
  border-radius: 50%;

  background: #fafafa;

  color: #2a2a2a;

  box-shadow:
    0 5px 14px rgba(0, 0, 0, 0.04);

  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.verification-modal__close:hover {
  background: #f3f3f1;
  transform: translateY(-1px);
}

/* -------------------------------------------------------------------------- 
   06C. MODAL HEADER
   -------------------------------------------------------------------------- */

.verification-modal__header {
  position: relative;
  margin-bottom: 30px;
  padding: 0;
}

.verification-modal__eyebrow {
  display: block;

  margin-bottom: 10px;

  color: #a9782e;

  font-size: 0.62rem;
  font-weight: 700;

  letter-spacing: 0.26em;
}

.verification-modal__title {
  margin: 0;

  color: #171717;

  font-size: clamp(2.5rem, 6vw, 3.15rem);
  font-weight: 400;

  line-height: 0.94;
  letter-spacing: -0.045em;
}

.verification-modal__description {
  max-width: 370px;

  margin-top: 14px;

  color: #77736e;

  font-size: 0.9rem;
  line-height: 1.55;
}


/* -------------------------------------------------------------------------- 
   06D. VERIFICATION METHODS — CAMERA / UPLOAD

   UX hierarchy:
   - Camera  = primary action
   - Upload  = secondary action
   - Manual  = fallback setelah divider
   -------------------------------------------------------------------------- */

.verification-methods {
  position: relative;
  z-index: 2;

  width: 100%;

  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;

  margin-bottom: 20px;
}

.verification-method,
.verification-scan-button,
.verification-upload-button {
  width: 100%;
  min-width: 0;
  min-height: 54px;

  padding: 0 14px;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  border-radius: var(--radius-pill);

  font-size: 0.64rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  text-align: center;

  cursor: pointer;

  transition:
    transform 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.verification-method--camera,
.verification-scan-button {
  border: 1px solid transparent;

  color: var(--white);
  background: linear-gradient(105deg, #111111, #242424);

  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.verification-method--camera:hover,
.verification-scan-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.16);
}

.verification-method--upload,
.verification-upload-button {
  border: 1px solid rgba(169, 120, 46, 0.28);

  color: #8f6728;
  background: rgba(169, 120, 46, 0.055);
}

.verification-method--upload:hover,
.verification-upload-button:hover {
  transform: translateY(-1px);

  border-color: rgba(169, 120, 46, 0.46);
  background: rgba(169, 120, 46, 0.10);
}

.verification-method:disabled,
.verification-scan-button:disabled,
.verification-upload-button:disabled {
  opacity: 0.6;
  cursor: wait;
  transform: none;
}

.verification-method__icon,
.verification-scan-button__icon,
.verification-upload-button__icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 1rem;
  line-height: 1;
}

.verification-method__icon svg,
.verification-scan-button__icon svg,
.verification-upload-button__icon svg {
  width: 18px !important;
  height: 18px !important;
  max-width: 18px;
  max-height: 18px;
}

/* File input tidak boleh mengambil ruang layout. */
#chalonese-qr-file {
  display: none !important;
}


/* -------------------------------------------------------------------------- 
   06E. CAMERA
   -------------------------------------------------------------------------- */

.verification-camera {
  position: relative;
  z-index: 3;

  width: 100%;
  margin-bottom: 20px;

  overflow: hidden;

  border-radius: 20px;
  background: #111111;
}

.verification-camera__video {
  width: 100%;
  aspect-ratio: 1 / 1;

  object-fit: cover;
  background: #111111;
}

.verification-camera__overlay {
  position: absolute;
  inset: 0 0 54px 0;

  display: flex;
  align-items: center;
  justify-content: center;

  pointer-events: none;

  background: rgba(0, 0, 0, 0.26);
}

.verification-camera__frame {
  position: relative;

  width: 58%;
  aspect-ratio: 1;

  border-radius: 18px;

  box-shadow:
    0 0 0 999px rgba(0, 0, 0, 0.20);
}

.verification-camera__frame::before,
.verification-camera__frame::after {
  content: "";

  position: absolute;
  inset: 0;

  border-radius: 18px;
  pointer-events: none;
}

.verification-camera__frame::before {
  border-top: 3px solid rgba(255, 255, 255, 0.92);
  border-left: 3px solid rgba(255, 255, 255, 0.92);

  clip-path:
    polygon(
      0 0,
      38% 0,
      38% 3px,
      3px 3px,
      3px 38%,
      0 38%
    );
}

.verification-camera__frame::after {
  border-right: 3px solid rgba(255, 255, 255, 0.92);
  border-bottom: 3px solid rgba(255, 255, 255, 0.92);

  clip-path:
    polygon(
      62% calc(100% - 3px),
      calc(100% - 3px) calc(100% - 3px),
      calc(100% - 3px) 62%,
      100% 62%,
      100% 100%,
      62% 100%
    );
}

.verification-camera__footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;

  min-height: 54px;

  padding: 10px 14px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;

  background: rgba(15, 15, 15, 0.84);

  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  color: rgba(255, 255, 255, 0.78);
  font-size: 0.64rem;
  line-height: 1.35;
}

.verification-camera__cancel {
  flex-shrink: 0;

  padding: 8px 10px;

  background: transparent;
  color: var(--white);

  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.14em;

  cursor: pointer;
}


/* -------------------------------------------------------------------------- 
   06F. DIVIDER
   -------------------------------------------------------------------------- */

.verification-divider {
  position: relative;
  z-index: 2;

  display: flex;
  align-items: center;
  gap: 14px;

  margin: 6px 0 20px;

  color: #989087;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  white-space: nowrap;
}

.verification-divider::before,
.verification-divider::after {
  content: "";

  flex: 1;
  height: 1px;

  background: rgba(30, 30, 30, 0.10);
}


/* -------------------------------------------------------------------------- 
   06G. MANUAL FORM
   -------------------------------------------------------------------------- */

.verification-form {
  position: relative;
  z-index: 2;

  display: flex;
  flex-direction: column;
  gap: 12px;
  
}

.verification-form__label {
  margin-bottom: 3px;

  color: #6e675e;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.verification-form__input {
  width: 100%;
  height: 58px;

  padding: 0 20px;

  border: 1px solid rgba(30, 30, 30, 0.14);
  border-radius: var(--radius-pill);
  outline: none;

  background: rgba(255, 255, 255, 0.72);
  color: #1b1b1b;

  font-size: 1rem;
  letter-spacing: 0.08em;

  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.verification-form__input::placeholder {
  color: #aaa39a;
  letter-spacing: 0;
}

.verification-form__input:focus {
  border-color: rgba(169, 120, 46, 0.58);
  background: rgba(255, 255, 255, 0.95);

  box-shadow:
    0 0 0 4px rgba(169, 120, 46, 0.08);
}

.verification-form__button {
  width: 100%;
  height: 58px;

  margin-top: 6px;

  border-radius: var(--radius-pill);

  background: linear-gradient(105deg, #111111, #242424);
  color: var(--white);

  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;

  cursor: pointer;

  box-shadow:
    0 15px 36px rgba(0, 0, 0, 0.13);

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    opacity 0.2s ease;
}

.verification-form__button:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.17);
}

.verification-form__button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}


/* -------------------------------------------------------------------------- 
   06H. RESULT / STATUS STATES
   -------------------------------------------------------------------------- */

/* =====================================================
   VERIFICATION RESULT
   Premium, light, restrained
===================================================== */

.verification-result {
  position: relative;

  z-index: 2;

  display: none;

  width: 100%;

  padding:
    28px
    8px
    4px;

  text-align: center;
}


/* Show active states */

.verification-result--neutral,
.verification-result--loading,
.verification-result--success,
.verification-result--error,
.verification-result--warning {
  display: block;
}


/* =====================================================
   RESULT ICON
===================================================== */

.verification-result__icon {
  position: relative;

  width: 64px;
  height: 64px;

  margin:
    0
    auto
    24px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;

  font-family:
    Georgia,
    serif;

  font-size: 1.25rem;

  font-weight: 400;
}


/*
  Thin outer ring creates depth
  without making it look like an alert box.
*/

.verification-result__icon::after {
  content: "";

  position: absolute;

  inset: -7px;

  border-radius: inherit;

  border:
    1px solid currentColor;

  opacity: 0.08;

  pointer-events: none;
}


/* =====================================================
   STATUS
===================================================== */

.verification-result__status {
  margin: 0;

  color: #171717;

  font-family:
    "Bodoni MT",
    "Bodoni 72",
    Didot,
    Georgia,
    "Times New Roman",
    serif;

  font-size:
    clamp(2rem, 5vw, 2.65rem);

  font-weight: 400;

  line-height: 0.96;

  letter-spacing: -0.04em;
}


/* =====================================================
   PRODUCT CODE
===================================================== */

.verification-result__code {
  width: fit-content;

  margin:
    18px
    auto
    0;

  padding:
    8px
    13px;

  border:
    1px solid rgba(169, 120, 46, 0.13);

  border-radius: 999px;

  background:
    rgba(169, 120, 46, 0.045);

  color: #936a28;

  font-size: 0.66rem;
  font-weight: 700;

  line-height: 1;

  letter-spacing: 0.17em;
}


/* =====================================================
   MESSAGE
===================================================== */

.verification-result__message {
  max-width: 350px;

  margin:
    17px
    auto
    0;

  color: #77716a;

  font-size: 0.88rem;

  line-height: 1.65;
}


/* =====================================================
   RESULT ACTION
===================================================== */

.verification-result__action {
  width: 100%;
  height: 54px;

  margin-top: 28px;

  border: 0;

  border-radius: 16px;

  background:
    linear-gradient(
      135deg,
      #151618,
      #232427
    );

  color: #ffffff;

  font-family:
    Arial,
    Helvetica,
    sans-serif;

  font-size: 0.66rem;
  font-weight: 700;

  letter-spacing: 0.18em;

  cursor: pointer;

  box-shadow:
    0 12px 24px rgba(0, 0, 0, 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.09);

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}


.verification-result__action:hover {
  transform: translateY(-1px);

  box-shadow:
    0 16px 30px rgba(0, 0, 0, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.10);
}


/* =====================================================
   NEUTRAL — CODE READ ONLY
===================================================== */

.verification-result--neutral
.verification-result__icon {
  color: #9b712d;

  background:
    linear-gradient(
      145deg,
      #fffaf1,
      #f6eee0
    );

  border:
    1px solid rgba(169, 120, 46, 0.16);

  box-shadow:
    0 12px 28px rgba(77, 53, 22, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}


/* =====================================================
   VERIFIED
===================================================== */

.verification-result--success
.verification-result__icon {
  color: #8d6727;

  background:
    linear-gradient(
      145deg,
      #fff9ed,
      #f3e8d5
    );

  border:
    1px solid rgba(169, 120, 46, 0.20);

  box-shadow:
    0 13px 30px rgba(77, 53, 22, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}


/* =====================================================
   ERROR
===================================================== */

.verification-result--error
.verification-result__icon {
  color: #94584a;

  background:
    #fbf3f1;

  border:
    1px solid rgba(148, 88, 74, 0.13);

  box-shadow:
    0 12px 26px rgba(90, 49, 39, 0.06);
}


/* =====================================================
   WARNING
===================================================== */

.verification-result--warning
.verification-result__icon {
  color: #9b712d;

  background:
    #fbf7ed;

  border:
    1px solid rgba(169, 120, 46, 0.14);
}


/* =====================================================
   LOADING
===================================================== */

.verification-result--loading {
  padding-top: 34px;
}


.verification-result__loader {
  width: 44px;
  height: 44px;

  margin:
    0
    auto
    24px;

  border:
    1.5px solid rgba(169, 120, 46, 0.15);

  border-top-color:
    #a9782e;

  border-radius: 50%;

  animation:
    chalonese-loader
    0.8s
    linear
    infinite;
}


@keyframes chalonese-loader {

  to {
    transform:
      rotate(360deg);
  }

}


/* =====================================================
   MOBILE RESULT
===================================================== */

@media (max-width: 600px) {

  .verification-result {
    padding:
      24px
      2px
      2px;
  }


  .verification-result__icon {
    width: 58px;
    height: 58px;

    margin-bottom: 21px;
  }


  .verification-result__status {
    font-size: 2rem;
  }


  .verification-result__message {
    font-size: 0.84rem;
  }


  .verification-result__action {
    height: 52px;

    margin-top: 24px;
  }

}


/* ========================================================================== 
   07. VERIFICATION MODAL — MOBILE
   ========================================================================== */

@media (max-width: 600px) {
  .verification-modal {
    align-items: center;
    padding: 12px;
  }

  .verification-modal__card {
    width: 100%;
    max-height: calc(100dvh - 24px);

    padding: 40px 22px 28px;

    border-radius: 24px;
  }

  .verification-modal__title {
    font-size: 2.35rem;
  }

  .verification-modal__description {
    font-size: 0.85rem;
  }

  /*
    Mobile ditumpuk vertikal agar camera dan upload tidak saling berebut lebar.
    Ini juga mencegah label terpotong pada layar sempit.
  */
  .verification-methods {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .verification-method,
  .verification-scan-button,
  .verification-upload-button {
    min-height: 52px;
    font-size: 0.64rem;
  }

  .verification-camera {
    border-radius: 16px;
  }

  .verification-camera__frame {
    width: 64%;
  }

  .verification-form__input,
  .verification-form__button {
    height: 54px;
  }
}

/* =====================================================
   08. VERIFICATION — CAMERA MODE
===================================================== */

.verification-modal--scanning
.verification-methods,

.verification-modal--scanning
.verification-divider,

.verification-modal--scanning
.verification-form {
  display: none;
}


.verification-modal--scanning
.verification-modal__header {
  margin-bottom: 20px;
}


.verification-modal--scanning
.verification-modal__description {
  max-width: 320px;
}


/* Camera becomes the main visual */

.verification-modal--scanning
.verification-camera {
  margin:
    4px
    0
    0;

  border-radius: 22px;

  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.14);
}


/* cleaner camera footer */

.verification-modal--scanning
.verification-camera__footer {
  min-height: 58px;

  padding:
    10px
    16px;

  background:
    rgba(10, 10, 10, 0.82);

  backdrop-filter:
    blur(12px);

  -webkit-backdrop-filter:
    blur(12px);
}


/* cancel looks secondary */

.verification-camera__cancel {
  padding:
    8px
    12px;

  border:
    1px solid rgba(255, 255, 255, 0.16);

  border-radius: 999px;

  background:
    rgba(255, 255, 255, 0.06);

  color:
    rgba(255, 255, 255, 0.9);

  transition:
    background 0.2s ease,
    border-color 0.2s ease;
}


.verification-camera__cancel:hover {
  background:
    rgba(255, 255, 255, 0.11);

  border-color:
    rgba(255, 255, 255, 0.24);
}

/* ========================================================================== 
   08. ACCESSIBILITY / INTERACTION SAFETY
   ========================================================================== */

.hero__button:focus-visible,
.verification-modal__close:focus-visible,
.verification-method:focus-visible,
.verification-scan-button:focus-visible,
.verification-upload-button:focus-visible,
.verification-camera__cancel:focus-visible,
.verification-form__input:focus-visible,
.verification-form__button:focus-visible {
  outline: 2px solid rgba(169, 120, 46, 0.82);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
