@media (max-width: 1200px) {
  .country-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1100px) {
  .site-header {
    background: #22404A;
  }

  .nav-wrap {
    grid-template-columns: auto auto;
    justify-content: space-between;
    gap: 16px;
  }

  .nav-toggle {
    display: grid !important;
    place-items: center;
    justify-self: end;
    position: relative;
    z-index: 70;
    flex: 0 0 44px;
    min-width: 44px;
    opacity: 1 !important;
    visibility: visible !important;
  }

  .nav-toggle span {
    grid-area: 1 / 1;
    margin: 0;
  }

  .nav-toggle span:nth-child(1) {
    transform: translateY(-6px);
  }

  .nav-toggle span:nth-child(3) {
    transform: translateY(6px);
  }

  .nav-actions .btn {
    display: none;
  }

  .nav-actions {
    display: flex !important;
    align-items: center;
    justify-self: end;
    position: relative;
    z-index: 70;
    min-width: 44px;
  }

  .nav-links {
    position: fixed;
    z-index: 60;
    inset: 84px 20px auto;
    display: none;
    width: auto;
    max-height: calc(100vh - 108px);
    overflow-y: auto;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--nav-bg);
    color: var(--navy);
    box-shadow: var(--shadow);
  }

  .site-header.is-open .nav-links {
    display: grid;
    gap: 2px;
  }

  .nav-links a {
    display: block;
    border-radius: var(--radius);
    padding: 14px 16px;
    color: var(--navy);
    opacity: 1;
  }

  .nav-links a:hover,
  .nav-links a.active {
    background: rgba(31, 184, 155, 0.12);
    color: var(--teal);
  }

  .site-header.is-open .nav-toggle span:nth-child(1) {
    transform: rotate(45deg);
  }

  .site-header.is-open .nav-toggle span:nth-child(2) {
    opacity: 0;
  }

  .site-header.is-open .nav-toggle span:nth-child(3) {
    transform: rotate(-45deg);
  }

  .hero-bg {
    object-position: 58% center;
  }

  .hero h1 {
    font-size: clamp(2.75rem, 7vw, 4.5rem);
    max-width: 660px;
  }

  .page-hero h1 {
    font-size: clamp(2.6rem, 7vw, 4.35rem);
    max-width: 720px;
    line-height: 1.04;
  }

  .page-hero p {
    max-width: 620px;
  }

  .brand-story-image img {
    width: min(100%, 500px);
  }

  .why-layout {
    grid-template-columns: minmax(0, 0.9fr) minmax(400px, 1.1fr);
  }

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

  .why-bento-intro,
  .why-bento-visual,
  .why-bento-description {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .why-bento-card-1,
  .why-bento-card-2,
  .why-bento-card-3,
  .why-bento-card-4 {
    grid-column: auto;
  }

  .process-layout {
    grid-template-columns: minmax(280px, 0.86fr) minmax(0, 1fr);
    gap: clamp(28px, 5vw, 56px);
  }

  .process-content {
    top: 104px;
  }

  .grid-3,
  .media-split,
  .contact-panel,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .media-split,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .media-split.why-layout {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
    gap: clamp(26px, 4vw, 52px);
  }

  .media-frame.why-image-frame {
    width: min(100%, 520px);
  }

  .services-stack-heading {
    top: 84px;
  }

  .ai-docs-card {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .ai-docs-content {
    align-content: start;
  }

  .ai-docs-content .btn {
    justify-self: center;
  }

  .rezomate-preview {
    max-width: 860px;
    justify-self: center;
  }

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

@media (max-width: 900px) {
  .process-layout {
    grid-template-columns: 1fr;
  }

  .about-faq-grid {
    grid-template-columns: 1fr;
  }

  .process-content {
    position: static;
    max-width: none;
  }

  .process-image {
    max-width: 620px;
  }

  .process-section .steps {
    padding-left: 10px;
  }

  .process-section .steps::before {
    left: 38px;
  }

  .brand-story-image {
    justify-content: flex-start;
  }

  .brand-story-image img {
    width: min(100%, 560px);
  }

  .brand-story-quote {
    right: 16px;
    bottom: 12px;
    max-width: 240px;
  }

  .media-split.why-layout {
    grid-template-columns: 1fr;
  }

  .media-frame.why-image-frame {
    justify-self: center;
    width: min(100%, 760px);
  }

  .why-bento {
    grid-template-columns: 1fr;
  }

  .why-bento-intro,
  .why-bento-visual,
  .why-bento-description,
  .why-bento-card-1,
  .why-bento-card-2,
  .why-bento-card-3,
  .why-bento-card-4 {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .container {
    width: min(100% - 32px, 1140px);
  }

  .section {
    padding: 68px 0;
  }

  .hero {
    min-height: auto;
    padding: 122px 0 58px;
    background: var(--navy);
  }

  .hero-bg {
    height: clamp(560px, 68vh, 760px);
    height: clamp(560px, 68svh, 760px);
    object-position: 58% top;
  }

  .hero::before {
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.68));
  }

  .hero h1 {
    font-size: clamp(2.55rem, 8.8vw, 3.7rem);
    max-width: 620px;
  }

  .page-hero h1 {
    font-size: clamp(2.35rem, 8vw, 3.6rem);
    max-width: 640px;
  }

  .page-hero p {
    font-size: 1.05rem;
    max-width: 560px;
  }

  .trust-row,
  .grid-2,
  .grid-3,
  .country-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    display: grid;
  }

  .btn {
    width: 100%;
  }

  .cta-band {
    padding: 34px;
  }

  .footer-bottom {
    display: grid;
  }

  .principles-ribbon::before,
  .principles-ribbon::after {
    display: none;
  }

  .principle-card {
    min-height: auto;
  }

  .services-grid {
    --services-final-hold: 72px;
    gap: 112px;
    padding-top: 36px;
    padding-bottom: 180px;
  }

  .services-section .service-feature-card {
    grid-template-columns: 1fr;
    gap: 20px;
    min-height: auto;
    top: var(--stack-top);
  }

  .services-section .service-feature-card + .service-feature-card {
    margin-top: 0;
  }

  .services-section .service-feature-card:nth-child(1) {
    --stack-top: 300px;
  }

  .services-section .service-feature-card:nth-child(2) {
    --stack-offset: 4px;
    --stack-top: 300px;
  }

  .services-section .service-feature-card:nth-child(3) {
    --stack-offset: 8px;
    --stack-top: 300px;
  }

  .services-section .service-feature-card:nth-child(4) {
    --stack-offset: 12px;
    --stack-top: 300px;
  }

  .upcoming-tools-grid {
    grid-template-columns: 1fr;
  }

  .upcoming-tool-card {
    min-height: auto;
  }
}

@media (max-width: 576px) {
  .logo img {
    width: 138px;
  }

  .nav-wrap {
    min-height: 74px;
  }

  .nav-links {
    inset: 74px 16px auto;
    max-height: calc(100vh - 96px);
  }

  .hero-bg {
    height: clamp(520px, 60vh, 700px);
    height: clamp(520px, 60svh, 700px);
    object-position: 60% top;
  }

  .hero h1 {
    font-size: clamp(2.25rem, 10.5vw, 3.25rem);
  }

  .page-hero h1 {
    font-size: clamp(2.15rem, 10.5vw, 3rem);
    line-height: 1.08;
  }

  .services-stack-heading {
    top: 74px;
    margin-bottom: 22px;
    padding: 16px 0 14px;
  }

  .services-stack-heading h2 {
    font-size: clamp(1.75rem, 8vw, 2.35rem);
  }

  .services-stack-heading p {
    font-size: 0.95rem;
  }

  .brand-story-image {
    justify-content: center;
  }

  .brand-story-image img {
    width: min(100%, 440px);
  }

  .decision-layers {
    grid-template-columns: 1fr;
  }

  .brand-story-image {
    display: grid;
    gap: 16px;
  }

  .brand-story-quote {
    position: static;
    max-width: none;
  }

  .media-frame.why-image-frame {
    width: 100%;
  }

  .why-bento {
    gap: 12px;
  }

  .why-bento-intro,
  .why-bento-description,
  .why-bento-card {
    padding: 18px;
  }

  .why-bento-intro h2 {
    font-size: clamp(1.85rem, 8vw, 2.45rem);
  }

  .why-bento-card {
    min-height: auto;
    gap: 12px;
  }

  .why-bento-card span {
    width: 42px;
    height: 42px;
    font-size: 0.78rem;
  }

  .why-process {
    gap: 10px;
    margin-top: 24px;
  }

  .why-process::before {
    display: none;
  }

  .why-process li {
    grid-template-columns: 46px 1fr;
    min-height: auto;
    gap: 12px;
    padding: 12px;
  }

  .why-process-number {
    width: 42px;
    height: 42px;
    font-size: 0.78rem;
  }

  .hero p,
  .page-hero p {
    font-size: 1rem;
  }

  .process-layout {
    gap: 28px;
  }

  .process-content .muted {
    margin-bottom: 20px;
  }

  .process-image {
    margin-top: 20px;
  }

  .process-section .steps {
    gap: 16px;
    padding-left: 0;
  }

  .process-section .steps::before {
    top: 22px;
    bottom: 22px;
    left: 23px;
  }

  .step-card,
  .process-section .step-card {
    grid-template-columns: 46px 1fr;
    gap: 14px;
    padding: 18px;
  }

  .step-card::before,
  .process-section .step-card::before {
    width: 46px;
    height: 46px;
    border-width: 4px;
  }

  .service-card,
  .detail-card,
  .contact-info,
  .form-card {
    padding: 22px;
  }

  .services-section .service-feature-card + .service-feature-card {
    margin-top: 0;
  }

  .services-section .service-feature-card {
    gap: 16px;
    padding: 22px;
  }

  .services-grid {
    --services-final-hold: 72px;
    gap: 96px;
    padding-top: 28px;
    padding-bottom: 150px;
  }

  .services-section .service-feature-card:nth-child(1) {
    --stack-top: 300px;
  }

  .services-section .service-feature-card:nth-child(2) {
    --stack-offset: 3px;
    --stack-top: 300px;
  }

  .services-section .service-feature-card:nth-child(3) {
    --stack-offset: 6px;
    --stack-top: 300px;
  }

  .services-section .service-feature-card:nth-child(4) {
    --stack-offset: 9px;
    --stack-top: 300px;
  }

  .services-section .service-feature-card .icon {
    width: 44px;
    height: 44px;
    margin-bottom: 14px;
  }

  .service-chip {
    margin-bottom: 14px;
  }

  .services-section .service-feature-card .check-list {
    margin-top: 0;
    padding: 14px;
  }

  .ai-docs-content .btn {
    width: 100%;
  }

  .ai-doc-feature {
    padding: 18px 18px 18px 72px;
  }

  .ai-doc-feature span {
    top: 18px;
    left: 18px;
    width: 38px;
    height: 38px;
  }

  .upcoming-tool-card {
    padding: 22px;
  }
}

@media (max-width: 400px) {
  .container {
    width: min(100% - 24px, 1140px);
  }

  .nav-links {
    inset-inline: 12px;
  }

  .trust-item {
    padding: 14px;
  }

  .country-card {
    min-height: 104px;
    padding: 16px 12px;
  }

  .country-card img {
    width: min(72px, 100%);
    height: 46px;
  }

  .process-layout {
    gap: 24px;
  }

  .brand-story-image img {
    width: min(100%, 360px);
  }

  .hero h1 {
    font-size: clamp(2.05rem, 10vw, 2.8rem);
  }

  .page-hero h1 {
    font-size: clamp(1.95rem, 9.8vw, 2.65rem);
  }

  .step-card,
  .process-section .step-card {
    grid-template-columns: 40px 1fr;
    gap: 12px;
    padding: 16px;
  }

  .step-card::before,
  .process-section .step-card::before {
    width: 40px;
    height: 40px;
  }

  .process-section .steps::before {
    left: 20px;
  }

  .ai-doc-feature {
    padding: 16px 16px 16px 58px;
  }

  .ai-doc-feature span {
    position: absolute;
    top: 16px;
    left: 16px;
    margin-bottom: 0;
  }

  .rezomate-browser-bar strong {
    max-width: 190px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .rezomate-screens {
    aspect-ratio: 4 / 3;
  }

  .rezomate-screen {
    --reel-enter-x: 10px;
    --reel-enter-y: 8px;
    --reel-pan-x: -6px;
    --reel-pan-y: -4px;
    --reel-exit-x: -8px;
    --reel-exit-y: -6px;
    inset: 14px;
  }

  .rezomate-screen:nth-child(2),
  .rezomate-screen:nth-child(3),
  .rezomate-screen:nth-child(4),
  .rezomate-screen:nth-child(5) {
    --reel-enter-x: -8px;
    --reel-enter-y: 8px;
    --reel-pan-x: 6px;
    --reel-pan-y: -4px;
    --reel-exit-x: 8px;
    --reel-exit-y: -6px;
  }

  .rezomate-screen figcaption {
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: auto;
  }

  .whatsapp-float {
    right: 12px;
    bottom: 12px;
    padding-inline: 14px;
  }
}
