/* Mobile-only layout corrections. Desktop styling remains in styles.css. */
@media (max-width: 900px) {
  * {
    max-width: 100%;
  }

  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
  }

  main,
  .hero,
  .systems,
  .product,
  .product-copy,
  .product-visual,
  .experience,
  .access,
  footer {
    min-width: 0;
    max-width: 100%;
  }

  .site-header {
    direction: rtl;
    justify-content: space-between;
  }

  .header-action {
    margin-right: 0;
  }

  .hero {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    overflow: hidden;
  }

  .hero-copy {
    width: 100%;
    max-width: 680px;
    margin-inline: auto;
  }

  .hero-copy > * {
    max-width: 100%;
  }

  .hero-stage {
    width: min(100%, 500px);
    height: 460px;
    margin: 0 auto;
    transform: none !important;
    overflow: hidden;
  }

  .fleet-mini {
    width: min(320px, 78vw);
    right: 50%;
    left: auto;
    top: 24px;
    transform: translateX(50%) rotate(1deg);
  }

  .chat-mini {
    width: min(290px, 72vw);
    right: auto;
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%) rotate(-1deg);
  }

  .float-status {
    right: 50%;
    top: 52%;
    max-width: calc(100% - 32px);
    transform: translate(50%, -50%);
  }

  .signal-bar {
    width: calc(100% - 28px);
    margin-inline: 14px;
  }

  .systems {
    width: 100%;
    padding-inline: 14px;
  }

  .product {
    width: 100%;
    display: flex;
    flex-direction: column;
    min-height: 0;
  }

  .fleet-visual,
  .chat-visual {
    width: 100%;
    margin: 0;
    overflow: hidden;
  }

  .dashboard-shell {
    width: 100%;
    min-width: 0;
    margin: 0;
    transform: none !important;
  }

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

  .vehicle {
    grid-template-columns: 38px minmax(0, 1fr) auto;
  }

  .vehicle small {
    display: none;
  }

  .chat-shell {
    width: 100%;
    height: 420px;
    min-width: 0;
    margin: 0;
    grid-template-columns: 62px minmax(0, 1fr);
    transform: none !important;
  }

  .chat-sidebar {
    padding-inline: 8px;
  }

  .conversation {
    min-width: 0;
    padding: 16px;
  }

  .message {
    max-width: 88%;
  }
}

@media (max-width: 600px) {
  .site-header {
    height: 72px;
    padding-inline: 16px;
    gap: 12px;
  }

  .brand > img {
    width: min(112px, 30vw);
  }

  .header-action {
    flex: 0 0 auto;
    padding: 10px 12px;
    font-size: 10px;
    white-space: nowrap;
  }

  .hero {
    padding: 112px 16px 42px;
    gap: 18px;
  }

  .hero-copy {
    text-align: center;
  }

  .eyebrow {
    max-width: 100%;
    padding: 7px 10px;
    font-size: 10px;
  }

  .hero h1 {
    margin: 20px 0 14px;
    font-size: clamp(35px, 10.2vw, 46px);
    line-height: 1.48;
    letter-spacing: -.8px;
  }

  .hero h1 br {
    display: none;
  }

  .hero-copy > p {
    margin: 0 auto;
    font-size: 13px;
    line-height: 2;
  }

  .hero-actions {
    width: 100%;
    margin-top: 23px;
  }

  .hero-stage {
    width: 100%;
    height: 405px;
  }

  .ring-a {
    width: 320px;
    height: 320px;
  }

  .ring-b {
    width: 390px;
    height: 390px;
  }

  .fleet-mini {
    width: min(295px, 82vw);
    top: 16px;
  }

  .chat-mini {
    width: min(260px, 73vw);
    bottom: 12px;
  }

  .float-status {
    top: 51%;
    padding: 10px 12px;
    font-size: 9px;
  }

  .signal-bar {
    width: calc(100% - 28px);
    margin: 4px 14px 78px;
    padding: 17px 6px;
    gap: 2px;
  }

  .signal-bar strong {
    font-size: 19px;
  }

  .signal-bar span {
    padding-inline: 4px;
    font-size: 8px;
    line-height: 1.7;
  }

  .section-intro {
    display: block;
  }

  .product {
    padding: 30px 18px;
    gap: 28px;
  }

  .dashboard-shell {
    padding: 9px;
    border-radius: 19px;
  }

  .dash-stat {
    height: 90px;
    padding: 12px;
  }

  .dash-stat i {
    left: 10px;
    top: 27px;
    width: 33px;
    height: 33px;
  }

  .vehicle-list {
    padding: 11px;
  }

  .vehicle {
    grid-template-columns: 32px minmax(0, 1fr) auto;
    gap: 7px;
  }

  .vehicle-thumb {
    width: 32px;
    height: 27px;
  }

  .chat-shell {
    height: 390px;
    grid-template-columns: 52px minmax(0, 1fr);
    border-radius: 22px;
  }

  .chat-sidebar {
    gap: 12px;
    padding-block: 16px;
  }

  .chat-sidebar > i {
    width: 32px;
    height: 32px;
    border-radius: 10px;
  }

  .conversation {
    padding: 13px;
  }

  .conversation-head b {
    font-size: 10px;
  }

  .messages {
    padding: 20px 0;
  }

  .message {
    max-width: 94%;
    padding: 10px 11px;
  }

  .experience {
    width: calc(100% - 28px);
    margin-inline: 14px;
  }

  .access {
    width: calc(100% - 28px);
    margin-inline: 14px;
  }

  footer {
    width: 100%;
  }
}

@media (max-width: 370px) {
  .brand > img { width: 96px; }
  .header-action { padding-inline: 9px; font-size: 9px; }
  .hero h1 { font-size: 33px; }
  .hero-stage { height: 380px; }
  .fleet-mini { width: 270px; }
  .chat-mini { width: 238px; }
}
