@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Poppins:wght@500;600;700;800&display=swap");

:root {
  --color-primary: #0b63ce;
  --color-primary-dark: #063b82;
  --color-secondary: #17b3e8;
  --color-accent: #ffb020;
  --color-bg-dark: #07182f;
  --color-bg-soft: #f4f8ff;
  --color-bg-light: #ffffff;
  --color-text-dark: #102033;
  --color-text-muted: #5d6b7d;
  --color-text-light: #f5f9ff;
  --color-border: #dce7f5;
  --shadow-sm: 0 10px 24px rgba(16, 32, 51, 0.08);
  --shadow-lg: 0 24px 60px rgba(16, 32, 51, 0.14);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--color-text-dark);
  line-height: 1.65;
  background: #fff;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

.screen-reader {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.hidden {
  display: none !important;
}

.site-wrapper {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

main.site-wrapper:not(.legal-page) {
  width: 100%;
  max-width: none;
}

main.site-wrapper:not(.legal-page) > .section:not(.tech-hero),
main.site-wrapper:not(.legal-page) > .trust-bar {
  width: min(1180px, calc(100% - 2rem));
  margin-left: auto;
  margin-right: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(11, 99, 206, 0.12);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 78px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.72rem;
  font-family: "Poppins", sans-serif;
  font-size: 0;
  font-weight: 800;
  color: var(--color-primary-dark);
}

.logo::before {
  content: "MW";
  display: inline-grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 14px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.32), transparent 42%),
    linear-gradient(135deg, #052d68 0%, #0b63ce 52%, #17b3e8 100%);
  color: #fff;
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  box-shadow: 0 16px 34px rgba(11, 99, 206, 0.26);
}

.logo::after {
  content: "mywebresolution";
  color: var(--color-primary-dark);
  font-size: 1.18rem;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.15rem;
}

.nav-links a {
  position: relative;
  padding: 0.35rem 0;
  color: #21354d;
  font-size: 0.94rem;
  font-weight: 700;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--color-secondary);
  transition: transform 0.22s ease;
}

.nav-links a:hover {
  color: var(--color-primary);
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.cta,
.premium-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.72rem 1.2rem;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: #fff;
  font-weight: 800;
  box-shadow: 0 16px 34px rgba(11, 99, 206, 0.24);
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
}

.cta:hover,
.premium-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 44px rgba(11, 99, 206, 0.3);
  filter: saturate(1.08);
}

.premium-cta-secondary {
  border: 1px solid rgba(11, 99, 206, 0.18);
  background: #fff;
  color: var(--color-primary-dark);
  box-shadow: var(--shadow-sm);
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: #fff;
  color: var(--color-primary-dark);
  cursor: pointer;
}

.mobile-toggle span {
  width: 19px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.mobile-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 0.8rem;
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 0 0 1rem;
}

.mobile-menu.open {
  display: flex;
}

.section {
  padding: 4.5rem 0;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.8fr);
  align-items: center;
  gap: 3rem;
  width: min(1180px, calc(100% - 2rem));
  max-width: none;
  margin: 0 auto;
  padding: 5.25rem 0;
}

.tech-hero {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 6rem max(1rem, calc((100vw - 1180px) / 2)) 5rem;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 18% 20%, rgba(23, 179, 232, 0.46), transparent 28%),
    radial-gradient(circle at 86% 12%, rgba(255, 176, 32, 0.18), transparent 22%),
    linear-gradient(135deg, #062b5f 0%, #0b63ce 56%, #18aee4 100%);
}

.tech-hero::before,
.tech-hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.tech-hero::before {
  inset: 0;
  opacity: 0.2;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.18) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(90deg, #000, transparent 85%);
}

.tech-hero::after {
  right: -120px;
  bottom: -180px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  border: 72px solid rgba(255, 255, 255, 0.08);
  animation: pulse-ring 7s ease-in-out infinite;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero h1 {
  max-width: 760px;
  margin: 0.6rem 0 1rem;
  font-family: "Poppins", sans-serif;
  font-size: clamp(2.45rem, 4.6vw, 4.35rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.hero p {
  max-width: 650px;
  margin: 0;
  color: inherit;
  opacity: 0.9;
  font-size: 1.06rem;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.6rem;
}

.hero-buttons .cta[style*="transparent"] {
  border-color: rgba(255, 255, 255, 0.72) !important;
  background: rgba(255, 255, 255, 0.1) !important;
  color: #fff !important;
  box-shadow: none;
}

.hero-image {
  position: relative;
  overflow: hidden;
  width: min(100%, 470px);
  margin-inline: auto;
  padding: 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: 0 28px 70px rgba(3, 14, 34, 0.3);
  animation: visual-float 7s ease-in-out infinite;
}

.hero-image::after {
  content: "";
  position: absolute;
  inset: -50%;
  background: linear-gradient(120deg, transparent 38%, rgba(255, 255, 255, 0.34), transparent 60%);
  transform: translateX(-70%) rotate(12deg);
  animation: visual-sheen 5.8s ease-in-out infinite;
}

.hero-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  max-height: 430px;
  object-fit: cover;
  border-radius: 12px;
  filter: saturate(1.04) contrast(1.02);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  color: var(--color-secondary);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.tech-hero .badge,
.cta-banner .badge {
  color: #dff7ff !important;
}

.badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 5px rgba(23, 179, 232, 0.12);
}

.floating-metrics,
.trust-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
}

.floating-metrics {
  margin-top: 2rem;
}

.floating-metrics span,
.trust-bar span {
  display: block;
  min-height: 68px;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-weight: 800;
}

.trust-bar {
  width: min(1180px, calc(100% - 2rem));
  margin: 1.25rem auto 0;
  padding: 1.1rem;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-lg);
}

.trust-bar span {
  min-height: 0;
  padding: 0.45rem 0.5rem;
  border: 0;
  background: transparent;
  color: var(--color-text-muted);
  text-align: center;
}

main.site-wrapper:not(.legal-page) > .section:nth-of-type(even):not(.tech-hero) {
  background:
    linear-gradient(180deg, rgba(244, 248, 255, 0.84), rgba(244, 248, 255, 0.3)),
    var(--color-bg-soft);
  box-shadow: 50vw 0 0 var(--color-bg-soft), -50vw 0 0 var(--color-bg-soft);
}

.section-heading {
  max-width: 780px;
  margin-bottom: 2.25rem;
}

.section-heading h2 {
  margin: 0.35rem 0 0;
  font-family: "Poppins", sans-serif;
  font-size: clamp(2rem, 4vw, 3.15rem);
  line-height: 1.12;
}

.section-heading p {
  margin: 0.8rem 0 0;
  color: var(--color-text-muted);
}

.services-grid,
.portfolio-grid,
.testimonial-grid,
.pricing-grid,
.contact-grid,
.testimonials {
  display: grid;
  gap: 1.25rem;
}

.services-grid {
  grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
}

.portfolio-grid,
.pricing-grid,
.testimonials {
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
}

.contact-grid {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.service-card,
.pricing-card,
.testimonial-card,
.contact-card,
.faq-item,
.legal-content article {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.service-card,
.pricing-card,
.testimonial-card,
.contact-card,
.faq-item,
.legal-content article {
  padding: 1.45rem;
}

.service-card::before,
.pricing-card::before,
.contact-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
}

.service-card:hover,
.pricing-card:hover,
.testimonial-card:hover,
.contact-card:hover,
.portfolio-item:hover {
  transform: translateY(-7px);
  border-color: rgba(11, 99, 206, 0.34);
  box-shadow: var(--shadow-lg);
}

.service-card h3,
.pricing-card h3,
.contact-card h4 {
  margin: 0;
  font-family: "Poppins", sans-serif;
  font-size: 1.12rem;
  line-height: 1.25;
}

.service-card p,
.pricing-card p,
.testimonial-card p,
.contact-card p {
  margin: 0.45rem 0 0;
  color: var(--color-text-muted);
}

.service-card ul,
.pricing-card ul {
  display: grid;
  gap: 0.52rem;
  padding: 0;
  margin: 0.8rem 0 0;
  list-style: none;
}

.service-card li,
.pricing-card li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  color: #41566f;
  font-size: 0.94rem;
}

.service-card li::before,
.pricing-card li::before {
  content: "";
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  margin-top: 0.55rem;
  border-radius: 50%;
  background: var(--color-secondary);
}

.service-card span {
  margin-top: auto;
  color: var(--color-primary);
  font-weight: 800;
}

.portfolio-item {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.portfolio-item img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  transition: transform 0.45s ease, filter 0.45s ease;
}

.portfolio-item:hover img {
  transform: scale(1.05);
  filter: saturate(1.08);
}

.portfolio-item .meta {
  padding: 1.15rem;
}

.portfolio-item .meta h3 {
  margin: 0;
  font-family: "Poppins", sans-serif;
}

.portfolio-item .meta p {
  margin: 0.35rem 0 0;
  color: var(--color-primary);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.expert-cta,
.cta-banner {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(240px, 0.55fr);
  gap: 1.5rem;
  align-items: center;
  padding: clamp(1.6rem, 4vw, 2.6rem);
  border-radius: 18px;
  color: #fff;
  background:
    radial-gradient(circle at 8% 10%, rgba(23, 179, 232, 0.36), transparent 28%),
    linear-gradient(135deg, var(--color-bg-dark), var(--color-primary-dark));
  box-shadow: var(--shadow-lg);
}

.expert-cta::after,
.cta-banner::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -100px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  border: 44px solid rgba(255, 255, 255, 0.08);
}

.expert-cta h2,
.cta-banner h3 {
  margin: 0.45rem 0 0;
  font-family: "Poppins", sans-serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.1;
}

.expert-cta p,
.cta-banner p {
  color: rgba(255, 255, 255, 0.82);
}

.expert-cta-actions {
  display: grid;
  gap: 0.8rem;
}

.toggle-group,
.hero-buttons:has(.toggle-tab) {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.toggle-group button,
.toggle-option,
.toggle-tab {
  min-height: 42px;
  padding: 0.6rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: #fff;
  color: var(--color-primary-dark);
  font-weight: 800;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.toggle-group button.active,
.toggle-option.active,
.toggle-tab.active {
  border-color: transparent;
  background: var(--color-primary);
  color: #fff;
}

.compare-table {
  width: 100%;
  overflow: hidden;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.compare-table th,
.compare-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
}

.compare-table thead {
  background: var(--color-bg-soft);
  color: var(--color-primary-dark);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.faq-accordion {
  display: grid;
  gap: 0.85rem;
}

.faq-item {
  padding: 0;
}

.faq-item button {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border: 0;
  background: transparent;
  color: var(--color-text-dark);
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.faq-item button span {
  display: inline-grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 8px;
  background: var(--color-bg-soft);
  color: var(--color-primary);
  transition: transform 0.2s ease;
}

.faq-answer {
  display: none;
  margin: 0;
  padding: 0 1.25rem 1.15rem;
  color: var(--color-text-muted);
}

.faq-item.open .faq-answer {
  display: block;
}

.faq-item.open button span {
  transform: rotate(45deg);
}

.contact-card h4 {
  color: var(--color-primary);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.contact-form {
  display: grid;
  gap: 1rem;
  padding: 1.6rem;
  border: 1px solid var(--color-border);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.contact-form label {
  display: grid;
  gap: 0.45rem;
  color: #344961;
  font-weight: 700;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 0.82rem 0.95rem;
  background: #fbfdff;
  color: var(--color-text-dark);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(11, 99, 206, 0.12);
}

.contact-map {
  min-height: 100%;
  padding: 1.6rem;
  border-radius: 18px;
  color: #fff;
  background:
    radial-gradient(circle at 14% 16%, rgba(23, 179, 232, 0.34), transparent 30%),
    linear-gradient(135deg, var(--color-bg-dark), var(--color-primary-dark));
  box-shadow: var(--shadow-lg);
}

.contact-map h3 {
  margin-top: 0;
  font-family: "Poppins", sans-serif;
  font-size: 1.65rem;
}

.support-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1.4rem;
}

.support-panel span {
  min-height: 58px;
  padding: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
  font-weight: 800;
}

.status-message {
  margin: 0;
  color: var(--color-primary);
  font-weight: 800;
}

.legal-page {
  max-width: 920px;
}

.legal-hero {
  padding-bottom: 2rem;
}

.legal-hero h1 {
  margin: 0.5rem 0 1rem;
  font-family: "Poppins", sans-serif;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  line-height: 1.15;
}

.legal-hero p,
.legal-content p {
  color: var(--color-text-muted);
}

.legal-updated {
  font-size: 0.92rem;
  font-weight: 800;
}

.legal-content {
  display: grid;
  gap: 1rem;
}

.legal-content h2 {
  margin: 0 0 0.65rem;
  font-family: "Poppins", sans-serif;
  font-size: 1.2rem;
}

.legal-content p {
  margin: 0;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  visibility: hidden;
  opacity: 0;
  background: rgba(7, 24, 47, 0.82);
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.modal.active {
  visibility: visible;
  opacity: 1;
}

.modal-panel {
  position: relative;
  width: min(680px, 100%);
  max-height: 90vh;
  overflow: auto;
  padding: 1.4rem;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-lg);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--color-primary-dark);
  font-weight: 900;
  cursor: pointer;
}

.modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.tag-pill {
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 0.28rem 0.85rem;
  color: var(--color-primary);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.footer {
  padding: 3rem 0 1.5rem;
  margin-top: 0;
  color: var(--color-text-light);
  background:
    radial-gradient(circle at 16% 14%, rgba(23, 179, 232, 0.18), transparent 28%),
    var(--color-bg-dark);
}

.footer-content {
  display: grid;
  grid-template-columns: minmax(220px, 0.85fr) minmax(0, 1.6fr);
  gap: 2.5rem;
}

.footer .logo {
  color: #fff;
}

.footer .logo::after {
  color: #fff;
}

.footer p {
  color: rgba(245, 249, 255, 0.78);
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
  gap: 1.5rem;
}

.footer-columns ul {
  display: grid;
  gap: 0.55rem;
  padding: 0;
  margin: 0;
  color: rgba(245, 249, 255, 0.78);
  font-size: 0.9rem;
  list-style: none;
}

.footer-columns a:hover {
  color: #fff;
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(245, 249, 255, 0.66);
  font-size: 0.78rem;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.65s ease, transform 0.65s ease;
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

.services-grid .reveal:nth-child(2),
.portfolio-grid .reveal:nth-child(2),
.pricing-grid .reveal:nth-child(2),
.testimonials .reveal:nth-child(2),
.contact-grid .reveal:nth-child(2) {
  --reveal-delay: 80ms;
}

.services-grid .reveal:nth-child(3),
.portfolio-grid .reveal:nth-child(3),
.pricing-grid .reveal:nth-child(3),
.testimonials .reveal:nth-child(3),
.contact-grid .reveal:nth-child(3) {
  --reveal-delay: 160ms;
}

.services-grid .reveal:nth-child(n + 4),
.portfolio-grid .reveal:nth-child(n + 4),
.contact-grid .reveal:nth-child(n + 4) {
  --reveal-delay: 220ms;
}

@keyframes visual-float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-9px);
  }
}

@keyframes visual-sheen {
  0%,
  45% {
    transform: translateX(-70%) rotate(12deg);
  }

  75%,
  100% {
    transform: translateX(70%) rotate(12deg);
  }
}

@keyframes pulse-ring {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.75;
  }

  50% {
    transform: scale(1.08);
    opacity: 0.42;
  }
}

@media (max-width: 1024px) {
  .nav-links,
  .nav-inner > .cta {
    display: none;
  }

  .mobile-toggle {
    display: inline-flex;
  }

  .hero,
  .tech-hero {
    grid-template-columns: 1fr;
  }

  .hero-image {
    width: min(100%, 540px);
  }

  .expert-cta,
  .cta-banner,
  .footer-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .site-wrapper {
    width: min(100% - 1rem, 1180px);
  }

  main.site-wrapper:not(.legal-page) > .section:not(.tech-hero),
  main.site-wrapper:not(.legal-page) > .trust-bar {
    width: min(100% - 1rem, 1180px);
  }

  .section {
    padding: 2.8rem 0;
  }

  .hero,
  .tech-hero {
    gap: 1.5rem;
    padding: 2.75rem 1rem 3rem;
  }

  .hero h1 {
    max-width: 100%;
    font-size: clamp(2rem, 9.5vw, 2.65rem);
    line-height: 1.1;
    overflow-wrap: anywhere;
  }

  .hero p {
    font-size: 0.98rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-buttons .cta {
    width: 100%;
  }

  .trust-bar,
  .floating-metrics,
  .support-panel {
    grid-template-columns: 1fr;
  }

  .floating-metrics {
    margin-top: 1rem;
  }

  .floating-metrics span {
    min-height: 0;
    padding: 0.85rem;
  }

  .trust-bar {
    gap: 0.35rem;
    margin-top: 0.75rem;
    padding: 0.9rem;
  }

  .trust-bar span {
    text-align: left;
  }

  .hero-image {
    display: none;
  }

  .contact-form {
    padding: 1.25rem;
  }
}

@media (max-width: 480px) {
  .nav-inner {
    min-height: 68px;
  }

  .logo {
    gap: 0.5rem;
  }

  .logo::before {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    font-size: 0.76rem;
  }

  .logo::after {
    font-size: 1rem;
  }

  .hero h1 {
    font-size: clamp(1.85rem, 9vw, 2.35rem);
  }

  .section-heading h2 {
    font-size: clamp(1.75rem, 9vw, 2.2rem);
  }

  .services-grid,
  .portfolio-grid,
  .pricing-grid,
  .testimonials,
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
