/* ========================================================================
   LaunchLimit v1.5.11 responsive layout
   One responsive source for the menu, hero artwork, safety composition and
   mobile background. Loaded after the base and reference styles.
   ======================================================================== */

html,
body {
  min-width: 0;
  overflow-x: clip;
  background: #06080b;
}

body {
  position: relative;
  isolation: isolate;
}

.section-shell,
.site-header,
.feature-strip,
.site-footer,
.hero-copy,
.hero-visual,
.hero-art,
.dashboard-demo,
.dashboard-window,
.download-panel,
.safety-stage {
  min-width: 0;
  max-width: 100%;
}

/* Keep the mechanical artwork attached to the viewport rather than sizing it
   against the full document height. */
.background-overlay {
  position: fixed;
  inset: 0;
  z-index: -2;
  opacity: 1;
  filter: none;
  background:
    linear-gradient(180deg, rgba(4, 6, 9, 0.42), rgba(4, 6, 9, 0.70)),
    url("assets/launchlimit-website-background.png") center top / cover no-repeat;
}

.page-noise {
  z-index: -1;
}

/* ------------------------------------------------------------------------
   Responsive header menu
   ------------------------------------------------------------------------ */
.nav-toggle {
  position: relative;
  z-index: 4;
  cursor: pointer;
  touch-action: manipulation;
}

.nav-toggle span {
  transform-origin: center;
  transition: transform 180ms ease, opacity 180ms ease, background-color 180ms ease;
}

.nav-toggle[aria-expanded="true"] span {
  background: var(--red);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 980px) {
  .site-header {
    overflow: visible;
  }

  .main-nav {
    display: flex;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    z-index: 80;
    flex-direction: column;
    gap: 4px;
    padding: 12px;
    border: 1px solid #303843;
    border-radius: 16px;
    background: rgba(8, 12, 17, 0.98);
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.58), 0 0 28px rgba(255, 36, 61, 0.08);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px) scale(0.985);
    transform-origin: top center;
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
  }

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

  .main-nav a,
  .main-nav a.active {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    text-align: center;
  }

  .main-nav .nav-cta,
  .main-nav .nav-cta.active {
    margin-top: 4px;
  }

  .nav-toggle {
    display: block;
  }
}

/* ------------------------------------------------------------------------
   Hero artwork
   The inner art remains a 650 x 600 design canvas. JavaScript measures the
   available width and updates --hero-scale plus the wrapper height, so all
   four floating pieces keep their exact proportions at every window size.
   ------------------------------------------------------------------------ */
.hero-visual {
  position: relative;
  width: 100%;
  height: var(--hero-height, 590px);
  min-height: 0;
  margin: 0;
  overflow: visible;
  transform: none !important;
}

.hero-art {
  position: absolute;
  top: 0;
  left: 50%;
  width: 650px;
  height: 600px;
  min-height: 0;
  transform: translateX(-50%) scale(var(--hero-scale, 1)) !important;
  transform-origin: top center;
  will-change: transform;
}

/* Reset the older narrow-screen offsets. The whole composition scales as one
   unit instead of moving each element independently. */
.hero-art .phone {
  top: 2px !important;
  right: 32px !important;
  left: auto !important;
}

.hero-art .controller-unit {
  top: auto !important;
  right: auto !important;
  bottom: 46px !important;
  left: 10px !important;
}

.hero-art .telemetry-rpm {
  top: 100px !important;
  right: auto !important;
  bottom: auto !important;
  left: 120px !important;
}

.hero-art .telemetry-throttle {
  top: auto !important;
  right: -6px !important;
  bottom: 42px !important;
  left: auto !important;
}

@media (max-width: 1180px) {
  :root {
    --shell: min(100% - 32px, 1120px);
  }

  .hero {
    gap: 28px;
  }
}

@media (max-width: 980px) {
  :root {
    --shell: min(100% - 28px, 900px);
  }

  .hero {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 70px 0 50px;
  }

  .hero-copy {
    max-width: 760px;
    margin-inline: auto;
    text-align: center;
  }

  .hero-lead {
    margin-inline: auto;
  }

  .hero-actions,
  .hero-highlights {
    justify-content: center;
  }

  .hero-visual {
    max-width: 650px;
    margin-inline: auto;
  }

  .section-heading {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .dashboard-window,
  .download-panel,
  .waitlist-panel {
    width: 100%;
  }
}

@media (max-width: 760px) {
  :root {
    --shell: min(100% - 22px, 700px);
  }

  .background-overlay {
    background:
      linear-gradient(180deg, rgba(4, 6, 9, 0.22), rgba(4, 6, 9, 0.56)),
      url("assets/launchlimit-website-background.png") center top / 760px auto no-repeat;
    filter: brightness(1.48) contrast(1.10) saturate(1.08);
  }

  .page-noise {
    opacity: 0.08;
  }

  .site-header,
  .site-footer {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }

  .hero {
    padding: 58px 0 42px;
  }

  .hero h1 {
    font-size: clamp(48px, 12vw, 72px);
  }

  .feature-grid,
  .pricing-grid,
  .pricing-grid-compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .dashboard-body aside {
    display: flex;
    grid-auto-flow: unset;
    grid-auto-columns: unset;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
  }

  .dashboard-body aside::-webkit-scrollbar {
    display: none;
  }

  .download-panel,
  .waitlist-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .hero {
    gap: 16px;
    padding-top: 50px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    gap: 10px;
  }

  .hero-actions .button {
    width: 100%;
    min-width: 0;
    padding-inline: 12px;
    font-size: 13px;
  }

  .hero-highlights {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 14px;
    text-align: left;
  }

  .features,
  .app-showcase,
  .pricing,
  .safety,
  .download,
  .waitlist {
    padding-block: 34px;
  }

  .download-panel-simple .download-meta {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 430px) {
  :root {
    --shell: min(100% - 18px, 430px);
  }

  .hero-actions,
  .hero-highlights {
    grid-template-columns: 1fr;
  }

  .feature-grid,
  .pricing-grid,
  .pricing-grid-compact {
    grid-template-columns: 1fr;
  }

  .compact-metrics,
  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .download-panel-simple .download-meta {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 360px) {
  .compact-metrics,
  .metric-grid {
    grid-template-columns: 1fr;
  }
}

/* ------------------------------------------------------------------------
   Safety composition
   The radial desktop layout is retained until 900 px. Below that point the
   labels switch to a stable 3 / 2 / 3 arrangement around the shield instead
   of continuing to compress and drift into one another.
   ------------------------------------------------------------------------ */
.safety-stage {
  position: relative;
  display: block;
  width: 100%;
  min-height: clamp(520px, 48vw, 610px) !important;
  padding: 0;
  overflow: visible;
}

.shield-core-wrap {
  width: clamp(176px, 18vw, 214px);
  height: auto;
  aspect-ratio: 214 / 244;
}

.safety-chip {
  max-width: min(190px, 24%);
}

@media (max-width: 900px) {
  .safety-head {
    margin-bottom: 14px;
  }

  .safety-head h2 {
    font-size: clamp(40px, 7.2vw, 56px);
  }

  .safety-stage {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: minmax(72px, auto) minmax(280px, 1fr) minmax(72px, auto);
    align-items: center;
    gap: 18px 14px;
    min-height: 520px !important;
    padding: 26px 10px;
    overflow: visible;
  }

  .safety-stage::before {
    inset: 10% 4%;
  }

  .shield-core-wrap {
    top: 50%;
    left: 50%;
    width: clamp(166px, 23vw, 196px);
    transform: translate(-50%, -50%);
  }

  .shield-orbit {
    top: 50%;
  }

  .shield-orbit-one {
    width: clamp(230px, 31vw, 280px);
    height: clamp(230px, 31vw, 280px);
  }

  .shield-orbit-two {
    width: clamp(315px, 43vw, 380px);
    height: clamp(315px, 43vw, 380px);
  }

  .safety-chip,
  .chip-top-left,
  .chip-top,
  .chip-top-right,
  .chip-right,
  .chip-bottom-right,
  .chip-bottom,
  .chip-bottom-left,
  .chip-left {
    position: relative;
    inset: auto;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 8px 6px 8px 20px;
    font-size: clamp(9px, 1.5vw, 11px);
    line-height: 1.25;
    text-align: center;
    transform: none;
    animation-name: safetyLabelFloat !important;
  }

  .safety-chip::before {
    left: 5px;
    width: 5px;
    height: 5px;
  }

  .chip-top-left {
    grid-column: 1;
    grid-row: 1;
  }

  .chip-top {
    grid-column: 2;
    grid-row: 1;
  }

  .chip-top-right {
    grid-column: 3;
    grid-row: 1;
  }

  .chip-left {
    grid-column: 1;
    grid-row: 2;
    align-self: center;
    justify-self: start;
    max-width: 190px;
  }

  .chip-right {
    grid-column: 3;
    grid-row: 2;
    align-self: center;
    justify-self: end;
    max-width: 190px;
  }

  .chip-bottom-left {
    grid-column: 1;
    grid-row: 3;
  }

  .chip-bottom {
    grid-column: 2;
    grid-row: 3;
  }

  .chip-bottom-right {
    grid-column: 3;
    grid-row: 3;
  }
}

@media (max-width: 620px) {
  .safety-head h2 {
    font-size: clamp(38px, 10.4vw, 48px);
  }

  .safety-stage {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: minmax(84px, auto) minmax(250px, 1fr) minmax(84px, auto);
    gap: 16px 6px;
    min-height: 520px !important;
    padding: 20px 0;
  }

  .shield-core-wrap {
    width: clamp(146px, 41vw, 172px);
  }

  .shield-orbit-one {
    width: clamp(210px, 58vw, 250px);
    height: clamp(210px, 58vw, 250px);
  }

  .shield-orbit-two {
    width: clamp(280px, 78vw, 330px);
    height: clamp(280px, 78vw, 330px);
  }

  .safety-chip,
  .chip-top-left,
  .chip-top,
  .chip-top-right,
  .chip-right,
  .chip-bottom-right,
  .chip-bottom,
  .chip-bottom-left,
  .chip-left {
    padding: 7px 3px 7px 15px;
    font-size: clamp(8px, 2.45vw, 9.5px);
    letter-spacing: 0.055em;
  }

  .safety-chip::before {
    left: 3px;
    width: 4px;
    height: 4px;
  }

  .chip-left,
  .chip-right {
    max-width: 106px;
  }
}

@media (max-width: 390px) {
  .safety-stage {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: minmax(92px, auto) minmax(230px, 1fr) minmax(92px, auto);
    min-height: 500px !important;
  }

  .shield-core-wrap {
    width: 138px;
  }

  .shield-orbit-one {
    width: 200px;
    height: 200px;
  }

  .shield-orbit-two {
    width: 270px;
    height: 270px;
  }

  .safety-chip,
  .chip-top-left,
  .chip-top,
  .chip-top-right,
  .chip-right,
  .chip-bottom-right,
  .chip-bottom,
  .chip-bottom-left,
  .chip-left {
    font-size: 8px;
    line-height: 1.18;
  }
}

/* Touch devices use fewer simultaneous compositing layers without changing the
   visual structure. */
@media (hover: none), (pointer: coarse) {
  .page-noise,
  .cursor-glow {
    display: none !important;
  }

  .telemetry-card {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .orbit,
  .speed-lines {
    animation-duration: 28s;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-art,
  .shield-core-wrap,
  .safety-chip,
  .nav-toggle span {
    animation: none !important;
    transition: none !important;
  }
}

/* ------------------------------------------------------------------------
   v1.5.12 responsive shield typography
   The shield text is positioned outside the clipped shield face so it cannot
   be cropped by the tapered lower edges. Container-relative sizing keeps the
   logo and both text lines proportional to the shield at every breakpoint.
   ------------------------------------------------------------------------ */
.shield-core-wrap {
  container-type: inline-size;
}

.shield-core {
  display: grid;
  place-items: center;
  padding: 0 0 18%;
}

.shield-logo {
  width: clamp(58px, 36cqw, 76px);
  height: clamp(58px, 36cqw, 76px);
  transform: translateY(-8%);
}

.shield-copy {
  position: absolute;
  z-index: 4;
  left: 50%;
  top: 69%;
  width: 78%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(3px, 2cqw, 7px);
  transform: translate(-50%, -50%);
  text-align: center;
  pointer-events: none;
}

.shield-copy strong {
  display: block;
  width: 100%;
  margin: 0;
  color: #fff;
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(16px, 11cqw, 23px);
  font-weight: 800;
  line-height: 0.94;
  letter-spacing: clamp(0.01em, 0.15cqw, 0.025em);
  text-transform: uppercase;
  white-space: nowrap;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.72);
}

.shield-copy small {
  display: block;
  width: 100%;
  margin: 0;
  color: #aeb7c1;
  font-family: Inter, system-ui, sans-serif;
  font-size: clamp(5.5px, 3.65cqw, 8px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: clamp(0.035em, 0.45cqw, 0.11em);
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.72);
}

@supports not (font-size: 1cqw) {
  .shield-copy strong {
    font-size: clamp(16px, 2.2vw, 23px);
  }

  .shield-copy small {
    font-size: clamp(5.5px, 0.8vw, 8px);
  }
}

@media (max-width: 640px) {
  .shield-copy {
    top: 68%;
    width: 80%;
  }

  .shield-logo {
    transform: translateY(-10%);
  }
}

@media (max-width: 380px) {
  .shield-copy {
    top: 67.5%;
    width: 82%;
  }
}
