:root {
  --bg: #0b0b10;
  --bg-2: #14141c;
  --gold: #d4af37;
  --gold-2: #f5d97a;
  --text: #f5f5f5;
  --muted: #9aa0a6;
  --line: #2a2a36;
  --red: #e63946;

  --card-bg: #ffffff;
  --card-text: #1a1a1a;
  --card-muted: #555a63;
  --card-line: #e5e7eb;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--gold-2); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

.container { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11,11,16,0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.logo {
  font-weight: 800; letter-spacing: 0.5px;
  color: var(--gold); font-size: 18px;
}
.logo span { color: var(--text); }
.nav-links { display: flex; gap: 18px; align-items: center; }
.nav-links a {
  color: var(--text); font-size: 14px;
}
.nav-links a:hover { color: var(--gold-2); text-decoration: none; }

.lang-switch {
  display: inline-flex; gap: 0; border: 1px solid var(--gold);
  border-radius: 6px; overflow: hidden; margin-left: 8px;
}
.lang-switch a {
  padding: 4px 10px; font-size: 12px; font-weight: 700;
  color: var(--gold-2);
}
.lang-switch a.active {
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: #1b1500;
}
.lang-switch a:hover { text-decoration: none; }

@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-links.open { display: flex; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; background: var(--bg-2); padding: 16px 20px; border-bottom: 1px solid var(--line); }
  .menu-btn { display: inline-block; }
}
.menu-btn { display: none; background: transparent; border: 1px solid var(--line); color: var(--text); padding: 6px 10px; border-radius: 6px; cursor: pointer; }

/* Hero — kept compact so hero + first content section fit in ~1 viewport */
.hero {
  position: relative;
  padding: 36px 0 32px;
  background:
    radial-gradient(900px 400px at 20% -10%, rgba(212,175,55,0.18), transparent 60%),
    radial-gradient(700px 400px at 90% 10%, rgba(212,175,55,0.10), transparent 60%),
    linear-gradient(180deg, #0b0b10 0%, #0e0e15 100%);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.hero.compact { padding: 14px 0 10px; }
.hero.compact h1 { font-size: clamp(20px, 3vw, 28px); margin: 0 0 4px; }
.hero.compact p.lead { font-size: 13px; margin: 0; }
/* The first content section right after a compact hero needs less top breathing room. */
.hero.compact + section { padding-top: 16px; }

/* Group hero + first content section as a single "above the fold" block,
   so the next section (e.g. Featured) is guaranteed to start below the fold. */
.page-fold { min-height: calc(100vh - 64px); display: flex; flex-direction: column; }
.page-fold > section { flex: 0 0 auto; }
.page-fold > section:last-child {
  flex: 1 0 auto;
  display: flex; flex-direction: column; justify-content: center;
  padding: 40px 0;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center;
  opacity: 0.22;
  filter: saturate(1.1);
}
.hero .container { position: relative; z-index: 1; }
.hero h1 {
  font-size: clamp(24px, 4vw, 38px);
  line-height: 1.2; margin: 0 0 10px;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,0.6);
}
.hero h1 .accent { color: var(--gold); }
.hero p.lead { color: #e5e7eb; font-size: 15px; max-width: 640px; text-shadow: 0 1px 8px rgba(0,0,0,0.6); margin: 6px 0; }
.cta-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.hero .btn { padding: 10px 18px; font-size: 14px; }

.btn {
  display: inline-block; padding: 14px 22px; border-radius: 8px;
  font-weight: 700; font-size: 15px; cursor: pointer;
  transition: transform 0.08s ease, box-shadow 0.2s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: #1b1500;
  box-shadow: 0 6px 24px rgba(212,175,55,0.25);
}
.btn-secondary {
  background: transparent;
  color: var(--gold-2);
  border: 1px solid var(--gold);
}
.btn-dark {
  background: #1a1a24;
  color: var(--gold-2);
  border: 1px solid var(--gold);
}

/* Sections */
section { padding: 28px 0; border-bottom: 1px solid var(--line); }
.section-title {
  font-size: clamp(20px, 2.6vw, 26px);
  margin: 0 0 6px; color: #fff;
}
.section-sub { color: var(--muted); margin: 0 0 18px; font-size: 14px; }

/* Section feature image */
.feature-img {
  margin: 0 0 32px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  max-height: 320px;
}
.feature-img img { width: 100%; height: 100%; object-fit: cover; max-height: 320px; }

/* Cards — white background, black text */
.grid { display: grid; gap: 18px; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) { .grid.cols-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .grid.cols-3, .grid.cols-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--card-bg);
  color: var(--card-text);
  border: 1px solid var(--card-line);
  border-radius: 12px;
  padding: 0;
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.08s ease, box-shadow 0.2s ease;
  display: flex; flex-direction: column;
}
.card:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(212,175,55,0.18);
}
.card-img {
  width: 100%; aspect-ratio: 1 / 1; max-height: 260px; overflow: hidden;
  background: #f3f4f6;
  display: flex; align-items: center; justify-content: center;
  padding: 8px;
}
.card-img img { width: 100%; height: 100%; object-fit: contain; }
/* 2-column grids would otherwise produce huge images — cap them. */
.grid.cols-2 .card-img { aspect-ratio: 16 / 9; max-height: 240px; }

/* Horizontal variant: image left, text right — used for the "Why buy" cards. */
.card.horizontal { flex-direction: row; padding: 0; min-height: 180px; }
.card.horizontal .card-img {
  width: 45%; aspect-ratio: auto; max-height: none; padding: 0;
  flex-shrink: 0;
}
.card.horizontal .card-img img { object-fit: cover; height: 100%; }
.card.horizontal .card-body { padding: 22px 22px; justify-content: center; }
.card.horizontal h3 { font-size: 18px; margin: 6px 0 8px; }
.card.horizontal p { font-size: 14px; line-height: 1.5; margin: 0; }

.card-img.coming-soon {
  background:
    repeating-linear-gradient(
      45deg,
      #1a1a24 0 12px,
      #14141c 12px 24px
    );
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.card-img.coming-soon::before {
  content: "COMING SOON";
  color: var(--gold-2);
  font-weight: 800; letter-spacing: 2px; font-size: 14px;
  padding: 8px 16px;
  border: 2px solid var(--gold);
  border-radius: 6px;
  background: rgba(11,11,16,0.7);
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}
.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; gap: 4px; }
.card h3 { margin: 0 0 6px; color: #111; font-size: 15px; line-height: 1.4; }
.card p { color: var(--card-muted); margin: 0 0 8px; font-size: 13px; }
.card p.price-row { margin: 4px 0 6px; font-size: 16px; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.card .price-jp { color: #b3242f; font-weight: 800; }
.card .price-myr {
  color: #6b5210; font-weight: 700; font-size: 13px;
  background: rgba(212,175,55,0.18);
  padding: 2px 8px; border-radius: 999px;
  display: inline-flex; align-items: baseline; gap: 6px;
}
.card .price-myr small { font-weight: 500; color: #8a6d10; font-size: 10px; }
.card p.meta-row { font-size: 11px; color: #6b7280; margin: 0 0 12px; flex: 1; }
.card-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; }
.btn-sm { padding: 8px 14px; font-size: 13px; }
.card .btn-primary { background: linear-gradient(135deg, var(--gold), var(--gold-2)); color: #1b1500; }
.card .btn-secondary {
  background: transparent; color: #6b5210; border: 1px solid #c9a227;
}
.card .btn-secondary:hover { background: #faf6e6; }
.card .btn-secondary {
  color: #1b1500;
  border-color: #c9a227;
  background: linear-gradient(135deg, #fff7d9, #fbe79a);
  align-self: flex-start;
}
.card .btn-secondary:hover { background: linear-gradient(135deg, #ffeeb0, #f5d97a); }

.badge {
  display: inline-block; font-size: 11px; padding: 3px 8px;
  border-radius: 999px; background: rgba(212,175,55,0.18);
  color: #6b5210; border: 1px solid rgba(212,175,55,0.45);
  margin-bottom: 10px; letter-spacing: 0.5px; font-weight: 700;
  align-self: flex-start;
}
.badge.red { background: rgba(230,57,70,0.12); color: #b3242f; border-color: rgba(230,57,70,0.45); }

/* Steps — white */
.steps { counter-reset: step; display: grid; gap: 16px; }
.step {
  background: var(--card-bg);
  color: var(--card-text);
  border: 1px solid var(--card-line);
  border-radius: 12px;
  padding: 20px 22px 20px 70px;
  position: relative;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute; left: 18px; top: 18px;
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: #1b1500; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
}
.step h3 { margin: 0 0 6px; font-size: 17px; color: #111; }
.step p { margin: 0; color: var(--card-muted); font-size: 14px; }
.step a { color: #8a6d10; font-weight: 600; }

/* Table — white */
.table-wrap { overflow-x: auto; }
table.compare {
  width: 100%; border-collapse: collapse; min-width: 520px;
  background: var(--card-bg); color: var(--card-text);
  border: 1px solid var(--card-line);
  border-radius: 12px; overflow: hidden;
}
table.compare th, table.compare td {
  padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--card-line);
  font-size: 14px;
}
table.compare th { background: #faf6e6; color: #6b5210; font-weight: 700; }
table.compare tr:last-child td { border-bottom: none; }
.price-jp { color: #8a6d10; font-weight: 700; }
.price-my { color: #b3242f; font-weight: 700; }
.savings { color: #1e7a3a; font-weight: 700; }

/* FAQ — white */
details.faq {
  background: var(--card-bg);
  color: var(--card-text);
  border: 1px solid var(--card-line);
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 10px;
}
details.faq summary {
  cursor: pointer; font-weight: 600; color: #111; outline: none;
  list-style: none;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: "+"; float: right; color: #c9a227; font-size: 20px; line-height: 1;
}
details.faq[open] summary::after { content: "−"; }
details.faq p { color: var(--card-muted); margin: 12px 0 0; font-size: 14px; }
details.faq a { color: #8a6d10; font-weight: 600; }

/* Footer */
footer {
  padding: 32px 0; color: var(--muted); font-size: 13px;
  text-align: center;
}
footer a { color: var(--muted); }
.disclaimer {
  background: #1a1a24; border: 1px solid var(--line); border-radius: 8px;
  padding: 12px 16px; font-size: 12px; color: var(--muted);
  margin: 20px 0;
}
