/* ==========================================================================
   PT Nexabyte Indonesia — Design System
   ========================================================================== */

:root {
  --primary: #1565FF;
  --primary-dark: #0D47A1;
  --accent: #00BCD4;
  --navy: #0E1B2D;
  --navy-soft: #13233b;
  --gray: #6B7280;
  --gray-light: #9AA5B1;
  --ink: #0E1B2D;
  --bg: #ffffff;
  --bg-tint: #F4F8FF;
  --bg-tint-2: #EEF3FC;
  --border: #E3E9F2;
  --white: #ffffff;
  --success: #16a34a;

  --grad-primary: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 55%, var(--accent) 100%);
  --grad-navy: linear-gradient(160deg, #0A1524 0%, #122844 60%, #0d3a5c 100%);
  --grad-text: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);

  --shadow-sm: 0 2px 8px rgba(13, 27, 46, 0.06);
  --shadow-md: 0 8px 24px rgba(13, 27, 46, 0.10);
  --shadow-lg: 0 20px 50px rgba(13, 27, 46, 0.16);
  --shadow-primary: 0 12px 28px rgba(21, 101, 255, 0.28);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --container: 1200px;
  --nav-h: 84px;
  --nav-h-scrolled: 68px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --transition: 0.35s var(--ease);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, .font-head {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.18;
  letter-spacing: -0.01em;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

section { position: relative; }
.section { padding: 96px 0; }
.section-tight { padding: 64px 0; }
@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .section-tight { padding: 44px 0; }
}

.bg-tint { background: var(--bg-tint); }
.bg-navy { background: var(--grad-navy); color: #fff; }

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(0,188,212,0.18);
}
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.35rem); margin-bottom: 12px; }
.section-head p { color: var(--gray); font-size: 1.05rem; }

.text-grad {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition), border-color var(--transition);
  will-change: transform;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn-primary {
  background: var(--grad-primary);
  background-size: 160% 160%;
  background-position: 0% 50%;
  color: #fff;
  box-shadow: var(--shadow-primary);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(21,101,255,0.36); background-position: 100% 50%; }
.btn-outline {
  background: #fff;
  color: var(--primary-dark);
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.btn-white {
  background: #fff;
  color: var(--primary-dark);
}
.btn-white:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(0,0,0,0.18); }
.btn-ghost-light {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.35);
}
.btn-ghost-light:hover { background: rgba(255,255,255,0.16); transform: translateY(-3px); }
.btn-sm { padding: 10px 20px; font-size: 0.85rem; }
.btn-block { width: 100%; }
.btn-wa { background: #25D366; color: #fff; box-shadow: 0 10px 24px rgba(37,211,102,0.32); }
.btn-wa:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(37,211,102,0.4); }

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: height var(--transition), background var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.navbar.scrolled {
  height: var(--nav-h-scrolled);
  background: rgba(255,255,255,0.97);
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}
.nav-inner {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 40px; width: auto; transition: height var(--transition); }
.navbar.scrolled .brand img { height: 34px; }

.nav-menu { display: flex; align-items: center; gap: 4px; }
.nav-menu a {
  position: relative;
  padding: 10px 16px;
  font-weight: 600;
  font-size: 0.94rem;
  color: var(--navy);
  border-radius: var(--radius-pill);
  transition: color var(--transition), background var(--transition);
}
.nav-menu a::after {
  content: "";
  position: absolute;
  left: 16px; right: 16px; bottom: 4px;
  height: 2px;
  background: var(--grad-text);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.nav-menu a:hover { color: var(--primary); background: rgba(21,101,255,0.06); }
.nav-menu a:hover::after,
.nav-menu a.active::after { transform: scaleX(1); }
.nav-menu a.active { color: var(--primary); }

.nav-actions { display: flex; align-items: center; gap: 14px; }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  z-index: 1200;
}
.nav-toggle span {
  width: 24px; height: 2.5px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease), background 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

@media (max-width: 1024px) {
  .nav-menu {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(320px, 84vw);
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 110px 28px 28px;
    gap: 4px;
    box-shadow: -20px 0 50px rgba(13,27,46,0.18);
    transform: translateX(100%);
    transition: transform 0.45s var(--ease);
    z-index: 1100;
  }
  .nav-menu.open { transform: translateX(0); }
  .nav-menu a { padding: 14px 16px; font-size: 1.05rem; }
  .nav-menu a::after { display: none; }
  .nav-toggle { display: flex; }
  .nav-actions .btn span.btn-label-full { display: none; }
}

.nav-scrim {
  position: fixed; inset: 0;
  background: rgba(10,17,30,0.45);
  opacity: 0; visibility: hidden;
  transition: opacity 0.35s var(--ease), visibility 0.35s;
  z-index: 1050;
}
.nav-scrim.open { opacity: 1; visibility: visible; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: calc(var(--nav-h) + 56px) 0 120px;
  overflow: hidden;
  background: linear-gradient(180deg, #F7FAFF 0%, #EFF5FF 60%, #ffffff 100%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(21,101,255,0.08);
  color: var(--primary-dark);
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  margin-bottom: 22px;
}
.hero-eyebrow svg { width: 15px; height: 15px; }
.hero h1 {
  font-size: clamp(2.3rem, 4.4vw, 3.4rem);
  margin-bottom: 20px;
}
.hero h1 .line { display: block; }
.hero p.lead {
  color: var(--gray);
  font-size: 1.1rem;
  max-width: 520px;
  margin-bottom: 32px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 22px 28px; }
.hero-badge { display: flex; align-items: center; gap: 10px; font-size: 0.88rem; font-weight: 600; color: var(--navy); }
.hero-badge .icon-chip {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
}
.hero-badge .icon-chip svg { width: 17px; height: 17px; }

.hero-visual {
  position: relative;
  aspect-ratio: 1 / 0.92;
  border-radius: 28px;
  background: var(--grad-navy);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-visual::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 25% 20%, rgba(0,188,212,0.35), transparent 45%),
              radial-gradient(circle at 80% 80%, rgba(21,101,255,0.35), transparent 50%);
}
.hero-circuit { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.55; }
.hero-circuit .pulse-dot { animation: pulseDot 2.6s ease-in-out infinite; }
.hero-circuit .pulse-dot:nth-child(2n) { animation-delay: 0.6s; }
.hero-circuit .pulse-dot:nth-child(3n) { animation-delay: 1.2s; }
.hero-circuit .flow-line { stroke-dasharray: 6 10; animation: flowLine 12s linear infinite; }
@keyframes pulseDot {
  0%, 100% { opacity: 0.35; r: 2.2; }
  50% { opacity: 1; r: 3.6; }
}
@keyframes flowLine {
  to { stroke-dashoffset: -300; }
}

.hero-slides { position: relative; width: 78%; z-index: 2; }
.hero-slide {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  opacity: 0; transform: translateY(14px) scale(0.98);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  pointer-events: none;
}
.hero-slide.active { opacity: 1; transform: translateY(0) scale(1); position: relative; pointer-events: auto; }
.hero-slide img { max-width: 100%; filter: drop-shadow(0 18px 30px rgba(0,0,0,0.35)); margin-bottom: 18px; }
.hero-slide .slide-title { color: #fff; font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 1.15rem; margin-bottom: 6px; }
.hero-slide .slide-sub { color: rgba(255,255,255,0.72); font-size: 0.9rem; max-width: 300px; }

.hero-dots { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); display: flex; gap: 9px; z-index: 3; }
.hero-dots button {
  width: 9px; height: 9px; border-radius: 50%;
  background: rgba(255,255,255,0.35);
  transition: all 0.3s var(--ease);
}
.hero-dots button.active { background: #fff; width: 26px; border-radius: 6px; }

.hero-float-card {
  position: absolute;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 14px 18px;
  display: flex; align-items: center; gap: 12px;
  z-index: 4;
  animation: floatY 5s ease-in-out infinite;
}
.hero-float-card .icon-chip { width: 38px; height: 38px; border-radius: 10px; background: var(--bg-tint); display: flex; align-items: center; justify-content: center; color: var(--primary); }
.hero-float-card .icon-chip svg { width: 19px; height: 19px; }
.hero-float-card strong { display: block; font-size: 0.95rem; color: var(--navy); }
.hero-float-card span { font-size: 0.78rem; color: var(--gray); }
.hero-float-1 { top: 8%; left: -6%; animation-delay: 0s; }
.hero-float-2 { bottom: 10%; right: -7%; animation-delay: 1.4s; }
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 480px; margin: 0 auto; }
  .hero-float-1, .hero-float-2 { display: none; }
}
@media (max-width: 640px) {
  .hero { padding-top: calc(var(--nav-h) + 32px); }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-badges { gap: 16px 20px; }
}

/* ---------- Stats bar ---------- */
.stats-wrap { margin-top: -78px; position: relative; z-index: 5; }
.stats-card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 40px 30px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.stat-item { display: flex; align-items: center; gap: 16px; }
.stat-item .icon-chip {
  width: 58px; height: 58px; flex-shrink: 0;
  border-radius: 16px;
  background: var(--bg-tint);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
}
.stat-item .icon-chip svg { width: 27px; height: 27px; }
.stat-num { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 1.7rem; color: var(--navy); line-height: 1.1; }
.stat-label-title { font-weight: 700; font-size: 0.92rem; color: var(--navy); }
.stat-label-sub { font-size: 0.8rem; color: var(--gray); }

@media (max-width: 900px) {
  .stats-card { grid-template-columns: repeat(2, 1fr); }
  .stats-wrap { margin-top: -48px; }
}
@media (max-width: 520px) {
  .stats-card { grid-template-columns: 1fr; gap: 24px; padding: 30px 24px; }
}

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about-list { display: flex; flex-direction: column; gap: 14px; margin: 26px 0 32px; }
.about-list li { display: flex; align-items: flex-start; gap: 12px; font-weight: 600; color: var(--navy); font-size: 0.98rem; }
.check-badge {
  width: 24px; height: 24px; flex-shrink: 0; margin-top: 1px;
  border-radius: 50%;
  background: var(--grad-text);
  display: flex; align-items: center; justify-content: center;
}
.check-badge svg { width: 13px; height: 13px; color: #fff; }
.about-desc { color: var(--gray); font-size: 1.03rem; }

.about-media { position: relative; }
.about-media .frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3.1;
}
.about-media .frame img { width: 100%; height: 100%; object-fit: cover; }
.about-media .badge-float {
  position: absolute; bottom: -26px; left: -26px;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 16px 20px;
  display: flex; align-items: center; gap: 12px;
}
.about-media .badge-float img { height: 30px; width: auto; }
.about-media .badge-float strong { display: block; font-size: 0.85rem; color: var(--navy); }
.about-media .badge-float span { font-size: 0.75rem; color: var(--gray); }
.about-media .ring-deco {
  position: absolute; top: -30px; right: -30px;
  width: 110px; height: 110px;
  border: 14px solid rgba(21,101,255,0.10);
  border-radius: 50%;
  z-index: -1;
}
@media (max-width: 940px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-media { order: -1; }
  .about-media .badge-float { left: 16px; bottom: -20px; }
}

/* ---------- Value props / Service cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
@media (max-width: 980px) { .grid-3, .grid-4, .grid-5 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-3, .grid-4, .grid-5, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 34px 28px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card .icon-chip {
  width: 58px; height: 58px;
  border-radius: 16px;
  background: var(--bg-tint);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
  margin-bottom: 20px;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}
.card .icon-chip svg { width: 27px; height: 27px; }
.card:hover .icon-chip { background: var(--grad-primary); color: #fff; transform: rotate(-6deg) scale(1.06); }
.card h3 { font-size: 1.12rem; margin-bottom: 10px; }
.card p { color: var(--gray); font-size: 0.93rem; margin-bottom: 16px; }
.card-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 0.88rem; color: var(--primary); }
.card-link svg { width: 15px; height: 15px; transition: transform var(--transition); }
.card-link:hover svg { transform: translateX(4px); }

.value-card { text-align: left; }
.value-card .icon-chip { background: var(--grad-primary); color: #fff; }

/* ---------- CTA banner ---------- */
.cta-banner {
  position: relative;
  background: var(--grad-navy);
  border-radius: var(--radius-lg);
  overflow: hidden;
  padding: 52px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  color: #fff;
}
.cta-banner .cta-pattern { position: absolute; inset: 0; opacity: 0.5; pointer-events: none; }
.cta-banner h2 { color: #fff; font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-bottom: 8px; }
.cta-banner p { color: rgba(255,255,255,0.72); max-width: 420px; }
.cta-banner-inner { display: flex; align-items: center; justify-content: space-between; width: 100%; gap: 24px; flex-wrap: wrap; position: relative; z-index: 1; }
@media (max-width: 640px) {
  .cta-banner { padding: 40px 26px; text-align: center; justify-content: center; }
  .cta-banner-inner { justify-content: center; text-align: center; }
  .cta-banner p { margin: 0 auto; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: rgba(255,255,255,0.72); padding: 76px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 56px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-brand img { height: 34px; margin-bottom: 16px; }
.footer-brand p { font-size: 0.9rem; line-height: 1.7; max-width: 280px; }
.footer-col h4 { color: #fff; font-size: 0.98rem; margin-bottom: 20px; }
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col a { font-size: 0.9rem; transition: color var(--transition), padding-left var(--transition); }
.footer-col a:hover { color: #fff; padding-left: 4px; }
.footer-contact li { display: flex; align-items: flex-start; gap: 12px; font-size: 0.9rem; margin-bottom: 16px; }
.footer-contact svg { width: 17px; height: 17px; flex-shrink: 0; margin-top: 2px; color: var(--accent); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding: 26px 0; font-size: 0.83rem; flex-wrap: wrap; gap: 14px; }
.social-row { display: flex; gap: 10px; }
.social-row a {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition), transform var(--transition);
}
.social-row a:hover { background: var(--grad-primary); transform: translateY(-3px); }
.social-row svg { width: 16px; height: 16px; }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ---------- Page header (inner pages) ---------- */
.page-header {
  position: relative;
  padding: calc(var(--nav-h) + 64px) 0 70px;
  background: var(--grad-navy);
  color: #fff;
  overflow: hidden;
  text-align: center;
}
.page-header .crumbs { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 0.86rem; color: rgba(255,255,255,0.6); margin-bottom: 14px; }
.page-header .crumbs a { color: rgba(255,255,255,0.85); }
.page-header .crumbs a:hover { color: var(--accent); }
.page-header h1 { color: #fff; font-size: clamp(1.9rem, 4vw, 2.6rem); }
.page-header p { color: rgba(255,255,255,0.68); max-width: 560px; margin: 14px auto 0; }

/* ---------- Scroll reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 0.75s var(--ease), transform 0.75s var(--ease); transition-delay: var(--delay, 0s); }
[data-reveal].in-view { opacity: 1; transform: translateY(0); }
[data-reveal="fade"] { transform: none; }
[data-reveal="left"] { transform: translateX(-32px); }
[data-reveal="left"].in-view { transform: translateX(0); }
[data-reveal="right"] { transform: translateX(32px); }
[data-reveal="right"].in-view { transform: translateX(0); }
[data-reveal="scale"] { transform: scale(0.92); }
[data-reveal="scale"].in-view { transform: scale(1); }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .hero-circuit .pulse-dot, .hero-circuit .flow-line, .hero-float-card { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Timeline (process) ---------- */
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; position: relative; }
.timeline::before {
  content: "";
  position: absolute; top: 30px; left: 8%; right: 8%; height: 2px;
  background: repeating-linear-gradient(90deg, var(--border) 0 10px, transparent 10px 18px);
}
.timeline-step { position: relative; text-align: center; }
.timeline-num {
  width: 60px; height: 60px; margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--grad-primary);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 1.3rem;
  box-shadow: var(--shadow-primary);
  position: relative; z-index: 1;
}
.timeline-step h3 { font-size: 1.02rem; margin-bottom: 8px; }
.timeline-step p { font-size: 0.87rem; color: var(--gray); }
@media (max-width: 900px) {
  .timeline { grid-template-columns: 1fr 1fr; }
  .timeline::before { display: none; }
}
@media (max-width: 560px) { .timeline { grid-template-columns: 1fr; } }

/* ---------- Service detail rows (layanan.html) ---------- */
.service-row { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.service-row:not(:last-child) { margin-bottom: 90px; }
.service-row.reverse .service-visual { order: 2; }
.service-visual {
  aspect-ratio: 1/0.8;
  border-radius: var(--radius-lg);
  background: var(--grad-navy);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.service-visual svg { width: 42%; height: 42%; position: relative; z-index: 1; }
.service-visual::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(0,188,212,0.3), transparent 50%);
}
.service-index { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 3.2rem; color: var(--bg-tint-2); line-height: 1; margin-bottom: 6px; }
.service-row h3 { font-size: 1.5rem; margin-bottom: 14px; }
.service-row p.desc { color: var(--gray); margin-bottom: 20px; }
.service-points { display: grid; gap: 10px; }
.service-points li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.93rem; font-weight: 600; color: var(--navy); }
@media (max-width: 860px) {
  .service-row, .service-row.reverse { grid-template-columns: 1fr; }
  .service-row.reverse .service-visual { order: 0; }
  .service-row:not(:last-child) { margin-bottom: 56px; }
}

/* ---------- Produk ---------- */
.product-card { display: flex; flex-direction: column; }
.product-card .icon-chip { width: 64px; height: 64px; }
.product-card .tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em;
  color: var(--accent); background: rgba(0,188,212,0.1);
  padding: 4px 10px; border-radius: var(--radius-pill);
  margin-bottom: 14px;
}
.product-card ul.mini-list { display: grid; gap: 8px; margin: 16px 0 22px; }
.product-card ul.mini-list li { font-size: 0.86rem; color: var(--gray); display: flex; gap: 8px; align-items: center; }
.product-card ul.mini-list li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--primary); flex-shrink: 0; }
.product-card .btn { margin-top: auto; }
.produk-note { text-align: center; color: var(--gray); font-size: 0.94rem; max-width: 560px; margin: 8px auto 0; }

/* ---------- Galeri ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 220px; gap: 18px; }
.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  background: var(--grad-navy);
}
.gallery-item.wide { grid-column: span 2; }
.gallery-item.tall { grid-row: span 2; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item .gallery-icon-tile {
  width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  color: #fff;
  position: relative;
}
.gallery-item .gallery-icon-tile::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 30% 20%, rgba(0,188,212,0.35), transparent 55%); }
.gallery-item .gallery-icon-tile svg { width: 44px; height: 44px; position: relative; z-index: 1; }
.gallery-item .gallery-icon-tile span { font-weight: 700; font-size: 0.92rem; position: relative; z-index: 1; }
.gallery-caption {
  position: absolute; inset: auto 0 0 0;
  padding: 16px;
  background: linear-gradient(0deg, rgba(10,17,30,0.85), transparent);
  color: #fff; font-weight: 700; font-size: 0.9rem;
  opacity: 0; transform: translateY(8px);
  transition: opacity var(--transition), transform var(--transition);
}
.gallery-item:hover .gallery-caption { opacity: 1; transform: translateY(0); }
.gallery-item .zoom-hint {
  position: absolute; top: 12px; right: 12px;
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,0.9);
  display: flex; align-items: center; justify-content: center;
  color: var(--navy);
  opacity: 0; transform: scale(0.7);
  transition: opacity var(--transition), transform var(--transition);
}
.gallery-item:hover .zoom-hint { opacity: 1; transform: scale(1); }
.gallery-item .zoom-hint svg { width: 15px; height: 15px; }
.gallery-item.is-static { cursor: default; }
.gallery-item.light-tile { background: var(--bg-tint); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; padding: 30px; }
.gallery-item.light-tile img { width: auto; height: auto; max-width: 70%; max-height: 60%; object-fit: contain; }

@media (max-width: 860px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .gallery-item.wide { grid-column: span 2; }
}
@media (max-width: 540px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item.wide, .gallery-item.tall { grid-column: span 1; grid-row: span 1; }
}

.lightbox {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(6,10,18,0.92);
  display: flex; align-items: center; justify-content: center;
  padding: 40px;
  opacity: 0; visibility: hidden;
  transition: opacity 0.35s var(--ease), visibility 0.35s;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox-inner { max-width: 900px; width: 100%; text-align: center; }
.lightbox-inner img { max-height: 76vh; margin: 0 auto; border-radius: var(--radius-md); }
.lightbox-caption { color: #fff; margin-top: 18px; font-weight: 600; }
.lightbox-close, .lightbox-nav {
  position: absolute;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition);
}
.lightbox-close:hover, .lightbox-nav:hover { background: rgba(255,255,255,0.22); }
.lightbox-close { top: 24px; right: 24px; }
.lightbox-nav svg, .lightbox-close svg { width: 20px; height: 20px; }
.lightbox-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 24px; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) {
  .lightbox { padding: 16px; }
  .lightbox-prev, .lightbox-next { display: none; }
}

/* ---------- Blog ---------- */
.blog-card { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.blog-cover {
  aspect-ratio: 16/10;
  background: var(--grad-primary);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  overflow: hidden;
}
.blog-cover::before { content:""; position:absolute; inset:0; background: radial-gradient(circle at 75% 20%, rgba(255,255,255,0.25), transparent 55%); }
.blog-cover svg { width: 30%; height: 30%; color: #fff; position: relative; z-index: 1; }
.blog-body { padding: 26px 26px 30px; }
.blog-meta { display: flex; gap: 14px; font-size: 0.78rem; color: var(--gray); margin-bottom: 12px; font-weight: 600; }
.blog-meta span { display: flex; align-items: center; gap: 6px; }
.blog-meta svg { width: 14px; height: 14px; }
.blog-body h3 { font-size: 1.08rem; margin-bottom: 10px; }
.blog-excerpt { color: var(--gray); font-size: 0.92rem; }
.blog-full {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.5s var(--ease);
}
.blog-full-inner { overflow: hidden; }
.blog-full-content { color: var(--gray); font-size: 0.92rem; padding-top: 14px; line-height: 1.8; }
.blog-card.expanded .blog-full { grid-template-rows: 1fr; }
.blog-toggle { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 0.88rem; color: var(--primary); margin-top: 16px; }
.blog-toggle svg { width: 15px; height: 15px; transition: transform var(--transition); }
.blog-card.expanded .blog-toggle svg { transform: rotate(180deg); }

/* ---------- Kontak ---------- */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 50px; align-items: start; }
.contact-info-card {
  display: flex; gap: 16px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.contact-info-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.contact-info-card .icon-chip { width: 50px; height: 50px; flex-shrink: 0; border-radius: 13px; background: var(--bg-tint); color: var(--primary); display:flex; align-items:center; justify-content:center; }
.contact-info-card .icon-chip svg { width: 22px; height: 22px; }
.contact-info-card h4 { font-size: 0.98rem; margin-bottom: 4px; }
.contact-info-card p, .contact-info-card a { font-size: 0.88rem; color: var(--gray); }
.map-frame { border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-md); margin-top: 24px; border: 1px solid var(--border); }
.map-frame iframe { width: 100%; height: 260px; border: 0; display: block; }

.form-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow-sm); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 20px; }
.field label { display: block; font-size: 0.86rem; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.field input, .field textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-tint);
  transition: border-color var(--transition), background var(--transition);
}
.field input:focus, .field textarea:focus { border-color: var(--primary); background: #fff; outline: none; }
.field textarea { resize: vertical; min-height: 120px; }
.field.error input, .field.error textarea { border-color: #e11d48; }
.field-error-msg { display: none; color: #e11d48; font-size: 0.78rem; margin-top: 6px; }
.field.error .field-error-msg { display: block; }
.form-note { font-size: 0.82rem; color: var(--gray); margin-top: 14px; display: flex; align-items: center; gap: 8px; }
.form-note svg { width: 15px; height: 15px; flex-shrink: 0; color: var(--accent); }
.form-success {
  display: none;
  align-items: center; gap: 10px;
  background: rgba(22,163,74,0.08); color: var(--success);
  border: 1px solid rgba(22,163,74,0.25);
  padding: 14px 16px; border-radius: var(--radius-sm);
  font-size: 0.88rem; font-weight: 600; margin-bottom: 18px;
}
.form-success.show { display: flex; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } .form-card { padding: 26px 20px; } }

/* ---------- Value/vision-mission (tentang.html) ---------- */
.vm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.vm-card { padding: 38px 32px; border-radius: var(--radius-lg); }
.vm-card.vision { background: var(--grad-navy); color: #fff; }
.vm-card.vision h3 { color: #fff; }
.vm-card.vision p { color: rgba(255,255,255,0.72); }
.vm-card.mission { background: var(--bg-tint); border: 1px solid var(--border); }
.vm-card .icon-chip { width: 54px; height: 54px; border-radius: 15px; display:flex; align-items:center; justify-content:center; margin-bottom: 18px; }
.vm-card.vision .icon-chip { background: rgba(255,255,255,0.12); color: var(--accent); }
.vm-card.mission .icon-chip { background: var(--grad-primary); color: #fff; }
.vm-card .icon-chip svg { width: 24px; height: 24px; }
.vm-card h3 { font-size: 1.2rem; margin-bottom: 12px; }
.vm-card ul { display: grid; gap: 10px; margin-top: 14px; }
.vm-card ul li { font-size: 0.92rem; display: flex; gap: 10px; }
@media (max-width: 800px) { .vm-grid { grid-template-columns: 1fr; } }

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 900;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--grad-primary);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-primary);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity var(--transition), visibility var(--transition), transform var(--transition);
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { transform: translateY(-4px); }
.back-to-top svg { width: 20px; height: 20px; }

/* ---------- Misc ---------- */
.divider-dot { width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: 0.5; }
::selection { background: var(--primary); color: #fff; }

.wa-float {
  position: fixed; left: 24px; bottom: 24px; z-index: 900;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 26px rgba(37,211,102,0.4);
  animation: waPulse 2.8s ease-in-out infinite;
}
.wa-float svg { width: 26px; height: 26px; }
@keyframes waPulse {
  0%, 100% { box-shadow: 0 10px 26px rgba(37,211,102,0.4), 0 0 0 0 rgba(37,211,102,0.4); }
  50% { box-shadow: 0 10px 26px rgba(37,211,102,0.4), 0 0 0 12px rgba(37,211,102,0); }
}
