/* ============================================================
   PTD DTC Landing Page — components.css
   Nav, Hero, Buttons, Pain Cards, Features, Portfolio, Guarantee, FAQ
   Pasukan Tempur Digital © 2026
   ============================================================ */

/* ── GLOBAL BUTTON HOVER SYSTEM ── */
.btn-hero,
.btn-form,
.nav-cta,
.pb-cta,
.sticky-btn {
  transition: transform 0.18s ease, box-shadow 0.18s ease,
              background 0.18s ease, opacity 0.18s ease;
}

.btn-hero:hover,
.btn-form:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(249, 115, 22, 0.38);
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(249, 115, 22, 0.30);
  background: var(--orange2);
}

.pb-cta:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.sticky-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(249, 115, 22, 0.40);
}

/* ── NAV ── */
nav {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0 var(--px);
  height: 68px;
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
}

.nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav-logo-badge {
  background: var(--orange);
  color: white;
  font-size: 12px;
  font-weight: 800;
  padding: 5px 10px;
  border-radius: 6px;
  letter-spacing: 1px;
}

.nav-logo-name {
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.15;
}

.nav-logo-tagline {
  font-size: 10px;
  font-weight: 500;
  color: var(--ink3);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Nav countdown */
.nav-countdown {
  display: flex;
  align-items: center;
  gap: 5px;
}

.nav-cd-label {
  font-size: 10px;
  color: var(--ink3);
  font-weight: 500;
  white-space: nowrap;
}

.nav-cd-blocks {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-cd-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--ink);
  border-radius: 4px;
  padding: 3px 6px;
  min-width: 30px;
}

.nav-cd-num {
  font-size: 13px;
  font-weight: 800;
  color: var(--orange);
  line-height: 1;
}

.nav-cd-unit {
  font-size: 6.5px;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 1px;
  letter-spacing: 0.4px;
}

.nav-cd-sep {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink4);
}

.nav-cta {
  background: var(--orange);
  color: white;
  font-size: 13px;
  font-weight: 700;
  padding: 9px 18px;
  border-radius: 8px;
  white-space: nowrap;
}

/* ── PROMO BANNER ── */
.promo-banner {
  background: var(--orange);
  padding: 10px var(--px);
  text-align: center;
}

.promo-banner-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.pb-badge {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 20px;
}

.pb-text {
  font-size: 13px;
  font-weight: 600;
  color: white;
}

.pb-cta {
  background: white;
  color: var(--orange2);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
}

/* ── HERO ── */
.hero {
  background: linear-gradient(155deg, #fff9f5 0%, var(--white) 55%);
  padding: clamp(48px, 7vw, 80px) var(--px) clamp(48px, 7vw, 72px);
  border-bottom: 1px solid var(--border);
}

.hero-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.hero-title {
  font-size: clamp(28px, 4.5vw, 50px);
  font-weight: 800;
  color: var(--ink);
  line-height: 1.12;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}

.hero-title .highlight {
  color: var(--orange);
}

.hero-sub {
  font-size: clamp(14px, 2vw, 16px);
  color: var(--ink2);
  line-height: 1.7;
  margin-bottom: 28px;
  max-width: 460px;
}

.hero-sub strong {
  color: var(--ink);
  font-weight: 600;
}

.btn-hero {
  background: var(--orange);
  color: white;
  font-size: clamp(14px, 2vw, 15px);
  font-weight: 700;
  padding: 14px 32px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  display: inline-block;
  box-shadow: 0 4px 20px rgba(249, 115, 22, 0.35);
}

/* Hero image */
.hero-img-wrap {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow3);
  border: 1px solid var(--border);
}

.hero-img-main {
  width: 100%;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #f1f5f9, #e2e8f0, #cbd5e1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.him-icon  { font-size: clamp(36px, 6vw, 52px); opacity: 0.28; }
.him-label { font-size: 12px; font-weight: 600; color: var(--ink4); }

.hero-stat-card {
  position: absolute;
  background: white;
  border-radius: 10px;
  padding: 9px 13px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  border: 1px solid var(--border);
}

.hsc-top    { left: 14px; top: 16px; }
.hsc-bottom { right: 14px; bottom: 16px; }

.hsc-label {
  font-size: 8.5px;
  font-weight: 600;
  color: var(--ink4);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.hsc-value {
  font-size: 17px;
  font-weight: 800;
  color: var(--orange);
  line-height: 1;
}

.hsc-sub { font-size: 9.5px; color: var(--ink3); margin-top: 2px; }
.hsc-green .hsc-value { color: var(--green); }

/* ── PAIN CARDS ── */
.pain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 36px;
}

.pain-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: clamp(18px, 3vw, 28px);
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
}

.pain-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red), #f87171);
}

.pain-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow2);
}

.pain-num   { font-size: 10px; font-weight: 600; color: var(--ink4); letter-spacing: 1px; margin-bottom: 8px; }
.pain-icon  { font-size: 26px; margin-bottom: 12px; }
.pain-title { font-size: clamp(14px, 2vw, 16px); font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.pain-desc  { font-size: 13px; color: var(--ink3); line-height: 1.65; }

/* ── FEATURES GRID ── */
.feat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 36px;
}

.feat-card {
  border-radius: 14px;
  padding: clamp(18px, 3vw, 24px);
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
  border: 1px solid var(--border);
  background: var(--white);
}

.feat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow2);
}

/* Dark variant — chatbot AI (#8) & support 12 bulan (#9) only */
.feat-card.dark {
  background: var(--ink);
  border-color: var(--ink);
}

.feat-card.dark .feat-name { color: white; }
.feat-card.dark .feat-desc { color: rgba(255, 255, 255, 0.6); }

.feat-card .new-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  background: var(--orange);
  color: white;
}

.feat-card .new-badge.teal-badge { background: var(--teal2); }

.feat-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  margin-bottom: 12px;
}

.fi-orange { background: var(--orange-light); }
.fi-teal   { background: var(--teal-light); }
.fi-green  { background: var(--green-light); }
.fi-dark   { background: rgba(255, 255, 255, 0.1); }

.feat-name { font-size: 15px; font-weight: 700; color: var(--ink); margin-bottom: 5px; }
.feat-desc { font-size: 13px; color: var(--ink3); line-height: 1.6; }

/* ── PORTFOLIO ── */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  background: var(--border);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.port-card {
  background: var(--white);
  transition: box-shadow 0.2s;
  overflow: hidden;
  cursor: pointer;
}

.port-card:hover .port-img-inner { transform: scale(1.05); }

.port-card.large { grid-column: span 2; }

.port-img { overflow: hidden; }

.port-img-inner {
  width: 100%;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s ease;
  position: relative;
}

.port-card.large .port-img-inner { aspect-ratio: 2/1; }

/* Per-card gradient backgrounds */
.port-card:nth-child(1) .port-img-inner { background: linear-gradient(135deg, #fdf2f8, #fce7f3, #f9a8d4); }
.port-card:nth-child(2) .port-img-inner { background: linear-gradient(135deg, #f0fdf4, #dcfce7, #86efac); }
.port-card:nth-child(3) .port-img-inner { background: linear-gradient(135deg, #fff7ed, #fed7aa, #fb923c); }
.port-card:nth-child(4) .port-img-inner { background: linear-gradient(135deg, #eff6ff, #dbeafe, #93c5fd); }
.port-card:nth-child(5) .port-img-inner { background: linear-gradient(135deg, #fefce8, #fef08a, #facc15); }

/* Decorative shapes */
.port-shape { position: absolute; border-radius: 50%; pointer-events: none; }
.ps-a { width: 90px;  height: 90px;  top: -25px;  right: -25px; opacity: 0.35; }
.ps-b { width: 55px;  height: 55px;  bottom: 14px; left: 14px;  opacity: 0.35; }
.ps-c { width: 140px; height: 140px; bottom: -55px; right: -40px; opacity: 0.12; }

.port-card:nth-child(1) .ps-a,
.port-card:nth-child(1) .ps-b,
.port-card:nth-child(1) .ps-c { background: #ec4899; }

.port-card:nth-child(2) .ps-a,
.port-card:nth-child(2) .ps-b,
.port-card:nth-child(2) .ps-c { background: #22c55e; }

.port-card:nth-child(3) .ps-a,
.port-card:nth-child(3) .ps-b,
.port-card:nth-child(3) .ps-c { background: #f97316; }

.port-card:nth-child(4) .ps-a,
.port-card:nth-child(4) .ps-b,
.port-card:nth-child(4) .ps-c { background: #3b82f6; }

.port-card:nth-child(5) .ps-a,
.port-card:nth-child(5) .ps-b,
.port-card:nth-child(5) .ps-c { background: #eab308; }

.port-icon {
  font-size: 40px;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.10));
}

.port-body  { padding: 16px 18px; border-top: 1px solid var(--border); }
.port-name  { font-size: 16px; font-weight: 800; color: var(--ink); }
.port-stat  { display: block; font-size: 12px; font-weight: 600; color: var(--green); margin-top: 4px; }

/* ── GUARANTEE ── */
.guarantee {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
  padding: var(--spy) var(--px);
  text-align: center;
}

.guarantee-badge {
  width: 90px;
  height: 90px;
  margin: 0 auto 28px;
  background: linear-gradient(135deg, var(--orange), #fbbf24);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 32px rgba(249, 115, 22, 0.4);
}

.gb-num  { font-size: 22px; font-weight: 900; color: white; line-height: 1; }
.gb-text { font-size: 7.5px; font-weight: 700; color: rgba(255,255,255,0.9); letter-spacing: 1px; text-align: center; margin-top: 2px; }

.guarantee-title {
  font-size: clamp(20px, 4vw, 32px);
  font-weight: 800;
  color: white;
  margin-bottom: 14px;
}

.guarantee-desc {
  font-size: clamp(14px, 2vw, 16px);
  color: rgba(255, 255, 255, 0.7);
  max-width: 520px;
  margin: 0 auto 36px;
  line-height: 1.65;
}

/* ── FAQ ── */
.faq-list {
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  margin-top: 36px;
}

.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:last-child { border-bottom: none; }

.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 22px;
  cursor: pointer;
  font-size: clamp(13px, 2vw, 15px);
  font-weight: 600;
  color: var(--ink);
  transition: background 0.15s;
  gap: 12px;
}

.faq-q:hover { background: var(--surface); }

.faq-arrow {
  font-size: 20px;
  color: var(--orange);
  transition: transform 0.2s;
  flex-shrink: 0;
}

.faq-a {
  display: none;
  padding: 0 22px 16px;
  font-size: 14px;
  color: var(--ink2);
  line-height: 1.7;
}

.faq-item.open .faq-a     { display: block; }
.faq-item.open .faq-arrow { transform: rotate(45deg); }
