:root {
  --bg: #030712;
  --panel: rgba(10, 18, 36, 0.82);
  --border: rgba(0, 212, 255, 0.16);
  --text: #e8f1ff;
  --muted: #8ba3c7;
  --cyan: #00d4ff;
  --mint: #00ff9d;
  --block1: #38bdf8;
  --nextgen: #00ff9d;
  --prototype: #c084fc;
  --lost: #fb7185;
  --planned: #fbbf24;
  --font-ui: "Outfit", system-ui, sans-serif;
  --font-display: "Orbitron", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}

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

html,
body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(0, 212, 255, 0.12), transparent),
    radial-gradient(ellipse 50% 40% at 100% 100%, rgba(0, 255, 157, 0.06), transparent),
    var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
}

.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.25rem 1rem 3rem;
  padding-top: max(1.25rem, env(safe-area-inset-top));
}

.hero-top {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.hero-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
}

.hero-nav .lang-switch-slot {
  margin-left: auto;
}

.back {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.88rem;
  width: fit-content;
}

.back:hover {
  color: var(--cyan);
}

.hero-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.pulse {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 16px var(--mint);
  animation: blink 1.6s ease-in-out infinite;
}

@keyframes blink {
  50% {
    opacity: 0.35;
  }
}

.hero-brand h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 4vw, 1.7rem);
  letter-spacing: 0.1em;
}

.hero-brand h1 span {
  color: var(--cyan);
}

.hero-brand p {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.kpis {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.55rem;
  margin-bottom: 1rem;
}

@media (min-width: 700px) {
  .kpis {
    grid-template-columns: repeat(4, 1fr);
  }
}

.kpi {
  padding: 0.75rem 0.85rem;
  border-radius: 14px;
  background: var(--panel);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

.kpi .kl {
  display: block;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.kpi strong {
  display: block;
  margin-top: 0.25rem;
  font-size: 1.15rem;
}

.kpi strong.mono {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.fchip {
  border: 1px solid rgba(0, 212, 255, 0.22);
  background: transparent;
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: 0.78rem;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  cursor: pointer;
  min-height: 36px;
}

.fchip.active {
  background: rgba(0, 212, 255, 0.14);
  color: var(--cyan);
  border-color: rgba(0, 212, 255, 0.5);
}

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
}

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

@media (min-width: 1000px) {
  .grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  text-align: left;
  color: inherit;
  font: inherit;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

.card:hover,
.card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(0, 212, 255, 0.4);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  outline: none;
}

.card-img {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #0a1224;
  overflow: hidden;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  background: #0a1224;
}

.badge-row {
  position: absolute;
  top: 0.55rem;
  left: 0.55rem;
  right: 0.55rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.badge {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.22rem 0.45rem;
  border-radius: 999px;
  background: rgba(3, 7, 18, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
}

.badge.operational {
  color: var(--mint);
  border-color: rgba(0, 255, 157, 0.35);
}
.badge.lost {
  color: var(--lost);
  border-color: rgba(251, 113, 133, 0.4);
}
.badge.planned {
  color: var(--planned);
  border-color: rgba(251, 191, 36, 0.4);
}
.badge.commissioning {
  color: #67e8f9;
  border-color: rgba(103, 232, 249, 0.45);
}
.badge.nextgen {
  color: var(--nextgen);
}
.badge.block1 {
  color: var(--block1);
}
.badge.prototype {
  color: var(--prototype);
}
.badge.live {
  color: var(--cyan);
}

.card-body {
  padding: 0.85rem 0.95rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}

.card-body h2 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
}

.card-sub {
  color: var(--muted);
  font-size: 0.78rem;
  font-family: var(--font-mono);
}

.card-meta {
  margin-top: 0.35rem;
  display: grid;
  gap: 0.25rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.card-meta strong {
  color: var(--text);
  font-weight: 500;
}

.card-cta {
  margin-top: auto;
  padding-top: 0.65rem;
  font-size: 0.78rem;
  color: var(--cyan);
}

.fleet-intro {
  margin: 0 0 1.1rem;
  max-width: 46rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.fleet-intro strong {
  color: var(--text);
  font-weight: 600;
}

.foot {
  margin-top: 2.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(0, 212, 255, 0.1);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 0.75rem;
}

.foot a {
  color: var(--cyan);
  text-decoration: none;
}

.foot .site-disclaimer {
  margin: 0;
  font-size: inherit;
  letter-spacing: 0.02em;
  opacity: 0.65;
  white-space: normal;
}

.foot .site-author {
  flex-basis: 100%;
  margin-top: 0.35rem;
  font-size: 0.62rem;
  opacity: 0.35;
  text-align: center;
  color: var(--muted);
}

.foot .site-author a {
  color: inherit;
  text-decoration: none;
}

.foot .site-author a:hover {
  color: var(--cyan);
  text-decoration: underline;
}

/* Drawer */
.drawer-scrim {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 14, 0.65);
  backdrop-filter: blur(3px);
  z-index: 40;
  opacity: 0;
  visibility: hidden;
  transition: 0.2s ease;
}

.drawer-scrim.show {
  opacity: 1;
  visibility: visible;
}

.drawer {
  position: fixed;
  z-index: 50;
  top: 0;
  right: 0;
  width: min(480px, 100vw);
  height: 100%;
  height: 100dvh;
  background: #070f1e;
  border-left: 1px solid var(--border);
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.5);
  transform: translateX(105%);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  flex-direction: column;
}

.drawer.open {
  transform: translateX(0);
}

.drawer-head {
  display: flex;
  justify-content: flex-end;
  padding: 0.65rem 0.75rem;
  padding-top: max(0.65rem, env(safe-area-inset-top));
}

.icon-x {
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font-size: 1.1rem;
  cursor: pointer;
}

.drawer-body {
  flex: 1;
  overflow: auto;
  padding: 0 1.1rem 1.5rem;
  padding-bottom: calc(1.5rem + env(safe-area-inset-bottom));
  -webkit-overflow-scrolling: touch;
}

.drawer-body .hero-img {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  object-position: center;
  border-radius: 14px;
  border: 1px solid var(--border);
  margin-bottom: 1rem;
  display: block;
  background: #0a1224;
}

.drawer-body h2 {
  margin: 0 0 0.25rem;
  font-size: 1.45rem;
}

.drawer-body .sub {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  margin-bottom: 0.85rem;
}

.drawer-body .desc {
  color: #c5d4ea;
  line-height: 1.55;
  font-size: 0.92rem;
  margin: 0 0 1rem;
}

.hl {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.hl span {
  font-size: 0.7rem;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.2);
  color: var(--cyan);
}

.section {
  margin-bottom: 1.1rem;
}

.section h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--cyan);
  text-transform: uppercase;
}

.kv {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
}

.kv .cell {
  padding: 0.55rem 0.6rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(0, 212, 255, 0.08);
}

.kv .cell .l {
  display: block;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.kv .cell .v {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.88rem;
  word-break: break-word;
}

.kv .cell .v.mono {
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.tle {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-all;
  padding: 0.7rem;
  border-radius: 12px;
  background: #020617;
  border: 1px solid rgba(0, 212, 255, 0.12);
  color: #a5f3fc;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.45rem 0.75rem;
  border-radius: 10px;
  border: 1px solid rgba(0, 212, 255, 0.25);
  color: var(--text);
  text-decoration: none;
  font-size: 0.8rem;
  background: rgba(0, 212, 255, 0.06);
}

.links a:hover {
  border-color: var(--cyan);
}

.loader {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 0.85rem;
  background: rgba(3, 7, 18, 0.92);
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.loader.hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.ring {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 3px solid rgba(0, 212, 255, 0.15);
  border-top-color: var(--cyan);
  animation: spin 0.85s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.loader p {
  margin: 0;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--muted);
  padding: 2rem;
}
