/* ==========================================================================
   Base Styles & Architectural Layouts — PT Inklusi Teknologi Strategis
   Aesthetics Aligned with GEOAI Indonesia (geoai.id)
   ========================================================================== */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--surface);
  letter-spacing: -0.003em;
  overflow-x: clip;
}

::selection {
  background: #d7f0e4;
  color: var(--brand-deep);
}

img, svg, picture, video {
  display: block;
  max-width: 100%;
  height: auto;
}

input, button, textarea, select {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   Architectural Containers & Rails (geoai.id signature)
   -------------------------------------------------------------------------- */
.g-container {
  width: min(var(--content-max), calc(100% - 2 * var(--gutter)));
  margin-inline: auto;
}

.g-chrome {
  width: min(var(--chrome-max), calc(100% - 2 * var(--gutter)));
  margin-inline: auto;
}

.g-section-lg {
  padding-block: var(--section-gap);
}

.g-railed {
  position: relative;
}

.g-railed > .g-container {
  position: relative;
}

@media (min-width: 1024px) {
  .g-railed > .g-container::before,
  .g-railed > .g-container::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--line);
    pointer-events: none;
    z-index: 1;
  }
  
  .g-railed > .g-container::before {
    left: 0;
  }
  
  .g-railed > .g-container::after {
    right: 0;
  }

  .g-dotted {
    background-image: radial-gradient(circle at 1px 1px, var(--dot) 1px, transparent 1.4px);
    background-size: 14px 14px;
  }

  .g-dotted > .g-container {
    background: var(--surface);
  }
}

/* Dashed Architectural Divider Rule */
.g-rule {
  height: 1px;
  background-image: linear-gradient(to right, var(--line-strong) 50%, transparent 50%);
  background-size: 10px 1px;
  opacity: 0.75;
  width: 100%;
}

/* CAD Corner Handles */
.g-handle {
  position: absolute;
  width: 8px;
  height: 8px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: var(--surface);
  pointer-events: none;
  z-index: 2;
}

.g-handle[data-pos="tl"] { top: -4px; left: -4px; }
.g-handle[data-pos="tr"] { top: -4px; right: -4px; }
.g-handle[data-pos="bl"] { bottom: -4px; left: -4px; }
.g-handle[data-pos="br"] { bottom: -4px; right: -4px; }

/* --------------------------------------------------------------------------
   Typography Hierarchy (geoai.id style)
   -------------------------------------------------------------------------- */
.g-display, .g-h1, .g-h2, .g-h3, .g-h4 {
  font-family: var(--font-heading);
  font-weight: 500;
  letter-spacing: -0.025em;
  color: var(--ink);
  line-height: 1.1;
  text-wrap: balance;
}

.g-panel .g-display,
.g-panel .g-h1,
.g-panel .g-h2,
.g-panel .g-h3,
.g-panel .g-h4 {
  color: #ffffff !important;
}

.g-display {
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  font-weight: 600;
  line-height: 1.05;
}

.g-h1 {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
}

.g-h2 {
  font-size: clamp(1.85rem, 3vw, 2.5rem);
  line-height: 1.12;
}

.g-h3 {
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  line-height: 1.25;
}

.g-h4 {
  font-size: 1.15rem;
  line-height: 1.35;
}

.g-lead {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--ink-secondary);
  text-wrap: pretty;
}

.g-body {
  font-size: 1rem;
  line-height: 1.62;
  color: var(--ink-secondary);
}

.g-small {
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--ink-secondary);
}

.g-eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: var(--brand);
}

.g-mono {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0;
}

/* --------------------------------------------------------------------------
   Spatial Radar Ping Animation
   -------------------------------------------------------------------------- */
@keyframes g-ping {
  0% { transform: scale(1); opacity: 0.8; }
  80%, 100% { transform: scale(3.2); opacity: 0; }
}

.g-ping {
  transform-box: fill-box;
  transform-origin: center;
  animation: g-ping 2.4s var(--ease-press) infinite;
}

/* Accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

@media (max-width: 640px) {
  :root {
    --gutter: 1rem;
    --section-gap: 3.75rem;
  }
}

