/* ==========================================================================
   AeroEdukasi — Portal Edukasi Perjalanan Udara
   Stylesheet utama
   Palet: biru langit, putih, abu terang, aksen cyan & emas
   ========================================================================== */

:root {
  /* Warna inti */
  --sky-900: #0c4a6e;
  --sky-800: #075985;
  --sky-700: #0369a1;
  --sky-600: #0284c7;
  --sky-500: #0ea5e9;
  --sky-400: #38bdf8;
  --sky-200: #bae6fd;
  --sky-100: #e0f2fe;
  --cyan:    #06b6d4;
  --cyan-soft: #22d3ee;
  --gold:    #f59e0b;
  --gold-soft: #fbbf24;

  /* Netral */
  --ink:     #0f172a;
  --slate:   #475569;
  --slate-light: #64748b;
  --line:    #e2e8f0;
  --mist:    #f1f5f9;
  --cloud:   #f8fafc;
  --white:   #ffffff;

  /* Gradien */
  --grad-deep:  linear-gradient(135deg, #0c4a6e 0%, #0369a1 50%, #0ea5e9 100%);
  --grad-cta:   linear-gradient(120deg, #075985 0%, #0284c7 55%, #06b6d4 100%);
  --grad-text:  linear-gradient(120deg, #0ea5e9, #06b6d4);
  --grad-gold:  linear-gradient(120deg, #f59e0b, #fbbf24);

  /* Bayangan */
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
  --shadow-md: 0 8px 24px -8px rgba(15, 23, 42, .18);
  --shadow-lg: 0 24px 56px -16px rgba(8, 47, 73, .28);
  --shadow-cyan: 0 18px 40px -14px rgba(6, 182, 212, .45);

  /* Radius & layout */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-pill: 999px;
  --maxw: 1180px;
  --gutter: clamp(18px, 4vw, 40px);

  /* Tipografi */
  --font-display: "Sora", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --nav-h: 74px;
}

/* ------------------------------ Reset ------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cloud);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; height: auto; }
a { color: var(--sky-700); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--cyan); }

h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); line-height: 1.2; font-weight: 700; }

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

/* ------------------------------ Layout helpers ------------------------------ */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(56px, 8vw, 104px); }
.section--mist { background: var(--mist); }
.section--soft {
  background: linear-gradient(180deg, var(--cloud), var(--sky-100));
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display);
  font-size: .78rem; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--sky-700);
  background: var(--sky-100);
  padding: 6px 14px; border-radius: var(--r-pill);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--cyan);
}
.section-head { max-width: 720px; margin-bottom: clamp(34px, 5vw, 56px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); letter-spacing: -.02em; }
.section-head p { color: var(--slate); margin-top: 14px; font-size: 1.06rem; }
.gradient-text {
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ------------------------------ Buttons ------------------------------ */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 600; font-size: .98rem;
  padding: 13px 26px; border-radius: var(--r-pill);
  border: 1px solid transparent; cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .2s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary {
  background: var(--grad-cta); color: var(--white);
  box-shadow: var(--shadow-cyan);
}
.btn-primary:hover { transform: translateY(-3px); color: var(--white); box-shadow: 0 24px 48px -14px rgba(6, 182, 212, .6); }
.btn-ghost {
  background: rgba(255, 255, 255, .14); color: var(--white);
  border-color: rgba(255, 255, 255, .42);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { background: rgba(255, 255, 255, .26); color: var(--white); transform: translateY(-3px); }
.btn-outline {
  background: var(--white); color: var(--sky-700);
  border-color: var(--line); box-shadow: var(--shadow-sm);
}
.btn-outline:hover { border-color: var(--sky-400); color: var(--sky-700); transform: translateY(-3px); box-shadow: var(--shadow-md); }

/* ------------------------------ Navbar ------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: rgba(255, 255, 255, .72);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, .8);
  transition: box-shadow .3s ease, background .3s ease;
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, .92);
  box-shadow: var(--shadow-md);
}
.nav {
  width: 100%; max-width: var(--maxw); margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.brand { display: inline-flex; align-items: center; }
.brand img { height: 38px; width: auto; }
.nav-links {
  list-style: none; display: flex; align-items: center; gap: 4px; padding: 0;
}
.nav-links a {
  font-family: var(--font-display); font-weight: 500; font-size: .95rem;
  color: var(--slate); padding: 9px 15px; border-radius: var(--r-pill);
  position: relative; transition: color .2s ease, background .2s ease;
}
.nav-links a:hover { color: var(--sky-700); background: var(--sky-100); }
.nav-links a.active { color: var(--sky-700); background: var(--sky-100); }
.nav-cta { margin-left: 6px; }
.nav-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line);
  border-radius: 12px; background: var(--white); cursor: pointer;
  align-items: center; justify-content: center; flex-direction: column; gap: 5px;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px; background: var(--ink);
  border-radius: 2px; transition: transform .3s ease, opacity .3s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ------------------------------ Hero ------------------------------ */
.hero { position: relative; isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(115deg, rgba(8, 47, 73, .88) 0%, rgba(3, 105, 161, .62) 48%, rgba(6, 182, 212, .28) 100%);
}
.hero-inner {
  position: relative;
  padding-block: clamp(72px, 12vw, 128px);
  max-width: 760px;
}
.hero--home .hero-inner { padding-block: clamp(96px, 15vw, 168px); }
.hero .eyebrow { background: rgba(255, 255, 255, .16); color: var(--sky-100); }
.hero .eyebrow::before { background: var(--gold-soft); }
.hero h1 {
  color: var(--white);
  font-size: clamp(2.1rem, 5.4vw, 3.5rem);
  letter-spacing: -.025em; line-height: 1.08;
}
.hero h1 .accent {
  background: var(--grad-gold);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p {
  color: rgba(237, 245, 252, .92); font-size: clamp(1.02rem, 2.2vw, 1.2rem);
  margin-top: 20px; max-width: 580px;
}
.hero-actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero-stats {
  margin-top: 44px; display: flex; flex-wrap: wrap; gap: 14px;
}
.hero-stat {
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .2);
  backdrop-filter: blur(10px);
  border-radius: var(--r-md);
  padding: 16px 22px; min-width: 130px;
}
.hero-stat strong {
  display: block; font-family: var(--font-display); font-size: 1.6rem;
  color: var(--white); line-height: 1;
}
.hero-stat span { font-size: .82rem; color: var(--sky-100); letter-spacing: .02em; }

/* Hero kecil untuk halaman dalam */
.page-hero .hero-inner { padding-block: clamp(58px, 9vw, 96px); max-width: 720px; }

/* ------------------------------ Breadcrumb ------------------------------ */
.breadcrumb-bar { background: var(--white); border-bottom: 1px solid var(--line); }
.breadcrumb {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  list-style: none; padding: 14px 0; margin: 0;
  font-size: .88rem; color: var(--slate-light);
}
.breadcrumb li { display: inline-flex; align-items: center; gap: 8px; }
.breadcrumb li:not(:last-child)::after { content: "›"; color: var(--sky-400); font-weight: 700; }
.breadcrumb a { color: var(--slate); font-weight: 500; }
.breadcrumb a:hover { color: var(--cyan); }
.breadcrumb [aria-current="page"] { color: var(--sky-700); font-weight: 600; }

/* ------------------------------ Cards ------------------------------ */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
  position: relative; overflow: hidden;
}
.card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4px;
  background: var(--grad-text); transform: scaleX(0); transform-origin: left;
  transition: transform .35s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--sky-200); }
.card:hover::before { transform: scaleX(1); }
.card-icon {
  width: 54px; height: 54px; border-radius: 14px;
  display: grid; place-items: center; margin-bottom: 18px;
  background: var(--sky-100); color: var(--sky-700);
}
.card-icon svg { width: 26px; height: 26px; }
.card.gold .card-icon { background: #fef3c7; color: #b45309; }
.card.cyan .card-icon { background: #cffafe; color: #0e7490; }
.card h3 { font-size: 1.22rem; margin-bottom: 10px; letter-spacing: -.01em; }
.card p { color: var(--slate); font-size: .98rem; }
.card .card-link {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 16px;
  font-family: var(--font-display); font-weight: 600; font-size: .92rem; color: var(--sky-700);
}
.card .card-link svg { width: 16px; height: 16px; transition: transform .25s ease; }
.card:hover .card-link svg { transform: translateX(4px); }

/* Numbered step card (signature: boarding-pass-ish) */
.step-card { padding-left: 30px; }
.step-num {
  font-family: var(--font-display); font-weight: 700; font-size: 2rem;
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; line-height: 1; margin-bottom: 12px;
  display: inline-block;
}

/* Glass info card */
.glass {
  background: rgba(255, 255, 255, .55);
  border: 1px solid rgba(255, 255, 255, .7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
}

/* ------------------------------ Split feature ------------------------------ */
.split {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.split.reverse { direction: rtl; }
.split.reverse > * { direction: ltr; }
.split-media {
  border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg);
  position: relative;
}
.split-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.split-body h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); letter-spacing: -.02em; }
.split-body p { color: var(--slate); margin-top: 14px; }

/* Bullet list */
.checklist { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; color: var(--slate); }
.checklist li::before {
  content: ""; flex: none; width: 22px; height: 22px; margin-top: 3px;
  border-radius: 50%; background: var(--sky-100);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%230369a1' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center;
}
.checklist li strong { color: var(--ink); }

/* ------------------------------ Process line (signature) ------------------------------ */
.timeline { position: relative; display: grid; gap: 26px; }
.timeline::before {
  content: ""; position: absolute; left: 26px; top: 12px; bottom: 12px; width: 2px;
  background: repeating-linear-gradient(to bottom, var(--sky-400) 0 8px, transparent 8px 16px);
}
.tl-item {
  position: relative; padding-left: 70px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md);
  padding-block: 20px; padding-right: 24px;
  transition: transform .3s ease, box-shadow .3s ease;
}
.tl-item:hover { transform: translateX(6px); box-shadow: var(--shadow-md); }
.tl-dot {
  position: absolute; left: 12px; top: 20px;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--grad-cta); color: var(--white);
  display: grid; place-items: center; font-family: var(--font-display);
  font-weight: 700; font-size: .9rem; box-shadow: var(--shadow-sm);
  border: 3px solid var(--white);
}
.tl-item h3 { font-size: 1.12rem; margin-bottom: 6px; }
.tl-item p { color: var(--slate); font-size: .96rem; margin: 0; }

/* ------------------------------ FAQ / Accordion ------------------------------ */
.faq { display: grid; gap: 14px; }
.faq-item {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-md); overflow: hidden; transition: box-shadow .3s ease, border-color .3s ease;
}
.faq-item[open] { box-shadow: var(--shadow-md); border-color: var(--sky-200); }
.faq-item summary {
  cursor: pointer; list-style: none; padding: 20px 24px;
  font-family: var(--font-display); font-weight: 600; font-size: 1.04rem;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .chev {
  flex: none; width: 26px; height: 26px; border-radius: 50%;
  background: var(--sky-100); color: var(--sky-700);
  display: grid; place-items: center; transition: transform .3s ease;
}
.faq-item[open] summary .chev { transform: rotate(180deg); }
.faq-item .faq-body { padding: 0 24px 22px; color: var(--slate); }

/* ------------------------------ CTA band ------------------------------ */
.cta-band {
  background: var(--grad-cta); border-radius: var(--r-lg);
  padding: clamp(36px, 6vw, 64px); color: var(--white);
  position: relative; overflow: hidden; box-shadow: var(--shadow-lg);
}
.cta-band::before {
  content: ""; position: absolute; right: -80px; top: -80px;
  width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.18), transparent 70%);
}
.cta-band::after {
  content: ""; position: absolute; left: -60px; bottom: -90px;
  width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(251,191,36,.22), transparent 70%);
}
.cta-band h2 { color: var(--white); font-size: clamp(1.7rem, 3.6vw, 2.4rem); position: relative; }
.cta-band p { color: rgba(255,255,255,.9); margin-top: 14px; max-width: 560px; position: relative; }
.cta-band .hero-actions { margin-top: 28px; }
.cta-band .btn-primary { background: var(--white); color: var(--sky-700); box-shadow: var(--shadow-md); }
.cta-band .btn-primary:hover { color: var(--sky-800); }

/* ------------------------------ Contact ------------------------------ */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; align-items: start; }
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(24px, 4vw, 36px); box-shadow: var(--shadow-md); }
.field { margin-bottom: 18px; }
.field label { display: block; font-family: var(--font-display); font-weight: 600; font-size: .9rem; margin-bottom: 7px; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border: 1px solid var(--line);
  border-radius: var(--r-sm); font: inherit; font-size: .98rem; color: var(--ink);
  background: var(--cloud); transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--sky-400); background: var(--white);
  box-shadow: 0 0 0 4px rgba(56, 189, 248, .18);
}
.field textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: .85rem; color: var(--slate-light); margin-top: 6px; }
.form-status { margin-top: 14px; font-size: .94rem; font-weight: 600; }
.form-status.ok { color: #047857; }
.info-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: 22px 24px; box-shadow: var(--shadow-sm); margin-bottom: 16px; }
.info-card h3 { font-size: 1.06rem; margin-bottom: 6px; display: flex; align-items: center; gap: 10px; }
.info-card h3 svg { width: 20px; height: 20px; color: var(--sky-600); }
.info-card p { color: var(--slate); font-size: .96rem; }
.info-card a { font-weight: 500; }

/* ------------------------------ Footer ------------------------------ */
.site-footer { background: var(--ink); color: #cbd5e1; padding-block: clamp(48px, 7vw, 72px) 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-brand img { height: 40px; filter: brightness(0) invert(1); margin-bottom: 16px; }
.footer-brand p { color: #94a3b8; font-size: .95rem; max-width: 340px; }
.footer-col h4 { color: var(--white); font-size: 1rem; margin-bottom: 16px; }
.footer-col ul { list-style: none; padding: 0; display: grid; gap: 10px; }
.footer-col a { color: #94a3b8; font-size: .94rem; }
.footer-col a:hover { color: var(--sky-400); }
.footer-bottom {
  margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(148,163,184,.2);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  font-size: .86rem; color: #94a3b8;
}
.footer-disclaimer { font-size: .82rem; color: #64748b; max-width: 760px; margin-top: 8px; line-height: 1.6; }

/* ------------------------------ Prose ------------------------------ */
.prose { max-width: 760px; }
.prose h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-top: 44px; margin-bottom: 14px; letter-spacing: -.02em; }
.prose h3 { font-size: 1.2rem; margin-top: 28px; margin-bottom: 10px; }
.prose p { color: var(--slate); margin-bottom: 16px; }
.prose ul { color: var(--slate); padding-left: 22px; margin-bottom: 16px; display: grid; gap: 8px; }

/* ------------------------------ Scroll reveal ------------------------------ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.22,.61,.36,1); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }

/* ------------------------------ Misc ------------------------------ */
.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 200;
  background: var(--sky-700); color: #fff; padding: 10px 18px; border-radius: 8px;
}
.skip-link:focus { left: 12px; color: #fff; }

.lead { font-size: 1.12rem; color: var(--slate); }

/* ------------------------------ Responsive ------------------------------ */
@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .split, .split.reverse { grid-template-columns: 1fr; direction: ltr; }
  .split-media { order: -1; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed; inset: var(--nav-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: rgba(255,255,255,.97); backdrop-filter: blur(16px);
    padding: 16px var(--gutter) 24px; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: transform .3s ease, opacity .3s ease;
  }
  .nav-links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 12px 14px; font-size: 1rem; }
  .nav-cta { margin: 8px 0 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-stat { flex: 1 1 calc(50% - 14px); min-width: 0; }
}

/* ------------------------------ Reduced motion ------------------------------ */
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .card:hover, .btn:hover, .tl-item:hover { transform: none !important; }
}
