body {
  overflow-x: hidden;
  overflow-x: clip;
}

.footer-bottom a {
  color: inherit;
}

.mobile-nav {
  display: none;
  position: relative;
  flex: none;
}

.mobile-nav summary {
  display: flex;
  min-width: 72px;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  color: white;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.mobile-nav summary::-webkit-details-marker {
  display: none;
}

.mobile-nav summary i {
  color: var(--teal);
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  transition: transform 0.2s ease;
}

.mobile-nav[open] summary i {
  transform: rotate(45deg);
}

.mobile-nav nav {
  display: grid;
  position: absolute;
  z-index: 30;
  top: calc(100% + 10px);
  right: 0;
  width: min(280px, calc(100vw - 30px));
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 9px;
  background: rgba(4, 17, 31, 0.98);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(18px);
}

.mobile-nav nav a {
  display: flex;
  min-height: 44px;
  align-items: center;
  padding: 0 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
}

.mobile-nav nav a:last-child {
  border-bottom: 0;
}

.mobile-nav .mobile-nav-phone {
  color: var(--teal);
  font-weight: 700;
}

@media (max-width: 1024px) {
  .mobile-nav {
    display: block;
  }
}

@media (max-width: 900px) and (min-width: 761px) {
  .hero {
    min-height: auto;
    padding: 126px 0 76px;
  }

  .hero-layout,
  .method-layout,
  .advantage-layout,
  .about-layout,
  .faq-layout,
  .contact-inner {
    grid-template-columns: 1fr;
  }

  .hero-layout {
    gap: 46px;
  }

  .hero h1 {
    font-size: 52px;
  }

  .growth-console {
    width: min(100%, 640px);
    transform: none;
  }

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

  .challenge-grid article:nth-child(2) {
    border-right: 0;
  }

  .challenge-grid article:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .service-grid,
  .ai-bento {
    grid-template-columns: repeat(2, 1fr);
  }

  .ai-card-main {
    grid-column: 1 / -1;
    grid-row: auto;
    min-height: 430px;
  }

  .advantage-copy {
    position: static;
  }

  .contact-inner {
    gap: 44px;
  }

  .footer-main {
    grid-template-columns: 1.4fr 1fr 1fr;
  }

  .footer-contact {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(calc(100% - 30px), 600px);
  }

  .site-header {
    height: 68px;
  }

  .nav-wrap {
    gap: 12px;
  }

  .brand {
    min-height: 44px;
    min-width: 0;
  }

  .brand-copy {
    min-width: 0;
  }

  .brand-copy small {
    white-space: nowrap;
  }

  .mobile-nav summary {
    min-width: 68px;
  }

  .nav-phone {
    display: none;
  }

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

  .hero-layout {
    gap: 32px;
  }

  .eyebrow {
    max-width: 100%;
    padding: 7px 10px;
    line-height: 1.5;
    white-space: normal;
  }

  .hero h1 {
    margin: 22px 0 20px;
    font-size: clamp(40px, 12.2vw, 54px);
  }

  .hero-actions .button {
    min-height: 52px;
  }

  .growth-console {
    width: 100%;
    min-width: 0;
  }

  .chart-area {
    height: 132px;
  }

  .chart-topline {
    gap: 12px;
  }

  .chart-topline b {
    text-align: right;
  }

  .console-footer {
    flex-wrap: wrap;
    gap: 8px 12px;
  }

  .section {
    padding: 60px 0;
  }

  .section-heading h2,
  .method-intro h2,
  .about-copy h2,
  .advantage-copy h2,
  .faq-intro h2 {
    font-size: clamp(30px, 9.2vw, 35px);
  }

  .challenge-grid article {
    min-height: 0;
    padding: 25px 22px;
  }

  .challenge-media,
  .service-media,
  .method-photo {
    height: 190px;
  }

  .button:hover,
  .challenge-grid article:hover,
  .service-card:hover {
    transform: none;
    box-shadow: none;
  }

  .service-card:hover .service-media {
    transform: none;
  }

  .ai-card-main {
    min-height: 390px;
  }

  .case-side {
    min-height: 200px;
  }

  .advantage-copy {
    position: static;
  }

  .advantage-grid {
    grid-template-columns: 1fr;
  }

  .advantage-grid article {
    min-height: 0;
    padding: 23px 0;
  }

  .advantage-grid article:nth-child(odd) {
    margin-right: 0;
    border-right: 0;
  }

  .about-visual {
    min-height: 320px;
    padding: 28px;
  }

  .about-number {
    font-size: 90px;
  }

  .faq-list summary {
    grid-template-columns: 35px minmax(0, 1fr) 22px;
    min-height: 72px;
    font-size: 14px;
  }

  .faq-list details p {
    padding-right: 20px;
    padding-left: 35px;
  }

  .contact-section {
    padding: 60px 0;
  }

  .contact-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }

  .contact-copy h2 {
    font-size: clamp(36px, 11vw, 42px);
  }

  .contact-card {
    min-width: 0;
    padding: 22px;
  }

  .lead-form-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .lead-form label,
  .lead-form input,
  .lead-form textarea {
    min-width: 0;
  }

  .lead-form input,
  .lead-form textarea {
    font-size: 16px;
  }

  .lead-form-status,
  .contact-direct > span {
    font-size: 12px;
  }

  .contact-direct {
    flex-wrap: wrap;
  }

  .contact-phone {
    white-space: nowrap;
  }

  .site-footer {
    padding-bottom: 24px;
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 42px 25px;
  }

  .footer-brand,
  .footer-contact {
    grid-column: 1 / -1;
  }

  .text-link,
  .footer-links a {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    margin-bottom: calc(82px + env(safe-area-inset-bottom));
    color: rgba(255, 255, 255, 0.62);
    font-size: 12px;
    line-height: 1.7;
  }

  .footer-bottom span {
    overflow-wrap: anywhere;
  }

  .footer-bottom a {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    text-decoration: underline;
    text-underline-offset: 3px;
  }

  .mobile-cta {
    display: block;
    position: fixed;
    z-index: 50;
    right: 10px;
    bottom: max(10px, env(safe-area-inset-bottom));
    left: 10px;
    padding: 4px;
    border-radius: 9px;
    background: rgba(6, 23, 41, 0.93);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(15px);
  }

  .mobile-cta a {
    display: flex;
    min-height: 54px;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
    border-radius: 6px;
    background: var(--teal);
    color: var(--ink);
  }

  .mobile-cta span {
    font-size: 11px;
    font-weight: 700;
  }

  .mobile-cta strong {
    font: 750 13px Arial;
  }

  body:has(.lead-form :focus) .mobile-cta {
    display: none;
  }
}

@media (max-width: 430px) {
  .container {
    width: min(calc(100% - 24px), 600px);
  }

  .brand {
    gap: 9px;
  }

  .brand-copy small {
    font-size: 7px;
    letter-spacing: 0.13em;
  }

  .mobile-nav summary {
    min-width: 64px;
    padding: 0 10px;
  }

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

  .growth-console {
    padding: 14px;
  }

  .console-chart {
    padding: 14px 12px;
  }

  .console-cards > div {
    padding: 9px 6px;
  }

  .contact-card {
    padding: 18px;
  }
}

@media (max-width: 760px) and (max-height: 650px) {
  .mobile-cta {
    display: none;
  }

  .footer-bottom {
    margin-bottom: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
