/* GasLamar Custom Styles */

:root {
  --primary: #1B4FE8;
  --accent: #22C55E;
  --warning: #F59E0B;
  --danger: #EF4444;
  --navy: #0B1729;
  --navy-800: #0F2040;
}

/* Fonts */
body {
  font-family: 'Inter', sans-serif;
}

h1, h2, h3, h4, h5, h6,
.font-heading {
  font-family: 'Plus Jakarta Sans', sans-serif;
}

/* =====================================================
   ENTRANCE ANIMATIONS
   ===================================================== */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.anim-fade-up {
  animation: fadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.anim-delay-1 { animation-delay: 0.1s; opacity: 0; }
.anim-delay-2 { animation-delay: 0.22s; opacity: 0; }
.anim-delay-3 { animation-delay: 0.38s; opacity: 0; }
.anim-delay-4 { animation-delay: 0.54s; opacity: 0; }

/* =====================================================
   HERO SECTION
   ===================================================== */

.hero-section {
  position: relative;
  background: var(--navy);
}

.hero-glow {
  background:
    radial-gradient(ellipse 90% 55% at 50% -5%, rgba(27, 79, 232, 0.40) 0%, transparent 65%),
    radial-gradient(ellipse 60% 30% at 80% 80%, rgba(34, 197, 94, 0.06) 0%, transparent 60%);
}

.hero-grid {
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* =====================================================
   BUTTON SHINE EFFECT
   ===================================================== */

.btn-shine {
  position: relative;
  overflow: hidden;
}
.btn-shine::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 55%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
  transform: skewX(-18deg);
  transition: left 0.55s ease;
}
.btn-shine:hover::after { left: 160%; }

/* =====================================================
   ELEVATED CARD SYSTEM
   ===================================================== */

.card-elevated {
  box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 4px 16px rgba(0,0,0,0.06);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.card-elevated:hover {
  box-shadow: 0 4px 8px rgba(0,0,0,0.06), 0 12px 32px rgba(0,0,0,0.10);
  transform: translateY(-2px);
}

/* =====================================================
   STEP CONNECTOR (cara kerja section)
   ===================================================== */

@media (min-width: 640px) {
  .step-item {
    position: relative;
  }
  .step-item:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 22px;
    left: calc(50% + 36px);
    width: calc(100% - 72px);
    height: 1px;
    background: linear-gradient(90deg, #CBD5E1, #E2E8F0, #CBD5E1);
  }
}

/* =====================================================
   SPINNER
   ===================================================== */

@keyframes spin {
  to { transform: rotate(360deg); }
}

.spinner {
  animation: spin 0.8s linear infinite;
  border-width: 3px;
  border-style: solid;
}

/* =====================================================
   SCORE RING (hasil page)
   ===================================================== */

@keyframes scoreReveal {
  from { stroke-dashoffset: 534; }
  to   { stroke-dashoffset: var(--target-offset); }
}

/* Smooth ring transition */
#score-ring {
  transition: stroke-dashoffset 1.2s cubic-bezier(0.22, 1, 0.36, 1),
              stroke 0.4s ease;
}

.score-animate {
  animation: scoreReveal 1.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* Score ring colour variants */
.score-high   { stroke: #22C55E; }
.score-medium { stroke: #F59E0B; }
.score-low    { stroke: #EF4444; }

/* =====================================================
   TIER CARD (hasil + index pricing)
   ===================================================== */

.tier-card.selected {
  background-color: rgba(255, 255, 255, 0.3);
  border-color: white;
  border-width: 2px;
  box-shadow: 0 0 0 4px rgba(255,255,255,0.2);
}

/* =====================================================
   FAQ
   ===================================================== */

.faq-icon.rotate-180 {
  transform: rotate(180deg);
}

/* =====================================================
   DROP ZONE
   ===================================================== */

.drop-zone-active {
  border-color: var(--primary) !important;
  background-color: rgba(27, 79, 232, 0.04) !important;
  box-shadow: 0 0 0 4px rgba(27, 79, 232, 0.08);
}

/* =====================================================
   DOWNLOAD BUTTONS
   ===================================================== */

.dl-btn {
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.dl-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(27, 79, 232, 0.14);
}
.dl-btn:active {
  transform: translateY(0);
  box-shadow: none;
}

/* =====================================================
   TRANSITIONS (global)
   ===================================================== */

/* Scoped transitions — avoid global * rule which causes jank on low-end Android */
a, button, input, textarea, select,
.btn-shine, .faq-icon, .dl-btn,
[class*="hover:"], [class*="transition"] {
  transition-property: color, background-color, border-color, box-shadow, transform, opacity;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.no-transition { transition: none !important; }

/* =====================================================
   SCROLLBAR
   ===================================================== */

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #F3F4F6; }
::-webkit-scrollbar-thumb { background: #D1D5DB; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #9CA3AF; }

/* =====================================================
   FOCUS RING
   ===================================================== */

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* =====================================================
   SECTION EYEBROW LABEL
   ===================================================== */

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(27, 79, 232, 0.08);
  border: 1px solid rgba(27, 79, 232, 0.15);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

/* =====================================================
   TESTIMONIAL QUOTE MARK
   ===================================================== */

.quote-open {
  font-family: Georgia, serif;
  font-size: 72px;
  line-height: 0.6;
  color: var(--primary);
  opacity: 0.15;
  display: block;
  margin-bottom: 8px;
  user-select: none;
}

/* =====================================================
   STATS BAR (below hero)
   ===================================================== */

.stats-bar-item + .stats-bar-item {
  border-left: 1px solid rgba(255,255,255,0.07);
  padding-left: 2rem;
  margin-left: 0;
}
/* On mobile flex-wrap, 3rd+ items start a new row — remove divider so it doesn't float mid-row */
@media (max-width: 639px) {
  .stats-bar-item + .stats-bar-item {
    border-left: none;
    padding-left: 0;
  }
}

/* =====================================================
   PRICING — per-CV rate pill
   ===================================================== */

.per-cv-rate {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  background: rgba(34, 197, 94, 0.12);
  color: #16A34A;
  padding: 2px 8px;
  border-radius: 999px;
  margin-top: 4px;
}

.per-cv-rate-white {
  background: rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.9);
}



@media (max-width: 640px) {
  .mobile-download-show {
    display: block !important;
  }
}

/* =====================================================
   NAVBAR BLUR
   ===================================================== */

.nav-blur {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(255,255,255,0.92) !important;
}

.nav-dark {
  background: rgba(11, 23, 41, 0.95) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-color: rgba(255,255,255,0.06) !important;
}
