@import url("https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700&family=Nunito+Sans:wght@400;600;700&display=swap");

:root {
  --runway-asphalt: #1c2430;
  --horizon-blue: #3d8bfd;
  --cloud-mist: #e8f1fb;
  --hangar-teal: #2a9d8f;
  --prop-amber: #f0a202;
  --altitude-crimson: #d62828;
  --ink-cockpit: #15202b;
  --paper-sky: #f3f7fc;
  --neu-light: #ffffff;
  --neu-dark: #c5d0de;
  --font-head: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Nunito Sans", system-ui, sans-serif;
  --header-h: 72px;
  --max-w: 1120px;
  --radius: 18px;
}

.u-flex { display: flex; }
.u-flex-between { justify-content: space-between; align-items: center; }
.u-grid-footer { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink-cockpit);
  background-color: var(--paper-sky);
  background-image:
    radial-gradient(ellipse 90% 55% at 10% -10%, rgba(61, 139, 253, 0.28), transparent 55%),
    radial-gradient(ellipse 70% 45% at 95% 5%, rgba(42, 157, 143, 0.18), transparent 50%),
    radial-gradient(ellipse 60% 40% at 50% 100%, rgba(240, 162, 2, 0.12), transparent 55%),
    linear-gradient(180deg, #dce9f8 0%, var(--paper-sky) 38%, #eef4fa 100%);
  background-attachment: fixed;
}

body.is-nav-open { overflow: hidden; }

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

a { color: var(--horizon-blue); }
a:hover { color: var(--hangar-teal); }

h1, h2, h3 {
  font-family: var(--font-head);
  letter-spacing: 0.02em;
  line-height: 1.15;
  color: var(--runway-asphalt);
  margin: 0 0 0.65rem;
}

h1 { font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 700; text-transform: uppercase; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.35rem); font-weight: 700; text-transform: uppercase; }
h3 { font-size: 1.35rem; font-weight: 600; }

p { margin: 0 0 1rem; }
ul { margin: 0 0 1rem; padding-left: 1.2rem; }

main { flex: 1; }

.page-wrap {
  width: min(100% - 2rem, var(--max-w));
  margin-inline: auto;
  padding: 2.5rem 0;
}

.box-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  background: rgba(243, 247, 252, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(28, 36, 48, 0.08);
}

.box-header__inner {
  width: min(100% - 2rem, var(--max-w));
  margin: 0 auto;
  height: 100%;
}

.box-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--runway-asphalt);
}

.box-brand__mark { width: 36px; height: 36px; display: grid; place-items: center; }
.box-brand__mark svg { width: 36px; height: 36px; }
.box-brand__name {
  font-family: var(--font-head);
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.box-nav {
  display: flex;
  gap: 1.15rem;
  align-items: center;
}

.box-nav a {
  text-decoration: none;
  color: var(--ink-cockpit);
  font-weight: 600;
  font-size: 0.95rem;
}

.box-nav a[aria-current="page"],
.box-nav a:hover { color: var(--horizon-blue); }

.box-nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
}

.box-nav-toggle span {
  display: block;
  height: 2px;
  width: 22px;
  background: var(--runway-asphalt);
  margin-inline: auto;
}

.skin-neu {
  background: var(--cloud-mist);
  border-radius: var(--radius);
  box-shadow:
    10px 10px 22px var(--neu-dark),
    -10px -10px 22px var(--neu-light);
}

.btn-flat {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.4rem;
  border: 0;
  border-radius: 8px;
  background: var(--horizon-blue);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}

.btn-flat:hover {
  background: var(--hangar-teal);
  color: #fff;
  transform: translateY(-1px);
}

.btn-flat--block { width: 100%; }
.btn-flat--amber { background: var(--prop-amber); color: var(--runway-asphalt); }
.btn-flat--amber:hover { background: #ffb703; color: var(--runway-asphalt); }

.hero {
  min-height: calc(100vh - var(--header-h));
  display: grid;
  align-content: center;
  padding-top: 1rem;
  padding-bottom: 3rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 8% -10% auto auto;
  width: min(52vw, 520px);
  height: min(52vw, 520px);
  border-radius: 50%;
  background:
    radial-gradient(circle at 40% 40%, rgba(240, 162, 2, 0.35), transparent 55%),
    radial-gradient(circle at 70% 60%, rgba(61, 139, 253, 0.25), transparent 60%);
  pointer-events: none;
  animation: float-orb 12s ease-in-out infinite;
}

.hero::after {
  content: "";
  position: absolute;
  left: -8%;
  bottom: 12%;
  width: min(40vw, 380px);
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(28, 36, 48, 0.25), transparent);
  transform: rotate(-8deg);
  pointer-events: none;
}

@keyframes float-orb {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-18px) scale(1.04); }
}

.hero__brand {
  font-family: var(--font-head);
  font-size: clamp(3rem, 9vw, 5.5rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--runway-asphalt);
  margin: 0 0 0.75rem;
  position: relative;
  animation: rise-in 0.8s ease both;
}

.hero__lead {
  max-width: 34rem;
  font-size: 1.15rem;
  color: rgba(21, 32, 43, 0.82);
  margin-bottom: 1.6rem;
  position: relative;
  animation: rise-in 0.9s ease 0.08s both;
}

.hero .btn-flat {
  position: relative;
  animation: rise-in 1s ease 0.14s both;
}

@keyframes rise-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.games-section__title { margin-bottom: 0.4rem; }
.games-section__sub { color: rgba(21, 32, 43, 0.72); margin-bottom: 1.75rem; }

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

.media-card { overflow: hidden; display: flex; flex-direction: column; }
.media-card__media { aspect-ratio: 1; overflow: hidden; }
.media-card__media img { width: 100%; height: 100%; object-fit: cover; }
.media-card__body { padding: 1.1rem 1.15rem 1.25rem; flex: 1; display: flex; flex-direction: column; gap: 0.55rem; }
.media-card__title { margin: 0; font-size: 1.45rem; }
.media-card__desc { margin: 0; flex: 1; font-size: 0.95rem; color: rgba(21, 32, 43, 0.75); }

.features__title { margin-bottom: 1.5rem; }
.features__grid {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: repeat(3, 1fr);
}

.feature-tile { padding: 1.35rem 1.25rem; }
.feature-tile h3 { margin-bottom: 0.45rem; }
.feature-tile p { margin: 0; font-size: 0.98rem; }

.faq { padding: 1.5rem 1.4rem; }
.faq h2 { margin-bottom: 1rem; }
.faq details {
  border-top: 1px solid rgba(28, 36, 48, 0.1);
  padding: 0.85rem 0;
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq details[open] summary { color: var(--horizon-blue); }
.faq details p { margin: 0.65rem 0 0; color: rgba(21, 32, 43, 0.78); }

.cta-band {
  padding: 2rem 1.5rem;
  text-align: center;
  background: linear-gradient(135deg, rgba(61, 139, 253, 0.16), rgba(42, 157, 143, 0.18));
  border-radius: var(--radius);
  box-shadow:
    8px 8px 18px var(--neu-dark),
    -8px -8px 18px var(--neu-light);
}
.cta-band p { max-width: 36rem; margin: 0 auto 1.25rem; }

.page-head { margin-bottom: 1.5rem; }
.lead { font-size: 1.12rem; color: rgba(21, 32, 43, 0.8); max-width: 42rem; }

.content-panel {
  padding: 1.4rem 1.35rem;
  margin-bottom: 1.2rem;
}

.tip-list { padding-left: 1.15rem; }
.tip-list li { margin-bottom: 0.45rem; }

.blog-list { display: grid; gap: 1.25rem; }
.blog-card { display: grid; grid-template-columns: 180px 1fr; gap: 0; overflow: hidden; }
.blog-card__thumb img { width: 100%; height: 100%; object-fit: cover; min-height: 160px; }
.blog-card__body { padding: 1.2rem 1.25rem; }
.blog-card__meta {
  display: flex;
  gap: 1rem;
  font-size: 0.88rem;
  color: rgba(21, 32, 43, 0.6);
  margin-bottom: 0.85rem;
}
.category-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--hangar-teal);
  margin-bottom: 0.45rem;
}

.form-stack { display: grid; gap: 0.55rem; max-width: 480px; }
.form-stack input,
.form-stack textarea {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border: 0;
  border-radius: 10px;
  background: var(--paper-sky);
  box-shadow:
    inset 4px 4px 8px var(--neu-dark),
    inset -4px -4px 8px var(--neu-light);
  font: inherit;
  color: inherit;
}
.form-stack textarea { min-height: 140px; resize: vertical; }
.form-status { display: none; color: var(--hangar-teal); font-weight: 600; }
.form-status.is-visible { display: block; }

.article-header { margin-bottom: 1.5rem; }
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.1rem;
  color: rgba(21, 32, 43, 0.6);
  font-size: 0.9rem;
}
.article-hero {
  margin: 0 0 1.75rem;
  overflow: hidden;
  max-width: 420px;
}
.article-hero img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
}
.article-content section { margin-bottom: 1.5rem; }
.article-content p { max-width: 42rem; }
.article-cta {
  padding: 1.35rem;
  margin: 2rem 0 1.25rem;
  text-align: center;
}
.article-cta h3 { margin-bottom: 0.5rem; }
.article-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-weight: 600;
}

.not-found { text-align: center; padding-top: 4rem; padding-bottom: 4rem; }
.not-found h1 { font-size: 5rem; color: var(--horizon-blue); }

.box-footer {
  margin-top: 2rem;
  padding: 2.5rem 0 1.25rem;
  background: var(--runway-asphalt);
  color: rgba(255, 255, 255, 0.82);
}
.box-footer a { color: #9ec5ff; }
.box-footer a:hover { color: var(--prop-amber); }
.box-footer h3 { color: #fff; font-size: 1.2rem; }
.box-footer ul { list-style: none; padding: 0; margin: 0; }
.box-footer li { margin-bottom: 0.4rem; }
.box-footer__inner {
  width: min(100% - 2rem, var(--max-w));
  margin: 0 auto 1.5rem;
}
.box-footer__base {
  width: min(100% - 2rem, var(--max-w));
  margin: 0 auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.55);
}

.cookie-banner {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 60;
  max-width: 320px;
  padding: 1rem 1.1rem;
  display: none;
  gap: 0.75rem;
  flex-direction: column;
  background: var(--cloud-mist);
  border-radius: 14px;
  box-shadow:
    8px 8px 18px var(--neu-dark),
    -8px -8px 18px var(--neu-light);
}
.cookie-banner.is-visible { display: flex; }
.cookie-banner p { margin: 0; font-size: 0.9rem; }

.player-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.player-modal.is-open { display: flex; }
.player-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 24, 34, 0.72);
}
.player-modal__panel {
  position: relative;
  width: min(960px, 100%);
  max-height: calc(100vh - 2rem);
  display: flex;
  flex-direction: column;
  background: var(--cloud-mist);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}
.player-modal__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(28, 36, 48, 0.1);
  flex-shrink: 0;
}
.player-modal__title {
  margin: 0;
  font-size: 1.25rem;
  text-transform: none;
}
.player-modal__close {
  border: 0;
  background: transparent;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  color: var(--runway-asphalt);
}
.player-modal__frame {
  position: relative;
  width: 100%;
  flex: 1 1 auto;
  min-height: min(62vh, 560px);
  aspect-ratio: 16 / 10;
  background: #000;
}
.player-modal__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 860px) {
  .features__grid { grid-template-columns: 1fr; }
  .blog-card { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .box-nav-toggle { display: flex; }
  .box-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 0.75rem 1rem 1.25rem;
    background: rgba(243, 247, 252, 0.96);
    border-bottom: 1px solid rgba(28, 36, 48, 0.08);
  }
  .box-nav.is-open { display: flex; }
  .box-nav a { padding: 0.75rem 0.25rem; border-bottom: 1px solid rgba(28, 36, 48, 0.06); }
  .hero { min-height: auto; padding-top: 2.5rem; padding-bottom: 2.5rem; }
  .player-modal {
    padding: 0;
    align-items: stretch;
  }
  .player-modal__panel {
    width: 100%;
    height: 100%;
    max-height: 100%;
    border-radius: 0;
  }
  .player-modal__frame {
    flex: 1 1 auto;
    min-height: 0;
    aspect-ratio: auto;
    height: calc(100dvh - 56px);
  }
}
