/* ===========================================================
   TenggaraDev — shared site styles
   Modern SaaS, light, blue/neutral. Plus Jakarta Sans + Inter.
   =========================================================== */

:root {
  /* Brand blue */
  --blue-600: #2456e6;
  --blue-700: #1b43be;
  --blue-500: #3b6cf5;
  --blue-100: #dbe5ff;
  --blue-50:  #eef3ff;

  /* Ink + neutrals */
  --ink:      #0b1736;   /* navy headings */
  --slate-800:#1e293b;
  --slate-700:#334155;   /* body */
  --slate-500:#64748b;   /* muted */
  --slate-400:#94a3b8;
  --slate-300:#cbd5e1;   /* strong border */
  --slate-200:#e6ebf2;   /* border */
  --slate-100:#f1f5f9;
  --slate-50: #f7f9fc;
  --white:    #ffffff;

  /* Product accents */
  --billiard:   #0e9e6e;
  --billiard-d: #0a7c57;
  --billiard-50:#e7f7f0;
  --resto:      #e2832a;
  --resto-d:    #c26d1c;
  --resto-50:   #fdf2e6;
  --absensi:    #6d5df6;
  --absensi-d:  #5847d8;
  --absensi-50: #efedfe;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(11,23,54,.06), 0 1px 3px rgba(11,23,54,.05);
  --shadow-md: 0 8px 24px rgba(11,23,54,.08), 0 2px 6px rgba(11,23,54,.05);
  --shadow-lg: 0 30px 70px rgba(11,23,54,.16), 0 8px 24px rgba(11,23,54,.08);

  --font-display: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  --maxw: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--slate-700);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.02em;
  font-weight: 700;
  text-wrap: balance;
}

p { margin: 0; }
a { color: inherit; text-decoration: none; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue-600);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-display);
  font-weight: 600; font-size: 15px;
  padding: 13px 22px;
  border-radius: 11px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--blue-600); color: #fff;
  box-shadow: 0 6px 16px rgba(36,86,230,.28);
}
.btn-primary:hover { background: var(--blue-700); box-shadow: 0 10px 22px rgba(36,86,230,.34); }
.btn-ghost {
  background: #fff; color: var(--ink);
  border-color: var(--slate-200);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { border-color: var(--slate-300); background: var(--slate-50); }
.btn-lg { padding: 15px 26px; font-size: 16px; border-radius: 12px; }
.btn svg { width: 18px; height: 18px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--slate-200);
}
.site-header .wrap {
  display: flex; align-items: center; gap: 28px;
  height: 70px;
}
.brand { display: flex; align-items: center; gap: 11px; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 9px; flex-shrink: 0;
  background: linear-gradient(150deg, var(--blue-500), var(--blue-700));
  display: grid; place-items: center;
  box-shadow: 0 4px 12px rgba(36,86,230,.35);
}
.brand-name {
  font-family: var(--font-display); font-weight: 800;
  font-size: 18.5px; color: var(--ink); letter-spacing: -0.02em;
}
.brand-name span { color: var(--blue-600); }
.nav { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.nav a {
  font-size: 14.5px; font-weight: 500; color: var(--slate-700);
  padding: 8px 13px; border-radius: 8px; transition: background .15s, color .15s;
}
.nav a:hover { background: var(--slate-100); color: var(--ink); }
.nav a.active { color: var(--blue-600); }
.header-cta { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.nav-wa { display: none; }
.nav-toggle {
  display: none; margin-left: auto;
  width: 42px; height: 42px; border-radius: 10px;
  border: 1px solid var(--slate-200); background: #fff; color: var(--ink);
  cursor: pointer; place-items: center; box-shadow: var(--shadow-sm);
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .ic-close { display: none; }
.nav-toggle[aria-expanded="true"] .ic-open { display: none; }
.nav-toggle[aria-expanded="true"] .ic-close { display: block; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: #c4cde0;
  padding: 60px 0 34px;
  margin-top: 0;
}
.site-footer .wrap { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 36px; }
.site-footer .brand-name { color: #fff; }
.site-footer h4 { color: #fff; font-size: 14px; letter-spacing: .04em; margin-bottom: 16px; font-family: var(--font-body); text-transform: uppercase; font-weight: 700; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 11px; }
.site-footer a { color: #9fb0cc; font-size: 14.5px; transition: color .15s; }
.site-footer a:hover { color: #fff; }
.footer-blurb { font-size: 14.5px; line-height: 1.65; color: #9fb0cc; max-width: 280px; margin-top: 16px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  margin-top: 46px; padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13.5px; color: #8290ad;
}

/* ---------- Section scaffolding ---------- */
.section { padding: 96px 0; }
.section-head { max-width: 680px; }
.section-head.center { margin: 0 auto; text-align: center; }
.section-head h2 { font-size: clamp(30px, 4vw, 42px); line-height: 1.08; margin-top: 14px; }
.section-head p { font-size: 18px; line-height: 1.6; color: var(--slate-500); margin-top: 18px; }

/* ---------- Device frames ---------- */
.phone {
  width: 270px; border-radius: 34px; padding: 11px;
  background: linear-gradient(160deg, #20283a, #0c1120);
  box-shadow: var(--shadow-lg), inset 0 0 0 1.5px rgba(255,255,255,.06);
  position: relative;
}
.phone-screen {
  border-radius: 25px; overflow: hidden; background: #fff;
  position: relative; aspect-ratio: 9 / 19.3;
}
.tablet {
  border-radius: 22px; padding: 13px;
  background: linear-gradient(160deg, #20283a, #0c1120);
  box-shadow: var(--shadow-lg), inset 0 0 0 1.5px rgba(255,255,255,.06);
}
.tablet-screen {
  border-radius: 11px; overflow: hidden; background: #fff; position: relative;
}

/* ---------- Generic product accent helper ---------- */
.tone-billiard { --tone: var(--billiard); --tone-d: var(--billiard-d); --tone-50: var(--billiard-50); }
.tone-resto    { --tone: var(--resto);    --tone-d: var(--resto-d);    --tone-50: var(--resto-50); }
.tone-absensi  { --tone: var(--absensi);  --tone-d: var(--absensi-d);  --tone-50: var(--absensi-50); }

/* ---------- Product page scaffolding ---------- */
.phero { position: relative; overflow: hidden; padding: 70px 0 84px;
  background: linear-gradient(180deg, var(--tone-50), #fff 78%); }
.phero::before { content:""; position:absolute; inset:0; pointer-events:none;
  background-image: radial-gradient(620px 360px at 84% -10%, color-mix(in srgb, var(--tone) 22%, transparent), transparent 64%); }
.phero .wrap { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.pbreadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--slate-500); margin-bottom: 22px; }
.pbreadcrumb a:hover { color: var(--tone-d); }
.pbreadcrumb svg { width: 14px; height: 14px; opacity: .5; }
.phero .ptag { display: inline-flex; align-items: center; gap: 9px; font-size: 12.5px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--tone-d);
  background: #fff; border: 1px solid color-mix(in srgb, var(--tone) 30%, var(--slate-200));
  padding: 7px 14px; border-radius: 999px; box-shadow: var(--shadow-sm); }
.phero h1 { font-size: clamp(34px, 4.6vw, 52px); line-height: 1.05; margin: 22px 0 0; }
.phero .lead { font-size: 19px; line-height: 1.6; color: var(--slate-500); max-width: 500px; margin-top: 20px; }
.phero-chips { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 26px; }
.chip { display: inline-flex; align-items: center; gap: 7px; background: #fff; border: 1px solid var(--slate-200);
  border-radius: 999px; padding: 8px 14px; font-size: 13.5px; font-weight: 600; color: var(--slate-700); box-shadow: var(--shadow-sm); }
.chip svg { width: 15px; height: 15px; color: var(--tone); }
.phero-actions { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
.btn-tone { background: var(--tone); color: #fff; box-shadow: 0 6px 16px color-mix(in srgb, var(--tone) 35%, transparent); }
.btn-tone:hover { background: var(--tone-d); }
.pdevice { display: flex; justify-content: center; align-items: center; }

.feat-section { padding: 90px 0; }
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 52px; }
.feat { background: #fff; border: 1px solid var(--slate-200); border-radius: 18px; padding: 26px; box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s; }
.feat:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.feat .fi { width: 46px; height: 46px; border-radius: 12px; background: var(--tone-50); color: var(--tone-d); display: grid; place-items: center; margin-bottom: 18px; }
.feat .fi svg { width: 23px; height: 23px; }
.feat h3 { font-size: 18.5px; margin-bottom: 9px; }
.feat p { font-size: 14.5px; line-height: 1.6; color: var(--slate-500); }

.strip { background: var(--slate-50); border-top: 1px solid var(--slate-200); border-bottom: 1px solid var(--slate-200); }
.strip .wrap { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; padding-top: 40px; padding-bottom: 40px; }
.stat .n { font-family: var(--font-display); font-size: 34px; font-weight: 800; color: var(--tone-d); line-height: 1; }
.stat .l { font-size: 14px; color: var(--slate-500); margin-top: 8px; }

.other-prods { padding: 84px 0; }
.op-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 40px; }
.op-card { display: flex; align-items: center; gap: 18px; background: #fff; border: 1px solid var(--slate-200);
  border-radius: 16px; padding: 22px 24px; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s, border-color .2s; }
.op-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.op-ic { width: 50px; height: 50px; border-radius: 13px; display: grid; place-items: center; flex-shrink: 0; }
.op-card h4 { font-size: 17px; color: var(--ink); margin-bottom: 4px; font-family: var(--font-display); }
.op-card p { font-size: 13.5px; color: var(--slate-500); }
.op-card .arr { margin-left: auto; color: var(--slate-400); }

@media (max-width: 940px) {
  /* minmax(0, 1fr) lets the column shrink below its content's intrinsic size;
     without it the 540px-wide device forces the whole column (and the heading)
     wider than the viewport, which .phero's overflow:hidden then clips. */
  .phero .wrap { grid-template-columns: minmax(0, 1fr); }
  .pdevice .tablet, .pdevice .phone { max-width: 100%; }
  .feat-grid { grid-template-columns: 1fr; }
  .op-grid { grid-template-columns: 1fr; }
  .phero { padding: 48px 0 56px; }
}

/* ---------- CTA band (shared: index + product pages) ---------- */
.cta-band { padding: 76px 0; }
.cta-inner {
  position: relative; overflow: hidden;
  background: radial-gradient(circle at 30% -10%, var(--blue-500), var(--blue-700) 72%);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 24px; padding: 52px 48px; color: #fff;
  text-align: center;
  box-shadow: 0 24px 56px rgba(36,86,230,.28);
}
.cta-inner::after {
  content:""; position:absolute; inset:0;
  background-image: radial-gradient(circle at 50% -10%, rgba(255,255,255,.16), transparent 55%);
  pointer-events:none;
}
.cta-inner h2 { color: #fff; font-size: clamp(25px, 2.9vw, 36px); line-height: 1.14; position: relative; }
.cta-inner p { color: rgba(255,255,255,.82); font-size: 16px; line-height: 1.6; margin: 14px auto 0; position: relative; max-width: 640px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; align-items: center; position: relative; margin-top: 28px; }
.cta-actions .btn { font-size: 16px; }
.cta-actions .btn svg { width: 22px; height: 22px; flex: none; }
.btn-wa { background: #5ed47a; color: #0a120d; box-shadow: 0 8px 22px rgba(94,212,122,.28); }
.btn-wa:hover { background: #4fca6c; }
.btn-mail { background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.28); }
.btn-mail:hover { background: rgba(255,255,255,.16); }
.btn-white { background: #fff; color: var(--ink); box-shadow: 0 8px 22px rgba(0,0,0,.25); }
.btn-white:hover { background: var(--slate-100); }
.btn-onblue { background: rgba(255,255,255,.06); color: #fff; border: 1px solid rgba(255,255,255,.22); }
.btn-onblue:hover { background: rgba(255,255,255,.12); }
.cta-note { flex-basis: 100%; font-size: 13.5px; color: rgba(255,255,255,.55); margin-top: 4px; }
.cta-learn {
  display: inline-flex; align-items: center; gap: 9px;
  margin-top: 18px; position: relative;
  color: rgba(255,255,255,.7); font-weight: 600; font-size: 15px; text-decoration: none;
}
.cta-learn svg { width: 20px; height: 20px; color: rgba(255,255,255,.85); }
.cta-learn:hover { color: #fff; }

@media (max-width: 940px) {
  .cta-inner { padding: 48px 26px; }
  .cta-actions .btn { width: 100%; justify-content: center; }
}

/* ---------- Reveal on scroll ----------
   Hidden state only applies when JS is running (html.js is set by an
   inline script in <head>), so content stays visible without JS. */
html.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
html.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .pcard, .feat, .op-card, .shot, .plink svg { transition: none !important; }
  .pcard:hover, .feat:hover, .op-card:hover, .shot:hover { transform: none; }
}

@media (max-width: 920px) {
  .site-footer .wrap { grid-template-columns: 1fr 1fr; }
  .section { padding: 64px 0; }

  /* No-JS: keep header simple, footer provides navigation fallback */
  .nav { display: none; }

  /* JS on: hamburger reveals a full-width dropdown */
  html.js .nav-toggle { display: grid; }
  html.js .nav {
    display: flex; flex-direction: column; align-items: stretch;
    gap: 2px; margin-left: 0;
    position: absolute; top: 70px; left: 0; right: 0;
    background: rgba(255,255,255,.98);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--slate-200);
    box-shadow: var(--shadow-md);
    padding: 12px 20px 18px;
    transform: translateY(-10px); opacity: 0; pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
  }
  html.js .nav.open { transform: none; opacity: 1; pointer-events: auto; }
  html.js .nav a { padding: 13px 12px; font-size: 16px; border-radius: 9px; }
  /* WhatsApp CTA is hidden inside the mobile dropdown — the hero & CTA band
     already provide a Chat WhatsApp button, so it's redundant here. */
  html.js .nav-wa { display: none; }
}
@media (max-width: 560px) {
  .site-footer .wrap { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; }
}
