/* ================================================================
   KodLokasi — Product Page Design System
   Standalone stylesheet — free from earthinfo.com.my constraints.

   Inspired by Apple product pages: extreme whitespace, bold type,
   surgical use of dark sections, bento grids, and motion craft.

   Font stack: Inter (Google Fonts) → system SF Pro on Apple devices
   Palette:
     --ink    : #1D1D1F   (Apple near-black)
     --black  : #060606   (hero / CTA backgrounds)
     --red    : #E0392E   (KodLokasi accent)
     --blue   : #75C4F2   (EARTH Info accent, icon tints)
     --white  : #FFFFFF
     --off    : #F5F5F7   (Apple light gray sections)
     --muted  : #6E6E73   (secondary text)
     --dim    : #AEAEB2   (tertiary / numbers)
================================================================ */

/* ────────────────────────────────────────
   0. BASE OVERRIDES
──────────────────────────────────────── */
.kodlokasi-page {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-family: "Inter", -apple-system, BlinkMacSystemFont,
    "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  background: #ffffff;
  color: #1D1D1F;
}

.kodlokasi-page *, .kodlokasi-page *::before, .kodlokasi-page *::after {
  box-sizing: border-box;
}

/* Header: frosted glass override */
.kodlokasi-page #header,
.kodlokasi-page #header.header-scrolled {
  background: rgba(6, 6, 6, 0.78) !important;
  backdrop-filter: blur(28px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(28px) saturate(180%) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07) !important;
  padding: 16px 0 !important;
}

.kodlokasi-page #header .navbar a,
.kodlokasi-page #header .navbar a:focus {
  color: rgba(255, 255, 255, 0.76);
}

.kodlokasi-page #header .navbar a:hover,
.kodlokasi-page #header .navbar .active,
.kodlokasi-page #header .navbar li:hover > a {
  color: #E0392E;
}

/* Section spacing */
.kl-section { padding: 108px 0; }
@media (max-width: 991px) { .kl-section { padding: 80px 0; } }
@media (max-width: 576px)  { .kl-section { padding: 60px 0; } }

/* ────────────────────────────────────────
   1. TYPOGRAPHY UTILITIES
──────────────────────────────────────── */
.kl-eyebrow {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #E0392E;
  margin-bottom: 14px;
}

.kl-h2 {
  font-size: clamp(34px, 4.5vw, 52px);
  font-weight: 800;
  line-height: 1.07;
  letter-spacing: -0.030em;
  color: #1D1D1F;
  margin: 0 0 20px;
}

.kl-h2--light { color: #FFFFFF; }

.kl-body {
  font-size: 17px;
  line-height: 1.70;
  color: #3A3A3C;
  font-weight: 400;
}

.kl-body--muted { color: #6E6E73; }
.kl-body--light { color: rgba(255, 255, 255, 0.64); }

/* ────────────────────────────────────────
   2. BUTTONS
──────────────────────────────────────── */
.kl-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 32px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 980px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.22s ease, color 0.22s ease,
              transform 0.22s ease, box-shadow 0.22s ease,
              border-color 0.22s ease;
  font-family: inherit;
}

.kl-btn i {
  font-size: 13px;
  transition: transform 0.22s ease;
}

.kl-btn:hover i {
  transform: translate(2px, -2px);
}

/* Red primary */
.kl-btn--primary {
  background: #E0392E;
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(224, 57, 46, 0.36);
}

.kl-btn--primary:hover {
  background: #C8302A;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 10px 40px rgba(224, 57, 46, 0.50);
  text-decoration: none;
}

/* Ghost / outline (for dark backgrounds) */
.kl-btn--ghost {
  background: transparent;
  color: rgba(255, 255, 255, 0.80);
  border: 1.5px solid rgba(255, 255, 255, 0.24);
}

.kl-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.52);
  color: #ffffff;
  transform: translateY(-2px);
  text-decoration: none;
}

/* Ghost dark (for light backgrounds) */
.kl-btn--ghost-dark {
  background: transparent;
  color: #1D1D1F;
  border: 1.5px solid rgba(0, 0, 0, 0.20);
}

.kl-btn--ghost-dark:hover {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.38);
  color: #1D1D1F;
  transform: translateY(-2px);
  text-decoration: none;
}

/* ────────────────────────────────────────
   3. HERO
──────────────────────────────────────── */
.kl-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #060606;
  overflow: hidden;
}

/* Animated ambient glow */
.kl-hero__glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 72% 72% at 12% 12%, rgba(224, 57, 46, 0.17) 0%, transparent 58%),
    radial-gradient(ellipse 64% 56% at 88% 82%, rgba(117, 196, 242, 0.13) 0%, transparent 58%),
    radial-gradient(ellipse 48% 48% at 50% 50%, rgba(224, 57, 46, 0.06) 0%, transparent 68%);
  animation: kl-breathe 11s ease-in-out infinite alternate;
}

@keyframes kl-breathe {
  0%   { opacity: 0.60; transform: scale(1.00); }
  100% { opacity: 1.00; transform: scale(1.07); }
}

/* Subtle dot grid */
.kl-hero__grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.032) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

.kl-hero__inner {
  position: relative;
  z-index: 2;
  max-width: 860px;
  margin: 0 auto;
  padding: 96px 24px 80px;
}

/* Floating logo */
.kl-hero__logo {
  width: 210px;
  display: block;
  margin: 0 auto 48px;
  animation: kl-float 7s ease-in-out infinite;
}

@keyframes kl-float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-14px); }
}

/* Hero headline */
.kl-hero__h1 {
  font-size: clamp(58px, 9.5vw, 100px);
  font-weight: 800;
  line-height: 1.01;
  letter-spacing: -0.046em;
  color: #FFFFFF;
  margin: 0 0 28px;
}

.kl-hero__h1 span { color: #E0392E; }

.kl-hero__sub {
  font-size: clamp(17px, 2.2vw, 21px);
  line-height: 1.60;
  color: rgba(255, 255, 255, 0.54);
  max-width: 540px;
  margin: 0 auto 52px;
  font-weight: 400;
}

.kl-hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* Scroll hint */
.kl-scroll-hint {
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  color: rgba(255, 255, 255, 0.26);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  animation: kl-scroll-hint 2.4s ease-in-out infinite;
}

.kl-scroll-hint i { font-size: 18px; }

@keyframes kl-scroll-hint {
  0%, 100% { opacity: 0.26; transform: translateX(-50%) translateY(0); }
  50%       { opacity: 0.68; transform: translateX(-50%) translateY(8px); }
}

@media (max-width: 576px) {
  .kl-hero__inner { padding: 80px 20px 64px; }
  .kl-hero__logo  { width: 160px; margin-bottom: 36px; }
}

/* ────────────────────────────────────────
   4. STATEMENT
──────────────────────────────────────── */
.kl-statement {
  background: #FFFFFF;
  padding: 128px 24px;
  text-align: center;
}

.kl-statement__text {
  font-size: clamp(30px, 4.6vw, 52px);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.026em;
  color: #1D1D1F;
  max-width: 820px;
  margin: 0 auto;
}

.kl-statement__text em {
  font-style: normal;
  color: #E0392E;
}

@media (max-width: 576px) { .kl-statement { padding: 80px 24px; } }

/* ────────────────────────────────────────
   5. CHALLENGE
──────────────────────────────────────── */
.kl-challenge { background: #F5F5F7; }

.kl-challenge__quote {
  font-size: clamp(22px, 2.8vw, 34px);
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -0.022em;
  color: #1D1D1F;
  padding-left: 24px;
  border-left: 4px solid #E0392E;
  margin: 0;
}

/* ────────────────────────────────────────
   6. THREE PILLARS
──────────────────────────────────────── */
.kl-pillars { background: #FFFFFF; }

.kl-pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 52px;
  margin-top: 64px;
}

@media (max-width: 768px) {
  .kl-pillar-grid { grid-template-columns: 1fr; gap: 40px; }
}

.kl-pillar__icon {
  width: 60px;
  height: 60px;
  border-radius: 17px;
  background: #1D1D1F;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: #75C4F2;
  margin-bottom: 22px;
}

.kl-pillar__num {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #AEAEB2;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.kl-pillar__title {
  font-size: 22px;
  font-weight: 700;
  color: #1D1D1F;
  letter-spacing: -0.016em;
  margin: 0 0 12px;
}

.kl-pillar__body {
  font-size: 15px;
  line-height: 1.66;
  color: #6E6E73;
  margin: 0;
}

/* ────────────────────────────────────────
   7. ADMIN SECTION  (dark)
──────────────────────────────────────── */
.kl-admin {
  background: #0A0A0A;
  position: relative;
  overflow: hidden;
}

.kl-admin__glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 80% at 72% 50%, rgba(224, 57, 46, 0.11) 0%, transparent 60%),
    radial-gradient(ellipse 60% 60% at 5%  80%, rgba(117, 196, 242, 0.08) 0%, transparent 55%);
}

/* Hierarchy diagram */
.kl-hierarchy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.kl-hierarchy__item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.kl-hierarchy__spacer {
  width: 2px;
  height: 26px;
  background: rgba(255, 255, 255, 0.11);
  margin-left: 19px;
}

.kl-hierarchy__badge {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.10);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.58);
  flex-shrink: 0;
}

.kl-hierarchy__badge--active {
  background: rgba(224, 57, 46, 0.18);
  border-color: rgba(224, 57, 46, 0.44);
  color: #E0392E;
}

.kl-hierarchy__label {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.52);
  font-weight: 500;
}

.kl-hierarchy__label strong        { color: #FFFFFF; font-weight: 700; }
.kl-hierarchy__label strong.kl-red { color: #E0392E; }

/* Code chip */
.kl-code-chip {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 14px 22px;
  background: rgba(224, 57, 46, 0.11);
  border: 1px solid rgba(224, 57, 46, 0.30);
  border-radius: 16px;
  margin-top: 28px;
}

.kl-code-chip__code {
  font-family: "SF Mono", "Fira Code", "Inconsolata", monospace;
  font-size: 22px;
  font-weight: 700;
  color: #E0392E;
  letter-spacing: 0.04em;
}

.kl-code-chip__label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.36);
  font-weight: 500;
  line-height: 1.4;
}

/* ────────────────────────────────────────
   8. COMPLEMENT (light — equation layout)
──────────────────────────────────────── */
.kl-complement { background: #FFFFFF; }

.kl-complement__flow {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 52px;
}

.kl-complement__box {
  flex: 1;
  min-width: 180px;
  max-width: 256px;
  padding: 32px 28px;
  border-radius: 20px;
  background: #F5F5F7;
}

.kl-complement__box h4 {
  font-size: 17px;
  font-weight: 700;
  color: #1D1D1F;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
}

.kl-complement__box p {
  font-size: 14px;
  line-height: 1.60;
  color: #6E6E73;
  margin: 0;
}

.kl-complement__box--kl {
  background: rgba(224, 57, 46, 0.06);
  border: 1.5px solid rgba(224, 57, 46, 0.18);
}
.kl-complement__box--kl h4 { color: #E0392E; }

.kl-complement__box--result {
  background: #1D1D1F;
}
.kl-complement__box--result h4 { color: #FFFFFF; }
.kl-complement__box--result p  { color: rgba(255, 255, 255, 0.54); }

.kl-complement__op {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 300;
  color: #AEAEB2;
  flex-shrink: 0;
  align-self: center;
}

@media (max-width: 767px) {
  .kl-complement__flow    { flex-direction: column; align-items: center; }
  .kl-complement__box     { max-width: 100%; width: 100%; }
  .kl-complement__op      { transform: rotate(90deg); }
}

/* ────────────────────────────────────────
   9. BENTO GRID
──────────────────────────────────────── */
.kl-bento { background: #F5F5F7; }

.kl-bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 52px;
}

/* Layout:
   [  Emergency (2 col)  ][Digital Gov (1 col)]
   [Rural (1)][Logistics (1)][Land (1)         ]
   [  Utilities — 3 col dark wide              ]  */

.kl-bento-card {
  background: #FFFFFF;
  border-radius: 22px;
  padding: 36px 32px;
  overflow: hidden;
  transition: transform 0.30s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.30s ease;
}

.kl-bento-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 64px rgba(0, 0, 0, 0.09);
}

.kl-bento-card--featured { grid-column: span 2; }
.kl-bento-card--wide     { grid-column: span 3; }

.kl-bento-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: #1D1D1F;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #75C4F2;
  margin-bottom: 20px;
  flex-shrink: 0;
}

.kl-bento-card--featured .kl-bento-card__icon {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  font-size: 28px;
}

.kl-bento-card h3 {
  font-size: 19px;
  font-weight: 700;
  color: #1D1D1F;
  letter-spacing: -0.015em;
  margin: 0 0 10px;
}

.kl-bento-card--featured h3 { font-size: 26px; }

.kl-bento-card p {
  font-size: 15px;
  line-height: 1.64;
  color: #6E6E73;
  margin: 0;
}

/* Wide dark card */
.kl-bento-card--wide {
  background: #1D1D1F;
  display: flex;
  align-items: center;
  gap: 28px;
}

.kl-bento-card--wide .kl-bento-card__icon {
  background: rgba(255, 255, 255, 0.08);
  color: #E0392E;
}

.kl-bento-card--wide h3 { color: #FFFFFF; }
.kl-bento-card--wide p  { color: rgba(255, 255, 255, 0.60); }

/* Responsive */
@media (max-width: 991px) {
  .kl-bento-grid { grid-template-columns: repeat(2, 1fr); }
  .kl-bento-card--featured { grid-column: span 2; }
  .kl-bento-card--wide {
    grid-column: span 2;
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 576px) {
  .kl-bento-grid { grid-template-columns: 1fr; }
  .kl-bento-card--featured,
  .kl-bento-card--wide     { grid-column: span 1; }
  .kl-bento-card           { padding: 28px 24px; }
  .kl-bento-card--wide     { flex-direction: column; align-items: flex-start; }
}

/* ────────────────────────────────────────
   10. EARTH INFO ENDORSEMENT
──────────────────────────────────────── */
.kl-earthinfo {
  background: #FFFFFF;
  text-align: center;
}

.kl-earthinfo__logo {
  width: 68px;
  height: 68px;
  object-fit: contain;
  display: block;
  margin: 0 auto 22px;
}

.kl-earthinfo__label {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #AEAEB2;
  margin-bottom: 16px;
  display: block;
}

.kl-earthinfo__title {
  font-size: clamp(26px, 3.5vw, 44px);
  font-weight: 800;
  letter-spacing: -0.024em;
  line-height: 1.10;
  color: #1D1D1F;
  max-width: 680px;
  margin: 0 auto 24px;
}

.kl-earthinfo__body {
  font-size: 17px;
  line-height: 1.70;
  color: #6E6E73;
  max-width: 620px;
  margin: 0 auto;
}

/* ────────────────────────────────────────
   11. CTA
──────────────────────────────────────── */
.kl-cta {
  background: #060606;
  text-align: center;
  padding: 128px 24px;
  position: relative;
  overflow: hidden;
}

.kl-cta__glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 50% 120%, rgba(224, 57, 46, 0.24) 0%, transparent 65%),
    radial-gradient(ellipse 60% 60% at 90%   0%, rgba(117, 196, 242, 0.08) 0%, transparent 55%);
}

.kl-cta > * { position: relative; z-index: 1; }

.kl-cta__eyebrow {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.34);
  margin-bottom: 20px;
}

.kl-cta__h2 {
  font-size: clamp(40px, 7vw, 80px);
  font-weight: 800;
  letter-spacing: -0.040em;
  line-height: 1.01;
  color: #FFFFFF;
  margin: 0 0 16px;
}

.kl-cta p {
  font-size: 19px;
  color: rgba(255, 255, 255, 0.50);
  max-width: 440px;
  margin: 0 auto 52px;
  line-height: 1.60;
}

@media (max-width: 576px) { .kl-cta { padding: 80px 24px; } }

/* ────────────────────────────────────────
   12. FOOTER OVERRIDES
──────────────────────────────────────── */
.kodlokasi-page #footer {
  background: #0D0D0D;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.kodlokasi-page #footer .footer-top {
  padding: 48px 0 24px;
}

.kodlokasi-page #footer .footer-top .footer-info {
  margin-top: 0 !important;
  background: transparent !important;
  border-top: none !important;
  padding: 0 !important;
  text-align: left;
}

.kodlokasi-page #footer h3 {
  color: #FFFFFF !important;
  font-size: 17px !important;
  font-weight: 700;
}

.kodlokasi-page #footer p {
  color: rgba(255, 255, 255, 0.46) !important;
}

.kodlokasi-page #footer .copyright {
  color: rgba(255, 255, 255, 0.30);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding-top: 20px;
  font-size: 13px;
}
