/* Mobile – base (covers all mobile widths up to 576px) */
@media (max-width: 576px) {
  html {
    background-position: 25% 0, 50% 0, 75% 0;
  }

  /* --- HEADER --- */
  .site-header-inner {
    padding: 8px 24px;
  }

  .site-header-nav {
    display: none;
  }

  .site-header-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
  }

  .site-header-menu-btn svg {
    display: block;
  }

  .home-nav-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: block;
    visibility: hidden;
    pointer-events: none;
  }

  .home-nav-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 10, 0.34);
    opacity: 0;
    transition: opacity 0.28s ease;
  }

  .home-nav-modal-panel {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 16px;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 18px 50px rgba(10, 10, 10, 0.18);
    transform: translateY(-18px) scale(0.98);
    opacity: 0;
    transition: transform 0.28s ease, opacity 0.28s ease;
    overflow: hidden;
  }

  .home-nav-modal.is-open {
    visibility: visible;
    pointer-events: auto;
  }

  .home-nav-modal.is-open .home-nav-modal-backdrop {
    opacity: 1;
  }

  .home-nav-modal.is-open .home-nav-modal-panel {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  .home-nav-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 18px 12px;
  }

  .home-nav-modal-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #533afd;
    font-family: Inter;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
  }

  .home-nav-modal-logo img {
    display: block;
    width: 32px;
    height: 32px;
  }

  .home-nav-modal-close {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(10, 10, 10, 0.1);
    border-radius: 999px;
    background: #f7f8fb;
    cursor: pointer;
  }

  .home-nav-modal-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 8px 18px 20px;
  }

  .home-nav-modal-nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 48px;
    padding: 0 16px;
    border-radius: 14px;
    color: #0a0a0a;
    background: #f7f8fb;
    font-family: Inter;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
  }

  .home-nav-modal-nav a span {
    color: #533afd;
  }

  .home-nav-modal-nav .home-nav-modal-cta {
    color: #ffffff;
    background: #2b2b2b;
  }

  .home-nav-modal-nav .home-nav-modal-cta span {
    color: #ffffff;
  }

  .site-header-logo-text {
    font-size: 18px;
  }

  .site-header-logo-img {
    height: 38px;
    max-width: min(210px, 58vw);
  }

  /* --- HERO --- */
  .site-hero {
    height: 723px;
    min-height: 723px;
  }

  .site-hero-bg-video {
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: 10% center;
  }

  .site-hero-content {
    margin-top: 95px;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: calc(723px - 95px);
    box-sizing: border-box;
  }

  .site-hero-copy {
    max-width: 100%;
    align-items: flex-start;
  }

  .site-hero-title {
    font-size: 45px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.25px;
    width: 100%;
    text-align: left;
  }

  .site-hero-title-line {
    display: inline;
  }

  .site-hero-eyebrow {
    text-align: left;
  }

  .site-hero-desc {
    font-size: 16px;
    font-weight: normal;
    line-height: 1.5;
    letter-spacing: -0.25px;
    text-align: center;
    width: 100%;
  }

  .site-hero-actions {
    flex-direction: row;
    flex-wrap: nowrap;
    width: 100%;
    max-width: 100%;
    gap: 12px;
    justify-content: center;
  }

  .site-hero-btn {
    width: 50%;
    flex: 1 1 auto;
    font-size: 12px;
    padding: 10px 10px;
    white-space: nowrap;
    justify-content: center;
    min-height: 40px;
  }

  /* Hide dashboard image on mobile */
  .site-hero-dashboard {
    display: none;
  }

  .site-hero-dashboard-wide {
    display: none;
  }

  /* --- FOOTER --- */
  .site-footer {
    height: auto;
    padding: 0;
  }

  .site-footer::before {
    display: none;
  }

  .site-footer-inner {
    padding: 50px 32px;
    box-sizing: border-box;
  }

  .site-footer-main {
    flex-direction: column;
    gap: 48px;
    flex-wrap: nowrap;
  }

  .site-footer-brand {
    width: 100%;
    min-width: 0;
  }

  .site-footer-logo {
    gap: 8px;
    font-size: 16px;
  }

  .site-footer-logo-img {
    width: 28px;
    height: 28px;
  }

  .site-footer-logo-text {
    font-size: 18px;
    width: auto;
    height: auto;
  }

  .site-footer-desc {
    width: 100%;
  }

  .site-footer-social {
    width: 100%;
    justify-content: space-between;
    gap: 0;
  }

  .site-footer-nav {
    width: 100%;
    max-width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: flex-start;
    gap: 24px 16px;
  }

  .site-footer-col {
    max-width: 100%;
    min-width: 0;
  }

  .site-footer-col:last-child {
    max-width: 100%;
  }

  .site-footer-col--links {
    max-width: 100%;
  }

  .site-footer-contact {
    min-width: 0;
    max-width: 100%;
  }

  .site-footer-contact-item {
    min-width: 0;
    max-width: 100%;
  }

  .site-footer-contact-item a {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    min-width: 0;
  }

  .site-footer-copyright {
    margin-top: 48px;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
  }

  .site-footer-legal {
    gap: 24px;
    justify-content: center;
  }

  /* Page content: 14px on mobile (desktop uses 16px) */
  .section-label,
  .section-content,
  .section-list,
  .site-hero-eyebrow,
  .site-hero-desc {
    font-size: 14px;
  }

  /* --- SECTION LAYOUT (mobile) --- */
  .Section {
    flex-direction: column;
    align-items: stretch;
    padding: 50px 32px;
    gap: 40px;
    height: auto;
  }

  .Section .Content {
    max-width: 100%;
    align-items: flex-start;
    gap: 16px;
    padding: 0;
  }

  .section-title {
    font-size: 30px;
    height: auto;
    padding: 0;
    line-height: 1.1;
  }

  .section-content {
    height: auto;
    padding: 0;
  }

  .section-list {
    padding-top: 0;
  }

  .Placeholder {
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 640 / 400;
    align-self: center;
    margin: 0;
  }

  /* --- FEAT HERO (mobile) --- */
  .feat-hero {
    height: auto;
    min-height: auto;
    overflow: visible;
  }

  .feat-hero-inner {
    flex-direction: column;
    align-items: stretch;
    padding: 110px 24px 48px;
    gap: 40px;
  }

  .feat-hero-title {
    font-size: 40px;
    letter-spacing: -1.2px;
  }

  .feat-hero-desc {
    font-size: 15px;
    max-width: 100%;
  }

  .feat-hero-actions {
    flex-direction: row;
    flex-wrap: nowrap;
    width: 100%;
    max-width: 100%;
    gap: 12px;
    justify-content: center;
  }

  .feat-hero-btn {
    width: 50%;
    flex: 1 1 auto;
    font-size: 14px;
    padding: 12px 16px;
    white-space: nowrap;
    justify-content: center;
  }

  .feat-hero-visual {
    flex: none;
    width: 100%;
    max-width: 100%;
  }

  .feat-code-card__code {
    font-size: 12px;
    line-height: 1.65;
  }

  .page-feature .feat-hero-inner {
    align-items: center;
    padding: 96px 24px 48px;
    gap: 0;
  }

  .page-feature .feat-hero-title {
    font-size: 35px;
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.25px;
    padding: 12px 0;
    margin-bottom: 24px;
  }

  .page-feature .feat-hero-title-accent {
    line-height: 1.15;
    padding-bottom: 0.12em;
  }

  .cta-group {
    width: 100%;
    margin-top: 24px;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 12px;
  }

  .cta-button {
    width: 50%;
    flex: 1 1 auto;
    justify-content: center;
    font-size: 12px;
    padding: 10px 10px;
    white-space: nowrap;
    min-height: 40px;
  }

  .cta-button.primary:hover {
    background-color: #030303 !important;
    border-color: #030303 !important;
  }

  .cta-button.secondary:hover {
    background-color: #ededed !important;
    border-color: #030303 !important;
    color: #030303 !important;
  }

  .page-feature .feat-hero-actions {
    width: 100%;
    max-width: 100%;
  }

  .page-feature .feat-hero .site-hero-btn {
    width: 50%;
    flex: 1 1 auto;
    justify-content: center;
    font-size: 12px;
    padding: 10px 10px;
    white-space: nowrap;
    min-height: 40px;
  }
  
  .feat-status-row {
    gap: 8px 16px;
  }
}

/* ── Extra-small phones (≤ 360 px) – tighten button layout further ─────── */
@media (max-width: 360px) {
  .site-hero-btn,
  .cta-button,
  .page-feature .feat-hero .site-hero-btn {
    padding: 8px 6px;
    gap: 6px;
    min-height: 36px;
    font-size: 11px;
  }
}
