.landing-mobile-navigation,
.landing-mobile-menu {
  display: none;
}

@media (max-width: 1159px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
  }

  .landing-page {
    width: 100% !important;
    min-width: 0 !important;
    overflow: hidden;
  }

  .landing-nav {
    top: 18px !important;
    right: 20px !important;
    left: 20px !important;
    width: auto !important;
    height: 48px !important;
    justify-content: space-between;
    gap: 14px !important;
    padding: 6px 8px 6px 14px !important;
    transform: none !important;
  }

  .landing-nav-primary,
  .landing-nav-actions {
    display: none !important;
  }

  .landing-nav-home svg {
    width: 20px !important;
    height: 20px !important;
  }

  .landing-mobile-navigation {
    display: block;
  }

  .landing-mobile-toggle {
    display: inline-flex;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    padding: 0;
    color: #09090b;
    background: #fff;
    font: inherit;
    cursor: pointer;
    list-style: none;
  }

  .landing-mobile-toggle::-webkit-details-marker {
    display: none;
  }

  .landing-mobile-toggle span,
  .landing-mobile-toggle::before,
  .landing-mobile-toggle::after {
    position: absolute;
    width: 15px;
    height: 1.5px;
    border-radius: 999px;
    content: "";
    background: currentColor;
    transition:
      transform 180ms ease,
      opacity 180ms ease;
  }

  .landing-mobile-toggle::before {
    transform: translateY(-5px);
  }

  .landing-mobile-toggle::after {
    transform: translateY(5px);
  }

  .landing-mobile-navigation[open] .landing-mobile-toggle span {
    opacity: 0;
  }

  .landing-mobile-navigation[open] .landing-mobile-toggle::before {
    transform: rotate(45deg);
  }

  .landing-mobile-navigation[open] .landing-mobile-toggle::after {
    transform: rotate(-45deg);
  }

  .landing-mobile-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    left: 0;
    max-height: min(72vh, 610px);
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 24px;
    padding: 10px;
    color: #fff;
    background: linear-gradient(
      135deg,
      rgba(54, 51, 56, 0.98),
      rgba(30, 28, 32, 0.96)
    );
    box-shadow: 0 24px 70px rgba(9, 9, 11, 0.34);
    backdrop-filter: blur(26px) saturate(1.4);
    -webkit-backdrop-filter: blur(26px) saturate(1.4);
  }

  .landing-mobile-navigation[open] .landing-mobile-menu {
    display: grid;
    gap: 4px;
    animation: landing-mobile-menu-in 240ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  .landing-mobile-menu a {
    display: flex;
    min-height: 46px;
    align-items: center;
    justify-content: space-between;
    border-radius: 13px;
    padding: 0 14px;
    color: #fff;
    font-size: 15px;
    transition:
      background 160ms ease,
      box-shadow 160ms ease;
  }

  .landing-mobile-menu a:hover,
  .landing-mobile-menu a:focus-visible {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  }

  .landing-mobile-menu a:focus-visible {
    outline: 2px solid #fff;
    outline-offset: -2px;
  }

  .landing-mobile-menu-group + .landing-mobile-menu-group {
    margin-top: 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 6px;
  }

  .landing-mobile-menu-label {
    display: block;
    padding: 8px 14px 4px;
    color: rgba(255, 255, 255, 0.52);
    font-family: "Geist Mono", monospace;
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }

  .landing-mobile-menu-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 8px;
  }

  .landing-mobile-menu-actions a {
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.08);
  }

  .landing-mobile-menu-actions a:last-child {
    color: #09090b;
    background: #fff;
  }

  .landing-hero {
    min-height: 760px;
    aspect-ratio: auto !important;
    background-position: 58% center !important;
  }

  .landing-hero-stage {
    max-width: 100% !important;
  }

  .landing-hero-face {
    min-height: 760px;
    padding: 106px 20px 52px !important;
  }

  .landing-hero-front h1 {
    max-width: 9ch;
    font-size: clamp(42px, 13vw, 54px) !important;
    line-height: 0.98 !important;
  }

  .landing-hero-front p {
    max-width: 34ch !important;
    font-size: 15px !important;
    line-height: 1.6 !important;
  }

  .landing-hero-front > div:last-child,
  .landing-hero-back > div:nth-last-child(2) {
    flex-wrap: wrap;
  }

  .landing-hero-back h2 {
    max-width: 10ch;
    font-size: 38px !important;
  }

  .landing-hero-back > div[style*="position:relative"] > div:first-child,
  [data-screen-label="One install"]
    > div[style*="position:relative"]
    > div:first-child {
    flex-direction: column;
  }

  .landing-hero-back > div[style*="position:relative"] > div:first-child > div,
  [data-screen-label="One install"]
    > div[style*="position:relative"]
    > div:first-child
    > div {
    width: 100%;
  }

  .landing-page section[data-screen-label] > div[style*="max-width:1160px"] {
    width: 100%;
    padding: 72px 20px !important;
  }

  [data-screen-label="Validation"] > div {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  [data-screen-label="Validation"] > div > div {
    grid-column: 1 !important;
    grid-row: auto !important;
  }

  [data-screen-label="Validation"] > div > div:nth-child(1) {
    padding: 22px 20px !important;
    border-right: 0 !important;
  }

  [data-screen-label="Validation"] > div > div:nth-child(2) {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  [data-screen-label="Validation"] > div > div:nth-child(2) > div {
    min-height: 70px;
    justify-content: flex-start !important;
    padding: 18px 20px !important;
    font-size: 12px !important;
  }

  [data-screen-label="Validation"] > div > div:nth-child(3),
  [data-screen-label="Validation"] > div > div:nth-child(4) {
    min-width: 0;
  }

  [data-screen-label="Validation"] > div > div:nth-child(3) > span:first-child,
  [data-screen-label="Validation"] > div > div:nth-child(4) > span:last-child {
    width: 88px !important;
    padding-right: 12px !important;
    padding-left: 20px !important;
  }

  [data-screen-label="Validation"] > div > div:nth-child(3) > span:nth-child(2),
  [data-screen-label="Validation"]
    > div
    > div:nth-child(4)
    > span:nth-last-child(2) {
    width: 52px !important;
    margin: 0 !important;
  }

  [data-screen-label="Validation"] > div > div:nth-child(3) > div,
  [data-screen-label="Validation"] > div > div:nth-child(4) > div {
    min-width: 0;
    padding-right: 0 !important;
    padding-left: 16px !important;
  }

  [data-screen-label="Validation"] > div > div:nth-child(5) {
    flex-direction: row !important;
    flex-wrap: wrap;
    gap: 16px !important;
    border-top: 1px solid #e4e4e7;
    border-left: 0 !important;
    padding: 22px 20px !important;
  }

  [data-screen-label="Validation"] > div > div:nth-child(5) > a {
    width: 100%;
    margin-top: 0 !important;
  }

  [data-screen-label="Agent trace"] > div,
  [data-screen-label="Hosted runtime"] > div,
  [data-screen-label="Wallet agnostic"] > div {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 40px !important;
  }

  [data-screen-label="Value propositions"] > div > div:last-child,
  [data-screen-label="Problem"] > div > div:nth-child(2) {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  [data-screen-label="Problem"] > div > div:nth-child(2) > div:nth-child(2) {
    display: none !important;
  }

  [data-screen-label="Problem"] > div {
    padding-left: 20px !important;
  }

  [data-screen-label="Wallet agnostic"] > div {
    align-items: start !important;
  }

  [data-screen-label="Feature matrix"] > div > div:last-child {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  [data-screen-label="Feature matrix"] .om-fm-cell {
    grid-column: 1 !important;
    grid-row: auto !important;
    min-height: 0 !important;
    padding: 28px 24px !important;
  }

  [data-screen-label="Feature matrix"] .om-fm-cell .om-fm-link {
    opacity: 1;
    color: #5288c2 !important;
  }

  [data-screen-label="One install"] {
    padding: 72px 20px 80px !important;
  }

  [data-screen-label="One install"] h2 {
    font-size: 38px !important;
  }

  [data-screen-label="FAQ"] {
    padding: 72px 20px !important;
  }

  [data-screen-label="Footer"] {
    padding: 48px 20px 0 !important;
  }

  [data-screen-label="Footer"] > div > div:first-child > div:last-child {
    width: 100%;
    justify-content: space-between;
    gap: 28px !important;
  }

  [data-screen-label="Footer"] > div > div:last-child {
    align-items: flex-start !important;
    gap: 18px;
    flex-direction: column;
  }

  @keyframes landing-mobile-menu-in {
    from {
      opacity: 0;
      transform: translateY(-8px) scale(0.98);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }
}

@media (max-width: 420px) {
  [data-screen-label="Validation"] > div > div:nth-child(2) {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .landing-mobile-menu,
  .landing-mobile-menu a,
  .landing-mobile-toggle span,
  .landing-mobile-toggle::before,
  .landing-mobile-toggle::after {
    animation: none;
    transition: none;
  }
}
