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

  /* --- UTILITY / COMMON --- */
  .button-wrapper {
    width: 100%;
    max-width: 100%;
    height: auto;
    align-self: stretch;
    flex-grow: 0;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 0;
    box-sizing: border-box;
  }

  .Buttons-primary {
    width: 50%;
    flex: 1 1 auto;
    min-width: 0;
    height: auto;
    min-height: 40px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 10px 10px;
    border-radius: 36px;
    background-color: #2b2b2b;
    border: 1px solid #2b2b2b;
    box-sizing: border-box;
    white-space: nowrap;
    overflow: hidden;
  }

  .Buttons-primary:hover {
    background-color: #030303;
    border-color: #030303;
  }

  .Primary {
    width: auto;
    max-width: 100%;
    height: auto;
    min-height: 16px;
    flex-grow: 0;
    font-family: Inter;
    font-size: 12px;
    font-weight: bold;
    font-stretch: normal;
    font-style: normal;
    line-height: 1;
    letter-spacing: -0.25px;
    text-align: center;
    color: #fff;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .Buttons-secondary {
    width: 50%;
    flex: 1 1 auto;
    min-width: 0;
    height: auto;
    min-height: 40px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 10px 10px;
    border-radius: 36px;
    border: solid 1px #2b2b2b;
    background-color: #fff;
    box-sizing: border-box;
    white-space: nowrap;
    overflow: hidden;
  }

  .Buttons-secondary:hover {
    background-color: #ededed;
    border-color: #030303;
  }

  .Buttons-secondary:hover .Secondary {
    color: #030303;
  }

  .Secondary {
    width: auto;
    max-width: 100%;
    height: auto;
    min-height: 16px;
    flex-grow: 0;
    font-family: Inter;
    font-size: 12px;
    font-weight: bold;
    font-stretch: normal;
    font-style: normal;
    line-height: 1;
    letter-spacing: -0.25px;
    text-align: center;
    color: #2b2b2b;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .Placeholder {
    height: 401px;
    align-self: stretch;
    flex-grow: 0;
    border-radius: 16px;
    background-color: #ffffff;
  }

  /* --- HEADER --- */
  .site-header {
    height: 54px;
  }

  .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-header-height: 54px;
  }

  .site-hero-main {
    padding: 0 24px;
  }

  .site-hero-content {
    padding: 0;
    height: auto;
    display: block;
  }

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

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

  .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 {
    display: flex;
    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;
    justify-content: center;
    min-height: 40px;
    font-size: 12px;
    padding: 10px 10px;
    white-space: nowrap;
  }

  .site-hero-btn--primary {
    background-color: #2b2b2b;
    border-color: #2b2b2b;
  }
  .site-hero-btn--primary:hover {
    background-color: #030303;
    border-color: #030303;
  }
  .site-hero-btn--secondary {
    background-color: #fff;
    border-color: #2b2b2b;
    color: #2b2b2b;
  }
  .site-hero-btn--secondary:hover {
    background-color: #ededed;
    border-color: #030303;
    color: #030303;
  }

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

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

  /* --- SECTION 1: THE SHIFT --- */
  .Section1 {
    flex-direction: column;
    align-items: stretch;
    gap: 40px;
    padding: 50px 24px;
  }

  .Section1 .Content {
    width: 100%;
    max-width: 100%;
  }

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

  .section1-shift-visual {
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: 0;
    padding: 0;
  }

  .section1-shift-svg--desktop,
  .section1-shift-svg--tablet {
    display: none;
  }

  .section1-shift-svg--mobile {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
  }

  /* --- SECTION 2: FEATURE --- */
  .Section.Section--feature {
    flex-direction: column;
    align-items: stretch;
    padding: 50px 32px;
    gap: 40px;
    height: auto;
  }

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

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

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

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

  .Section.Section--feature .section-feature-visual {
    width: 100%;
    height: auto;
    padding: 0;
    align-self: center;
    margin: 0;
  }

  /* --- SECTION 3 & 4: HOW IT WORKS / BUILT FOR BOTH SIDES --- */
  .Section.Section--section3 {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 50px 32px;
  }

  .Section.Section--section3   .section-title {
    font-size: 30px;
    line-height: 1.1;
  }

  .Section.Section--section3 > .Placeholder {
    width: min(320px, 100%);
    max-width: 320px;
    height: auto;
    min-height: 0;
    aspect-ratio: var(--placeholder-ratio, 1348 / 854);
    align-self: center;
    justify-self: center;
  }

  .Section--section3 .section4-sub-section {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  /* --- SECTION 5: WORKS EVERYWHERE --- */
  .Section.Section--works {
    flex-direction: column;
    align-items: stretch;
    padding: 50px 32px;
    gap: 40px;
    height: auto;
  }

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

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

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

  .Section.Section--works .section-feature-visual {
    width: 100%;
    height: auto;
    padding: 0;
    align-self: center;
    margin: 0;
  }

  /* --- SECTION 6: TRUST WITHOUT FRICTION --- */
  .Section.Section--trust {
    flex-direction: column;
    align-items: stretch;
    padding: 50px 32px;
    gap: 40px;
    height: auto;
  }

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

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

  .Section.Section--trust .section-feature-visual {
    width: 100%;
    height: auto;
    padding: 0;
    align-self: center;
    margin: 0;
  }

  /* --- SECTION 8: GOVERNANCE --- */
  .Section.Section--governance {
    flex-direction: column;
    align-items: stretch;
    padding: 50px 32px;
    gap: 40px;
    height: auto;
  }

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

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

  .Section.Section--governance .Placeholder {
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: var(--placeholder-ratio, 1348 / 854);
    max-width: 100%;
    align-self: stretch;
  }

  /* --- SECTION 8.5: STANDARDS & INTEROPERABILITY --- */
  .Section.Section--standards {
    flex-direction: column;
    align-items: stretch;
    padding: 50px 32px;
    gap: 40px;
    height: auto;
  }

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

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

  .Section.Section--standards .Placeholder {
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: var(--placeholder-ratio, 1348 / 854);
    max-width: 100%;
    align-self: stretch;
  }

  /* --- SECTION 9: DEVELOPERS --- */
  .Section.Section--developers {
    flex-direction: column;
    align-items: stretch;
    padding: 50px 32px;
    gap: 40px;
    height: auto;
  }

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

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

  .Section.Section--developers .Create-an-account-get-your-keys-and-integrate-MudraID-into-your-agent-runtime-or-your-verification {
    height: auto;
    padding: 0;
  }

  .Section.Section--developers .Placeholder {
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: var(--placeholder-ratio, 1348 / 854);
    max-width: 100%;
    align-self: stretch;
  }

  .Section.Section--developers .button-wrapper {
    margin-top: 40px;
    gap: 12px;
  }

  /* --- SECTION 10: CLOSING --- */
  .Section.Section--closing {
    flex-direction: column;
    align-items: stretch;
    padding: 50px 32px;
    gap: 40px;
    height: auto;
  }

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

  .Section.Section--closing .Build-for-a-future-where-agents-and-websites-interact-securely-at-scale {
    font-size: 30px;
    height: auto;
    padding: 0 0 16px 0;
    line-height: 1.1;
  }

  .Section.Section--closing .Explore-the-system-Review-the-model-Create-an-account-when-youre-ready {
    height: auto;
    padding: 0;
  }

  .Section.Section--closing .Placeholder {
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: var(--placeholder-ratio, 1348 / 854);
    max-width: 100%;
    align-self: stretch;
  }

  .Section.Section--closing .button-wrapper {
    margin-top: 40px;
    gap: 12px;
  }

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

  footer.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: 140px;
  }

  .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,
  .section4-sub-label,
  .Create-an-account-get-your-keys-and-integrate-MudraID-into-your-agent-runtime-or-your-verification,
  .Explore-the-system-Review-the-model-Create-an-account-when-youre-ready,
  .site-hero-eyebrow,
  .site-hero-desc {
    font-size: 14px;
  }
}

/* ── Extra-small phones (≤ 360 px) – tighten button layout further ─────── */
@media (max-width: 360px) {
  .Buttons-primary,
  .Buttons-secondary,
  .site-hero-btn {
    padding: 8px 6px;
    gap: 6px;
    min-height: 36px;
  }

  .Primary,
  .Secondary,
  .site-hero-btn {
    font-size: 11px;
    letter-spacing: -0.2px;
  }
}
