/* ===========================
   Visa Global Server — CLEAN STYLESHEET
   =========================== */

/* === TOKENS === */
:root {
  --visa-blue: #14205A;
  --visa-blue-2: #1A237E;
  --visa-gold: #F7B600;
  --ink: #1A202C;
  --muted: #606B85;
  --bg: #FFFFFF;
  --bg-soft: #F6F7FB;
  --border: #E5E8F0;
  --card: #FFFFFF;
  --shadow: 0 10px 30px -15px rgba(13, 28, 73, .18);
  --shadow-soft: 0 6px 18px -12px rgba(13, 28, 73, .14);
  --ff: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  --container: 1140px;
}

/* === BASE === */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--ff);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--visa-blue); outline-offset: 2px; }
.container { width: min(var(--container), 92%); margin-inline: auto; }
section { padding: 72px 0; }
h1, h2, h3 { margin: 0; line-height: 1.2; font-weight: 700; color: var(--ink); }
h1 { font-size: 44px; }
h2 { font-size: 30px; }
h3 { font-size: 18px; }
p { margin: 0; color: var(--muted); }
.section-header { max-width: 720px; margin: 0 auto 24px; text-align: center; }
.section-header p { margin-top: 8px; }

/* === HEADER / NAV === */
.main-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: linear-gradient(180deg, #FFFFFF 0%, rgba(255, 255, 255, .92) 100%);
  border-bottom: 1px solid var(--border);
  backdrop-filter: saturate(120%) blur(6px);
}
.nav-container { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.logo { height: 30px; }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-link { color: var(--ink); opacity: .9; padding-bottom: 4px; position: relative; }
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: var(--visa-gold);
  transition: width .2s ease;
}
.nav-link:hover { opacity: 1; }
.nav-link:hover::after { width: 100%; }
.header-actions .btn { margin-left: 8px; }
.mobile-menu-toggle, .nav-close-btn { display: none; } /* Hide mobile elements by default */

/* === BUTTONS & BADGES === */
.badge-featured {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(247, 182, 0, .1);
  color: var(--visa-blue);
  border: 1px solid #FBE7AA;
  font-size: 12px;
  letter-spacing: .3px;
}
.btn {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 10px;
  border: 1px solid var(--border);
  font-weight: 600;
  transition: .2s all ease;
}
.btn-primary { background: var(--visa-blue); color: #fff; border-color: var(--visa-blue); }
.btn-secondary { background: #fff; color: var(--visa-blue); border-color: var(--visa-blue); }

/* === HERO BILLBOARD === */
.hero--billboard {
  position: relative;
  padding: 0;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.hero--billboard .hero-media { position: absolute; inset: 0; overflow: hidden; }
.hero--billboard .hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero--billboard .hero-overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.5); }
.hero-billboard-inner { position: relative; z-index: 2; display: flex; align-items: center; justify-content: center; width: 100%; }
.hero-copy { color: #fff; max-width: 760px; margin: auto; }
.hero-headline { font-size: 52px; margin-bottom: 16px; color: #fff; }
.hero-subtitle { font-size: 20px; line-height: 1.6; color: rgba(255, 255, 255, 0.92); margin-bottom: 24px; }
.hero-cta { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.hero-cta .btn-primary { background: var(--visa-gold); color: #10204a; border-color: var(--visa-gold); }

/* === OTHER SECTIONS (Flow, Pricing, etc.) === */
.feature-section { background: #fff; }
.flow-section { background: var(--bg-soft); }
.timeline { display: grid; gap: 14px; max-width: 860px; margin: 0 auto; }
.timeline-item { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; }
.timeline-step { width: 34px; height: 34px; border-radius: 10px; background: var(--visa-blue); color: #fff; display: grid; place-items: center; font-weight: 700; }
.timeline-content h4 { margin: 0 0 6px; }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pricing-card { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 12px; position: relative; box-shadow: var(--shadow-soft); }
.pricing-card.featured { border-color: var(--visa-blue); outline: 3px solid rgba(20, 32, 90, .08); }
.pricing-header h3 { margin: 0 0 6px; }
.price { font-size: 30px; font-weight: 700; color: var(--visa-blue); }
.period { font-size: 14px; color: var(--muted); }
.pricing-features { list-style: none; padding: 0; margin: 10px 0 16px; display: grid; gap: 8px; }
.pricing-features li { padding-left: 26px; position: relative; }
.pricing-features li::before { content: ""; position: absolute; left: 0; top: 8px; width: 12px; height: 12px; border-radius: 3px; background: var(--visa-gold); }
.badge-featured { position: absolute; top: 12px; right: 12px; }

/* === FOOTER === */
.main-footer { background: var(--visa-blue); color: #EAF0FF; text-align: center; padding: 28px 0; }
.main-footer .footer-disclaimer { max-width: 72ch; margin: 12px auto 0; color: rgba(255, 255, 255, .8); }

/* ==================================
   MOBILE DROPDOWN STYLES (GANTI YANG LAMA)
   ================================== */

@media (max-width: 960px) {
  .nav-container {
    position: relative; /* Diperlukan agar dropdown pas di bawahnya */
  }

  /* Sembunyikan tombol login desktop & tampilkan hamburger */
  .header-actions {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-block;
    cursor: pointer;
    background: transparent;
    border: 0;
    font-size: 28px;
    color: var(--visa-blue);
  }

  /* Tombol close tidak dipakai lagi */
  .nav-close-btn {
    display: none;
  }
  
  /* --- GAYA DROPDOWN MENU --- */
  .nav-links {
    /* 1. Posisi & Ukuran */
    position: absolute;
    top: 100%; /* Tepat di bawah header */
    left: 0;
    right: 0;
    width: 100%;
    height: auto; /* Tinggi sesuai konten (jumlah menu) */
    
    /* 2. Tampilan */
    background: var(--bg);
    border-top: 1px solid var(--border);
    box-shadow: 0 10px 20px -5px rgba(13, 28, 73, 0.1);
    padding: 10px 0;
    
    /* 3. Atur item menu jadi vertikal */
    display: flex;
    flex-direction: column;
    align-items: center; /* Teks menu di tengah */
    gap: 5px;

    /* 4. Kondisi awal: disembunyikan & sedikit di atas */
    opacity: 0;
    transform: translateY(-10px);
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  }
  
  .nav-links .nav-link {
    width: 100%;
    text-align: center;
    padding: 10px 20px;
  }
  .nav-links .nav-link:hover {
    background-color: var(--bg-soft);
  }
  .nav-links .nav-link::after {
    display: none; /* Sembunyikan garis bawah kuning di mobile */
  }

  /* 5. Kondisi aktif: ditampilkan saat .show-menu ada */
  .nav-links.show-menu {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
  }

  /* Atur ulang layout grid lain di mobile */
  .pricing-grid {
    grid-template-columns: 1fr;
  }
}

/* Opsional: styling diskon */
.price { display: flex; align-items: baseline; gap: .5rem; flex-wrap: wrap; }
.price .original del { opacity: .6; }
.price .sale { font-weight: 700; font-size: 1.25em; }
.price .discount-badge {
  font-size: .75rem; padding: .15rem .5rem; border-radius: .375rem;
  background: #ffe8e8; color: #c00;
}