/* Homepage continuation — scoped below the approved hero and demo sections. */

.how-section,
.mechanics-section,
.facts-section,
.controls-section,
.editorial-section,
.faq-section,
.landing-section {
  isolation: isolate;
}

.header-demo-button {
  display: none;
}

.site-header > .header-casino-button,
.site-header > .header-demo-button {
  grid-column: 3;
  justify-self: end;
}

.how-section .section-heading,
.facts-section .section-heading,
.controls-section .section-heading {
  max-width: 810px;
}

.how-section .section-heading h2,
.mechanics-section h2,
.facts-section .section-heading h2,
.controls-section .section-heading h2,
.faq-section .section-heading h2 {
  color: #fff;
}

.how-section .section-heading > p:last-child,
.facts-section .section-heading > p:last-child,
.controls-section .section-heading > p:last-child,
.faq-section .section-heading > p:last-child,
.mechanics-copy > p:not(.eyebrow) {
  color: rgba(224, 237, 255, 0.76);
}

.how-section .eyebrow,
.mechanics-section .eyebrow,
.facts-section .eyebrow,
.controls-section .eyebrow,
.faq-section .eyebrow,
.landing-section .eyebrow {
  color: var(--accent);
}

/* Short semantic anchors make long paragraphs easier to scan. */
.text-emphasis {
  color: inherit;
  font-weight: 800;
  padding: 0.08em 0.28em 0.12em;
  border-radius: 0.3em;
  background: linear-gradient(100deg, rgba(239, 52, 56, 0.24), rgba(239, 52, 56, 0.11));
  box-shadow: inset 0 0 0 1px rgba(255, 113, 116, 0.12);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* Route briefing */
.how-section {
  position: relative;
  padding: 126px 0 138px;
  color: #fff;
  background:
    radial-gradient(circle at 78% 22%, rgba(65, 135, 255, 0.34), transparent 28%),
    radial-gradient(circle at 10% 82%, rgba(20, 89, 210, 0.3), transparent 31%),
    linear-gradient(155deg, #061744 0%, #0a2667 54%, #102f78 100%);
  overflow: hidden;
}

.how-section::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(116, 166, 255, 0.075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(116, 166, 255, 0.075) 1px, transparent 1px);
  background-size: 72px 72px;
  content: "";
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 17%, #000 82%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 17%, #000 82%, transparent);
}

.how-section::after {
  position: absolute;
  z-index: -1;
  top: 46px;
  right: -180px;
  width: 620px;
  height: 620px;
  border: 1px solid rgba(149, 190, 255, 0.18);
  border-radius: 50%;
  box-shadow:
    0 0 0 90px rgba(149, 190, 255, 0.045),
    0 0 0 180px rgba(149, 190, 255, 0.025);
  content: "";
}

.how-section .section-heading {
  position: relative;
  z-index: 2;
  margin-bottom: 62px;
}

.flight-steps {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.flight-steps::before {
  position: absolute;
  top: 52px;
  right: 4%;
  left: 4%;
  z-index: -1;
  border-top: 1px dashed rgba(239, 52, 56, 0.58);
  content: "";
}

.flight-steps li,
.flight-steps li:nth-child(4) {
  min-height: 378px;
  padding: 25px 22px 28px;
  border: 1px solid rgba(169, 201, 255, 0.2);
  border-radius: 25px;
  color: #fff;
  background:
    linear-gradient(145deg, rgba(38, 88, 184, 0.55), rgba(8, 28, 79, 0.88));
  box-shadow:
    0 22px 55px rgba(0, 9, 42, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow: hidden;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.flight-steps li:nth-child(even) {
  transform: translateY(20px);
}

.flight-steps li:hover {
  border-color: rgba(239, 52, 56, 0.64);
  box-shadow: 0 26px 64px rgba(0, 8, 39, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  transform: translateY(-6px);
}

.flight-steps li:nth-child(even):hover {
  transform: translateY(14px);
}

.flight-steps li::before {
  position: absolute;
  top: 0;
  right: 20px;
  left: 20px;
  height: 3px;
  border-radius: 0 0 4px 4px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  content: "";
}

.flight-steps li::after {
  right: -52px;
  bottom: -62px;
  width: 155px;
  height: 155px;
  border: 1px solid rgba(131, 177, 255, 0.14);
  background: transparent;
  box-shadow: 0 0 0 24px rgba(131, 177, 255, 0.025), 0 0 0 48px rgba(131, 177, 255, 0.018);
}

.step-number {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  margin-bottom: 26px;
  border: 1px solid rgba(239, 52, 56, 0.7);
  border-radius: 50%;
  color: #fff;
  background: var(--accent);
  box-shadow: 0 0 0 7px rgba(239, 52, 56, 0.08);
  letter-spacing: 0;
}

.flight-steps img,
.flight-steps .step-gauge,
.flight-steps .step-bonuses {
  height: 90px;
  margin-bottom: 18px;
  filter: drop-shadow(0 13px 10px rgba(0, 10, 44, 0.3));
}

.flight-steps .step-gauge {
  width: 90px;
  border-color: #061744;
  color: #061744;
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.7), 0 13px 24px rgba(0, 9, 43, 0.26);
}

.flight-steps .step-bonuses img {
  height: 55px;
  margin: 0;
}

.flight-steps h3 {
  margin: 0 0 10px;
  color: #fff;
  font-size: 1.08rem;
}

.flight-steps p {
  color: rgba(225, 237, 255, 0.72);
  font-size: 0.88rem;
}

/* Game objects / radar board */
.mechanics-section {
  position: relative;
  padding: 132px 0;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(6, 23, 68, 0.18), rgba(7, 27, 82, 0.82)),
    url("/assets/sky.webp") center 34% / cover;
  overflow: hidden;
}

.mechanics-section::before,
.controls-section::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(4, 18, 57, 0.38), transparent 45%, rgba(4, 18, 57, 0.18));
  content: "";
}

.mechanics-grid {
  grid-template-columns: minmax(320px, 0.78fr) minmax(560px, 1.22fr);
  gap: clamp(52px, 7vw, 104px);
}

.mechanics-copy {
  position: relative;
  z-index: 2;
}

.mechanics-copy a:not(.button),
.mechanics-section .source-note a {
  color: var(--accent);
}

.mechanics-copy .button {
  border-color: var(--accent);
  color: #fff;
  background: var(--accent);
  box-shadow: 0 14px 32px rgba(185, 22, 42, 0.23);
}

.mechanics-board {
  min-height: 478px;
  padding: 58px 46px 92px;
  border: 1px solid rgba(180, 208, 255, 0.26);
  border-radius: 42px;
  background:
    radial-gradient(circle at center, rgba(65, 129, 244, 0.36), transparent 53%),
    linear-gradient(145deg, rgba(17, 59, 147, 0.94), rgba(4, 20, 64, 0.96));
  box-shadow:
    0 36px 85px rgba(1, 12, 44, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    0 0 0 10px rgba(255, 255, 255, 0.045);
}

.mechanics-board::before {
  inset: 28px;
  border: 1px solid rgba(154, 190, 255, 0.16);
  border-radius: 50%;
  background:
    linear-gradient(rgba(139, 180, 255, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 180, 255, 0.1) 1px, transparent 1px);
  background-size: 38px 38px;
  opacity: 1;
}

.mechanics-board::after {
  position: absolute;
  top: 28px;
  left: 38px;
  color: rgba(210, 228, 255, 0.54);
  content: "FLIGHT OBJECTS  •  RADAR ONLINE";
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.mechanic-card {
  min-height: 166px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  background: rgba(4, 21, 66, 0.72);
  box-shadow: 0 17px 36px rgba(0, 10, 43, 0.33), inset 0 0 0 8px rgba(255, 255, 255, 0.035);
}

.mechanic-card:nth-child(2) {
  transform: translateY(-18px);
}

.route-line {
  right: 10%;
  bottom: 54px;
  left: 10%;
  height: 1px;
  border-top: 1px dashed rgba(255, 255, 255, 0.52);
  background: none;
}

/* Flight data */
.facts-section {
  position: relative;
  padding: 126px 0 132px;
  color: #fff;
  background:
    radial-gradient(circle at 13% 18%, rgba(43, 111, 238, 0.4), transparent 26%),
    linear-gradient(135deg, #071847, #0a276d 58%, #071b53);
  overflow: hidden;
}

.facts-section::before {
  position: absolute;
  top: -200px;
  left: -170px;
  z-index: -1;
  width: 620px;
  height: 620px;
  border: 1px solid rgba(137, 179, 255, 0.13);
  border-radius: 50%;
  box-shadow: 0 0 0 80px rgba(137, 179, 255, 0.025), 0 0 0 160px rgba(137, 179, 255, 0.018);
  content: "";
}

.facts-grid {
  gap: 12px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow: visible;
}

.facts-grid div {
  position: relative;
  min-height: 160px;
  padding: 30px 30px 26px;
  border: 1px solid rgba(167, 200, 255, 0.18);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(35, 82, 174, 0.5), rgba(7, 29, 83, 0.74));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.08), 0 16px 38px rgba(1, 10, 38, 0.24);
  overflow: hidden;
}

.facts-grid div::after {
  position: absolute;
  right: 24px;
  bottom: 22px;
  width: 46px;
  height: 7px;
  border-radius: 10px;
  background: repeating-linear-gradient(90deg, var(--accent) 0 6px, transparent 6px 10px);
  content: "";
  opacity: 0.72;
}

.facts-grid dt {
  color: rgba(203, 222, 255, 0.62);
}

.facts-grid dd {
  color: #fff;
}

.facts-section .source-note,
.controls-section .source-note {
  color: rgba(215, 231, 255, 0.64);
}

.facts-section .source-note a,
.controls-section .source-note a {
  color: var(--accent);
}

/* Cockpit controls */
.controls-section {
  position: relative;
  padding: 132px 0;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(8, 35, 100, 0.34), rgba(5, 25, 74, 0.92)),
    url("/assets/sky.webp") center / cover;
  overflow: hidden;
}

.controls-section::after {
  position: absolute;
  right: -110px;
  bottom: -180px;
  z-index: -1;
  width: 580px;
  height: 580px;
  border: 1px solid rgba(168, 201, 255, 0.15);
  border-radius: 50%;
  box-shadow: 0 0 0 70px rgba(168, 201, 255, 0.025), 0 0 0 140px rgba(168, 201, 255, 0.018);
  content: "";
}

.controls-grid {
  gap: 15px;
}

.control-card {
  min-height: 290px;
  padding: 32px 34px 34px 108px;
  border: 1px solid rgba(177, 207, 255, 0.22);
  border-radius: 26px;
  color: #fff;
  background: linear-gradient(135deg, rgba(18, 57, 139, 0.88), rgba(5, 25, 75, 0.9));
  box-shadow: 0 20px 48px rgba(1, 13, 47, 0.28), inset 0 1px rgba(255, 255, 255, 0.1);
}

.control-card::before {
  position: absolute;
  top: 25px;
  bottom: 25px;
  left: 82px;
  width: 1px;
  background: linear-gradient(transparent, rgba(151, 188, 255, 0.28), transparent);
  content: "";
}

.control-card::after {
  right: -56px;
  bottom: -65px;
  width: 210px;
  height: 210px;
  border-color: rgba(147, 187, 255, 0.16);
  box-shadow: 0 0 0 30px rgba(147, 187, 255, 0.035), 0 0 0 60px rgba(147, 187, 255, 0.024);
}

.control-index {
  position: absolute;
  top: 32px;
  left: 25px;
  display: flex;
  width: 36px;
  min-height: 88px;
  align-items: center;
  justify-content: center;
  margin: 0;
  border: 1px solid rgba(239, 52, 56, 0.5);
  border-radius: 18px;
  color: var(--accent);
  font-size: 0.62rem;
  line-height: 1;
  text-align: center;
  writing-mode: vertical-rl;
}

.control-card h3 {
  color: #fff;
  font-size: 1.35rem;
}

.control-card p,
.control-card-accent p {
  color: rgba(221, 235, 255, 0.73);
}

.control-card-accent {
  border-color: rgba(239, 52, 56, 0.55);
  background: linear-gradient(135deg, #183f93, #071b53);
}

.control-card-accent::before {
  background: linear-gradient(transparent, rgba(239, 52, 56, 0.34), transparent);
}

/* Long-form flight log */
.editorial-section {
  position: relative;
  padding: 132px 0 138px;
  background:
    radial-gradient(circle at 90% 8%, rgba(51, 119, 235, 0.13), transparent 24%),
    #eef5ff;
  overflow: clip;
}

.editorial-section::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 8px;
  background: linear-gradient(90deg, #071b53 0 68%, var(--accent) 68% 76%, #ea493a 76%);
  content: "";
}

.editorial-grid {
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: clamp(38px, 5vw, 76px);
}

.editorial-main {
  max-width: none;
  padding: clamp(34px, 5vw, 70px);
  border: 1px solid rgba(36, 81, 159, 0.13);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 28px 70px rgba(13, 44, 104, 0.1);
}

.editorial-main .eyebrow {
  color: #2b61bd;
}

.editorial-main h2 {
  margin-bottom: 28px;
  color: #fff;
}

.editorial-main h3 {
  position: relative;
  padding-top: 30px;
  color: #0d347e;
}

.editorial-main h3::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 72px;
  height: 4px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--accent), #f65a43);
  content: "";
}

.editorial-main > p:not(.eyebrow) {
  color: #3d4c68;
  line-height: 1.78;
}

.editorial-aside {
  top: 108px;
  gap: 15px;
}

@media (min-width: 821px) {
  .editorial-aside {
    position: sticky;
    align-self: start;
    height: max-content;
  }
}

.aside-card {
  position: relative;
  padding: 29px;
  border: 1px solid rgba(36, 81, 159, 0.14);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(13, 44, 104, 0.08);
  overflow: hidden;
}

.aside-card::after {
  position: absolute;
  top: -45px;
  right: -45px;
  width: 115px;
  height: 115px;
  border: 1px solid rgba(63, 114, 204, 0.12);
  border-radius: 50%;
  box-shadow: 0 0 0 18px rgba(63, 114, 204, 0.035);
  content: "";
}

.aside-label {
  color: #2d64c4;
}

.aside-card-blue {
  border-color: rgba(255, 255, 255, 0.1);
  background: linear-gradient(145deg, #18469d, #071a4f);
  box-shadow: 0 24px 55px rgba(8, 31, 82, 0.24);
}

/* FAQ / mission control */
.faq-section {
  position: relative;
  padding: 132px 0 142px;
  color: #fff;
  background:
    radial-gradient(circle at 20% 30%, rgba(39, 102, 220, 0.34), transparent 27%),
    linear-gradient(145deg, #061640, #0a276b 62%, #061744);
  overflow: hidden;
}

.faq-section::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(127, 171, 247, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(127, 171, 247, 0.055) 1px, transparent 1px);
  background-size: 62px 62px;
  content: "";
}

.faq-layout {
  grid-template-columns: minmax(270px, 0.72fr) minmax(520px, 1.28fr);
  gap: clamp(44px, 7vw, 104px);
}

.faq-list {
  gap: 10px;
}

.faq-list details {
  border: 1px solid rgba(164, 198, 255, 0.18);
  border-radius: 19px;
  color: #fff;
  background: linear-gradient(120deg, rgba(31, 73, 157, 0.58), rgba(8, 29, 82, 0.78));
  box-shadow: 0 12px 32px rgba(0, 10, 42, 0.2), inset 0 1px rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.faq-list details[open] {
  border-color: rgba(239, 52, 56, 0.46);
  background: linear-gradient(120deg, rgba(35, 82, 177, 0.72), rgba(8, 29, 82, 0.9));
}

.faq-list summary {
  padding: 23px 68px 23px 25px;
  color: #fff;
}

.faq-list summary::after {
  right: 19px;
  width: 34px;
  height: 34px;
  color: #071b53;
  background: var(--accent);
}

.faq-list details p {
  padding: 0 68px 25px 25px;
  color: rgba(220, 234, 255, 0.72);
}

/* Final approach */
.landing-section {
  min-height: 680px;
  background-image:
    linear-gradient(180deg, rgba(7, 27, 80, 0.16), rgba(4, 20, 61, 0.7)),
    url("/assets/sky.webp");
}

.landing-section::before {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: radial-gradient(circle at 72% 36%, rgba(167, 205, 255, 0.2), transparent 28%);
  content: "";
}

.landing-section::after {
  height: 172px;
  border-top: 1px solid rgba(158, 216, 255, 0.28);
  background-image:
    linear-gradient(rgba(94, 189, 255, 0.31), transparent),
    url("/assets/sea-noise.jpg");
  box-shadow: inset 0 20px 46px rgba(4, 29, 84, 0.34);
}

.landing-inner {
  min-height: 680px;
  padding-bottom: 170px;
}

.landing-copy {
  padding: 38px;
  border: 1px solid rgba(184, 211, 255, 0.22);
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(13, 48, 125, 0.72), rgba(5, 24, 72, 0.72));
  box-shadow: 0 24px 65px rgba(2, 15, 52, 0.24), inset 0 1px rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.landing-copy h2 {
  color: #fff;
}

.landing-plane {
  width: 240px;
}

.landing-carrier {
  bottom: -105px;
}

.site-footer {
  border-top: 1px solid rgba(133, 180, 255, 0.15);
  background: linear-gradient(180deg, #040f31, #020a20);
}

@media (max-width: 1120px) {
  .flight-steps {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
  }

  .flight-steps::before {
    display: none;
  }

  .flight-steps li,
  .flight-steps li:nth-child(4) {
    grid-column: span 2;
    min-height: 350px;
    transform: none;
  }

  .flight-steps li:nth-child(4) {
    grid-column: 2 / span 2;
  }

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

  .mechanics-copy {
    max-width: 760px;
  }

  .mechanics-board {
    width: 100%;
    max-width: 820px;
  }
}

@media (max-width: 820px) {
  .site-header > .header-casino-button {
    display: none;
  }

  .site-header > .header-demo-button {
    display: inline-flex;
    min-height: 44px;
    padding: 10px 17px;
    border-radius: 12px;
    font-size: 0.82rem;
    box-shadow: 0 8px 22px rgba(185, 22, 42, 0.24);
  }

  .how-section,
  .mechanics-section,
  .facts-section,
  .controls-section,
  .editorial-section,
  .faq-section {
    padding: 92px 0;
  }

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

  .flight-steps li,
  .flight-steps li:nth-child(4) {
    grid-column: auto;
    min-height: 335px;
  }

  .flight-steps li:last-child {
    grid-column: 1 / -1;
  }

  .mechanics-board {
    min-height: 410px;
    padding: 54px 28px 82px;
  }

  .mechanic-card {
    min-height: 145px;
  }

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

  .editorial-grid,
  .faq-layout {
    grid-template-columns: 1fr;
  }

  .editorial-aside,
  .faq-layout .section-heading {
    position: static;
  }

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

  .landing-copy {
    padding: 30px;
  }
}

@media (max-width: 560px) {
  .site-header > .header-demo-button {
    min-height: 42px;
    padding-inline: 14px;
    font-size: 0.78rem;
  }

  .how-section,
  .mechanics-section,
  .facts-section,
  .controls-section,
  .editorial-section,
  .faq-section {
    padding: 56px 0;
  }

  .how-section .section-heading {
    margin-bottom: 40px;
  }

  .flight-steps {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .flight-steps li,
  .flight-steps li:nth-child(4),
  .flight-steps li:last-child {
    grid-column: auto;
    min-height: 0;
    padding: 22px 21px 25px;
  }

  .flight-steps img,
  .flight-steps .step-gauge,
  .flight-steps .step-bonuses {
    height: 72px;
    margin-bottom: 14px;
  }

  .flight-steps .step-gauge {
    width: 72px;
  }

  .flight-steps .step-bonuses img {
    height: 46px;
  }

  .mechanics-grid {
    gap: 42px;
  }

  .mechanics-board {
    grid-template-columns: 1fr;
    gap: 12px;
    min-height: 0;
    padding: 60px 25px 78px;
    border-radius: 30px;
  }

  .mechanics-board::before {
    inset: 22px;
  }

  .mechanics-board::after {
    left: 25px;
    font-size: 0.53rem;
  }

  .mechanic-card,
  .mechanic-card:nth-child(2) {
    width: 150px;
    min-height: 150px;
    margin: 0 auto;
    transform: none;
  }

  .route-line {
    right: 50%;
    bottom: 42px;
    left: auto;
    width: 1px;
    height: calc(100% - 112px);
    border-top: 0;
    border-left: 1px dashed rgba(255, 255, 255, 0.34);
  }

  .route-line i {
    display: none;
  }

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

  .facts-grid div {
    min-height: 132px;
  }

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

  .control-card {
    min-height: 0;
    padding: 80px 23px 28px;
  }

  .control-card::before {
    top: 64px;
    right: 23px;
    bottom: auto;
    left: 23px;
    width: auto;
    height: 1px;
  }

  .control-index {
    top: 20px;
    left: 22px;
    width: auto;
    min-height: 32px;
    padding: 0 14px;
    writing-mode: horizontal-tb;
  }

  .editorial-main {
    padding: 28px 23px;
    border-radius: 25px;
  }

  .editorial-main h3 {
    font-size: 1.45rem;
  }

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

  .faq-list summary {
    padding: 20px 60px 20px 20px;
  }

  .faq-list details p {
    padding: 0 20px 22px;
  }

  .landing-section,
  .landing-inner {
    min-height: 760px;
  }

  .landing-inner {
    padding-top: 66px;
  }

  .landing-copy {
    padding: 25px 22px;
  }

  .landing-plane {
    width: 160px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .flight-steps li {
    transition: none;
  }
}

/* Dark flight log: removes the bright paper-like break in the page. */
.editorial-section {
  color: #fff;
  background:
    radial-gradient(circle at 86% 12%, rgba(72, 137, 255, 0.34), transparent 27%),
    radial-gradient(circle at 8% 88%, rgba(35, 93, 204, 0.28), transparent 31%),
    linear-gradient(145deg, #081b4d 0%, #103579 50%, #071b50 100%);
}

.editorial-section::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(150, 190, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(150, 190, 255, 0.055) 1px, transparent 1px),
    radial-gradient(circle at 88% 26%, transparent 0 148px, rgba(170, 204, 255, 0.1) 149px 150px, transparent 151px 218px, rgba(170, 204, 255, 0.065) 219px 220px, transparent 221px);
  background-size: 68px 68px, 68px 68px, auto;
  content: "";
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 90%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 90%, transparent);
}

.editorial-main {
  border-color: rgba(169, 202, 255, 0.2);
  color: #fff;
  background:
    linear-gradient(145deg, rgba(24, 68, 153, 0.72), rgba(5, 25, 74, 0.9));
  box-shadow: 0 30px 76px rgba(0, 11, 43, 0.3), inset 0 1px rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.editorial-main .eyebrow,
.editorial-main a {
  color: var(--accent);
}

.editorial-main h2,
.editorial-main h3 {
  color: #fff;
}

.editorial-main > p:not(.eyebrow) {
  color: rgba(224, 236, 255, 0.78);
}

.editorial-main strong {
  color: #fff;
}

.editorial-section .aside-card {
  border-color: rgba(169, 202, 255, 0.2);
  color: #fff;
  background: linear-gradient(145deg, rgba(34, 82, 174, 0.78), rgba(7, 29, 83, 0.9));
  box-shadow: 0 22px 54px rgba(0, 12, 48, 0.27), inset 0 1px rgba(255, 255, 255, 0.09);
}

.editorial-section .aside-card::after {
  border-color: rgba(164, 199, 255, 0.16);
  box-shadow: 0 0 0 18px rgba(164, 199, 255, 0.035);
}

.editorial-section .aside-card h3 {
  color: #fff;
}

.editorial-section .aside-card p {
  color: rgba(221, 235, 255, 0.72);
}

.editorial-section .aside-label,
.editorial-section .aside-card-blue .aside-label,
.editorial-section .aside-card-blue a {
  color: var(--accent);
}

.editorial-section .aside-card-blue {
  border-color: rgba(239, 52, 56, 0.36);
  background: linear-gradient(145deg, rgba(31, 75, 164, 0.94), rgba(5, 22, 65, 0.96));
}

/* Palette hierarchy: warm actions, cool information, restrained gold details. */
.hero-facts strong,
.mechanic-plus span,
.facts-grid div::after {
  color: var(--accent-gold);
}

.facts-grid div::after {
  background: repeating-linear-gradient(90deg, var(--accent-gold) 0 6px, transparent 6px 10px);
}

.console-bottom a,
.mechanics-copy a:not(.button),
.mechanics-section .source-note a,
.facts-section .source-note a,
.controls-section .source-note a,
.editorial-main a,
.editorial-section .aside-card-blue a,
.aside-card-blue a {
  color: var(--accent-cool);
}

.editorial-main .eyebrow,
.editorial-section .aside-label,
.editorial-section .aside-card-blue .aside-label {
  color: var(--accent);
}

.control-index {
  color: var(--accent-cool);
}

.footer-inner nav a:hover {
  color: var(--accent-cool);
}

.hero-anchor-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 28px;
}

.hero-anchor-tags a {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(5, 24, 72, 0.32);
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease, transform 160ms ease;
}

.hero-anchor-tags a::before {
  width: 5px;
  height: 5px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 9px rgba(239, 52, 56, 0.62);
  content: "";
}

.hero-anchor-tags a:hover,
.hero-anchor-tags a:focus-visible {
  border-color: rgba(239, 52, 56, 0.72);
  color: #fff;
  background: rgba(185, 22, 42, 0.22);
  transform: translateY(-1px);
}

.hero-anchor-tags-mobile {
  display: none;
}

.hero-anchor-tags-label {
  display: none;
}

.hero-joy-ad {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
  border: 1px solid #ff9d35;
  border-radius: 18px;
  background:
    radial-gradient(circle at 92% 0, rgba(255, 174, 61, 0.88) 0, transparent 36%),
    linear-gradient(145deg, #391a43 0%, #191323 58%, #101116 100%);
  box-shadow: 0 18px 42px rgba(4, 10, 34, 0.32), inset 0 1px rgba(255, 255, 255, 0.12);
  text-decoration: none;
}

.hero-joy-ad::after {
  position: absolute;
  z-index: -1;
  right: -38px;
  bottom: -58px;
  width: 128px;
  height: 128px;
  border: 20px solid rgba(255, 121, 30, 0.16);
  border-radius: 50%;
  content: "";
}

.hero-joy-ad-desktop {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  gap: 18px;
  align-items: center;
  width: min(640px, 100%);
  margin-top: 30px;
  padding: 15px 16px;
}

.hero-joy-ad-mobile {
  display: none;
}

.hero-joy-ad-brand,
.hero-joy-ad-code {
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-joy-ad-brand {
  color: #ff9c32;
}

.hero-joy-ad-brand b {
  color: #fff;
}

.hero-joy-ad-offer {
  display: flex;
  align-items: baseline;
  gap: 6px;
  white-space: nowrap;
}

.hero-joy-ad-offer strong {
  color: #ff9c32;
  font-size: 1.35rem;
  line-height: 1;
}

.hero-joy-ad-offer small {
  font-size: 0.62rem;
  font-weight: 950;
}

.hero-joy-ad-code {
  color: #c9c2ce;
  white-space: nowrap;
}

.hero-joy-ad-code b {
  color: #fff;
}

.hero-joy-ad-action {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 14px;
  border-radius: 10px;
  color: #10160e;
  background: #5ac44c;
  box-shadow: 0 3px 0 #2c7e28;
  font-size: 0.62rem;
  font-weight: 950;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.hero-joy-ad-action b {
  font-size: 1rem;
}

.hero-joy-ad:hover,
.hero-joy-ad:focus-visible {
  border-color: #ffbd69;
  transform: translateY(-1px);
}

/* Compact floating flight data attached to the hero phone. */
.hero-phone-wrap > .hero-facts {
  position: absolute;
  z-index: 14;
  inset: 0;
  display: block;
  width: auto;
  max-width: none;
  margin: 0;
  padding: 0;
  pointer-events: none;
}

.hero-phone-wrap > .hero-facts li {
  position: absolute;
  display: block;
  min-width: 86px;
  max-width: 106px;
  padding: 9px 12px 8px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 13px;
  background: linear-gradient(145deg, rgba(18, 50, 125, 0.9), rgba(5, 22, 66, 0.94));
  box-shadow: 0 12px 28px rgba(2, 12, 43, 0.34), inset 0 1px rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  text-align: left;
}

.hero-phone-wrap > .hero-facts li::before {
  display: block;
  width: 24px;
  height: 2px;
  margin-bottom: 6px;
  border-radius: 3px;
  background: var(--accent);
  content: "";
}

.hero-phone-wrap > .hero-facts li:nth-child(1) {
  top: 112px;
  left: -50px;
  transform: rotate(-3deg);
}

.hero-phone-wrap > .hero-facts li:nth-child(2) {
  top: 248px;
  right: -64px;
  transform: rotate(3deg);
}

.hero-phone-wrap > .hero-facts li:nth-child(3) {
  top: 388px;
  left: -43px;
  transform: rotate(-2deg);
}

.hero-phone-wrap > .hero-facts strong {
  color: var(--accent-gold);
  font-size: 0.88rem;
  line-height: 1;
}

.hero-phone-wrap > .hero-facts span {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.48rem;
  line-height: 1.25;
  letter-spacing: 0.08em;
}

@media (max-width: 560px) {
  .hero-phone-wrap > .hero-facts li {
    min-width: 78px;
    max-width: 94px;
    padding: 8px 10px 7px;
    border-radius: 12px;
  }

  .hero-phone-wrap > .hero-facts li:nth-child(1) {
    top: 86px;
    left: -37px;
  }

  .hero-phone-wrap > .hero-facts li:nth-child(2) {
    top: 198px;
    right: -44px;
  }

  .hero-phone-wrap > .hero-facts li:nth-child(3) {
    top: 308px;
    left: -34px;
  }

  .hero-phone-wrap > .hero-facts strong {
    font-size: 0.8rem;
  }

  .hero-phone-wrap > .hero-facts span {
    font-size: 0.43rem;
  }
}

/* A calmer desktop type scale. Mobile typography remains unchanged. */
@media (max-width: 560px) {
  .hero {
    background-image:
      linear-gradient(180deg, rgba(2, 17, 66, 0.22), rgba(25, 67, 155, 0.08) 66%, rgba(12, 45, 121, 0.42)),
      url("/assets/sky.webp");
    background-size: cover;
    background-repeat: no-repeat;
  }

  .hero-cloud {
    display: block;
    height: auto;
    object-fit: contain;
    filter: none;
  }

  .hero-cloud-one {
    top: 43%;
    left: -78px;
    width: 250px;
    opacity: 0.3;
  }

  .hero-cloud-two {
    top: 69%;
    right: -70px;
    width: 220px;
    opacity: 0.24;
  }
}

@media (min-width: 821px) {
  .hero h1 {
    font-size: clamp(3.4rem, 4vw, 4.75rem);
  }

  .demo-copy .section-heading h2,
  .how-section .section-heading h2,
  .mechanics-section h2,
  .facts-section .section-heading h2,
  .controls-section .section-heading h2,
  .editorial-main h2,
  .faq-section .section-heading h2,
  .landing-copy h2 {
    font-size: clamp(2.25rem, 2.85vw, 3.35rem);
  }

  .demo-primary-cta h2 {
    font-size: clamp(1.65rem, 2vw, 2.2rem);
  }
}

/* Ambient micro-motion: lightweight loops that keep the interface alive. */
.eyebrow::before {
  transform-origin: left center;
  animation: eyebrowSignal 3.8s ease-in-out infinite;
}

.flight-steps li::before {
  transform-origin: center;
  animation: flightTrimGlow 3.6s ease-in-out infinite;
}

.flight-steps li:nth-child(2n)::before {
  animation-delay: -1.8s;
}

.step-number {
  position: relative;
}

.step-number::after {
  position: absolute;
  inset: -8px;
  border: 1px solid rgba(255, 84, 89, 0.58);
  border-radius: inherit;
  content: "";
  pointer-events: none;
  animation: stepSignal 2.9s ease-out infinite;
}

.flight-steps li:nth-child(2) .step-number::after { animation-delay: -0.55s; }
.flight-steps li:nth-child(3) .step-number::after { animation-delay: -1.1s; }
.flight-steps li:nth-child(4) .step-number::after { animation-delay: -1.65s; }
.flight-steps li:nth-child(5) .step-number::after { animation-delay: -2.2s; }

.header-demo-button,
.hero-phone-button,
.demo-launch-button,
.mechanics-copy .button,
.section-demo-link,
.cta-boost-button,
.landing-actions .button:first-child {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.header-demo-button::after,
.hero-phone-button::after,
.demo-launch-button::after,
.mechanics-copy .button::after,
.section-demo-link::after,
.cta-boost-button::after,
.landing-actions .button:first-child::after {
  position: absolute;
  z-index: 1;
  top: -70%;
  bottom: -70%;
  left: -55%;
  width: 30%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.34), transparent);
  content: "";
  pointer-events: none;
  transform: translateX(-220%) rotate(16deg);
  animation: buttonGlint 6.8s ease-in-out infinite;
}

.hero-phone-button::after,
.section-demo-link::after {
  animation-delay: -2.2s;
}

.cta-boost-button::after,
.landing-actions .button:first-child::after {
  animation-delay: -4.4s;
}

.hero-phone-status i {
  animation: statusHeartbeat 2.6s ease-in-out infinite;
}

.hero-phone-wrap > .hero-facts li:nth-child(1) {
  animation: heroFactFloatOne 5.4s ease-in-out infinite;
}

.hero-phone-wrap > .hero-facts li:nth-child(2) {
  animation: heroFactFloatTwo 6.2s ease-in-out -2s infinite;
}

.hero-phone-wrap > .hero-facts li:nth-child(3) {
  animation: heroFactFloatThree 5.8s ease-in-out -3.5s infinite;
}

.control-card::before {
  transform-origin: center;
  animation: cockpitLine 3.4s ease-in-out infinite;
}

.control-card:nth-child(2n)::before {
  animation-delay: -1.7s;
}

.editorial-section .aside-card::after {
  animation: asideRadar 11s linear infinite;
}

.editorial-section .aside-card:nth-child(2)::after {
  animation-direction: reverse;
  animation-duration: 14s;
}

.faq-list summary::after {
  animation: faqBeacon 3s ease-in-out infinite;
}

.faq-list details:nth-child(2n) summary::after {
  animation-delay: -1.5s;
}

.faq-list details[open] summary::after {
  animation-play-state: paused;
}

@keyframes eyebrowSignal {
  0%, 100% { opacity: 0.68; transform: scaleX(0.76); }
  50% { opacity: 1; transform: scaleX(1); }
}

@keyframes flightTrimGlow {
  0%, 100% { opacity: 0.42; transform: scaleX(0.58); }
  50% { opacity: 1; transform: scaleX(1); }
}

@keyframes stepSignal {
  0% { opacity: 0.72; transform: scale(0.82); }
  68%, 100% { opacity: 0; transform: scale(1.26); }
}

@keyframes buttonGlint {
  0%, 58% { opacity: 0; transform: translateX(-220%) rotate(16deg); }
  64% { opacity: 0.82; }
  78%, 100% { opacity: 0; transform: translateX(620%) rotate(16deg); }
}

@keyframes statusHeartbeat {
  0%, 100% { opacity: 0.74; transform: scale(0.86); }
  50% { opacity: 1; transform: scale(1.13); }
}

@keyframes heroFactFloatOne {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-6px) rotate(-1.8deg); }
}

@keyframes heroFactFloatTwo {
  0%, 100% { transform: translateY(0) rotate(3deg); }
  50% { transform: translateY(7px) rotate(1.8deg); }
}

@keyframes heroFactFloatThree {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-5px) rotate(-3.2deg); }
}

@keyframes cockpitLine {
  0%, 100% { opacity: 0.35; transform: scaleY(0.72); }
  50% { opacity: 1; transform: scaleY(1); }
}

@keyframes asideRadar {
  from { opacity: 0.45; transform: rotate(0deg) scale(0.94); }
  50% { opacity: 0.82; transform: rotate(180deg) scale(1.05); }
  to { opacity: 0.45; transform: rotate(360deg) scale(0.94); }
}

@keyframes faqBeacon {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239, 52, 56, 0); transform: translateY(-50%) scale(0.96); }
  50% { box-shadow: 0 0 0 7px rgba(239, 52, 56, 0.11); transform: translateY(-50%) scale(1.04); }
}
