:root {
  color-scheme: light;
  --ink: #14202b;
  --muted: #5d6b76;
  --soft: #eef4ff;
  --line: #d8e3f4;
  --paper: #ffffff;
  --navy: #061a3f;
  --teal: #045ffa;
  --teal-dark: #003fba;
  --gold: #b68b43;
  --blue-soft: #eaf2ff;
  --blue-glow: rgba(4, 95, 250, 0.22);
  --shadow: 0 22px 70px rgba(4, 31, 82, 0.16);
  --hero-shift: 0px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family:
    "Microsoft YaHei",
    "PingFang SC",
    "Noto Sans CJK SC",
    Arial,
    sans-serif;
  line-height: 1.6;
  letter-spacing: 0;
}

.scroll-progress {
  position: fixed;
  z-index: 40;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #045ffa, #4fa0ff, #ffffff);
  transform: scaleX(var(--progress, 0));
  transform-origin: left center;
  transition: transform 120ms linear;
}

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

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  min-height: 84px;
  padding: 14px 44px;
  color: #fff;
  background: transparent;
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(0);
  transition:
    min-height 260ms ease,
    padding 260ms ease,
    color 260ms ease,
    background 260ms ease,
    border-color 260ms ease,
    backdrop-filter 260ms ease,
    box-shadow 260ms ease;
}

.site-header.is-scrolled {
  min-height: 72px;
  padding-top: 9px;
  padding-bottom: 9px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.75);
  border-bottom-color: rgba(4, 95, 250, 0.14);
  backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 14px 40px rgba(4, 31, 82, 0.12);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  background: var(--teal);
  border: 0;
  border-radius: 0;
  overflow: hidden;
  transition:
    transform 300ms ease,
    background 300ms ease;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand:hover .brand-mark,
.brand:focus-visible .brand-mark {
  transform: translateY(-2px);
  background: var(--teal-dark);
}

.nav-links {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 28px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

.site-header.is-scrolled .nav-links {
  color: rgba(20, 32, 43, 0.72);
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: #fff;
}

.site-header.is-scrolled .nav-links a:hover,
.site-header.is-scrolled .nav-links a:focus-visible,
.site-header.is-scrolled .nav-links a.is-active {
  color: var(--ink);
}

.nav-links a {
  position: relative;
  transition: color 220ms ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  background: #7db7ff;
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 260ms ease;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after,
.nav-links a.is-active::after {
  transform: scaleX(1);
  transform-origin: left center;
}

.nav-links a.is-active {
  color: #fff;
}

.site-header.is-scrolled .nav-links a.is-active {
  color: var(--ink);
}

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  font-weight: 700;
  position: relative;
  overflow: hidden;
  transition:
    transform 240ms ease,
    box-shadow 240ms ease,
    background 240ms ease,
    border-color 240ms ease,
    color 240ms ease;
}

.nav-cta::before,
.button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.34) 46%, transparent 64%);
  transform: translateX(-120%);
  transition: transform 520ms ease;
}

.nav-cta:hover,
.nav-cta:focus-visible,
.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.nav-cta:hover::before,
.nav-cta:focus-visible::before,
.button:hover::before,
.button:focus-visible::before {
  transform: translateX(120%);
}

.nav-cta {
  color: #041f52;
  background: #fff;
  font-size: 14px;
}

.site-header.is-scrolled .nav-cta {
  color: #fff;
  background: var(--teal);
  box-shadow: 0 12px 26px rgba(4, 95, 250, 0.18);
}

.hero {
  position: relative;
  min-height: 88svh;
  display: flex;
  align-items: center;
  padding: 126px 44px 76px;
  color: #fff;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("assets/hero-product-shoot.png");
  background-position: center;
  background-size: cover;
  transform: scale(1.06) translate3d(0, var(--hero-shift), 0);
  animation: heroDrift 18s ease-in-out infinite alternate;
  will-change: transform;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 20, 55, 0.94) 0%, rgba(3, 20, 55, 0.78) 38%, rgba(3, 20, 55, 0.18) 74%, rgba(3, 20, 55, 0.16) 100%),
    linear-gradient(0deg, rgba(3, 20, 55, 0.62) 0%, rgba(3, 20, 55, 0) 44%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  padding-top: 18px;
}

.hero .section-kicker,
.hero-title-label,
.hero-title-main,
.hero-copy,
.hero-actions,
.hero-notes {
  animation: fadeUp 820ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-title-label {
  animation-delay: 90ms;
}

.hero-title-main {
  animation-delay: 170ms;
}

.hero-copy {
  animation-delay: 260ms;
}

.hero-actions {
  animation-delay: 350ms;
}

.hero-notes {
  animation-delay: 430ms;
}

.section-kicker {
  margin: 0 0 14px;
  color: var(--teal);
  font-size: 14px;
  font-weight: 800;
}

.hero .section-kicker {
  color: #a9cbff;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.18;
}

h1 {
  max-width: 680px;
  font-size: 58px;
  font-weight: 850;
}

.hero-title-label,
.hero-title-main {
  display: block;
}

.hero-title-label {
  margin-bottom: 12px;
  color: #a9cbff;
  font-size: 18px;
  line-height: 1.35;
}

h2 {
  font-size: 38px;
}

h3 {
  font-size: 21px;
}

.hero-copy {
  max-width: 680px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  min-width: 154px;
  border: 1px solid transparent;
  font-size: 15px;
}

.button-primary {
  color: #fff;
  background: var(--teal);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--teal-dark);
  box-shadow: 0 16px 34px var(--blue-glow);
}

.button-secondary {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.28);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.48);
}

.hero-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.hero-notes span {
  padding: 7px 11px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  transition:
    transform 220ms ease,
    background 220ms ease,
    border-color 220ms ease;
}

.hero-notes span:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.34);
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.proof-strip div {
  min-height: 118px;
  padding: 26px 44px;
  background: #f8fbfb;
  transition:
    background 260ms ease,
    box-shadow 260ms ease,
    transform 260ms ease;
}

.proof-strip strong,
.proof-strip span {
  display: block;
}

.proof-strip strong {
  font-size: 18px;
}

.proof-strip span {
  margin-top: 8px;
  color: var(--muted);
}

.section {
  padding: 92px 44px;
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 42px;
  text-align: center;
}

.section-heading p:not(.section-kicker) {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.pain-section {
  background: #fff;
}

.pain-grid,
.service-grid {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 18px;
}

.pain-grid {
  grid-template-columns: repeat(3, 1fr);
}

.pain-grid article,
.service-card,
.contact-panel,
.process-list li {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  transition:
    transform 300ms ease,
    box-shadow 300ms ease,
    border-color 300ms ease,
    background 300ms ease;
}

.pain-grid article {
  min-height: 244px;
  padding: 30px;
}

.pain-grid span,
.process-list span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 32px;
  margin-bottom: 22px;
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 800;
  background: var(--blue-soft);
  border-radius: 8px;
}

.pain-grid p,
.service-card p,
.process-list p {
  margin: 14px 0 0;
  color: var(--muted);
}

.intro-section,
.content-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 54px;
  background: #f4f7f8;
}

.intro-copy,
.content-copy {
  max-width: 560px;
}

.intro-copy {
  margin-left: auto;
}

.intro-copy p:not(.section-kicker),
.content-copy p:not(.section-kicker) {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.image-panel {
  margin: 0;
  min-height: 360px;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
  position: relative;
  transition:
    transform 360ms ease,
    box-shadow 360ms ease;
}

.image-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 28%, rgba(255, 255, 255, 0.28) 48%, transparent 62%);
  opacity: 0;
  transform: translateX(-55%);
  transition:
    opacity 320ms ease,
    transform 700ms ease;
  pointer-events: none;
}

.image-panel img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  transition: transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
}

.media-hover:hover,
.media-hover:focus-within {
  transform: translateY(-6px);
  box-shadow: 0 26px 76px rgba(16, 38, 56, 0.22);
}

.media-hover:hover img,
.media-hover:focus-within img {
  transform: scale(1.055);
}

.media-hover:hover::after,
.media-hover:focus-within::after {
  opacity: 1;
  transform: translateX(55%);
}

.services-section {
  background: #fff;
}

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

.service-card {
  grid-column: span 2;
  min-height: 260px;
  padding: 28px;
  position: relative;
  overflow: hidden;
}

.service-card-featured {
  grid-column: span 4;
  color: #fff;
  background: var(--navy);
  border-color: var(--navy);
}

.service-card::after,
.tilt-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 0%), rgba(4, 95, 250, 0.18), transparent 42%);
  opacity: 0;
  transition: opacity 240ms ease;
  pointer-events: none;
}

.service-card:hover::after,
.tilt-card:hover::after {
  opacity: 1;
}

.service-card-featured p {
  color: rgba(255, 255, 255, 0.78);
}

.service-tag {
  display: inline-flex;
  margin-bottom: 24px;
  padding: 5px 10px;
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 800;
  background: var(--blue-soft);
  border-radius: 8px;
}

.service-card-featured .service-tag {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
}

.website-section {
  color: #fff;
  background:
    radial-gradient(circle at 18% 20%, rgba(79, 160, 255, 0.32), transparent 30%),
    linear-gradient(135deg, #031437 0%, #045ffa 100%);
}

.website-copy {
  width: min(900px, 100%);
  margin: 0 auto 38px;
  text-align: center;
}

.website-copy .section-kicker {
  color: #c6dcff;
}

.website-copy p:not(.section-kicker) {
  margin: 18px auto 0;
  max-width: 780px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
}

.website-detail-grid {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.website-detail-card {
  min-height: 224px;
  padding: 26px;
  position: relative;
  overflow: hidden;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  backdrop-filter: blur(16px);
  transition:
    transform 300ms ease,
    background 300ms ease,
    border-color 300ms ease,
    box-shadow 300ms ease;
}

.website-detail-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(130deg, transparent 28%, rgba(255, 255, 255, 0.2), transparent 60%);
  opacity: 0;
  transform: translateX(-40%);
  transition:
    opacity 280ms ease,
    transform 650ms ease;
  pointer-events: none;
}

.website-detail-card:hover::after,
.website-detail-card:focus-within::after {
  opacity: 1;
  transform: translateX(40%);
}

.website-detail-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 32px;
  margin-bottom: 22px;
  color: #045ffa;
  font-size: 13px;
  font-weight: 800;
  background: #fff;
  border-radius: 8px;
}

.website-detail-card p {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.76);
}

.cases-section {
  background: #f4f8ff;
}

.case-grid {
  width: min(1220px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.case-window {
  display: block;
  min-width: 0;
  position: relative;
  color: var(--ink);
  background: #fff;
  border: 1px solid rgba(4, 95, 250, 0.16);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 20px 56px rgba(4, 31, 82, 0.1);
  transition:
    transform 320ms ease,
    box-shadow 320ms ease,
    border-color 320ms ease;
}

.case-link {
  position: absolute;
  z-index: 4;
  inset: 0;
  border-radius: 8px;
}

.case-link:focus-visible {
  outline: 3px solid rgba(4, 95, 250, 0.6);
  outline-offset: 3px;
}

.case-window:hover,
.case-window:focus-visible {
  transform: translateY(-10px);
  border-color: rgba(4, 95, 250, 0.42);
  box-shadow: 0 28px 76px rgba(4, 31, 82, 0.18);
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 13px;
  background: linear-gradient(180deg, #f7faff 0%, #edf4ff 100%);
  border-bottom: 1px solid rgba(4, 95, 250, 0.14);
}

.browser-bar i {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #c9d7ec;
}

.browser-bar i:nth-child(1) {
  background: #ff6464;
}

.browser-bar i:nth-child(2) {
  background: #ffc64d;
}

.browser-bar i:nth-child(3) {
  background: #32c970;
}

.browser-bar em {
  min-width: 0;
  margin-left: 4px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.case-screen {
  display: block;
  height: 210px;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(4, 95, 250, 0.08), rgba(255, 255, 255, 0.4)),
    #f9fbff;
}

.case-screen::after {
  content: "打开案例";
  position: absolute;
  left: 50%;
  bottom: 14px;
  padding: 7px 12px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  background: rgba(4, 95, 250, 0.88);
  border-radius: 8px;
  transform: translate(-50%, 12px);
  opacity: 0;
  transition:
    opacity 260ms ease,
    transform 260ms ease;
  pointer-events: none;
}

.case-window:hover .case-screen::after,
.case-window:focus-visible .case-screen::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.case-screen iframe {
  width: 145%;
  height: 470px;
  border: 0;
  transform: scale(0.69);
  transform-origin: top left;
  pointer-events: none;
  transition: transform 1700ms cubic-bezier(0.16, 1, 0.3, 1);
}

.case-window:hover iframe,
.case-window:focus-visible iframe {
  transform: scale(0.69) translateY(-210px);
}

.case-window strong,
.case-window small {
  display: block;
  padding-left: 18px;
  padding-right: 18px;
}

.case-window strong {
  padding-top: 16px;
  font-size: 18px;
}

.case-window small {
  padding-top: 5px;
  padding-bottom: 18px;
  color: var(--muted);
  font-size: 13px;
}

.content-section {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
}

.proof-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 50px;
  color: #fff;
  background: var(--navy);
}

.proof-section .section-kicker {
  color: #a9cbff;
}

.proof-section p:not(.section-kicker) {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 20px;
}

.process-section {
  background: #f7f9fa;
}

.process-list {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  position: relative;
}

.process-list::before {
  content: "";
  position: absolute;
  top: 40px;
  left: 24px;
  right: 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(4, 95, 250, 0.42), transparent);
}

.process-list li {
  min-height: 248px;
  padding: 24px;
  position: relative;
  z-index: 1;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 52px;
  align-items: center;
  padding: 92px 44px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(9, 30, 44, 0.96), rgba(9, 30, 44, 0.9)),
    var(--navy);
}

.contact-copy {
  width: min(680px, 100%);
  margin-left: auto;
}

.contact-copy .section-kicker {
  color: #a9cbff;
}

.contact-copy p:not(.section-kicker) {
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 18px;
}

.contact-panel {
  width: min(420px, 100%);
  padding: 28px;
  color: var(--ink);
  background: #fff;
  box-shadow: var(--shadow);
}

.contact-panel > div:not(.qr-box) {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.contact-panel span,
.contact-panel strong {
  display: block;
}

.contact-panel span {
  color: var(--muted);
  font-size: 14px;
}

.contact-panel strong {
  margin-top: 6px;
  font-size: 24px;
}

.qr-box {
  display: grid;
  place-items: center;
  height: 180px;
  margin-top: 22px;
  color: var(--muted);
  font-weight: 700;
  background:
    linear-gradient(90deg, rgba(20, 32, 43, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(20, 32, 43, 0.08) 1px, transparent 1px),
    #f6f8f9;
  background-size: 18px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}

.qr-box::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  top: 28px;
  height: 2px;
  background: rgba(4, 95, 250, 0.65);
  animation: qrScan 2.8s ease-in-out infinite;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 44px;
  color: var(--muted);
  background: #fff;
  border-top: 1px solid var(--line);
}

.site-footer a {
  color: var(--teal-dark);
  font-weight: 700;
}

.has-js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 720ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 720ms cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.has-js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hover-lift:hover,
.hover-lift:focus-within {
  transform: translateY(-8px);
  border-color: rgba(4, 95, 250, 0.3);
  box-shadow: 0 22px 58px rgba(4, 31, 82, 0.15);
}

.tilt-card {
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
}

.tilt-card:hover {
  transform: perspective(900px) translateY(-8px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
}

.has-js .reveal.is-visible.hover-lift:hover,
.has-js .reveal.is-visible.hover-lift:focus-within {
  transform: translateY(-8px);
}

.has-js .reveal.is-visible.tilt-card:hover {
  transform: perspective(900px) translateY(-8px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
}

.has-js .reveal.is-visible.media-hover:hover,
.has-js .reveal.is-visible.media-hover:focus-within {
  transform: translateY(-6px);
}

.pain-grid article:hover span,
.process-list li:hover span {
  animation: softPulse 900ms ease;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroDrift {
  from {
    transform: scale(1.055) translate3d(0, var(--hero-shift), 0);
  }
  to {
    transform: scale(1.105) translate3d(-1.2%, calc(var(--hero-shift) - 12px), 0);
  }
}

@keyframes softPulse {
  0%,
  100% {
    transform: scale(1);
  }
  45% {
    transform: scale(1.08);
  }
}

@keyframes qrScan {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.2;
  }
  50% {
    transform: translateY(104px);
    opacity: 0.75;
  }
}

@media (max-width: 1020px) {
  .site-header {
    padding: 12px 24px;
    gap: 18px;
  }

  .nav-links {
    display: none;
  }

  .hero {
    padding: 116px 24px 66px;
  }

  h1 {
    font-size: 46px;
  }

  h2 {
    font-size: 32px;
  }

  .proof-strip,
  .pain-grid,
  .intro-section,
  .content-section,
  .proof-section,
  .process-list,
  .contact-section {
    grid-template-columns: 1fr;
  }

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

  .process-list::before {
    top: 24px;
    bottom: 24px;
    left: 44px;
    right: auto;
    width: 1px;
    height: auto;
    background: linear-gradient(180deg, transparent, rgba(4, 95, 250, 0.36), transparent);
  }

  .proof-strip div {
    padding: 24px;
  }

  .section,
  .contact-section {
    padding: 72px 24px;
  }

  .intro-copy,
  .contact-copy {
    margin-left: 0;
  }

  .service-card,
  .service-card-featured {
    grid-column: span 3;
  }

  .case-screen {
    height: 230px;
  }

  .case-screen iframe {
    height: 510px;
  }
}

@media (max-width: 720px) {
  .site-header {
    grid-template-columns: 1fr auto;
    min-height: 68px;
    padding: 10px 16px;
  }

  .brand-mark {
    width: 48px;
    height: 48px;
  }

  .brand small {
    display: none;
  }

  .nav-cta {
    min-height: 38px;
    padding: 0 12px;
    font-size: 13px;
  }

  .hero {
    min-height: 88svh;
    padding: 102px 16px 50px;
  }

  .hero::after {
    background:
      linear-gradient(90deg, rgba(3, 20, 55, 0.94) 0%, rgba(3, 20, 55, 0.86) 62%, rgba(3, 20, 55, 0.46) 100%),
      linear-gradient(0deg, rgba(3, 20, 55, 0.58) 0%, rgba(3, 20, 55, 0) 48%);
  }

  h1 {
    font-size: 36px;
  }

  h2 {
    font-size: 28px;
  }

  h3 {
    font-size: 19px;
  }

  .hero-copy,
  .contact-copy p:not(.section-kicker) {
    font-size: 16px;
  }

  .button {
    width: 100%;
  }

  .proof-strip div,
  .section,
  .contact-section {
    padding-left: 16px;
    padding-right: 16px;
  }

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

  .website-detail-grid,
  .case-grid {
    grid-template-columns: 1fr;
  }

  .service-card,
  .service-card-featured {
    grid-column: span 1;
  }

  .pain-grid article,
  .service-card,
  .website-detail-card,
  .process-list li,
  .contact-panel {
    padding: 22px;
  }

  .case-screen {
    height: 240px;
  }

  .case-screen iframe {
    width: 150%;
    height: 540px;
    transform: scale(0.67);
  }

  .case-window:hover iframe,
  .case-window:focus-visible iframe {
    transform: scale(0.67) translateY(-220px);
  }

  .image-panel,
  .image-panel img {
    min-height: 280px;
  }

  .site-footer {
    flex-direction: column;
    padding: 22px 16px;
  }
}

@media (max-width: 390px) {
  .nav-cta {
    display: none;
  }

  h1 {
    font-size: 32px;
  }

  h2 {
    font-size: 25px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }

  .hero::before {
    animation: none;
  }

  .has-js .reveal,
  .has-js .reveal.is-visible,
  .hover-lift:hover,
  .tilt-card:hover {
    opacity: 1;
    transform: none;
  }
}
