:root {
  --bg: #f4f7fb;
  --bg-strong: #e9eef7;
  --surface: rgba(255, 255, 255, 0.86);
  --surface-solid: #ffffff;
  --text: #18233a;
  --muted: #667089;
  --line: rgba(44, 63, 101, 0.12);
  --shadow: 0 24px 60px rgba(18, 32, 57, 0.08);
  --shadow-soft: 0 14px 30px rgba(18, 32, 57, 0.06);
  --navy: #294571;
  --navy-2: #355a8d;
  --blue: #5c7fb0;
  --gold: #c78a3e;
  --rose: #d95d78;
  --green: #5e8e67;
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(65, 96, 147, 0.12), transparent 32%),
    radial-gradient(circle at top right, rgba(219, 194, 154, 0.18), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
  min-height: 100vh;
}

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

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

.container {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

.section {
  padding: 88px 0;
  position: relative;
}

.section--tight {
  padding: 28px 0 18px;
}

.section--alt {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.48), rgba(234, 240, 247, 0.52));
}

.section--cta {
  padding-top: 28px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(244, 247, 251, 0.76);
  border-bottom: 1px solid rgba(44, 63, 101, 0.08);
}

.header-shell {
  min-height: 84px;
  display: flex;
  align-items: center;
  gap: 24px;
}

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

.brand-icon {
  width: 44px;
  height: 44px;
  display: block;
  border-radius: 14px;
  box-shadow: 0 12px 24px rgba(18, 32, 57, 0.16);
  object-fit: cover;
  flex: none;
}

.brand-copy {
  display: grid;
  line-height: 1.1;
}

.brand-copy strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 18px;
  letter-spacing: 0.01em;
}

.brand-copy small {
  color: var(--muted);
  font-size: 12px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
}

.nav a {
  color: var(--muted);
  font-weight: 700;
  font-size: 14px;
}

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

.menu-toggle {
  display: none;
  margin-left: auto;
  border: 1px solid var(--line);
  background: var(--surface-solid);
  width: 48px;
  height: 48px;
  border-radius: 14px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  padding: 0;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--navy);
}

.header-cta {
  margin-left: 6px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  color: #fff;
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  box-shadow: 0 18px 28px rgba(41, 69, 113, 0.25);
}

.btn--secondary {
  color: var(--navy);
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(41, 69, 113, 0.12);
}

.btn--ghost {
  color: var(--navy);
  background: rgba(255, 255, 255, 0.6);
  border-color: rgba(41, 69, 113, 0.1);
}

.btn--large {
  min-height: 56px;
  padding-inline: 28px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--navy);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.03fr 0.97fr;
  gap: 28px;
  align-items: start;
}

.hero-copy h1,
.section-heading h2,
.cta-shell h2,
.contact-copy h2 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.hero-copy h1 {
  font-size: clamp(42px, 5vw, 72px);
  max-width: 11ch;
}

.hero-copy {
  margin-top: -18px;
}

.lead,
.section-heading p,
.cta-shell p,
.contact-copy p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin: 30px 0 24px;
}

.stats-bar {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.stats-bar div {
  padding: 16px 16px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(41, 69, 113, 0.08);
  box-shadow: var(--shadow-soft);
}

.stats-bar dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stats-bar dd {
  margin: 8px 0 0;
  font-size: 24px;
  font-weight: 800;
  color: var(--text);
}

.hero-notes {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  color: var(--navy);
  font-weight: 700;
}

.hero-notes li {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(41, 69, 113, 0.08);
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
}

.hero-points li {
  padding: 11px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(41, 69, 113, 0.08);
  color: var(--navy);
  font-weight: 700;
  box-shadow: var(--shadow-soft);
}

.mockup-stage {
  display: grid;
  grid-template-columns: 1.7fr 0.68fr;
  grid-template-areas:
    "large stack"
    "wide wide";
  gap: 8px;
  align-items: start;
}

.browser-mockup,
.phone-mockup {
  margin: 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(41, 69, 113, 0.08);
  box-shadow: var(--shadow);
}

.browser-mockup {
  border-radius: 28px;
  padding: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(241, 246, 252, 0.92)),
    linear-gradient(145deg, rgba(41, 69, 113, 0.08), rgba(255, 255, 255, 0));
  box-shadow:
    0 22px 40px rgba(18, 32, 57, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
  position: relative;
}

.browser-mockup img,
.phone-mockup img {
  width: 100%;
  display: block;
  object-position: top center;
}

.browser-mockup img {
  aspect-ratio: 3456 / 1752;
  object-fit: cover;
  border-radius: 0 0 18px 18px;
  border: 1px solid rgba(41, 69, 113, 0.08);
  border-top: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.34);
}

.browser-chrome {
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 18px;
  background: linear-gradient(180deg, rgba(247, 250, 253, 0.98), rgba(239, 244, 250, 0.96));
  border-bottom: 1px solid rgba(41, 69, 113, 0.08);
  border-radius: 18px 18px 0 0;
}

.browser-dots {
  display: inline-flex;
  gap: 6px;
}

.browser-dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(41, 69, 113, 0.22);
}

.browser-label {
  color: var(--navy);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.browser-mockup--large {
  grid-area: large;
  transform: perspective(1600px) rotateY(-6deg) rotateX(1.5deg) translateY(2px) scale(1.18);
  transform-origin: right center;
  z-index: 1;
}

.browser-mockup--wide {
  grid-area: wide;
  transform: perspective(1600px) rotateX(1.5deg);
}

.browser-mockup--compact img,
.browser-mockup--gallery img {
  aspect-ratio: 3456 / 1752;
}

.mockup-stage .browser-mockup--compact {
  display: none;
}

.mockup-stack {
  grid-area: stack;
  display: grid;
  gap: 12px;
  position: relative;
  z-index: 2;
  margin-left: -24px;
  padding-top: 34px;
}

.phone-mockup {
  position: relative;
  border-radius: 36px;
  padding: 14px;
  background:
    linear-gradient(180deg, rgba(22, 32, 51, 0.96), rgba(31, 45, 72, 0.98));
}

.phone-mockup img {
  border-radius: 24px;
  aspect-ratio: 921 / 2048;
  object-fit: cover;
  object-position: top center;
}

.phone-notch {
  position: absolute;
  left: 50%;
  top: 8px;
  width: 112px;
  height: 24px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(15, 23, 39, 0.86);
  z-index: 1;
}

.phone-mockup--tall {
  max-width: 360px;
  justify-self: end;
  transform: rotate(2deg) translateX(14px);
  z-index: 3;
}

.screens-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
}

.browser-mockup--gallery {
  grid-column: span 6;
  padding: 10px;
}

.browser-mockup--gallery.browser-mockup--wide {
  grid-column: 1 / -1;
}

.phone-mockup--gallery {
  grid-column: span 4;
}

.phone-mockup--gallery img {
  aspect-ratio: 921 / 2048;
}

[data-preview] {
  cursor: zoom-in;
  outline: none;
  position: relative;
  isolation: isolate;
  transition:
    transform 0.28s ease,
    box-shadow 0.28s ease,
    border-color 0.28s ease;
}

[data-preview] img {
  transition:
    transform 0.35s ease,
    filter 0.35s ease;
}

[data-preview]::after {
  content: "Kliknij, aby powiększyć";
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translate(-50%, 10px);
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(15, 23, 39, 0.82);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
  z-index: 2;
}

[data-preview]:hover,
[data-preview]:focus-visible {
  transform: translateY(-8px) scale(1.01);
  box-shadow:
    0 34px 70px rgba(18, 32, 57, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.66);
}

[data-preview]:hover img,
[data-preview]:focus-visible img {
  transform: scale(1.03);
  filter: saturate(1.04) contrast(1.02);
}

[data-preview]:hover::after,
[data-preview]:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

[data-preview]:focus-visible {
  box-shadow:
    0 0 0 3px rgba(92, 127, 176, 0.22),
    0 34px 70px rgba(18, 32, 57, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.66);
}

.browser-mockup--large[data-preview]:hover,
.browser-mockup--large[data-preview]:focus-visible {
  transform: perspective(1600px) rotateY(-6deg) rotateX(1.5deg) translateY(-2px) scale(1.22);
}

.strip-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 20px;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(236, 241, 248, 0.86));
  border: 1px solid rgba(41, 69, 113, 0.08);
  box-shadow: var(--shadow-soft);
}

.strip-grid div {
  padding: 10px 10px 10px 18px;
  border-left: 3px solid rgba(41, 69, 113, 0.16);
}

.strip-grid strong {
  display: block;
  margin-bottom: 8px;
  font-size: 15px;
}

.strip-grid span {
  color: var(--muted);
  line-height: 1.65;
}

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

.section-heading h2 {
  font-size: clamp(30px, 4vw, 52px);
  margin-bottom: 16px;
}

.feature-grid,
.benefit-list,
.gallery-grid,
.contact-grid {
  display: grid;
  gap: 18px;
}

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

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.feature-card,
.benefit-card,
.gallery-card,
.contact-card,
.cta-shell {
  border-radius: var(--radius-xl);
  background: var(--surface);
  border: 1px solid rgba(41, 69, 113, 0.08);
  box-shadow: var(--shadow-soft);
}

.feature-card {
  padding: 24px;
}

.feature-icon {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(41, 69, 113, 0.12), rgba(92, 127, 176, 0.08));
  color: var(--navy);
  font-weight: 800;
  margin-bottom: 16px;
}

.feature-card h3,
.benefit-card h3 {
  margin: 0 0 10px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 22px;
}

.feature-card p,
.benefit-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.benefits-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 20px;
  align-items: start;
}

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

.benefit-card {
  padding: 22px;
}

.screens-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
}

.gallery-grid {
  grid-template-columns: 1.3fr 0.85fr;
}

.gallery-card {
  padding: 18px;
}

.gallery-card--large {
  grid-row: span 2;
}

.gallery-card__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.gallery-card__head span {
  font-size: 18px;
  font-weight: 800;
}

.gallery-card__head small {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 800;
}

.dashboard-card {
  min-height: 380px;
  border-radius: 24px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 80px 1fr;
  background:
    radial-gradient(circle at top right, rgba(98, 138, 185, 0.16), transparent 34%),
    linear-gradient(180deg, #fbfcfe, #edf2f8);
  border: 1px solid rgba(41, 69, 113, 0.06);
}

.dashboard-left {
  padding: 16px 12px;
  border-right: 1px solid rgba(41, 69, 113, 0.05);
}

.dashboard-sidebox {
  height: 54px;
  border-radius: 18px;
  background: rgba(41, 69, 113, 0.08);
  margin-bottom: 12px;
}

.dashboard-sidebox--active {
  background: linear-gradient(145deg, var(--navy), #375986);
}

.dashboard-right {
  padding: 18px;
}

.dashboard-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.dashboard-kpis span {
  height: 74px;
  border-radius: 20px;
  background: white;
  border: 1px solid rgba(41, 69, 113, 0.08);
}

.dashboard-table {
  display: grid;
  gap: 12px;
}

.dashboard-table i {
  display: block;
  height: 60px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(41, 69, 113, 0.08);
}

.map-card {
  position: relative;
  min-height: 320px;
  border-radius: 24px;
  overflow: hidden;
  background:
    linear-gradient(0deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.1)),
    linear-gradient(180deg, #cde9d5, #dbeed0 38%, #e8f0c9 100%);
  border: 1px solid rgba(41, 69, 113, 0.05);
}

.map-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.4) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.4) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: 0.2;
}

.map-route {
  position: absolute;
  left: 16%;
  top: 18%;
  width: 58%;
  height: 58%;
  border-left: 6px solid var(--navy);
  border-bottom: 6px solid var(--navy);
  border-radius: 0 0 0 80px;
  transform: rotate(-11deg);
  opacity: 0.82;
}

.map-pin {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--navy);
  box-shadow: 0 0 0 8px rgba(41, 69, 113, 0.15);
}

.map-pin::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: white;
}

.map-pin--one {
  left: 25%;
  top: 26%;
}

.map-pin--two {
  left: 55%;
  top: 45%;
}

.map-pin--three {
  left: 72%;
  top: 62%;
}

.fuel-card {
  border-radius: 24px;
  min-height: 320px;
  padding: 18px;
  background: linear-gradient(180deg, #fbfcfe, #eef3f9);
  border: 1px solid rgba(41, 69, 113, 0.06);
}

.fuel-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
}

.fuel-header strong {
  font-size: 18px;
}

.fuel-header span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.fuel-chart {
  height: 250px;
  align-items: end;
}

.fuel-chart span {
  border-radius: 12px 12px 4px 4px;
  background: linear-gradient(180deg, #8d9fbe, #6f83a8);
}

.cta-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 32px;
}

.cta-shell h2 {
  font-size: clamp(28px, 3.8vw, 46px);
  max-width: 16ch;
  margin-bottom: 14px;
}

.contact-grid {
  grid-template-columns: 1.1fr 0.9fr;
  align-items: start;
}

.contact-copy h2 {
  font-size: clamp(28px, 3.8vw, 46px);
  margin-bottom: 16px;
}

.contact-card {
  padding: 22px;
  display: grid;
  gap: 18px;
}

.contact-card__header {
  padding: 6px 6px 2px;
}

.contact-card__header span {
  display: inline-flex;
  align-items: center;
  margin-bottom: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(41, 69, 113, 0.08);
  color: var(--navy);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-card__header strong {
  display: block;
  color: var(--navy);
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 800;
  line-height: 1.2;
}

.contact-card__header p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.contact-card__notes {
  display: grid;
  gap: 12px;
}

.contact-note {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(244, 247, 251, 0.95));
  border: 1px solid rgba(41, 69, 113, 0.08);
}

.contact-note strong {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: rgba(41, 69, 113, 0.1);
  color: var(--navy);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.contact-note span {
  color: var(--text);
  font-weight: 700;
  line-height: 1.55;
}

.contact-card__action {
  width: 100%;
}

.site-footer {
  padding: 28px 0 40px;
}

.footer-shell {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid rgba(41, 69, 113, 0.12);
  color: var(--muted);
}

.footer-shell a {
  color: var(--navy);
  font-weight: 800;
}

.bg-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(24px);
  opacity: 0.55;
  pointer-events: none;
}

.bg-orb--one {
  width: 300px;
  height: 300px;
  top: 8%;
  right: -70px;
  background: rgba(93, 131, 182, 0.18);
}

.bg-orb--two {
  width: 240px;
  height: 240px;
  left: -90px;
  top: 48%;
  background: rgba(199, 138, 62, 0.12);
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image: linear-gradient(rgba(41, 69, 113, 0.03) 1px, transparent 1px);
  background-size: 100% 72px;
  opacity: 0.45;
  pointer-events: none;
}

.image-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(10, 16, 28, 0.55);
  backdrop-filter: blur(14px);
}

.image-modal[hidden] {
  display: none;
}

.image-modal__backdrop {
  position: absolute;
  inset: 0;
}

.image-modal__panel {
  position: relative;
  width: fit-content;
  max-width: min(94vw, 1120px);
  max-height: min(92vh, 960px);
  padding: 18px;
  display: grid;
  gap: 12px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 42px 120px rgba(8, 13, 23, 0.42);
  z-index: 1;
}

.image-modal__image {
  width: auto;
  max-width: 100%;
  max-height: calc(92vh - 110px);
  height: auto;
  justify-self: center;
  object-fit: contain;
  border-radius: 22px;
  background: #0f1727;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.image-modal__caption {
  margin: 0;
  padding-inline: 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  max-width: min(94vw, 1120px);
}

.image-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(15, 23, 39, 0.08);
  color: var(--text);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    background-color 0.2s ease;
}

.image-modal__close:hover,
.image-modal__close:focus-visible {
  transform: scale(1.05);
  background: rgba(15, 23, 39, 0.14);
}

.image-modal__close:focus-visible {
  outline: 3px solid rgba(92, 127, 176, 0.32);
  outline-offset: 2px;
}

.is-modal-open {
  overflow: hidden;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

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

@media (max-width: 1080px) {
  .hero-grid,
  .benefits-grid,
  .contact-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-card--large {
    grid-row: auto;
  }

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

  .mockup-stage {
    grid-template-columns: 1fr;
    grid-template-areas:
      "large"
      "stack"
      "wide";
  }

  .mockup-stack {
    grid-template-columns: 1fr 1fr;
    margin-left: 0;
    padding-top: 0;
  }

  .browser-mockup--wide {
    margin-top: 0;
  }

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

  .browser-mockup--gallery,
  .phone-mockup--gallery {
    grid-column: span 3;
  }

  .browser-mockup--gallery.browser-mockup--wide {
    grid-column: 1 / -1;
  }
}

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

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

  .site-header.is-open .nav {
    display: grid;
    position: absolute;
    left: 20px;
    right: 20px;
    top: calc(100% + 12px);
    padding: 18px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(41, 69, 113, 0.08);
    box-shadow: var(--shadow);
    gap: 14px;
  }

  .site-header.is-open .header-cta {
    display: inline-flex;
    position: absolute;
    right: 20px;
    top: calc(100% + 168px);
  }

  .stats-bar,
  .feature-grid,
  .benefit-grid,
  .strip-grid {
    grid-template-columns: 1fr 1fr;
  }

  .strip-grid {
    gap: 10px;
  }

  .cta-shell {
    flex-direction: column;
    align-items: flex-start;
  }
}

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

  .section {
    padding: 64px 0;
  }

  .hero-copy h1 {
    max-width: 12ch;
  }

  .lead,
  .section-heading p,
  .cta-shell p,
  .contact-copy p {
    font-size: 16px;
  }

  .stats-bar,
  .feature-grid,
  .benefit-list,
  .strip-grid {
    grid-template-columns: 1fr;
  }

  .hero-notes {
    gap: 10px;
  }

  .hero-notes li {
    width: 100%;
    border-radius: 18px;
  }

  .mockup-stack {
    grid-template-columns: 1fr;
  }

  .phone-mockup--tall {
    max-width: 300px;
  }

  .mockup-stage {
    gap: 14px;
    grid-template-areas:
      "large"
      "stack";
  }

  .browser-mockup,
  .phone-mockup {
    border-radius: 24px;
    padding: 10px;
  }

  .browser-chrome {
    height: 46px;
    padding-inline: 14px;
  }

  .browser-label {
    font-size: 10px;
    letter-spacing: 0.06em;
  }

  .browser-mockup img {
    aspect-ratio: 16 / 9;
  }

  .browser-mockup--large {
    transform: none;
    width: 100%;
  }

  .browser-mockup--wide {
    display: none;
  }

  .mockup-stack {
    margin-left: 0;
    padding-top: 0;
  }

  .phone-mockup img {
    aspect-ratio: 921 / 2048;
    object-fit: cover;
  }

  [data-preview]::after {
    display: none;
  }

  .screens-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .browser-mockup--gallery,
  .phone-mockup--gallery,
  .browser-mockup--gallery.browser-mockup--wide {
    grid-column: span 1;
  }

  .browser-mockup--gallery.browser-mockup--wide {
    grid-column: 1 / -1;
  }

  .phone-mockup--gallery {
    max-width: none;
    justify-self: stretch;
  }

  .phone-mockup--gallery img {
    aspect-ratio: 921 / 2048;
    object-fit: cover;
  }

  .browser-mockup--gallery img {
    aspect-ratio: 16 / 9;
  }

  .phone-mockup--tall {
    max-width: none;
    justify-self: stretch;
    transform: none;
  }

  .image-modal {
    padding: 14px;
  }

  .image-modal__panel {
    padding: 14px;
    border-radius: 22px;
    gap: 10px;
  }

  .image-modal__image {
    max-height: calc(85vh - 92px);
    border-radius: 16px;
  }

  .image-modal__caption {
    font-size: 13px;
  }

  .image-modal__close {
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    font-size: 26px;
  }

  .footer-shell {
    flex-direction: column;
  }

  .mockup-stage,
  .benefit-grid,
  .mockup-stack {
    grid-template-columns: 1fr;
  }

  .phone-mockup--tall {
    justify-self: stretch;
    max-width: none;
    transform: none;
    z-index: auto;
  }
}
