/* =========================================================
   Maju Makmur Teknologi — Landing Page
   Design tokens follow Brand Identity System v1.0 (2026)
   ========================================================= */

:root {
  /* Primary — from the symbol */
  --magenta: #C90365;
  --magenta-deep: #A10252;
  --cyan: #52CAFC;
  --lime: #ABEB5F;

  /* Neutrals */
  --navy: #0E1630;
  --navy-soft: #1B2442;
  --slate: #677089;
  --text-muted: #5A6279; /* Slate darkened for AA text on tints */
  --mist: #E4E3DC;
  --paper: #F6F5F1;
  --white: #FFFFFF;

  /* Tints */
  --rose: #FBE3EE;
  --sky: #E1F5FE;
  --leaf: #EFF8DF;

  --line: rgba(14, 22, 48, 0.12);
  --line-strong: var(--navy);
  --on-dark-muted: #B4BACB;

  /* Typography */
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --text-display: clamp(2.5rem, 1.3rem + 4.6vw, 4.75rem);
  --text-h2: clamp(2rem, 1.2rem + 3vw, 3.25rem);

  /* Shape & space */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(72px, 9vw, 128px);
  --header-h: 72px;

  /* Motion */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 0.25s;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--navy);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img, svg { display: block; max-width: 100%; }
address { font-style: normal; }
::selection { background: var(--magenta); color: var(--white); }
:focus-visible { outline: 2px solid var(--magenta); outline-offset: 3px; border-radius: 6px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon {
  width: 20px; height: 20px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.75;
  stroke-linecap: round; stroke-linejoin: round;
}
.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--navy); color: var(--white); padding: 10px 16px; border-radius: var(--r-sm);
}
.skip-link:focus { top: 12px; }
.scroll-sentinel { position: absolute; top: 0; height: 8px; width: 1px; }

/* ---------- Type helpers ---------- */
.mono {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1.5;
}
.display {
  font-size: var(--text-display);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.045em;
}
.h2 {
  font-size: var(--text-h2);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.04em;
}
.hl { color: var(--magenta); }
.nowrap { white-space: nowrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 26px; border-radius: 999px;
  font-weight: 600; font-size: 0.95rem; letter-spacing: -0.01em;
  border: 1.5px solid transparent; cursor: pointer;
  transition: background-color var(--dur), color var(--dur), border-color var(--dur), transform var(--dur) var(--ease);
}
.btn .icon { width: 18px; height: 18px; transition: transform var(--dur) var(--ease); }
.btn:hover .icon--arrow { transform: translateX(3px); }
.btn:active { transform: scale(0.97); }
.btn--sm { min-height: 42px; padding: 0 20px; font-size: 0.88rem; }
.btn--primary { background: var(--magenta); color: var(--white); }
.btn--primary:hover { background: var(--magenta-deep); }
.btn--outline { border-color: var(--navy); color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: var(--white); }
.btn--light { background: var(--white); color: var(--magenta); }
.btn--light:hover { background: var(--rose); }
.btn--ghost-light { border-color: rgba(255, 255, 255, 0.6); color: var(--white); }
.btn--ghost-light:hover { background: var(--white); color: var(--magenta); border-color: var(--white); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 245, 241, 0.86);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; gap: 32px; height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand__mark { width: 36px; height: 36px; transition: transform 0.8s var(--ease); }
.brand:hover .brand__mark { transform: rotate(120deg); }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-weight: 700; font-size: 1.08rem; letter-spacing: -0.035em; }
.brand__sub {
  font-family: var(--font-mono); font-weight: 500; font-size: 0.52rem;
  letter-spacing: 0.5em; text-transform: uppercase; margin-top: 5px;
}

.nav__links { margin-left: auto; }
.nav__links ul { display: flex; gap: 32px; }
.nav__links a {
  position: relative; font-weight: 500; font-size: 0.94rem; color: var(--text-muted);
  transition: color var(--dur);
}
.nav__menu-cta { display: none; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
  background: var(--magenta); transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.nav__links a:hover { color: var(--navy); }
.nav__links a:hover::after { transform: scaleX(1); }

.nav__toggle {
  display: none; width: 44px; height: 44px; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--white); color: var(--navy);
  align-items: center; justify-content: center; cursor: pointer;
}

/* ---------- Hero ---------- */
.hero { padding: clamp(40px, 6vw, 88px) 0 clamp(24px, 4vw, 48px); }
.hero__grid {
  display: grid; grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(48px, 6vw, 88px); align-items: center;
}
.eyebrow { display: flex; align-items: center; gap: 12px; color: var(--text-muted); }
.eyebrow::before { content: ""; width: 28px; height: 1.5px; background: var(--magenta); }
.hero .display { margin: 22px 0 24px; }
.lead { font-size: 1.075rem; color: var(--text-muted); max-width: 52ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.facts {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  margin-top: 52px; padding-top: 18px; border-top: 1.5px solid var(--line-strong);
}
.fact { display: flex; flex-direction: column; }
.fact dt { color: var(--text-muted); }
.fact dd {
  font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.25rem);
  font-weight: 700; letter-spacing: -0.04em; line-height: 1.1; margin-top: auto; padding-top: 6px;
}

/* Showcase (right side of hero) */
.showcase { position: relative; padding: 24px 28px 48px 28px; }
.showcase__card {
  position: relative; aspect-ratio: 1 / 1;
  background: var(--white); border-radius: var(--r-lg);
  display: grid; place-items: center;
  box-shadow: 0 1px 0 var(--line), 0 30px 60px -30px rgba(14, 22, 48, 0.22);
}
.showcase__mark { width: 58%; height: auto; aspect-ratio: 1; animation: spin 60s linear infinite; }
.showcase__corner { position: absolute; color: var(--text-muted); font-size: 0.6rem; }
.showcase__corner--tl { top: 22px; left: 24px; }
.showcase__corner--tr { top: 22px; right: 24px; }

.chip {
  position: absolute; display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 16px; border-radius: 999px;
  background: var(--white); border: 1px solid var(--line);
  font-weight: 600; font-size: 0.86rem; white-space: nowrap;
  box-shadow: 0 12px 24px -16px rgba(14, 22, 48, 0.35);
  animation: float 7s ease-in-out infinite;
}
.chip i { width: 10px; height: 10px; border-radius: 50%; }
.chip--a { top: 16%; right: 0; }
.chip--b { top: 46%; left: 0; animation-delay: -2.4s; }
.chip--c { bottom: 26%; right: 4%; animation-delay: -4.8s; }

.stat-card {
  position: absolute; left: 0; bottom: 0;
  display: flex; align-items: center; gap: 16px;
  background: var(--navy); color: var(--white);
  padding: 18px 24px; border-radius: var(--r-md);
  box-shadow: 0 20px 40px -20px rgba(14, 22, 48, 0.6);
}
.stat-card__value { font-size: 2rem; font-weight: 700; letter-spacing: -0.04em; color: var(--lime); }
.stat-card__label { font-size: 0.8rem; line-height: 1.35; color: var(--on-dark-muted); }

/* ---------- Sections ---------- */
.section { padding: var(--section) 0; }
.section--tight-top { padding-top: 0; }

.sec-bar {
  display: flex; align-items: baseline; gap: 14px;
  padding-top: 18px; border-top: 1.5px solid var(--line-strong);
  margin-bottom: clamp(32px, 4vw, 48px);
}
.sec-bar__idx { color: var(--magenta); }
.sec-bar__title { font-weight: 600; font-size: 1.3rem; letter-spacing: -0.025em; }
.sec-bar__meta { margin-left: auto; color: var(--text-muted); }

.sec-intro {
  display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(24px, 4vw, 64px);
  align-items: end; margin-bottom: clamp(36px, 5vw, 56px);
}
.sec-intro p { color: var(--text-muted); max-width: 46ch; font-size: 1.03rem; }

/* ---------- 01 Pillars ---------- */
.pillars {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-radius: var(--r-lg); overflow: hidden;
}
.pillar {
  display: flex; flex-direction: column;
  padding: clamp(28px, 3vw, 40px); min-height: 540px;
}
.pillar__icon {
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center; margin-bottom: 36px;
  transition: transform 0.5s var(--ease);
}
.pillar:hover .pillar__icon { transform: rotate(-12deg) scale(1.06); }
.pillar__icon .icon { width: 24px; height: 24px; }
.pillar h3 {
  font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.1rem); font-weight: 700;
  letter-spacing: -0.035em; line-height: 1.1; margin: 8px 0 14px;
}
.pillar__desc { font-size: 0.95rem; opacity: 0.9; max-width: 36ch; }
.pillar ul { margin-top: auto; padding-top: 32px; }
.pillar li {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 0; font-size: 0.92rem; font-weight: 500;
  border-top: 1px solid currentColor;
  border-top-color: color-mix(in srgb, currentColor 22%, transparent);
}
.pillar li .icon { width: 16px; height: 16px; stroke-width: 2.2; }

.pillar--magenta { background: var(--magenta); color: var(--white); }
.pillar--magenta .pillar__icon { background: rgba(255, 255, 255, 0.16); }
.pillar--cyan { background: var(--cyan); color: var(--navy); }
.pillar--cyan .pillar__icon { background: var(--navy); color: var(--cyan); }
.pillar--lime { background: var(--lime); color: var(--navy); }
.pillar--lime .pillar__icon { background: var(--navy); color: var(--lime); }

/* ---------- 02 Bento ---------- */
.bento {
  display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 16px;
}
.quote-panel {
  grid-row: span 2; position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 18px;
  min-height: 480px; padding: clamp(28px, 3vw, 40px);
  background: var(--navy); color: var(--white); border-radius: var(--r-lg);
}
.pattern {
  position: absolute; top: 28px; left: 28px; right: -40px;
  display: grid; grid-template-columns: repeat(4, 72px); gap: 22px;
}
.pattern svg { width: 72px; height: 72px; }
.pattern svg:nth-child(even) { transform: rotate(120deg); }
.pattern svg:nth-child(3n) { transform: rotate(240deg); }
.quote-panel blockquote {
  position: relative; font-size: clamp(1.35rem, 1rem + 1vw, 1.75rem);
  font-weight: 600; line-height: 1.25; letter-spacing: -0.025em;
}
.quote-panel figcaption { color: var(--on-dark-muted); }

.feat {
  display: flex; flex-direction: column; gap: 10px;
  padding: 28px; border-radius: var(--r-lg);
  transition: transform 0.4s var(--ease);
}
.feat:hover { transform: translateY(-4px); }
.feat__top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 28px; color: var(--text-muted); }
.feat__icon {
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; background: var(--white); color: var(--navy);
}
.feat h3 { font-size: 1.18rem; font-weight: 700; letter-spacing: -0.025em; line-height: 1.2; }
.feat p { color: var(--text-muted); font-size: 0.94rem; }
.feat--sky { background: var(--sky); }
.feat--rose { background: var(--rose); }
.feat--leaf { background: var(--leaf); }
.feat--white { background: var(--white); border: 1px solid var(--line); }
.feat--white .feat__icon { background: var(--paper); }

/* ---------- 03 Steps ---------- */
.steps {
  position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
  padding: clamp(28px, 4vw, 48px); background: var(--white); border-radius: var(--r-lg);
}
.steps::before {
  content: ""; position: absolute; height: 1.5px; background: var(--mist);
  top: calc(clamp(28px, 4vw, 48px) + 7px);
  left: clamp(28px, 4vw, 48px); right: clamp(28px, 4vw, 48px);
}
.step { position: relative; display: flex; flex-direction: column; gap: 8px; }
.step__dot {
  width: 16px; height: 16px; border-radius: 50%; margin-bottom: 20px;
  box-shadow: 0 0 0 6px var(--white);
}
.step--magenta .step__dot { background: var(--magenta); }
.step--cyan .step__dot { background: var(--cyan); }
.step--lime .step__dot { background: var(--lime); }
.step--navy .step__dot { background: var(--navy); }
.step__num { color: var(--text-muted); }
.step h3 { font-size: 1.3rem; font-weight: 700; letter-spacing: -0.03em; }
.step p { color: var(--text-muted); font-size: 0.93rem; }

/* ---------- 04 Contact ---------- */
.contact {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: 1.25fr 0.95fr; gap: clamp(32px, 5vw, 72px);
  align-items: center;
  padding: clamp(32px, 6vw, 72px);
  background: var(--magenta); color: var(--white); border-radius: var(--r-lg);
}
.contact__arc {
  position: absolute; z-index: -1; width: 70%; aspect-ratio: 1; height: auto;
  left: -22%; bottom: -48%; opacity: 0.14;
  --mark-a: #FFFFFF; --mark-b: #FFFFFF; --mark-c: #FFFFFF;
  animation: spin 90s linear infinite reverse;
}
.contact__q { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.02em; margin-top: 24px; }
.contact__text { margin-top: 8px; max-width: 48ch; color: rgba(255, 255, 255, 0.88); }
.contact__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.contact-card {
  background: var(--white); color: var(--navy);
  border-radius: var(--r-md); padding: clamp(24px, 3vw, 32px);
}
.contact-card__label { color: var(--magenta); }
.contact-card__name { font-weight: 700; font-size: 1.15rem; letter-spacing: -0.02em; margin: 6px 0 18px; }
.contact-card__row {
  display: flex; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line);
  font-size: 0.93rem; line-height: 1.55; overflow-wrap: break-word; min-width: 0;
}
.contact-card__row .icon { color: var(--magenta); margin-top: 2px; }
.contact-card__row a { font-weight: 600; transition: color var(--dur); }
.contact-card__row a:hover { color: var(--magenta); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: var(--on-dark-muted); padding: 80px 0 28px; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 0.8fr 0.8fr 1.4fr; gap: 40px; }
.brand--dark { color: var(--white); }
.brand--dark .brand__sub { color: var(--on-dark-muted); }
.foot-brand p { margin-top: 20px; font-size: 0.93rem; max-width: 34ch; }
.foot-title { color: var(--white); opacity: 0.6; margin-bottom: 18px; font-size: 0.66rem; }
.site-footer ul { display: flex; flex-direction: column; gap: 10px; font-size: 0.93rem; }
.site-footer a { transition: color var(--dur); overflow-wrap: anywhere; }
.site-footer a:hover { color: var(--white); }
.foot-address { line-height: 1.6; }
.foot-address strong { color: var(--white); font-weight: 600; }
.foot-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  margin-top: 64px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.62rem;
}

/* ---------- Motion ---------- */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.js [data-reveal] {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hero__grid { grid-template-columns: 1fr; }
  .showcase { max-width: 560px; width: 100%; margin: 0 auto; }
  .sec-intro { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr 1fr; }
  .quote-panel { grid-column: 1 / -1; grid-row: auto; min-height: 380px; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .steps::before { display: none; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .pillars { grid-template-columns: 1fr; }
  .pillar { min-height: 0; }
  .contact { grid-template-columns: 1fr; }
  .contact__arc { width: 120%; left: auto; right: -50%; bottom: -30%; }
}

@media (max-width: 860px) {
  .nav { gap: 12px; }
  .nav__toggle { display: inline-flex; }
  .nav__cta { margin-left: auto; }
  .nav__links {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 20px;
    display: none;
  }
  .nav__links.is-open { display: block; }
  .nav__links ul { flex-direction: column; gap: 0; }
  .nav__links a { display: block; padding: 14px 0; font-size: 1.05rem; color: var(--navy); border-bottom: 1px solid var(--line); }
  .nav__links a::after { display: none; }
  .nav__links .nav__menu-cta a { color: var(--magenta); font-weight: 600; border-bottom: 0; }
}

@media (max-width: 640px) {
  .nav__cta { display: none; }
  .nav__menu-cta { display: block; }
  .nav__toggle { margin-left: auto; }
  .sec-bar__meta { display: none; }
  .facts { gap: 12px; }
  .fact dt { font-size: 0.65rem; letter-spacing: 0.06em; }
  .showcase { padding: 16px 0 40px; }
  .showcase__corner { font-size: 0.5rem; }
  .showcase__corner--tl, .showcase__corner--tr { top: 16px; }
  .showcase__corner--tl { left: 16px; }
  .showcase__corner--tr { right: 16px; }
  .chip { font-size: 0.76rem; padding: 8px 12px; }
  .chip--a { right: -4px; }
  .chip--b { left: -4px; }
  .stat-card { padding: 14px 18px; }
  .stat-card__value { font-size: 1.6rem; }
  .bento, .steps, .foot-grid { grid-template-columns: 1fr; }
  .pattern { grid-template-columns: repeat(4, 56px); gap: 16px; }
  .pattern svg { width: 56px; height: 56px; }
  .hero__actions .btn { flex: 1 1 auto; }
  .foot-bottom { flex-direction: column; }
  .contact { padding: 28px 20px 20px; }
  .contact-card { padding: 22px 18px; }
  .contact__actions .btn { flex: 1 1 auto; }
}
