/* Homepage + site footer mobile — Figma 4077:6343 / 6361 / 7480 / 6523 / 6595 / 7058 / 7085 / 7131 / 4205:2219 */

@media (max-width: 768px) {
  /* —— Hero 4077:6343 —— */
  .homepage .hero-stage {
    min-height: 0;
    overflow: hidden;
  }

  .homepage .section-hero {
    padding-top: 72px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .homepage .hero-copy {
    width: 100%;
    max-width: 100%;
    padding-top: 48px;
    gap: 32px;
  }

  .homepage .hero-copy h1 {
    width: 100%;
    font-size: 36px;
    font-weight: 500;
    line-height: 44px;
  }

  .homepage .hero-copy p {
    width: 100%;
    max-width: 100%;
    font-size: 14px;
    line-height: 20px;
  }

  .homepage .hero-buttons {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    width: auto;
  }

  .homepage .hero-buttons .btn {
    width: auto;
  }

  .homepage .hero-principles {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    padding-top: 40px;
    padding-bottom: 40px;
    gap: 0;
  }

  .homepage .principle-card {
    width: 100%;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
    border-right: 0;
    border-bottom: 1px solid #fff;
  }

  .homepage .principle-card:last-child {
    border-bottom: 0;
  }

  .homepage .principle-icon {
    width: 32px;
    height: 32px;
    padding: 6px;
  }

  .homepage .principle-icon img {
    width: 20px;
    height: 20px;
  }

  .homepage .principle-card h2 {
    margin: 0 0 6px;
    font-size: 12px;
    font-weight: 600;
    line-height: 16px;
  }

  .homepage .principle-card p {
    font-size: 12px;
    line-height: 16px;
  }

  /* —— Capability 4077:6361 —— */
  .homepage .capability-section,
  .homepage .gt-capability.capability-section {
    margin-top: 0;
    padding: 0 16px 24px;
  }

  .homepage .gt-capability .gt-capability__panel {
    padding: 24px 20px;
    border-radius: 24px;
  }

  .homepage .gt-capability__title h2 {
    font-size: 36px;
    line-height: 44px;
  }

  .homepage .gt-capability__body {
    flex-direction: column;
    gap: 24px;
  }

  .homepage .gt-capability__steps {
    max-width: none;
    width: 100%;
  }

  .homepage .gt-capability__dot {
    width: 32px;
    height: 32px;
  }

  .homepage .gt-capability__dot-icon {
    width: 14px;
    height: 19px;
  }

  .homepage .gt-capability__copy h3 {
    font-size: 16px;
    line-height: 24px;
  }

  .homepage .gt-capability__copy p {
    font-size: 14px;
    line-height: 20px;
  }

  .homepage .gt-capability__stack {
    width: 100%;
    max-width: 600px;
    margin-inline: auto;
  }

  /* —— Modules 4077:7480 —— */
  .homepage .modules-section {
    padding: 40px 16px;
  }

  .homepage .modules-section .section-heading h2,
  .homepage .modules-heading h2 {
    font-size: 36px;
    line-height: 44px;
  }

  .homepage .modules-stage {
    display: none !important;
  }

  /* Figma 4077:7480 — hub absolute background; stack gap 400px */
  .homepage .modules-content {
    position: relative;
    display: block;
    overflow: visible;
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  .homepage .modules-content__stack {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 400px;
  }

  .homepage .modules-content__group {
    gap: 32px;
  }

  .homepage .modules-hub {
    display: block;
    position: absolute;
    left: 50%;
    top: calc(50% - 118px);
    width: 992px;
    height: 1211px;
    max-width: none;
    margin: 0;
    transform: translate(-50%, -50%);
    overflow: visible;
    pointer-events: none;
    z-index: 0;
    background: url(/gtrace-media/styles/modules/hub-bg.webp);
    background-size: 100%;
    background-repeat: no-repeat;
    background-position: center;
  }

  .homepage .modules-hub__bg {
    position: absolute;
    left: 0;
    top: 0;
    width: 1211px;
    height: 992px;
    max-width: none;
    transform: translate(-50%, -50%) rotate(-90deg) scaleY(-1);
    object-fit: cover;
    opacity: 1;
    pointer-events: none;
  }

  .homepage .modules-hub__core {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 162px;
    height: 162px;
    padding: 23px;
    border-radius: 24px;
    background: #f0f2f5;
    border: 1px solid #fff;
    box-shadow:
      0 20px 24px -4px rgba(16, 24, 40, 0.08),
      0 8px 8px -4px rgba(16, 24, 40, 0.03);
    transform: translate(-50%, -50%);
    z-index: 2;
  }

  .homepage .modules-hub__core img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 32px;
  }

  /* —— Difference 4077:6523 —— */
  .homepage .difference-section {
    padding: 40px 16px;
  }

  .homepage .difference-header {
    width: 100%;
    max-width: 100%;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 16px;
  }

  .homepage .difference-header h2 {
    width: 100%;
    max-width: 100%;
    color: #111322;
    font-size: 36px;
    font-weight: 600;
    line-height: 44px;
  }

  .homepage .difference-header h2 .difference-brand {
    color: var(--primary);
  }

  .homepage .difference-header p {
    width: 100%;
    max-width: 100%;
    padding-top: 0;
    font-size: 16px;
    line-height: 24px;
    color: #30374f;
  }

  .homepage .difference-grid {
    grid-template-columns: 1fr;
    gap: 19px;
  }

  .homepage .difference-card {
    padding: 24px;
    border-radius: 24px;
  }

  .homepage .difference-card img {
    width: 100px;
    height: 100px;
  }

  .homepage .difference-card h3 {
    font-size: 18px;
    line-height: 28px;
  }

  .homepage .difference-card p {
    font-size: 14px;
    line-height: 20px;
  }

  /* Figma 4077:6558 / 4077:6560 */
  .homepage .partner-showcase {
    width: 100%;
    max-width: 100%;
    margin-top: 40px;
  }

  .homepage .partner-banner {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    overflow: hidden;
    margin: 0;
  }

  .homepage .partner-banner img {
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center;
  }

  .homepage .partner-caption {
    margin: 40px 0 24px;
    font-size: 16px;
    line-height: 24px;
    font-weight: 400;
    color: #101828;
    text-align: center;
  }

  .homepage .partner-logos {
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    height: 51px;
    margin: 0;
    padding: 0;
    list-style: none;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .homepage .partner-logos::-webkit-scrollbar {
    display: none;
  }

  .homepage .partner-logos > li {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 51px;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .homepage .partner-logo,
  .homepage .partner-logo-1,
  .homepage .partner-logo-2,
  .homepage .partner-logo-3,
  .homepage .partner-logo-4,
  .homepage .partner-logo-5,
  .homepage .partner-logo-6,
  .homepage .partner-logo-7 {
    display: block;
    width: auto;
    height: 36px;
    max-height: 51px;
    max-width: 96px;
    object-fit: contain;
  }

  /* —— Testimonials 4077:6595 —— */
  .homepage .gt-testimonials {
    padding: 40px 16px;
  }

  .homepage .gt-testimonials__header h2 {
    margin: 0 0 24px;
    font-size: 36px;
    line-height: 44px;
  }

  .homepage .gt-testimonials__carousel .owl-stage-outer {
    overflow: visible;
  }

  .homepage .gt-testimonials .container {
    overflow: hidden;
  }

  .homepage .gt-testimonials__card {
    width: 300px;
    max-width: 100%;
    min-height: 280px;
    height: 280px;
    padding: 20px;
  }

  .homepage .gt-testimonials__quote {
    font-size: 14px;
    line-height: 20px;
  }

  /* —— News 4077:7058 —— */
  .homepage .gt-home-news.news-section {
    padding: 40px 0 40px 16px;
  }

  .homepage .gt-home-news > .container {
    gap: 40px;
    width: 100%;
    max-width: none;
    margin: 0;
    padding-right: 0;
  }

  .homepage .gt-home-news .news-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    padding-right: 16px;
  }

  .homepage .gt-home-news .news-header h2 {
    font-size: 36px;
    line-height: 44px;
    white-space: normal;
  }

  .homepage .gt-home-news .news-grid {
    display: flex;
    grid-template-columns: none;
    gap: 20px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-right: 16px;
    scrollbar-width: none;
  }

  .homepage .gt-home-news .news-grid::-webkit-scrollbar {
    display: none;
  }

  .homepage .gt-home-news .news-card--home {
    flex: 0 0 264px;
    width: 264px;
    scroll-snap-align: start;
  }

  /* —— FAQ 4077:7085 —— */
  .homepage .faq-section {
    padding: 48px 16px;
  }

  .homepage .faq-container {
    width: 100%;
    max-width: 100%;
  }

  .homepage .faq-container > h2,
  .homepage .faq-section h2 {
    font-size: 36px;
    line-height: 44px;
    text-align: center;
  }

  .homepage .faq-trigger {
    font-size: 16px;
    line-height: 24px;
    font-weight: 500;
    gap: 16px;
  }

  .homepage .faq-content,
  .homepage .faq-content p {
    font-size: 14px;
    line-height: 20px;
  }

  /* —— Contact 4077:7131 —— */
  .homepage .gt-home-contact.contact-section {
    padding: 48px 16px;
  }

  .homepage .gt-home-contact .contact-grid {
    flex-direction: column;
    gap: 40px;
  }

  .homepage .gt-home-contact .contact-copy,
  .homepage .gt-home-contact .contact-form {
    width: 100%;
    max-width: 100%;
  }

  .homepage .gt-home-contact .contact-copy h2 {
    font-size: 36px;
    line-height: 44px;
  }

  .homepage .gt-home-contact .contact-meta-row > img {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }

  .homepage .gt-home-contact .contact-meta-row p {
    font-size: 12px;
    line-height: 16px;
  }

  .homepage .gt-home-contact .contact-meta-row strong,
  .homepage .gt-home-contact .contact-meta-row a {
    font-size: 14px;
    line-height: 20px;
  }

  .homepage .gt-home-contact .contact-submit {
    width: auto;
    align-self: flex-end;
  }
}

@media (max-width: 480px) {
  .homepage .hero-buttons {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .homepage .hero-buttons .btn {
    width: auto;
  }
  .homepage .gt-home-news .news-header .btn {
    width: auto;
  }
}
