/* =============================================================================
   style.css — PT. Satria Tama Cemerlang
   Desain premium + sistem animasi (reveal fade/blur, word-reveal, count-up,
   marquee, timeline, arc, pulse) — melengkapi Tailwind CDN.
   ============================================================================= */

:root {
  --primary: #1E3A6E;
  --navy-soft: #2B4C8C;
  --navy-deep: #0f1f3d;
  --accent: #F4B942;
  --accent-soft: #FBD68A;
  --teal: #15968f;
  --dark: #1F2937;
  --soft: #F6F7F3;
  --ease: cubic-bezier(.22,.61,.36,1);
}

* { -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; }
::selection { background: rgba(244,185,66,.3); color: var(--primary); }

/* ---------- NAVBAR ---------- */
#navbar.nav-scrolled {
  background: rgba(255,255,255,.75);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  box-shadow: 0 1px 0 rgba(0,0,0,.06), 0 10px 30px -18px rgba(30,58,110,.3);
}
#nav-links a { color: var(--dark); position: relative; transition: color .2s ease; }
#nav-links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -6px; height: 2px;
  background: var(--accent); border-radius: 2px; transition: right .25s var(--ease);
}
#nav-links a:hover { color: var(--primary); }
#nav-links a:hover::after { right: 0; }

/* ---------- PILL BADGE ---------- */
.pill-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .4rem .85rem; border-radius: 9999px;
  font-size: .75rem; font-weight: 600; letter-spacing: .01em;
  color: var(--primary);
  background: rgba(244,185,66,.14);
  border: 1px solid rgba(244,185,66,.38);
}
.pill-badge::before {
  content: ""; width: .5rem; height: .5rem; border-radius: 9999px; background: var(--accent);
}
.pill-badge--live::before { animation: pulse 1.8s var(--ease) infinite; }
.pill-badge--dark {
  color: #fff; background: rgba(255,255,255,.06); border-color: rgba(244,185,66,.4);
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(244,185,66,.55); }
  70% { box-shadow: 0 0 0 7px rgba(244,185,66,0); }
  100% { box-shadow: 0 0 0 0 rgba(244,185,66,0); }
}

/* ---------- TITLES ---------- */
.section-title {
  font-family: 'Archivo','Inter',sans-serif; font-weight: 800;
  letter-spacing: -.025em; line-height: 1.08; color: var(--primary);
  font-size: clamp(2rem, 1.2rem + 3vw, 3.25rem);
}
.section-subtitle { color: rgba(31,41,55,.6); font-size: 1.05rem; line-height: 1.6; max-width: 44rem; }
.hl { color: var(--accent); }
.section-dark .hl { color: var(--accent); }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .72rem 1.4rem; border-radius: 9999px; font-weight: 600; font-size: .95rem;
  transition: transform .18s var(--ease), box-shadow .25s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap; cursor: pointer;
}
.btn svg { width: 1.1rem; height: 1.1rem; }
.btn-accent { background: var(--accent); color: var(--primary); box-shadow: 0 8px 24px -6px rgba(244,185,66,.5); }
.btn-accent:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -6px rgba(244,185,66,.6); }
.btn-outline { background: transparent; color: var(--primary); border: 1.5px solid rgba(30,58,110,.22); }
.btn-outline:hover { border-color: var(--primary); background: rgba(30,58,110,.04); transform: translateY(-2px); }
.btn-light { background: #fff; color: var(--primary); box-shadow: 0 8px 24px -8px rgba(0,0,0,.4); }
.btn-light:hover { transform: translateY(-2px); }
.btn-ghost { background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.18); }
.btn-ghost:hover { background: rgba(255,255,255,.18); }

/* ---------- HERO ---------- */
.hero { background:
  radial-gradient(60% 50% at 50% 0%, rgba(43,76,140,.10), transparent 70%),
  linear-gradient(to bottom, #fff 0%, var(--soft) 100%);
}
.hero-glow {
  position: absolute; top: -10%; left: 50%; transform: translateX(-50%);
  width: 70vw; height: 42vw; max-width: 900px; max-height: 520px;
  background: radial-gradient(closest-side, rgba(244,185,66,.18), transparent 70%);
  filter: blur(10px); pointer-events: none;
}
.hero-media img { transition: transform .9s var(--ease); }
.hero-media:hover img { transform: scale(1.04); }
.hero-chip {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .55rem .9rem; border-radius: 9999px;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25);
  color: #fff; font-size: .8rem; font-weight: 600;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.hero-chip svg { width: 1rem; height: 1rem; color: var(--accent-soft); }

/* ---------- WORD REVEAL (intro) ---------- */
.word-reveal .w { color: rgba(30,58,110,.18); transition: color .4s var(--ease); }
.word-reveal .w.on { color: var(--primary); }
.word-reveal .w.hl-w { color: rgba(244,185,66,.25); }
.word-reveal .w.hl-w.on { color: var(--accent); }

/* ---------- MARQUEE ---------- */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 1rem; width: max-content; animation: marquee 32s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.trust-chip {
  display: inline-flex; align-items: center; gap: .55rem; white-space: nowrap;
  padding: .7rem 1.1rem; border-radius: 9999px; background: var(--soft);
  color: rgba(31,41,55,.5); font-size: .85rem; font-weight: 600;
}
.trust-chip svg { width: 1.15rem; height: 1.15rem; }

/* ---------- ICON TILE (duotone 3D-ish) ---------- */
.icon-tile {
  display: inline-flex; align-items: center; justify-content: center;
  width: 3.1rem; height: 3.1rem; border-radius: .9rem;
  background: linear-gradient(145deg, #27447a, var(--primary));
  color: var(--accent);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 10px 20px -10px rgba(30,58,110,.5);
}
.icon-tile svg { width: 1.5rem; height: 1.5rem; }
.section-dark .icon-tile { background: linear-gradient(145deg, rgba(255,255,255,.1), rgba(255,255,255,.04)); box-shadow: inset 0 1px 0 rgba(255,255,255,.15); }

/* ---------- CARDS ---------- */
.card {
  background: #fff; border: 1px solid rgba(0,0,0,.07); border-radius: 1.3rem;
  transition: transform .25s var(--ease), box-shadow .3s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 22px 50px -24px rgba(30,58,110,.35); border-color: rgba(30,58,110,.14); }
.section-dark .card { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.1); }
.section-dark .card:hover { background: rgba(255,255,255,.07); border-color: rgba(244,185,66,.4); box-shadow: none; }

/* Feature cards (services) */
.feature-card { position: relative; border-radius: 1.5rem; overflow: hidden; min-height: 330px; display: flex; align-items: flex-end; isolation: isolate; }
.feature-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); z-index: -2; }
.feature-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(15,31,61,.94) 0%, rgba(15,31,61,.45) 50%, rgba(15,31,61,.12) 100%); z-index: -1; }
.feature-card:hover img { transform: scale(1.06); }
.feature-num {
  position: absolute; top: 1.1rem; left: 1.1rem; z-index: 2;
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.4rem; height: 2.4rem; border-radius: 9999px; font-size: .8rem; font-weight: 700;
  color: #fff; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25);
  backdrop-filter: blur(6px); font-family: 'Archivo',sans-serif;
}
.feature-hero {
  position: relative; border-radius: 1.5rem; overflow: hidden; min-height: 330px;
  display: flex; flex-direction: column; justify-content: flex-end; padding: 1.75rem;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(244,185,66,.16), transparent 55%),
    linear-gradient(150deg, var(--teal) -10%, var(--navy-soft) 45%, var(--primary) 100%);
  color: #fff; isolation: isolate;
}
.feature-hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.1) 1px, transparent 1px);
  background-size: 22px 22px; opacity: .5; z-index: -1;
}
.feature-hero .icon-tile { background: rgba(255,255,255,.14); color: #fff; }

/* ---------- HOW / TIMELINE ---------- */
.how-stage { background: var(--primary); }
.how-stage .icon-tile { background: rgba(255,255,255,.12); }
.step-card {
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16);
  border-radius: 1rem; padding: 1.1rem 1.2rem; color: #fff;
  backdrop-filter: blur(6px); transition: transform .25s var(--ease), background .25s ease;
}
.step-card:hover { transform: translateY(-4px); background: rgba(255,255,255,.16); }
.step-card .step-k { font-family: 'Archivo',sans-serif; font-weight: 700; color: var(--accent); font-size: .8rem; }
.timeline-rail { position: relative; height: 2px; background: repeating-linear-gradient(to right, rgba(255,255,255,.35) 0 7px, transparent 7px 14px); }
.timeline-nodes { position: absolute; inset: 0; display: flex; justify-content: space-between; align-items: center; }
.t-node { width: 1.1rem; height: 1.1rem; border-radius: 9999px; background: rgba(255,255,255,.25); border: 2px solid rgba(255,255,255,.6); }
.t-node.active { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 6px rgba(244,185,66,.25); }
.how-callout {
  display: inline-block; max-width: 22rem; margin-left: auto;
  background: var(--accent); color: var(--primary); border-radius: 1rem; padding: 1rem 1.2rem;
  box-shadow: 0 16px 40px -16px rgba(244,185,66,.6);
}
.how-callout h4 { font-weight: 700; }
.how-callout p { font-size: .85rem; opacity: .85; margin-top: .25rem; }

/* ---------- MISSION bullets ---------- */
.mission-item { display: flex; gap: .85rem; color: rgba(255,255,255,.85); }
.mission-item::before { content: ""; flex-shrink: 0; margin-top: .55rem; width: .5rem; height: .5rem; border-radius: 9999px; background: var(--accent); box-shadow: 0 0 0 4px rgba(244,185,66,.18); }

/* ---------- DARK SECTIONS ---------- */
.section-dark {
  background:
    radial-gradient(90% 60% at 50% 0%, rgba(43,76,140,.35), transparent 60%),
    var(--navy-deep);
}
.dot-pattern {
  background-image: radial-gradient(rgba(255,255,255,.14) 1.1px, transparent 1.1px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 85% 70% at 50% 40%, #000 35%, transparent 85%);
          mask-image: radial-gradient(ellipse 85% 70% at 50% 40%, #000 35%, transparent 85%);
}
.glow-orb { position: absolute; border-radius: 9999px; filter: blur(70px); pointer-events: none; }
.glow-orb--gold { width: 380px; height: 380px; background: rgba(244,185,66,.14); top: 10%; left: -120px; }

/* reach pillars */
.pillar {
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); border-radius: 1.1rem;
  padding: 1.4rem; text-align: left; transition: border-color .25s ease, background .25s ease, transform .25s var(--ease);
}
.pillar:hover { border-color: rgba(244,185,66,.4); background: rgba(255,255,255,.07); transform: translateY(-4px); }
.stat-num { font-family: 'Archivo',sans-serif; font-weight: 800; color: var(--accent); font-size: clamp(2rem,1.4rem+2vw,3rem); line-height: 1; }

/* ---------- ARC SHOWCASE (clients) ---------- */
.arc-stage { display: none; } /* desktop only */
@media (min-width: 1024px) {
  .arc-stage { display: block; position: relative; height: 460px; }
  .arc-nodes { position: absolute; inset: 0; }
  .arc-node {
    position: absolute; transform: translate(-50%,-50%);
    display: flex; flex-direction: column; align-items: center; gap: .5rem; text-align: center; width: 150px;
  }
  .arc-node .arc-ic {
    width: 3rem; height: 3rem; border-radius: 9999px; display: grid; place-items: center;
    background: #fff; border: 1px solid rgba(30,58,110,.12); color: var(--primary);
    box-shadow: 0 14px 30px -14px rgba(30,58,110,.4);
  }
  .arc-node .arc-ic svg { width: 1.4rem; height: 1.4rem; }
  .arc-node span { font-size: .8rem; font-weight: 600; color: rgba(31,41,55,.7); line-height: 1.2; }
  .arc-node.n1 { top: 52%; left: 8%; }
  .arc-node.n2 { top: 20%; left: 24%; }
  .arc-node.n3 { top: 6%;  left: 50%; }
  .arc-node.n4 { top: 20%; left: 76%; }
  .arc-node.n5 { top: 52%; left: 92%; }
  .arc-center { position: absolute; inset: 0; display: grid; place-items: end center; }
  .arc-image { position: relative; width: 300px; height: 300px; border-radius: 2rem; overflow: hidden; box-shadow: 0 30px 60px -24px rgba(30,58,110,.5); }
  .arc-image img { width: 100%; height: 100%; object-fit: cover; }
  .arc-center-pill {
    position: absolute; left: 50%; top: -1rem; transform: translateX(-50%);
    background: #fff; color: var(--primary); font-weight: 600; font-size: .8rem;
    padding: .45rem .9rem; border-radius: 9999px; box-shadow: 0 10px 24px -10px rgba(30,58,110,.4);
    display: inline-flex; align-items: center; gap: .4rem;
  }
  .arc-center-pill::before { content: ""; width: .5rem; height: .5rem; border-radius: 9999px; background: var(--accent); }
  /* dashed arc line behind nodes */
  .arc-stage::before {
    content: ""; position: absolute; left: 8%; right: 8%; top: 6%; height: 50%;
    border: 2px dashed rgba(30,58,110,.18); border-bottom: none;
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  }
}

/* client grid card */
.client-card { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 1.5rem 1rem; }

/* ---------- FAQ ---------- */
.faq-item { border: 1px solid rgba(255,255,255,.12); border-radius: 1rem; background: rgba(255,255,255,.04); overflow: hidden; transition: background .25s ease, border-color .25s ease; }
.faq-item.open { background: rgba(255,255,255,.07); border-color: rgba(244,185,66,.35); }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.3rem; text-align: left; font-weight: 600; color: #fff; cursor: pointer; }
.faq-icon { flex-shrink: 0; position: relative; width: 1.2rem; height: 1.2rem; color: var(--accent); }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; background: currentColor; transition: transform .28s var(--ease), opacity .28s ease; }
.faq-icon::before { top: 50%; left: 0; right: 0; height: 2px; transform: translateY(-50%); }
.faq-icon::after { left: 50%; top: 0; bottom: 0; width: 2px; transform: translateX(-50%); }
.faq-item.open .faq-icon::after { transform: translateX(-50%) scaleY(0); opacity: 0; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); }
.faq-a-inner { padding: 0 1.3rem 1.2rem; color: rgba(255,255,255,.68); line-height: 1.65; }

/* FAQ decorative 3D-ish art */
.faq-art { position: relative; width: 240px; height: 240px; }
.faq-art::before {
  content: ""; position: absolute; inset: 0; border-radius: 42% 58% 55% 45% / 50% 48% 52% 50%;
  background: linear-gradient(145deg, var(--teal), var(--primary));
  box-shadow: inset 0 2px 10px rgba(255,255,255,.2), 0 40px 80px -30px rgba(21,150,143,.6);
  animation: float 6s ease-in-out infinite;
}
.faq-art::after {
  content: "?"; position: absolute; inset: 0; display: grid; place-items: center;
  font-family: 'Archivo',sans-serif; font-weight: 800; font-size: 7rem; color: rgba(255,255,255,.9);
  animation: float 6s ease-in-out infinite;
}
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* ---------- FOOTER ---------- */
#footer-columns a, #footer-contact a { transition: color .2s ease; }
.social-btn { display: inline-flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; border-radius: .75rem; background: rgba(255,255,255,.08); color: #fff; transition: background .2s ease, transform .15s ease, color .2s ease; }
.social-btn:hover { background: var(--accent); color: var(--primary); transform: translateY(-2px); }
.social-btn svg { width: 1.2rem; height: 1.2rem; }
.wordmark { font-size: 20vw; margin-bottom: -2.5vw; letter-spacing: -.02em; }

/* FAB */
.fab-wa { box-shadow: 0 10px 30px -8px rgba(37,211,102,.6); }

/* ---------- REVEAL ANIMATIONS ---------- */
[data-reveal], [data-stagger] > * {
  opacity: 0; transform: translateY(26px); filter: blur(6px);
  transition: opacity .7s var(--ease), transform .7s var(--ease), filter .7s var(--ease);
  will-change: opacity, transform, filter;
}
[data-reveal].in, [data-stagger] > *.in { opacity: 1; transform: none; filter: none; }

/* ---------- INTERACTIVE: scroll progress bar ---------- */
#scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-soft));
  z-index: 60; transition: width .08s linear; box-shadow: 0 0 10px rgba(244,185,66,.5);
}

/* ---------- INTERACTIVE: active nav link (scrollspy) ---------- */
#nav-links a.active { color: var(--primary); }
#nav-links a.active::after { right: 0; }

/* ---------- INTERACTIVE: hero parallax layers ---------- */
.hero-media img, #hero-chips { transition: transform .25s var(--ease); will-change: transform; }

/* ---------- INTERACTIVE: arc node hover ---------- */
@media (min-width: 1024px) {
  .arc-node { cursor: pointer; }
  .arc-node .arc-ic { transition: transform .25s var(--ease), box-shadow .25s ease, background .25s ease, color .25s ease; }
  .arc-node span { transition: color .2s ease; }
  .arc-node.hot .arc-ic { background: var(--primary); color: #fff; transform: scale(1.12); box-shadow: 0 18px 36px -12px rgba(30,58,110,.6); }
  .arc-node.hot span { color: var(--primary); }
  .arc-stage.has-hot .arc-node:not(.hot) { opacity: .45; }
  .arc-node { transition: opacity .25s ease; }
  .arc-center-pill span { transition: opacity .2s ease; }
  .arc-image img { transition: transform .5s var(--ease); }
  .arc-stage.has-hot .arc-image img { transform: scale(1.05); }
}

/* ---------- INTERACTIVE: card tilt sheen (services/why) ---------- */
.card, .feature-card, .feature-hero { will-change: transform; }

/* ---------- Back-to-top button ---------- */
#to-top {
  position: fixed; bottom: 5.5rem; right: 1.25rem; z-index: 40;
  width: 2.75rem; height: 2.75rem; border-radius: 9999px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--primary); color: #fff; border: 1px solid rgba(255,255,255,.15);
  box-shadow: 0 10px 24px -8px rgba(30,58,110,.6);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .3s ease, transform .3s var(--ease), visibility .3s, background .2s ease;
  cursor: pointer;
}
#to-top.show { opacity: 1; visibility: visible; transform: none; }
#to-top:hover { background: var(--navy-soft); }
#to-top svg { width: 1.2rem; height: 1.2rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal], [data-stagger] > * { opacity: 1 !important; transform: none !important; filter: none !important; transition: none !important; }
  .marquee-track, .faq-art::before, .faq-art::after, .pill-badge--live::before { animation: none !important; }
  .word-reveal .w { color: var(--primary) !important; }
  .word-reveal .w.hl-w { color: var(--accent) !important; }
  .hero-media img, #hero-chips { transform: none !important; }
}
