/* ============================================================
   design-system.css — Sistem design bersama SEMUA demo porto-web.
   Filosofi: CLEAN = disiplin. 1 brand + 1 aksen + netral hangat.
   Warna brand di-override per-demo lewat :root di brand.css.
   ============================================================ */

/* ---------- TOKEN DEFAULT (netral & skala, sama semua demo) ---------- */
:root {
  /* Netral hangat */
  --bg:        #FAF8F5;
  --surface:   #FFFFFF;
  --surface-2: #F3EFEA;
  --line:      #ECE7E0;
  --ink:       #1C1A17;
  --ink-soft:  #5A544C;
  --muted:     #8B847A;

  /* Brand & aksen — DIOVERRIDE di brand.css tiap demo */
  --brand:      #2B5C8A;
  --brand-2:    #24507A;
  --brand-tint: #EAF1F7;
  --brand-ink:  #FFFFFF;
  --accent:     #F2A50C;
  --accent-2:   #D98F00;
  --accent-ink: #1C1A17;

  /* Radius */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-pill: 999px;

  /* Shadow halus konsisten */
  --sh-1: 0 2px 8px rgba(20,20,30,.05);
  --sh-2: 0 12px 32px -12px rgba(20,20,30,.14);
  --sh-3: 0 24px 60px -24px rgba(20,20,30,.22);

  /* Tipografi */
  --font-display: "Space Grotesk", "Sora", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  --ease: cubic-bezier(.22,.61,.36,1);
  --maxw: 1200px;
}

/* ---------- RESET & DASAR ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; overflow-x: clip; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1,h2,h3,h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.08; letter-spacing: -0.01em; margin: 0; }
p { margin: 0; }
::selection { background: var(--brand); color: var(--brand-ink); }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 28px; }
section { padding-block: clamp(64px, 9vw, 120px); }

/* ---------- EYEBROW / SECTION HEAD ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 600;
  font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--brand);
}
/* eyebrow line removed — AI-slop tell */
.section-head { max-width: 640px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); margin-top: 14px; }
.section-head p { color: var(--ink-soft); margin-top: 14px; font-size: 1.05rem; }
.section-head.center { max-width: 700px; margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }

/* ---------- BUTTON ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-display); font-weight: 600; font-size: 0.95rem;
  padding: 14px 26px; border-radius: var(--r-pill); border: 1.5px solid transparent;
  cursor: pointer; transition: transform .14s var(--ease), box-shadow .2s var(--ease), background-color .2s var(--ease), color .2s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--brand); color: var(--brand-ink); }
.btn-primary:hover { background: var(--brand-2); box-shadow: var(--sh-2); }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { background: var(--accent-2); box-shadow: 0 12px 26px -10px color-mix(in srgb, var(--accent) 60%, transparent); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); background: var(--surface); }
.btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* ---------- NAV ---------- */
.site-nav { position: sticky; top: 0; z-index: 100; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.nav-brand { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; letter-spacing: -0.01em; color: var(--ink); }
.nav-brand img { height: 38px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-weight: 500; font-size: 0.92rem; color: var(--ink-soft); transition: color .15s var(--ease); }
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; }

/* ---------- HERO ---------- */
.hero { position: relative; padding-block: clamp(48px, 7vw, 92px) clamp(64px, 9vw, 112px); overflow: hidden; }
.hero::before { content: ""; position: absolute; top: -30%; right: -8%; width: 46vw; height: 46vw; max-width: 620px; max-height: 620px; background: radial-gradient(circle at center, var(--brand-tint) 0%, transparent 68%); z-index: 0; pointer-events: none; }
.hero .container { position: relative; z-index: 1; }
.hero__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 5vw, 68px); align-items: center; }
.hero__eyebrow { color: var(--brand); background: var(--surface); padding: 8px 16px; border-radius: var(--r-pill); box-shadow: var(--sh-1); margin-bottom: 26px; }
.hero__title { font-size: clamp(2.7rem, 5.6vw, 4.6rem); letter-spacing: -0.035em; font-weight: 700; }
.hero__title .accent { color: var(--brand); }
.hero__lede { margin-top: 24px; color: var(--ink-soft); font-size: 1.18rem; line-height: 1.65; max-width: 44ch; }
.hero__cta { margin-top: 36px; display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero__trust { margin-top: 30px; display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 0.9rem; }
.hero__trust .dots { display: flex; }
.hero__trust .dots span { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--bg); background: var(--brand-tint); margin-left: -8px; display: grid; place-items: center; font-size: 0.7rem; font-weight: 700; color: var(--brand); }
.hero__trust .dots span:first-child { margin-left: 0; }
.hero__media { position: relative; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-3); aspect-ratio: 4/5; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__badge { position: absolute; left: 0; bottom: 24px; background: var(--surface); border-radius: 0 var(--r-md) var(--r-md) 0; padding: 16px 22px 16px 20px; box-shadow: var(--sh-2); display: flex; align-items: center; gap: 14px; border-left: 4px solid var(--accent); }
.hero__badge .n { font-family: var(--font-display); font-weight: 700; font-size: 1.7rem; color: var(--brand); line-height: 1; letter-spacing: -0.02em; }
.hero__badge .l { font-size: 0.8rem; color: var(--ink-soft); line-height: 1.25; font-weight: 500; }

/* ---------- STAT STRIP ---------- */
.stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 0; padding: 36px 30px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-2); }
.stat { text-align: center; padding-inline: 20px; }
.stat .n { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.2rem,4.4vw,3.2rem); color: var(--brand); line-height: 1; letter-spacing: -0.02em; }
.stat .l { margin-top: 10px; font-size: 0.8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.stat:not(:last-child) { border-right: 1px solid var(--line); }

/* ---------- SHOWCASE GRID ---------- */
.showcase { display: grid; grid-template-columns: repeat(6,1fr); gap: 20px; }
.card-img { position: relative; border-radius: var(--r-md); overflow: hidden; box-shadow: var(--sh-1); background: var(--surface-2); min-height: 300px; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.card-img:hover { transform: translateY(-4px); box-shadow: var(--sh-2); }
.card-img.wide { grid-column: span 6; min-height: 440px; }
.card-img.half { grid-column: span 3; min-height: 380px; }
.card-img.third { grid-column: span 2; min-height: 320px; }
.card-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.card-img:hover img { transform: scale(1.05); }
.card-img__cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 24px 22px 20px; background: linear-gradient(0deg, rgba(18,16,13,.88) 0%, rgba(18,16,13,.5) 55%, rgba(18,16,13,0) 100%); color: #fff; }
.card-img__cat { font-family: var(--font-display); font-weight: 600; font-size: 0.72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.card-img__name { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; margin-top: 6px; letter-spacing: -0.01em; }

/* ---------- FEATURE CARDS (layanan) ---------- */
.features { display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 30px; display: flex; gap: 20px; align-items: flex-start; transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease); }
.feature:hover { transform: translateY(-3px); box-shadow: var(--sh-2); border-color: color-mix(in srgb, var(--brand) 30%, var(--line)); }
.feature__num { flex: none; width: 48px; height: 48px; border-radius: var(--r-sm); background: var(--brand-tint); color: var(--brand); font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; display: grid; place-items: center; transition: background-color .25s var(--ease), color .25s var(--ease); }
.feature:hover .feature__num { background: var(--brand); color: var(--brand-ink); }
.feature h3 { font-size: 1.2rem; }
.feature p { margin-top: 8px; color: var(--ink-soft); font-size: 0.96rem; }

/* ---------- PROCESS (band brand-tint) ---------- */
.band-tint { background: var(--brand-tint); }
.steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
.step { background: var(--surface); border-radius: var(--r-md); padding: 26px; box-shadow: var(--sh-1); }
.step__n { font-family: var(--font-display); font-weight: 700; font-size: 0.8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-2); }
.step h3 { margin-top: 12px; font-size: 1.15rem; }
.step p { margin-top: 10px; color: var(--ink-soft); font-size: 0.92rem; }

/* ---------- TESTIMONIALS ---------- */
.testis { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.testi { background: var(--surface); border-radius: var(--r-md); padding: 30px; box-shadow: var(--sh-1); border-top: 3px solid var(--accent); transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.testi:hover { transform: translateY(-4px); box-shadow: var(--sh-2); }
.testi__q { color: var(--ink-soft); font-size: 1rem; line-height: 1.65; }
.testi__who { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 12px; }
.testi__who .av { flex: none; width: 42px; height: 42px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 1rem; }
.testi__who .meta b { display: block; font-family: var(--font-display); line-height: 1.2; }
.testi__who .meta span { color: var(--muted); font-size: 0.85rem; }

/* ---------- CTA ---------- */
.cta { background: var(--brand); color: var(--brand-ink); border-radius: var(--r-lg); padding: clamp(40px,6vw,72px); display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; box-shadow: var(--sh-3); }
.cta h2 { font-size: clamp(1.6rem,3.4vw,2.4rem); max-width: 20ch; color: var(--brand-ink); }
.cta p { margin-top: 12px; color: color-mix(in srgb, var(--brand-ink) 82%, transparent); max-width: 44ch; }

/* ---------- FOOTER ---------- */
.site-footer { background: var(--ink); color: #EDE9E3; padding-block: clamp(48px,7vw,80px) 28px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1.4fr; gap: 40px; }
.footer-brand { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; margin-bottom: 16px; }
.footer-brand img { height: 36px; width: auto; }
.footer p { color: #B7B0A6; font-size: 0.94rem; max-width: 40ch; }
.footer h4 { font-family: var(--font-display); font-size: 0.76rem; letter-spacing: .14em; text-transform: uppercase; color: #8B857B; margin-bottom: 16px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.footer ul a { color: #B7B0A6; font-size: 0.94rem; transition: color .15s var(--ease); }
.footer ul a:hover { color: #fff; }
.footer-bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); font-size: 0.84rem; color: #8B857B; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- WA FLOAT ---------- */
.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 200; width: 56px; height: 56px; border-radius: 50%; background: #25D366; color: #fff; display: grid; place-items: center; box-shadow: var(--sh-2); transition: transform .18s var(--ease); }
.wa-float:hover { transform: translateY(-3px) scale(1.05); }
.wa-float svg { width: 30px; height: 30px; }

/* ---------- REVEAL ---------- */
.reveal { opacity: 1; }
.js-reveal .reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js-reveal .reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition-duration: .01ms !important; } .js-reveal .reveal { opacity: 1 !important; transform: none !important; } }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { aspect-ratio: 16/11; max-height: 420px; }
  .steps { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .nav-links { position: absolute; top: 74px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 28px 18px; display: none; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 13px 0; border-bottom: 1px solid var(--line); }
  .nav-links .btn { margin-top: 12px; }
  .showcase { grid-template-columns: 1fr; }
  .card-img.wide, .card-img.half, .card-img.third { grid-column: span 1; }
  .features, .testis, .stats { grid-template-columns: 1fr; }
  .stat:not(:last-child) { border-right: 0; border-bottom: 1px solid var(--line); padding-bottom: 20px; }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta { flex-direction: column; align-items: flex-start; }
}

/* --- GLOBAL FIX: WA icon putih + nav CTA text putih (semua inner page) --- */
.wa-float { color: #fff !important; }
.wa-float svg { fill: #fff !important; color: #fff !important; }
.nav-links .btn-accent, .nav-links .btn.btn-accent { color: #fff !important; }
