/* ==========================================================================
   068 · PERIGEE (حضِيض المدار) — 1:1 Suborbital Aerospace HUD & Interactive Ascent Dial
   #04060C cosmos · #4EA8FF orbital blue & #FFC46B solar gold · Chamfered CTAs · HOLD TO ASCEND
   ========================================================================== */

:root {
  --pg-bg: #04060C;
  --pg-fg: #F4F7FB;
  --pg-blue: #4EA8FF;
  --pg-gold: #FFC46B;
  --pg-line: rgba(244, 247, 251, 0.14);
  --pg-line-2: rgba(244, 247, 251, 0.07);
  --pg-mut: rgba(244, 247, 251, 0.62);
  --pg-dim: rgba(244, 247, 251, 0.42);
  --pg-sans: 'Readex Pro', 'IBM Plex Sans Arabic', system-ui, sans-serif;
  --pg-mono: 'JetBrains Mono', monospace;
}

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

html {
  scroll-behavior: smooth;
  background: var(--pg-bg);
  color: var(--pg-fg);
  font-family: var(--pg-sans);
  letter-spacing: 0;
}

body {
  background-color: var(--pg-bg);
  background-image:
    radial-gradient(900px 500px at 88% 0%, rgba(78, 168, 255, 0.09), transparent 70%),
    radial-gradient(900px 600px at 12% 10%, rgba(255, 196, 107, 0.06), transparent 70%);
  color: var(--pg-fg);
  font-family: var(--pg-sans);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  letter-spacing: 0;
}

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

button, input, select, textarea {
  font-family: inherit;
  letter-spacing: 0;
}

/* Chamfered Aerospace Buttons */
.pg-btn-chamfer {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  background: var(--pg-fg);
  color: var(--pg-bg);
  border: none;
  font-size: 13.5px;
  font-weight: 700;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease, transform 0.18s ease;
}

.pg-btn-chamfer:hover {
  background: var(--pg-gold);
  transform: translateY(-1px);
}

.pg-btn-outline-chamfer {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 20px;
  background: rgba(78, 168, 255, 0.08);
  color: var(--pg-fg);
  border: 1px solid rgba(78, 168, 255, 0.45);
  font-family: var(--pg-mono);
  font-size: 12px;
  font-weight: 600;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  cursor: pointer;
  white-space: nowrap;
}

/* ======================== FIXED TOP NAVBAR & MENU OVERLAY ======================== */
.pg-header {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 60;
  height: 70px;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: rgba(4, 6, 12, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--pg-line-2);
}

.pg-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 16px;
  white-space: nowrap;
}

.pg-orbit-emblem {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1.5px dashed var(--pg-blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pg-orbit-emblem::after {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--pg-gold);
}

.pg-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 13px;
  color: var(--pg-mut);
  white-space: nowrap;
}

.pg-nav a:hover {
  color: var(--pg-fg);
}

.pg-header-end {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pg-menu-btn {
  width: 40px;
  height: 40px;
  border: 1px solid var(--pg-line);
  background: transparent;
  color: var(--pg-fg);
  cursor: pointer;
  font-size: 16px;
}

@media (min-width: 721px) {
  .pg-menu-btn {
    display: none;
  }
}

.pg-menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(4, 6, 12, 0.94);
  backdrop-filter: blur(18px);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
}

.pg-menu-overlay.is-open {
  display: flex;
}

.pg-menu-overlay a {
  font-size: 32px;
  font-weight: 700;
}

/* ======================== 1. HERO (100DVH + HOLD-TO-ASCEND DIAL) ======================== */
.pg-hero {
  position: relative;
  min-height: 100dvh;
  padding-top: 70px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  border-bottom: 1px solid var(--pg-line);
  isolation: isolate;
}

.pg-hero-bg {
  position: absolute;
  inset: 0;
  z-index: -3;
}

.pg-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  transition: transform 0.25s linear, filter 0.25s linear;
}

#pg-stars-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  pointer-events: none;
}

.pg-hero-scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(4, 6, 12, 0.48) 0%, rgba(4, 6, 12, 0.22) 50%, rgba(4, 6, 12, 0.92) 100%);
  pointer-events: none;
}

.pg-hero-grid {
  max-width: 1260px;
  width: 100%;
  margin: auto;
  padding: 36px 32px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 40px;
}

.pg-eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border: 1px solid var(--pg-line);
  background: rgba(4, 6, 12, 0.65);
  font-family: var(--pg-mono);
  font-size: 11.5px;
  color: var(--pg-mut);
  margin-bottom: 18px;
}

.pg-eyebrow-pill i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--pg-gold);
}

.pg-h1 {
  font-size: clamp(2.5rem, 5.1vw, 4.35rem);
  font-weight: 700;
  line-height: 1.16;
  margin-bottom: 16px;
}

.pg-gold-word {
  color: var(--pg-gold);
}

/* Interactive Hold-to-Ascend Orbital Dial */
.pg-dial-wrap {
  justify-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.pg-dial-btn {
  position: relative;
  width: 248px;
  height: 248px;
  border-radius: 50%;
  border: 1px solid rgba(78, 168, 255, 0.42);
  background: radial-gradient(circle, rgba(78, 168, 255, 0.12) 0%, rgba(4, 6, 12, 0.82) 72%);
  backdrop-filter: blur(10px);
  color: var(--pg-fg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  user-select: none;
  box-shadow: 0 0 48px rgba(78, 168, 255, 0.15);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.pg-dial-btn:active,
.pg-dial-btn.is-ascending {
  transform: scale(0.98);
  border-color: var(--pg-gold);
  box-shadow: 0 0 64px rgba(255, 196, 107, 0.28);
}

.pg-dial-svg {
  position: absolute;
  inset: -8px;
  width: calc(100% + 16px);
  height: calc(100% + 16px);
  pointer-events: none;
}

/* Bottom 4-Col Telemetry Bar */
.pg-telemetry-strip {
  border-top: 1px solid var(--pg-line);
  background: rgba(4, 6, 12, 0.88);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.pg-tel-cell {
  padding: 16px 28px;
  border-inline-end: 1px solid var(--pg-line);
  font-family: var(--pg-mono);
}

.pg-tel-cell:last-child {
  border-inline-end: none;
}

.pg-tel-cell span {
  display: block;
  font-size: 11px;
  color: var(--pg-dim);
}

.pg-tel-cell strong {
  font-size: 19px;
  color: var(--pg-fg);
}

/* ======================== SECTIONS (#flights, #vehicle, #travellers, #reserve) ======================== */
.pg-sec {
  max-width: 1260px;
  margin: 0 auto;
  padding: 92px 32px;
  border-bottom: 1px solid var(--pg-line);
}

.pg-eyebrow {
  font-family: var(--pg-mono);
  font-size: 12px;
  color: var(--pg-blue);
  margin-bottom: 10px;
  display: block;
}

.pg-h2 {
  font-size: clamp(1.95rem, 3.3vw, 2.8rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 14px;
}

.pg-timeline-5 {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border: 1px solid var(--pg-line);
}

.pg-stage-box {
  padding: 22px 18px;
  border-inline-end: 1px solid var(--pg-line);
  background: rgba(255, 255, 255, 0.02);
}

.pg-stage-box:last-child {
  border-inline-end: none;
}

/* Spaceplane Wireframe + 2x2 Selector */
.pg-blueprint-box {
  margin: 32px 0 24px;
  padding: 28px;
  border: 1px solid var(--pg-line);
  background: rgba(78, 168, 255, 0.03);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pg-grid-2x2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.pg-zone-card {
  padding: 22px;
  border: 1px solid var(--pg-line);
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  text-align: start;
  color: var(--pg-fg);
}

.pg-zone-card.is-active {
  border-color: var(--pg-blue);
  background: rgba(78, 168, 255, 0.08);
}

.pg-grid-3 {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.pg-card {
  padding: 26px;
  border: 1px solid var(--pg-line);
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pg-form-grid {
  margin-top: 28px;
  max-width: 680px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.pg-input {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--pg-line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--pg-fg);
  font-size: 14px;
  outline: none;
}

.pg-footer {
  max-width: 1260px;
  margin: 0 auto;
  padding: 48px 32px 42px;
}

.pg-showcase-bar {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--pg-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--pg-mut);
}

@media (max-width: 720px) {
  .pg-nav {
    display: none;
  }
  .pg-hero-grid,
  .pg-telemetry-strip,
  .pg-timeline-5,
  .pg-grid-2x2,
  .pg-grid-3,
  .pg-form-grid {
    grid-template-columns: 1fr;
  }
}
