:root {
  --night-hangar: #0b1a2e;
  --runway-blue: #1e3a5f;
  --hangar-deep: #061018;
  --contrail-white: #e8f4fc;
  --contrail-dim: #cbd5e1;
  --beacon-amber: #fbbf24;
  --afterburner-orange: #f97316;
  --radar-cyan: #22d3ee;
  --alert-red: #ef4444;
  --panel-line: rgba(34, 211, 238, 0.22);
  --text-dim: #94a3b8;
  --header-height: 70px;
  --font-heading: "Space Mono", ui-monospace, monospace;
  --font-body: "IBM Plex Sans", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--contrail-white);
  min-height: 100vh;
  overflow-x: hidden !important;
}

.skin-midnight {
  background-color: var(--night-hangar);
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 39px,
      rgba(34, 211, 238, 0.04) 39px,
      rgba(34, 211, 238, 0.04) 40px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 39px,
      rgba(34, 211, 238, 0.04) 39px,
      rgba(34, 211, 238, 0.04) 40px
    ),
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(30, 58, 95, 0.55), transparent 60%),
    linear-gradient(180deg, var(--hangar-deep) 0%, var(--night-hangar) 50%, #0f2744 100%);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--radar-cyan);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--beacon-amber);
}

h1,
h2,
h3 {
  font-family: var(--font-heading);
  line-height: 1.3;
  font-weight: 700;
  color: var(--contrail-white);
}

.shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.shell__main {
  flex: 1;
}

.wrap {
  width: min(1140px, 92vw);
  margin-inline: auto;
}

.bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-height);
  background: rgba(6, 16, 24, 0.9);
  border-bottom: 1px solid var(--panel-line);
}

.bar__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.bar__logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  color: var(--contrail-white);
  text-decoration: none;
  white-space: nowrap;
}

.bar__logo span {
  color: var(--beacon-amber);
}

.bar__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: transparent;
  border: 1px solid var(--panel-line);
  border-radius: 6px;
  cursor: pointer;
}

.bar__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--contrail-white);
  transition: transform 0.25s, opacity 0.25s;
}

.bar__toggle--open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.bar__toggle--open span:nth-child(2) {
  opacity: 0;
}

.bar__toggle--open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav {
  display: flex;
}

.nav__list {
  display: flex;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__link {
  display: block;
  padding: 0.5rem 0.85rem;
  color: var(--contrail-dim);
  text-decoration: none;
  border-radius: 6px;
  font-size: 0.92rem;
  font-weight: 500;
}

.nav__link:hover,
.nav__link--active {
  color: var(--night-hangar);
  background: var(--beacon-amber);
}

.hero {
  padding: calc(var(--header-height) + 3rem) 0 2.5rem;
  text-align: center;
}

.hero__tag {
  display: inline-block;
  margin: 0 0 1rem;
  padding: 0.35rem 0.9rem;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--radar-cyan);
  border: 1px solid var(--panel-line);
  border-radius: 4px;
}

.hero__title {
  font-size: clamp(1.75rem, 4.5vw, 2.65rem);
  max-width: 20ch;
  margin: 0 auto 1rem;
}

.hero__lead {
  max-width: 54ch;
  margin: 0 auto;
  color: var(--text-dim);
  font-size: 1.08rem;
}

.section {
  padding: 2.5rem 0 3rem;
}

.section__title {
  font-size: clamp(1.35rem, 3vw, 1.8rem);
  margin: 0 0 0.75rem;
}

.section__title--spaced {
  margin-bottom: 2.5rem;
}

.section__sub {
  margin: 0 0 2rem;
  color: var(--text-dim);
  max-width: 62ch;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.tile {
  display: flex;
  flex-direction: column;
  padding: 0;
  border-radius: 10px;
  cursor: pointer;
  text-align: left;
  color: inherit;
  font: inherit;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.skin-neon-tile {
  background: rgba(30, 58, 95, 0.45);
  border: 1px solid var(--panel-line);
}

.skin-neon-tile:hover {
  transform: translateY(-4px);
  border-color: var(--radar-cyan);
  box-shadow: 0 0 18px rgba(34, 211, 238, 0.25), 0 12px 28px rgba(0, 0, 0, 0.35);
}

.tile__thumb {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--runway-blue);
}

.tile__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tile__body {
  padding: 0.85rem 1rem 1rem;
}

.tile__name {
  margin: 0 0 0.35rem;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
}

.tile__hint {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.45;
}

.feature-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.box {
  padding: 1.5rem;
  border-radius: 10px;
}

.skin-panel {
  background: rgba(30, 58, 95, 0.35);
  border: 1px solid var(--panel-line);
}

.box__title {
  margin: 0 0 0.6rem;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  color: var(--beacon-amber);
}

.box p {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.95rem;
}

.faq {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.faq__item {
  border: 1px solid var(--panel-line);
  border-radius: 8px;
  background: rgba(30, 58, 95, 0.3);
  overflow: hidden;
}

.faq__q {
  width: 100%;
  padding: 1rem 1.15rem;
  text-align: left;
  font: inherit;
  font-weight: 600;
  color: var(--contrail-white);
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq__q::after {
  content: "+";
  font-size: 1.25rem;
  color: var(--radar-cyan);
  flex-shrink: 0;
}

.faq__item--open .faq__q::after {
  content: "\2212";
}

.faq__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq__item--open .faq__a {
  max-height: 280px;
}

.faq__inner {
  padding: 0 1.15rem 1rem;
  color: var(--text-dim);
  font-size: 0.95rem;
}

.cta {
  text-align: center;
  padding: 2.5rem 2rem;
  border-radius: 12px;
  border: 1px solid var(--panel-line);
  background: linear-gradient(135deg, rgba(30, 58, 95, 0.5), rgba(34, 211, 238, 0.08));
}

.cta h2 {
  margin: 0 0 0.75rem;
}

.cta p {
  margin: 0 0 1.5rem;
  color: var(--text-dim);
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.6rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: box-shadow 0.2s, color 0.2s, background 0.2s;
}

.skin-neon-btn {
  color: var(--radar-cyan);
  background: transparent;
  border: 2px solid var(--radar-cyan);
  box-shadow: 0 0 8px rgba(34, 211, 238, 0.2);
}

.skin-neon-btn:hover {
  color: var(--night-hangar);
  background: var(--radar-cyan);
  box-shadow: 0 0 20px rgba(34, 211, 238, 0.45);
}

.footer {
  margin-top: 2rem;
  padding: 2.5rem 0 1.5rem;
  border-top: 1px solid var(--panel-line);
  background: rgba(6, 16, 24, 0.75);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer__heading {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--beacon-amber);
  margin: 0 0 0.75rem;
}

.footer p {
  margin: 0 0 0.5rem;
  color: var(--text-dim);
  font-size: 0.92rem;
}

.footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer__links li {
  margin-bottom: 0.4rem;
}

.footer__links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.92rem;
}

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

.footer__bottom {
  padding-top: 1.25rem;
  border-top: 1px solid var(--panel-line);
  font-size: 0.85rem;
  color: var(--text-dim);
}

.cookie {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  z-index: 200;
  max-width: 340px;
  padding: 1rem 1.15rem;
  background: rgba(6, 16, 24, 0.96);
  border: 1px solid var(--panel-line);
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
}

.cookie p {
  margin: 0 0 0.85rem;
  font-size: 0.88rem;
  color: var(--text-dim);
}

.page-head {
  padding: calc(var(--header-height) + 2.5rem) 0 1.5rem;
}

.page-head h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.65rem, 4vw, 2.25rem);
}

.page-head__lead {
  margin: 0;
  color: var(--text-dim);
  max-width: 58ch;
}

.prose {
  max-width: 68ch;
  margin-bottom: 2rem;
}

.prose p,
.prose li {
  color: var(--text-dim);
}

.prose h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.1rem;
  color: var(--beacon-amber);
}

.prose ul,
.prose ol {
  padding-left: 1.25rem;
}

.form {
  max-width: 480px;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 3rem;
}

.form label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--contrail-dim);
}

.form input,
.form textarea {
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--panel-line);
  border-radius: 6px;
  background: rgba(30, 58, 95, 0.35);
  color: var(--contrail-white);
  font: inherit;
}

.form textarea {
  min-height: 130px;
  resize: vertical;
}

.form-status {
  min-height: 1.25rem;
  font-size: 0.9rem;
  color: var(--beacon-amber);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding-bottom: 3rem;
}

.blog-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--panel-line);
  border-radius: 10px;
  background: rgba(30, 58, 95, 0.35);
  overflow: hidden;
}

.blog-card__thumb {
  aspect-ratio: 16/9;
  background: var(--runway-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--radar-cyan);
}

.blog-card__body {
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-card__badge {
  display: inline-block;
  margin-bottom: 0.5rem;
  padding: 0.2rem 0.55rem;
  font-family: var(--font-heading);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--radar-cyan);
  border: 1px solid var(--panel-line);
  border-radius: 4px;
  width: fit-content;
}

.blog-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.blog-card p {
  margin: 0 0 0.85rem;
  font-size: 0.9rem;
  color: var(--text-dim);
  flex: 1;
}

.blog-card__meta {
  display: flex;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-bottom: 1rem;
}

.article {
  padding-bottom: 3rem;
}

.article__header {
  padding: calc(var(--header-height) + 2.5rem) 0 1.5rem;
}

.article__header h1 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.5rem, 3.5vw, 2.1rem);
}

.article__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.article__content section {
  margin-bottom: 1.75rem;
}

.article__content h2 {
  font-size: 1.05rem;
  color: var(--beacon-amber);
  margin: 0 0 0.65rem;
}

.article__content p,
.article__content li {
  color: var(--text-dim);
}

.article__cta {
  margin-top: 2rem;
  padding: 1.5rem;
  border-radius: 10px;
  border: 1px solid var(--panel-line);
  text-align: center;
}

.article__cta h3 {
  margin: 0 0 1rem;
  font-size: 1rem;
}

.article-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--panel-line);
  font-size: 0.9rem;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s;
}

.modal--open {
  pointer-events: auto;
  opacity: 1;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 16, 24, 0.82);
  cursor: pointer;
}

.modal__panel {
  position: relative;
  width: min(960px, 96vw);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  border-radius: 10px;
  border: 1px solid var(--panel-line);
  background: var(--night-hangar);
  box-shadow: 0 0 40px rgba(34, 211, 238, 0.15);
  overflow: hidden;
}

.modal__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--panel-line);
  background: rgba(30, 58, 95, 0.5);
}

.modal__actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.modal__fallback {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--runway-cyan);
  text-decoration: none;
  white-space: nowrap;
}

.modal__fallback:hover {
  color: var(--beacon-amber);
}

.modal__title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 0.85rem;
}

.modal__close {
  padding: 0.45rem 0.9rem;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--night-hangar);
  background: var(--beacon-amber);
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.modal__frame-wrap {
  position: relative;
  height: min(72vh, 720px);
  min-height: 360px;
  background: #000;
}

.modal__frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

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

  .feature-row,
  .blog-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 768px) {
  .bar__toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    top: calc(var(--header-height) - 1px);
    left: 0;
    right: 0;
    background: rgba(6, 16, 24, 0.98);
    border-bottom: 1px solid var(--panel-line);
    padding: 0.75rem 1rem 1rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s, opacity 0.25s;
  }

  .nav--open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav__list {
    flex-direction: column;
    width: 100%;
  }

  .nav__link {
    padding: 0.75rem 0.5rem;
  }

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

  .cookie {
    left: 1rem;
    right: 1rem;
    max-width: none;
  }
}
