/* ==========================================================================
   Digital Prima Nusantara — digitalprinus.com
   Single stylesheet. No frameworks, no build step.
   Edit the variables in :root to restyle the whole site at once.
   ========================================================================== */

/* --- 1. Design tokens ---------------------------------------------------- */
:root {
  /* Brand — sampled from the company logo */
  --violet:      #7C3AED;
  --violet-soft: #A855F7;
  --cyan:        #22D3EE;
  --magenta:     #C026D3;

  /* Neutrals */
  --navy:        #0B1020;
  --navy-2:      #131A33;
  --ink:         #16192B;
  --body:        #4A5069;
  --muted:       #6B7189;
  --line:        #E4E7F0;
  --surface:     #F6F7FB;
  --white:       #FFFFFF;

  /* Type scale */
  --f-xs:   .78rem;
  --f-sm:   .9rem;
  --f-base: 1rem;
  --f-lg:   1.125rem;
  --f-xl:   clamp(1.25rem, 1.1rem + .6vw, 1.5rem);
  --f-2xl:  clamp(1.5rem, 1.25rem + 1.1vw, 2.1rem);
  --f-3xl:  clamp(1.9rem, 1.4rem + 2.2vw, 3rem);
  --f-4xl:  clamp(2.2rem, 1.5rem + 3.2vw, 3.9rem);

  /* Layout */
  --wrap: 1160px;
  --gut: clamp(1.15rem, 4vw, 2.5rem);
  --radius: 14px;
  --radius-lg: 22px;

  /* Depth */
  --shadow-sm: 0 1px 2px rgba(16, 20, 40, .06), 0 2px 8px rgba(16, 20, 40, .05);
  --shadow-md: 0 4px 12px rgba(16, 20, 40, .07), 0 12px 32px rgba(16, 20, 40, .07);
  --shadow-lg: 0 12px 28px rgba(16, 20, 40, .10), 0 28px 64px rgba(16, 20, 40, .10);

  --grad: linear-gradient(115deg, var(--violet) 0%, var(--violet-soft) 45%, var(--cyan) 100%);

  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
          Arial, "Noto Sans", sans-serif;

  --header-h: 76px;
}

/* --- 2. Reset ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  font-family: var(--sans);
  font-size: var(--f-base);
  line-height: 1.7;
  color: var(--body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; color: inherit; }
a { color: var(--violet); text-decoration-thickness: 1px; text-underline-offset: 3px; }

h1, h2, h3, h4 {
  color: var(--ink);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -.02em;
  text-wrap: balance;
}
h1 { font-size: var(--f-4xl); }
h2 { font-size: var(--f-3xl); }
h3 { font-size: var(--f-xl); letter-spacing: -.01em; }
h4 { font-size: var(--f-lg); letter-spacing: -.01em; }
p  { text-wrap: pretty; }

:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

/* --- 3. Bilingual switching ---------------------------------------------
   Both languages sit in the HTML. The <html> element carries the active one.
   Anything tagged with the OTHER language is hidden.
   ------------------------------------------------------------------------ */
html[data-lang="id"] [data-l="en"] { display: none !important; }
html[data-lang="en"] [data-l="id"] { display: none !important; }

/* --- 4. Layout helpers --------------------------------------------------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.section { padding-block: clamp(3.5rem, 7vw, 6.5rem); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section--surface { background: var(--surface); }
.section--dark { background: var(--navy); color: rgba(255,255,255,.76); }
.section--dark h2, .section--dark h3, .section--dark h4 { color: #fff; }

.skip-link {
  position: absolute; left: 12px; top: -100px; z-index: 200;
  background: var(--ink); color: #fff; padding: .7rem 1.1rem;
  border-radius: 8px; text-decoration: none; transition: top .15s;
}
.skip-link:focus { top: 12px; }

.lede { font-size: var(--f-lg); color: var(--body); max-width: 62ch; }
.center { text-align: center; }
.center .lede { margin-inline: auto; }

.eyebrow {
  display: inline-block;
  font-size: var(--f-xs);
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--violet);
  margin-bottom: .85rem;
}
.section--dark .eyebrow { color: var(--cyan); }

.section-head { max-width: 720px; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section-head.center { margin-inline: auto; }
.section-head h2 + .lede { margin-top: 1rem; }

.grid { display: grid; gap: clamp(1rem, 2.2vw, 1.6rem); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* --- 5. Buttons ---------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .85rem 1.6rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: var(--f-sm);
  font-weight: 650;
  letter-spacing: .01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease, color .16s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--grad); color: #fff; box-shadow: 0 6px 18px rgba(124,58,237,.32); }
.btn--primary:hover { box-shadow: 0 10px 26px rgba(124,58,237,.40); }

.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--violet); color: var(--violet); }

.section--dark .btn--ghost { color: #fff; border-color: rgba(255,255,255,.28); }
.section--dark .btn--ghost:hover { border-color: var(--cyan); color: var(--cyan); }

.btn--wa { background: #25D366; color: #08331A; box-shadow: 0 6px 18px rgba(37,211,102,.3); }
.btn--wa:hover { box-shadow: 0 10px 26px rgba(37,211,102,.38); }
.btn svg { width: 18px; height: 18px; flex: none; }

.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }
.center .btn-row { justify-content: center; }

/* --- 6. Header ----------------------------------------------------------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.88);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header__inner {
  display: flex; align-items: center; gap: 1rem;
  height: var(--header-h);
}
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; margin-right: auto; }
.brand__mark { width: 38px; height: 36px; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name {
  font-size: 1.02rem; font-weight: 800; color: var(--ink);
  letter-spacing: -.02em; line-height: 1.15;
}
/* The full name is long; let it wrap rather than push the header controls
   off-screen on narrow phones. */
@media (max-width: 430px) {
  .brand__name { font-size: .88rem; }
}

.nav { display: flex; align-items: center; gap: .25rem; }
.nav a {
  padding: .55rem .85rem; border-radius: 9px;
  font-size: var(--f-sm); font-weight: 550;
  color: var(--body); text-decoration: none;
  transition: color .15s, background .15s;
}
.nav a:hover { color: var(--ink); background: var(--surface); }
.nav a[aria-current="page"] { color: var(--violet); font-weight: 700; }

.header__actions { display: flex; align-items: center; gap: .6rem; }

/* Language toggle */
.langswitch {
  display: inline-flex; align-items: center;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 999px; padding: 3px;
}
.langswitch button {
  border: 0; background: transparent; cursor: pointer;
  padding: .3rem .68rem; border-radius: 999px;
  font-size: .74rem; font-weight: 700; letter-spacing: .06em;
  color: var(--muted); transition: all .15s;
}
.langswitch button[aria-pressed="true"] { background: var(--ink); color: #fff; }

.header .btn { padding: .62rem 1.15rem; }

/* The nav carries its own CTA for the mobile menu only — hide it on desktop,
   where the CTA already lives in .header__actions. */
@media (min-width: 901px) { .nav .btn { display: none; } }

/* Mobile menu button */
.burger {
  display: none; width: 42px; height: 42px;
  align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--white); cursor: pointer;
}
.burger span {
  display: block; width: 18px; height: 2px; background: var(--ink);
  border-radius: 2px; position: relative; transition: background .15s;
}
.burger span::before, .burger span::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2px;
  background: var(--ink); border-radius: 2px; transition: transform .2s ease;
}
.burger span::before { top: -6px; }
.burger span::after  { top: 6px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span::after  { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 900px) {
  .burger { display: inline-flex; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    padding: .6rem var(--gut) 1.2rem;
    transform: translateY(-8px);
    opacity: 0; visibility: hidden;
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav a { padding: .85rem .5rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav .btn { margin-top: .9rem; justify-content: center; border-bottom: 0; }
  .header__actions .btn--primary { display: none; }
}

/* --- 7. Hero ------------------------------------------------------------- */
.hero {
  position: relative;
  background: var(--navy);
  color: rgba(255,255,255,.78);
  overflow: hidden;
  padding-block: clamp(3.5rem, 9vw, 7rem);
}
.hero::before {
  /* soft brand glow */
  content: "";
  position: absolute; inset: -30% -10% auto auto;
  width: min(70vw, 780px); aspect-ratio: 1;
  background: radial-gradient(circle at 50% 50%,
              rgba(124,58,237,.55) 0%, rgba(34,211,238,.20) 42%, transparent 68%);
  filter: blur(20px);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }
.hero h1 { color: #fff; max-width: 17ch; }
.hero h1 .accent { color: var(--cyan); }
.hero__lede { font-size: var(--f-lg); color: rgba(255,255,255,.74); max-width: 60ch; margin-top: 1.4rem; }
.hero .btn-row { margin-top: 2.2rem; }

.hero--page { padding-block: clamp(3rem, 6vw, 4.5rem); }
.hero--page h1 { max-width: 20ch; }

.hero__stats {
  display: flex; flex-wrap: wrap; gap: clamp(1.5rem, 5vw, 3.5rem);
  margin-top: clamp(2.5rem, 5vw, 3.75rem);
  padding-top: clamp(1.75rem, 3vw, 2.25rem);
  border-top: 1px solid rgba(255,255,255,.12);
}
.hero__stat b {
  display: block; font-size: var(--f-2xl); color: #fff; font-weight: 800; letter-spacing: -.03em;
}
.hero__stat span { font-size: var(--f-sm); color: rgba(255,255,255,.6); }

/* --- 8. Cards ------------------------------------------------------------ */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 2.4vw, 1.9rem);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card h3 { margin-bottom: .6rem; }
.card p { font-size: var(--f-sm); }
a.card { text-decoration: none; display: block; }
a.card:hover, .card--hover:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(124,58,237,.35);
}
.section--surface .card { background: var(--white); }

.card__icon {
  width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(124,58,237,.12), rgba(34,211,238,.14));
  margin-bottom: 1.1rem;
}
.card__icon svg { width: 23px; height: 23px; stroke: var(--violet); fill: none; stroke-width: 1.8; }

.card__more {
  display: inline-flex; align-items: center; gap: .35rem;
  margin-top: 1rem; font-size: var(--f-sm); font-weight: 650; color: var(--violet);
}
.card__more::after { content: "→"; transition: transform .18s ease; }
a.card:hover .card__more::after { transform: translateX(4px); }

/* Numbered service block (services page) */
.pillar {
  scroll-margin-top: calc(var(--header-h) + 24px);
  padding-block: clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid var(--line);
}
.pillar:first-of-type { border-top: 0; padding-top: 0; }
.pillar__head { display: flex; gap: 1.15rem; align-items: flex-start; margin-bottom: 1.4rem; }
.pillar__num {
  flex: none; width: 48px; height: 48px; border-radius: 13px;
  display: grid; place-items: center;
  background: var(--grad); color: #fff;
  font-weight: 800; font-size: 1.05rem; letter-spacing: -.02em;
}
.pillar__body > p + p { margin-top: 1rem; }
.pillar__body p { max-width: 74ch; }

.capabilities { margin-top: 1.9rem; }
.capabilities > h4 {
  font-size: var(--f-sm); text-transform: uppercase; letter-spacing: .12em;
  color: var(--muted); font-weight: 700; margin-bottom: 1rem;
}
.cap-list { list-style: none; padding: 0; display: grid; gap: .8rem; }
@media (min-width: 720px) { .cap-list { grid-template-columns: 1fr 1fr; } }
.cap-list li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: .85rem 1.05rem;
  font-size: var(--f-sm);
}
/* The capability name carries the hierarchy — no accent bar needed, and with
   25 of these on the services page an accent would read as noise. */
.cap-list li b { display: block; color: var(--ink); font-weight: 700; margin-bottom: .15rem; }

/* --- 9. Industries ------------------------------------------------------- */
.ind {
  display: flex; align-items: center; gap: .85rem;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.15rem 1.3rem;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.ind:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: rgba(34,211,238,.5); }
.ind svg { width: 26px; height: 26px; flex: none; stroke: var(--violet); fill: none; stroke-width: 1.7; }
.ind b { color: var(--ink); font-size: var(--f-sm); font-weight: 650; }
.ind span { display: block; font-size: var(--f-xs); color: var(--muted); }

/* --- 10. Contact --------------------------------------------------------- */
.contact-grid { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1.15fr; align-items: start; } }

.info-list { list-style: none; padding: 0; display: grid; gap: 1.15rem; }
.info-list li { display: flex; gap: .9rem; }
.info-list svg { width: 20px; height: 20px; flex: none; margin-top: .3rem; stroke: var(--violet); fill: none; stroke-width: 1.8; }
.info-list b { display: block; color: var(--ink); font-size: var(--f-sm); font-weight: 700; }
.info-list a { color: var(--body); text-decoration: none; }
.info-list a:hover { color: var(--violet); text-decoration: underline; }

.form-card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: clamp(1.5rem, 3vw, 2.25rem);
  box-shadow: var(--shadow-sm);
}
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-size: var(--f-sm); font-weight: 650; color: var(--ink); margin-bottom: .4rem; }
.field input, .field textarea, .field select {
  width: 100%; padding: .8rem 1rem;
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--white); transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: 0; border-color: var(--violet);
  box-shadow: 0 0 0 3px rgba(124,58,237,.14);
}
.field textarea { min-height: 130px; resize: vertical; }
.field .hint { font-size: var(--f-xs); color: var(--muted); margin-top: .35rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.note {
  padding: .95rem 1.15rem; border-radius: 10px;
  font-size: var(--f-sm); margin-bottom: 1.25rem;
}
.note--ok   { background: #E9F9F0; border: 1px solid #B7E8CC; color: #14603A; }
.note--err  { background: #FDECEC; border: 1px solid #F5C2C2; color: #8C1D1D; }

.map-frame {
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; line-height: 0; box-shadow: var(--shadow-sm);
}
.map-frame iframe { width: 100%; height: 340px; border: 0; }

/* --- 11. CTA band -------------------------------------------------------- */
.cta {
  position: relative; overflow: hidden;
  background: var(--navy-2);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 5vw, 3.5rem);
  text-align: center;
  color: rgba(255,255,255,.76);
}
.cta::before {
  content: ""; position: absolute; inset: auto -10% -60% -10%;
  height: 340px;
  background: radial-gradient(ellipse at 50% 100%,
              rgba(124,58,237,.5), rgba(34,211,238,.16) 55%, transparent 72%);
  pointer-events: none;
}
.cta > * { position: relative; z-index: 1; }
.cta h2 { color: #fff; }
.cta p { max-width: 56ch; margin: 1rem auto 0; }
.cta .btn-row { margin-top: 1.9rem; justify-content: center; }

/* --- 12. Footer ---------------------------------------------------------- */
.footer { background: var(--navy); color: rgba(255,255,255,.6); padding-block: clamp(2.75rem, 5vw, 4rem) 1.75rem; }
.footer__grid { display: grid; gap: 2rem; }
@media (min-width: 800px) { .footer__grid { grid-template-columns: 1.6fr 1fr 1.4fr; } }
.footer h4 {
  color: #fff; font-size: var(--f-xs); text-transform: uppercase;
  letter-spacing: .14em; margin-bottom: 1rem; font-weight: 700;
}
.footer ul { list-style: none; padding: 0; display: grid; gap: .55rem; }
.footer a { color: rgba(255,255,255,.66); text-decoration: none; font-size: var(--f-sm); }
.footer a:hover { color: var(--cyan); }
.footer p { font-size: var(--f-sm); }
.footer .brand__name { color: #fff; }
.footer__bottom {
  margin-top: clamp(2rem, 4vw, 3rem); padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; justify-content: space-between;
  font-size: var(--f-xs); color: rgba(255,255,255,.45);
}

/* --- 13. Floating WhatsApp ----------------------------------------------- */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 90;
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: #25D366; color: #fff;
  box-shadow: 0 8px 24px rgba(37,211,102,.42);
  transition: transform .18s ease;
}
.wa-float:hover { transform: scale(1.07); }
.wa-float svg { width: 30px; height: 30px; }

/* --- 14. Reveal on scroll ------------------------------------------------ */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .55s ease, transform .55s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* --- 15. Print ----------------------------------------------------------- */
@media print {
  .header, .footer, .wa-float, .btn, .langswitch { display: none !important; }
  body { color: #000; }
  .hero, .section--dark { background: #fff !important; color: #000 !important; }
  .hero h1, .section--dark h2 { color: #000 !important; }
}
