/* ==========================================================================
   WebPilot Mockup — Design Tokens & Base
   Dipakai bersama oleh varian A dan B. Nanti jadi theme.json saat masuk theme.
   ========================================================================== */

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../fonts/PlusJakartaSans.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  /* --- Palet: Navy + Electric Blue --- */
  --navy-900: #0b1220;
  --navy-800: #111a2e;
  --navy-700: #1b2740;
  --navy-600: #27354f;

  --blue-700: #1d4ed8;
  --blue-600: #2563eb;
  --blue-500: #3b82f6;
  --blue-100: #dbeafe;
  --blue-50: #eff6ff;

  --cyan-400: #22d3ee;
  --cyan-100: #cffafe;

  --gray-0: #ffffff;
  --gray-50: #f7f9fc;
  --gray-100: #eef2f7;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;

  --danger: #ef4444;

  /* --- Typography --- */
  --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;

  --fs-display: clamp(2.5rem, 1.6rem + 4vw, 4.25rem);
  --fs-h1: clamp(2.1rem, 1.5rem + 3vw, 3.25rem);
  --fs-h2: clamp(1.75rem, 1.3rem + 2vw, 2.5rem);
  --fs-h3: clamp(1.25rem, 1.05rem + 1vw, 1.5rem);
  --fs-h4: 1.125rem;
  --fs-body: 1.0625rem;
  --fs-sm: 0.9375rem;
  --fs-xs: 0.8125rem;

  --lh-tight: 1.12;
  --lh-snug: 1.3;
  --lh-body: 1.65;

  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --fw-extrabold: 800;

  /* --- Layout --- */
  --container: 1200px;
  --container-narrow: 820px;
  --gutter: clamp(1.25rem, 4vw, 2rem);
  --section-y: clamp(4rem, 8vw, 6.5rem);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(11, 18, 32, 0.06), 0 1px 3px rgba(11, 18, 32, 0.08);
  --shadow-md: 0 4px 12px rgba(11, 18, 32, 0.08), 0 12px 32px rgba(11, 18, 32, 0.06);
  --shadow-lg: 0 12px 24px rgba(11, 18, 32, 0.1), 0 32px 64px rgba(11, 18, 32, 0.12);
  --shadow-blue: 0 8px 24px rgba(37, 99, 235, 0.35);

  --transition: 180ms cubic-bezier(0.4, 0, 0.2, 1);

  --z-header: 100;
  --z-overlay: 200;
}

/* ==========================================================================
   Base / Reset
   ========================================================================== */

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

* {
  margin: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--navy-900);
  background: var(--gray-0);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--blue-600);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--blue-700);
}

h1,
h2,
h3,
h4,
h5 {
  line-height: var(--lh-tight);
  font-weight: var(--fw-extrabold);
  letter-spacing: -0.02em;
  color: var(--navy-900);
}

h1 {
  font-size: var(--fs-h1);
}
h2 {
  font-size: var(--fs-h2);
}
h3 {
  font-size: var(--fs-h3);
}
h4 {
  font-size: var(--fs-h4);
}

p {
  color: var(--gray-600);
}

ul,
ol {
  padding: 0;
  list-style: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: 0;
  background: none;
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--blue-500);
  outline-offset: 2px;
  border-radius: 4px;
}

::selection {
  background: var(--blue-600);
  color: #fff;
}

/* ==========================================================================
   Layout utilities
   ========================================================================== */

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

.container--narrow {
  width: min(var(--container-narrow), 100% - var(--gutter) * 2);
}

.section {
  padding-block: var(--section-y);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--navy-900);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 var(--radius-sm) 0;
}

.skip-link:focus {
  left: 0;
}

/* ==========================================================================
   Section heading
   ========================================================================== */

.section-head {
  max-width: 640px;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-600);
  margin-bottom: 0.875rem;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: currentColor;
}

.section-head--center .eyebrow::before {
  display: none;
}

.section-head h2 {
  margin-bottom: 0.875rem;
}

.section-head p {
  font-size: 1.0625rem;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.625rem;
  border-radius: var(--radius-pill);
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  line-height: 1.2;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: transform var(--transition), box-shadow var(--transition),
    background-color var(--transition), color var(--transition),
    border-color var(--transition);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  background: var(--blue-600);
  color: #fff;
  box-shadow: var(--shadow-blue);
}

.btn--primary:hover {
  background: var(--blue-700);
  color: #fff;
}

.btn--ghost {
  background: transparent;
  color: var(--navy-900);
  border: 1.5px solid var(--gray-300);
}

.btn--ghost:hover {
  border-color: var(--navy-900);
  color: var(--navy-900);
  background: var(--gray-50);
}

.btn--outline {
  background: #fff;
  color: var(--navy-900);
  border: 1.5px solid var(--navy-900);
}

.btn--outline:hover {
  background: var(--navy-900);
  color: #fff;
}

.btn--light {
  background: #fff;
  color: var(--navy-900);
}

.btn--light:hover {
  color: var(--blue-700);
}

.btn--outline-light {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
}

.btn--outline-light:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.btn--lg {
  padding: 1.0625rem 2rem;
  font-size: var(--fs-body);
}

.btn--sm {
  padding: 0.625rem 1.125rem;
  font-size: var(--fs-xs);
}

.btn svg {
  flex: none;
}

/* Text link with arrow */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  color: var(--blue-600);
}

.link-arrow svg {
  transition: transform var(--transition);
}

.link-arrow:hover svg {
  transform: translateX(4px);
}

/* ==========================================================================
   Forms
   ========================================================================== */

.field {
  display: grid;
  gap: 0.4rem;
  margin-bottom: 1.125rem;
}

.field label {
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--navy-900);
}

.field input,
.field textarea,
.field select {
  font: inherit;
  font-size: var(--fs-sm);
  color: var(--navy-900);
  background: var(--gray-0);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 0.8125rem 1rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  width: 100%;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 4px var(--blue-50);
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

/* ==========================================================================
   Utilities
   ========================================================================== */

.text-muted {
  color: var(--gray-500);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
