html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

:root {
  --bg: #0f172a;
  --card: rgba(30, 41, 59, 0.7);
  --border: rgba(255, 255, 255, 0.1);
  --text: #ffffff;
  --muted: #e2e8f0;
  --accent: #38bdf8;
  --accent-2: #a855f7;
  --danger: #f43f5e;
  --radius: 24px;
  --shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  --blur: 24px;
  --hero-bg-light: linear-gradient(180deg, rgba(15, 23, 42, 0.8) 0%, rgba(15, 23, 42, 0) 100%);
  --hero-bg-dark: linear-gradient(180deg, rgba(2, 6, 23, 0.9) 0%, rgba(2, 6, 23, 0) 100%);
}

/* ... existing styles ... */

.panel {
  margin-top: 28px;
  scroll-margin-top: 100px;
}

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

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

body {
  margin: 0;
  font-family: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  line-height: 1.6;
  position: relative;
  min-height: calc(100vh + env(safe-area-inset-top) + env(safe-area-inset-bottom));
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
  background-color: var(--bg, #0a1225);
}

a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

a:hover {
  color: #fff;
  text-shadow: 0 0 12px rgba(56, 189, 248, 0.35);
}

a:active {
  color: var(--accent-2);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 15% 50%, rgba(56, 189, 248, 0.15), transparent 25%),
    radial-gradient(circle at 85% 30%, rgba(168, 85, 247, 0.15), transparent 25%);
  pointer-events: none;
  z-index: -1;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(12, 17, 28, 0.55), rgba(12, 17, 28, 0.35)),
    url("./img/background.webp") center/cover no-repeat;
  pointer-events: none;
  z-index: -2;
}

.hero {
  display: grid;
  padding: 32px clamp(16px, 4vw, 48px);
  background: var(--hero-bg-light);
  min-height: 85vh;
}

.hero--subpage {
  min-height: 40vh;
  align-items: center;
  text-align: center;
}

.hero--subpage .hero__layout {
  grid-template-columns: 1fr;
  justify-items: center;
}

.hero--subpage .hero__text {
  max-width: 800px;
  margin: 0 auto;
}

.hero--subpage .hero__logo {
  height: 120px;
  margin-bottom: 24px;
}



.hero__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 20px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.hero__column--left {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero__column--right {
  display: flex;
  justify-content: flex-end;
}

.hero__text {
  max-width: 100%;
}

.hero__text h1 {
  margin: 6px 0 4px;
  font-size: clamp(28px, 4vw, 40px);
}

.hero__text .lede {
  color: var(--muted);
  margin: 8px 0 0;
}

.hero__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin-bottom: 4px;
}

.hero__logo {
  height: 180px;
  width: auto;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5));
  transition: transform 0.3s ease;
}

.eyebrow {
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 800;
  font-size: 14px;
  text-shadow: 0 0 20px rgba(56, 189, 248, 0.5);
  margin-bottom: 8px;
  display: block;
}

.hero__meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  width: min(600px, 100%);
}

.meta-card {
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(30, 41, 59, 0.4);
  backdrop-filter: blur(var(--blur));
  box-shadow: var(--shadow);
  position: relative;
  transition: transform 0.2s ease, background 0.2s ease;
}

.meta-card:hover {

  background: rgba(30, 41, 59, 0.6);
}

.meta-card .label {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.meta-card .value {
  display: block;
  font-weight: 700;
  margin-top: 4px;
}

.page {
  padding: 0 clamp(16px, 4vw, 48px) 48px;
  max-width: 1200px;
  margin: 0 auto;
}

.summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-top: 8px;
}

.priority-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

@media (max-width: 1024px) {
  .priority-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .priority-grid {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(var(--blur));
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {

  box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.6);
  border-color: rgba(255, 255, 255, 0.2);
}

.card--list header h3 {
  margin: 0 0 4px;
}

.card--list header p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 13px;
}

.list-toggle {
  margin: 8px auto 0;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid rgba(125, 211, 252, 0.35);
  background: linear-gradient(135deg, rgba(125, 211, 252, 0.14), rgba(192, 132, 252, 0.12));
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(6px);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  display: block;
  text-align: center;
  min-width: 120px;
}

.list-toggle:hover {

  border-color: rgba(125, 211, 252, 0.55);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.collapsed-item {
  display: none !important;
}

.label {
  color: var(--muted);
  margin: 0;
  font-size: 13px;
}

.stat {
  margin: 6px 0 0;
  font-size: 28px;
  font-weight: 700;
  color: var(--accent);
}

.stat.small {
  font-size: 18px;
  line-height: 1.4;
}

.status-dot {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.05);
}

.status-dot[data-level="green"] {
  background: #4ade80;
  box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.2);
}

.status-dot[data-level="yellow"] {
  background: #facc15;
  box-shadow: 0 0 0 4px rgba(250, 204, 21, 0.2);
}

.status-dot[data-level="red"] {
  background: #fb7185;
  box-shadow: 0 0 0 4px rgba(251, 113, 133, 0.2);
}

.panel {
  margin-top: 64px;
  scroll-margin-top: 120px;
  padding: 32px;
  background: rgba(15, 23, 42, 0.3);
  border: 1px solid var(--border);
  border-radius: 32px;
  backdrop-filter: blur(12px);
}

.panel__header {
  margin-bottom: 32px;
}

.panel__header h2 {
  margin: 0 0 8px;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
}

.panel__header p {
  margin: 0;
  color: var(--muted);
  font-size: 1.125rem;
}

h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 12px;
}

.grid.two {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.grid.three {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.grid.three-flex {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.grid.four {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}

.list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pill {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  margin: 0 0 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.pill--status {
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.pill--status.pill--warn {
  border-color: rgba(250, 204, 21, 0.5);
  background: rgba(250, 204, 21, 0.15);
  color: #facc15;
  box-shadow: 0 2px 10px rgba(250, 204, 21, 0.1);
}

.pill--status.pill--danger {
  border-color: rgba(251, 113, 133, 0.5);
  background: rgba(251, 113, 133, 0.15);
  color: #fb7185;
  box-shadow: 0 2px 10px rgba(251, 113, 133, 0.1);
}

.flight {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.02);
  position: relative;
  transition: background 0.2s ease;
}

.flight:hover {
  background: rgba(255, 255, 255, 0.05);
}

.flight__route {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}

.flight__title {
  margin: 0;
  font-weight: 700;
}

.flight__meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.flight__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: nowrap;
}

.flight__header .pill {
  margin: 0;
  max-width: 50%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.flight__airline {
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.code {
  background: rgba(0, 0, 0, 0.45);
  border-radius: var(--radius);
  padding: 12px;
  border: 1px solid var(--border);
  overflow-x: auto;
  font-size: 13px;
}

.errors {
  min-height: 24px;
  color: var(--danger);
  font-weight: 600;
}

.footer {
  padding: 64px clamp(16px, 4vw, 48px) 32px;
  background: rgba(2, 6, 23, 0.8);
  backdrop-filter: blur(calc(var(--blur) / 2));
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.footer__content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 48px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer__column {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer__logo {
  height: 40px;
  width: auto;
}

.footer__column h3 {
  margin: 0;
  font-size: 18px;
  color: var(--text);
}

.footer__column h4 {
  margin: 0 0 8px;
  font-size: 16px;
  color: var(--text);
  font-weight: 600;
}

.footer__about {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
  max-width: 320px;
}

.footer__links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
}

.footer__links a:hover {
  color: var(--accent);
}

.footer__bottom {
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer__bottom a {
  color: inherit;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.footer__bottom a:hover {
  color: var(--text);
}

.empty {
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 720px) {
  .hero {
    padding: 24px 16px;
  }

  .hero__layout {
    grid-template-columns: 1fr;
  }

  .hero__brand {
    justify-content: center;
    flex-direction: column;
    text-align: center;
  }

  .hero__column--right {
    justify-content: center;
  }

  .hero__logo {
    width: 100%;
    max-width: 120px;
    height: auto;
  }

  h1,
  h2,
  h3,
  .hero__text h1 {
    line-height: 1.1;
  }

  .page {
    padding: 0 16px 32px;
  }

  .panel {
    padding: 20px;
    margin-top: 40px;
    border-radius: 24px;
  }

  .panel__header h2 {
    font-size: 1.5rem;
  }
}

/* Status Board Redesign */
.status-board {
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.status-board__main {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.status-label {
  font-size: 0.875rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 12px;
}

.status-dot.large {
  width: 16px;
  height: 16px;
  box-shadow: 0 0 12px currentColor;
}

.status-dot.large[data-level="green"] {
  color: #4ade80;
}

.status-dot.large[data-level="yellow"] {
  color: #facc15;
}

.status-dot.large[data-level="red"] {
  color: #fb7185;
}

.status-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
}

.status-board__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.status-metric {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.metric-label {
  font-size: 0.75rem;
  color: #94a3b8;
}

.metric-value {
  font-size: 1.125rem;
  font-weight: 600;
  color: #e2e8f0;
}

.status-board__footer {
  font-size: 0.75rem;
  color: #64748b;
  text-align: right;
  margin-top: auto;
}

@media (max-width: 720px) {
  .status-board__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 1024px) {
  .grid.three-flex {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .grid.three-flex {
    grid-template-columns: 1fr;
  }
}

@media (prefers-color-scheme: dark) {
  .hero {
    background: var(--hero-bg-dark);
  }

  body::after {
    background:
      linear-gradient(135deg, rgba(12, 17, 28, 0.55), rgba(12, 17, 28, 0.35)),
      url("./img/background_night.png") center/cover no-repeat;
  }
}

/* Quick Navigation */
.quick-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 12px clamp(16px, 4vw, 48px);
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}

.quick-nav__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  overflow-x: auto;
  padding-top: 4px;
  /* Space for hover/active transform */
  padding-bottom: 4px;
  /* Space for scrollbar if visible */
  scrollbar-width: none;
  /* Firefox */
  -ms-overflow-style: none;
  /* IE/Edge */
}

.quick-nav__inner::-webkit-scrollbar {
  display: none;
  /* Chrome/Safari */
}

.nav-pill {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.nav-pill:hover,
.nav-pill.active {
  background: rgba(56, 189, 248, 0.15);
  border-color: rgba(56, 189, 248, 0.3);
  color: #fff;

}

@media (max-width: 720px) {
  .quick-nav {
    padding: 12px 0;
  }

  .quick-nav__inner {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* Mobile Actions */
.mobile-actions {
  display: none;
}

@media (max-width: 720px) {
  .mobile-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
    margin-top: 0;
    padding: 0 16px;
  }

  .action-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 24px 16px;
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid var(--border);
    border-radius: 20px;
    text-align: center;
    color: #fff;
    text-decoration: none;
    backdrop-filter: blur(12px);
    transition: transform 0.2s ease, background 0.2s ease;
  }

  .action-card:active {
    transform: scale(0.98);
    background: rgba(30, 41, 59, 0.8);
  }

  .action-card__label {
    font-size: 1.125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }

  .action-card__icon {
    font-size: 2rem;
  }

  .action-card--dep {
    border-color: rgba(56, 189, 248, 0.3);
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.1), rgba(30, 41, 59, 0.6));
  }

  .action-card--arr {
    border-color: rgba(168, 85, 247, 0.3);
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.1), rgba(30, 41, 59, 0.6));
  }

  /* Hero Optimizations for Mobile */
  .hero {
    padding: 16px 16px 24px;
    min-height: auto;
  }

  .hero__text h1 {
    font-size: 1.75rem;
    margin-bottom: 8px;
  }

  .hero__text .lede {
    font-size: 1rem;
    line-height: 1.4;
  }

  .status-board {
    padding: 16px;
    gap: 16px;
    width: 100%;
  }

  .status-text {
    font-size: 1.25rem;
  }

  .metric-value {
    font-size: 1rem;
  }
}

/* Collapsible FAQ */
.faq-item {
  background: rgba(30, 41, 59, 0.4);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: background 0.2s ease;
}

.faq-item:hover {
  background: rgba(30, 41, 59, 0.6);
}

.faq-item[open] {
  background: rgba(30, 41, 59, 0.6);
}

.faq-question {
  padding: 20px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 48px;
  color: #fff;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--accent);
  transition: transform 0.2s ease;
}

.faq-item[open] .faq-question::after {
  transform: translateY(-50%) rotate(45deg);
}

.faq-answer {
  padding: 0 20px 20px;
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.9375rem;
  border-top: 1px solid transparent;
}

.faq-item[open] .faq-answer {
  border-top-color: rgba(255, 255, 255, 0.05);
  padding-top: 16px;
}
