:root {
  --page-bg: #fcfcfc;
  --page-bg-alt: #f1f5f9;
  --surface: rgba(255, 255, 255, 0.7);
  --surface-strong: rgba(255, 255, 255, 0.98);
  --surface-dark: #0f172a;
  --text: #334155;
  --heading: #0f172a;
  --muted: #64748b;
  --line: rgba(15, 23, 42, 0.08);
  --line-strong: rgba(15, 23, 42, 0.15);
  --accent: #ea580c;
  --accent-2: #2563eb;
  --accent-soft: #ffedd5;
  --accent-ghost: rgba(234, 88, 12, 0.1);
  --shadow-sm:
    0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-md:
    0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
  --shadow-lg:
    0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
  --radius-sm: 12px;
  --radius-md: 24px;
  --radius-lg: 32px;
  --container: 1280px;
  --header-h: 80px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --glass-bg: rgba(255, 255, 255, 0.65);
  --glass-border: rgba(255, 255, 255, 0.4);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  min-width: 320px;
  width: 100%;
  font-family: Manrope, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--page-bg);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3 {
  font-family: Sora, Manrope, sans-serif;
  letter-spacing: -0.05em;
  margin-top: 0;
  margin-bottom: 1.5rem;
}

p {
  margin-top: 0;
  margin-bottom: 1.5rem;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

body::before {
  opacity: 0.4;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(circle at center, black 10%, transparent 80%);
}

body::after {
  background:
    radial-gradient(circle at 0% 0%, rgba(37, 99, 235, 0.04), transparent 40%),
    radial-gradient(
      circle at 100% 100%,
      rgba(234, 88, 12, 0.04),
      transparent 40%
    );
}

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

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

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

main,
section,
footer {
  overflow-x: clip;
}

.container {
  width: min(var(--container), calc(100% - 1rem));
  margin-inline: auto;
  /* padding-inline: 0.5rem; */
}

.scroll-progress {
  position: fixed;
  inset: 0 auto auto 0;
  z-index: 1500;
  width: 100%;
  height: 2px;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(23, 56, 91, 0.06), transparent);
}

.scroll-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), #2aa46f);
  box-shadow: 0 0 10px rgba(30, 122, 168, 0.18);
  transition: width 120ms linear;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1200;
  padding: 0;
  transition:
    transform 220ms var(--ease),
    opacity 220ms var(--ease),
    padding 220ms var(--ease);
}

.site-header .container {
  /* width: min(var(--container), 100%); */
  width: min(var(--container), calc(100% - 1rem));
  margin-inline: auto;
  transition:
    width 240ms var(--ease),
    transform 240ms var(--ease);
}

.nav-wrap {
  min-height: var(--header-h);
  /* padding: 0.3rem 1rem; */
  padding: 0.3rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-radius: 0;
  border: 1px solid transparent;
  background: transparent;
  backdrop-filter: none;
  box-shadow: none;
  transition:
    background-color 220ms var(--ease),
    border-color 220ms var(--ease),
    box-shadow 220ms var(--ease),
    transform 220ms var(--ease),
    border-radius 220ms var(--ease),
    backdrop-filter 220ms var(--ease);

  padding: 0 20px 0 0;
}

.site-header.scrolled {
  padding-top: 0.45rem;
}

.site-header.scrolled .container {
  /* width: min(var(--container), calc(100% - 0.9rem)); */
  width: min(var(--container), calc(100% - 1rem));
  transform: translateY(0);
}

.site-header.scrolled .nav-wrap {
  border-radius: 1.35rem;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.82),
      rgba(255, 255, 255, 0.62)
    ),
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.44),
      rgba(255, 255, 255, 0.12)
    );
  border-color: rgba(255, 255, 255, 0.7);

  backdrop-filter: blur(22px) saturate(140%);
  box-shadow:
    0 22px 48px rgba(21, 34, 48, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.62);
  animation: navDetach 320ms var(--ease);
  margin-top: 1rem;
}

@keyframes navDetach {
  0% {
    transform: translateY(-0.4rem) scale(0.985);
    opacity: 0.75;
  }
  100% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.brand {
  display: inline-flex;

  align-items: center;
  gap: 0.9rem;
  min-width: 0;
  max-width: min(100%, 22rem);
}

.brand-logo {
  /* width: clamp(12.65rem, 4.8vw, 10.15rem); */
  height: clamp(2.65rem, 4.8vw, 3.15rem);
  padding: 4px 10px;
  flex: 0 0 auto;
  object-fit: contain;
}

.brand-copy {
  display: grid;
  min-width: 0;
}

.brand-title {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  font-family: Sora, Manrope, sans-serif;
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}

.brand-title-blue {
  color: #1c73d7;
}

.brand-title-green {
  color: #26a86a;
}

.main-nav {
  position: fixed;
  top: calc(var(--header-h) + 0.55rem);
  left: 50%;
  width: min(var(--container), calc(100vw - 2rem));
  padding: 0.75rem;
  display: grid;
  gap: 0.4rem;
  border-radius: 1.75rem;
  border: 1px solid rgba(255, 255, 255, 0.48);
  box-shadow: 0 24px 54px rgba(21, 34, 48, 0.16);
  transform: translateX(-50%) translateY(-0.9rem) scale(0.96);
  opacity: 1;
  visibility: hidden;
  transition:
    transform 220ms var(--ease),
    opacity 220ms var(--ease),
    visibility 220ms var(--ease);
}

.main-nav.open {
  transform: translateX(-50%) translateY(0) scale(1);
  opacity: 1;
  visibility: visible;
}

.main-nav a {
  padding: 0.8rem 0.95rem;
  border-radius: 999px;
  color: rgba(21, 34, 48, 0.9);
  font-size: 0.95rem;
  font-weight: 600;
  opacity: 1;
  transition:
    background-color 180ms var(--ease),
    color 180ms var(--ease),
    transform 180ms var(--ease);
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--surface-dark);
  background: rgba(23, 56, 91, 0.08);
  transform: translateX(0.2rem);
}

.nav-dropdown {
  position: relative;
  display: grid;
}

.nav-dropdown-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.25rem;
}

.nav-dropdown-link {
  padding: 0.8rem 0.95rem;
  border-radius: 999px;
  color: rgba(21, 34, 48, 0.9);
  font-size: 0.95rem;
  font-weight: 600;
  transition:
    background-color 180ms var(--ease),
    color 180ms var(--ease),
    transform 180ms var(--ease);
}

.nav-dropdown-toggle {
  min-height: 3rem;
  min-width: 3rem;
  padding: 0.8rem;
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: rgba(21, 34, 48, 0.9);
  font-size: 0.95rem;
  font-weight: 600;
  transition:
    background-color 180ms var(--ease),
    color 180ms var(--ease);
}

.nav-dropdown-link:hover,
.nav-dropdown-link.active,
.nav-dropdown-toggle:hover,
.nav-dropdown-toggle.active,
.nav-dropdown.open .nav-dropdown-toggle,
.nav-dropdown.open .nav-dropdown-link {
  color: var(--surface-dark);
  background: rgba(23, 56, 91, 0.08);
}

.nav-caret {
  width: 0.6rem;
  height: 0.6rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-0.08rem);
  transition: transform 180ms var(--ease);
}

.nav-dropdown.open .nav-caret {
  transform: rotate(-135deg) translateY(-0.08rem);
}

.nav-submenu {
  display: grid;
  gap: 0.35rem;
  padding: 0.45rem;
  margin-top: 0.25rem;
  border-radius: 1.4rem;
  border: 1px solid rgba(23, 56, 91, 0.08);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 24px rgba(21, 34, 48, 0.1);
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  visibility: hidden;
  transform: translateY(-0.25rem);
  transition:
    opacity 180ms var(--ease),
    max-height 220ms var(--ease),
    visibility 180ms var(--ease),
    transform 180ms var(--ease);
}

.nav-dropdown.open .nav-submenu {
  opacity: 1;
  max-height: 28rem;
  visibility: visible;
  transform: translateY(0);
}

.nav-submenu a {
  padding: 0.7rem 0.85rem;
  border-radius: 1rem;
  font-size: 0.92rem;
}

.menu-toggle {
  width: 3rem;
  height: 3rem;
  border: 1px solid rgba(23, 56, 91, 0.14);
  border-radius: 1rem;
  display: inline-grid;
  align-content: center;
  gap: 0.33rem;
  padding-inline: 0.7rem;
  background: rgba(255, 255, 255, 0.6);
  color: var(--text);
}

.menu-toggle span {
  height: 2px;
  background: currentColor;
  border-radius: 999px;
  transition:
    transform 180ms var(--ease),
    opacity 180ms var(--ease);
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(0.46rem) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-0.46rem) rotate(-45deg);
}

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  /* padding: calc(var(--header-h) + 9rem) 0 1.5rem; */
  padding-top: calc(var(--header-h) + 5rem);
  display: flex;
  align-items: stretch;
  overflow: clip;
  background:
    radial-gradient(circle at 10% 20%, rgba(23, 56, 91, 0.05), transparent 40%),
    radial-gradient(
      circle at 90% 80%,
      rgba(232, 118, 59, 0.05),
      transparent 40%
    ),
    radial-gradient(
      circle at 50% 50%,
      rgba(38, 168, 106, 0.03),
      transparent 50%
    );
  background-size: 200% 200%;
  animation: heroMesh 15s ease infinite alternate;
  background-attachment: fixed;
}

@keyframes heroMesh {
  0% {
    background-position: 0% 0%;
  }
  100% {
    background-position: 100% 100%;
  }
}

.hero::before {
  content: "";
  position: absolute;
  inset: 10% -6% auto auto;
  width: min(44rem, 78vw);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(23, 56, 91, 0.08), transparent 66%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 4rem auto auto 0;
  width: min(34rem, 48vw);
  height: 1px;
  background: linear-gradient(90deg, rgba(232, 118, 59, 0.24), transparent 72%);
  pointer-events: none;
}

.hero-settings {
  position: absolute;
  top: 50%;
  left: calc(100% - 2rem);
  z-index: 0;
  width: min(96vh, 66rem);
  height: min(96vh, 66rem);
  background: url("../images/settings.png") center/contain no-repeat;
  opacity: 0.06;
  transform: translate(-50%, -50%);
  transform-origin: center;
  pointer-events: none;
  filter: saturate(0.95) contrast(1.02);
  animation: heroSettingsSpin 34s linear infinite;
  will-change: transform;
}

@keyframes heroSettingsSpin {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes heroSettingsSpinMobile {
  from {
    transform: translate(-50%, 0) rotate(0deg);
  }
  to {
    transform: translate(-50%, 0) rotate(360deg);
  }
}

.hero-orb {
  position: absolute;
  border-radius: 70%;
  filter: blur(40px);
  pointer-events: none;
}

.hero-orb-left {
  top: 7rem;
  left: -6rem;
  width: 16rem;
  height: 16rem;
  background: rgba(232, 118, 59, 0.18);
}

.hero-orb-right {
  right: -4rem;
  bottom: 2rem;
  width: 22rem;
  height: 22rem;
  background: rgba(23, 56, 91, 0.12);
}

.hero-grid {
  display: grid;
  align-items: center;
  gap: clamp(2rem, 5vw, 4.75rem);
  min-height: calc(100vh - var(--header-h) - 3rem);
  min-height: calc(100svh - var(--header-h) - 3rem);
  position: relative;
  z-index: 1;
}

.hero-copy {
  min-width: 0;
  position: relative;
}

.eyebrow,
.section-label,
.card-eyebrow,
.insight-kicker,
.process-panel-label {
  margin: 0;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow,
.section-label,
.card-eyebrow,
.process-panel-label {
  color: var(--accent);
}

.hero-title,
.section-title {
  margin: 0;
  font-family: Sora, Manrope, sans-serif;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.hero-title {
  max-width: 12ch;
  font-size: clamp(1.8rem, 5vw, 3.5rem);
  text-wrap: balance;
}

.hero-title-emphasis {
  display: inline-block;
  color: #214f79;
}

.hero-subtitle,
.section-text,
.service-card p,
.process-step p,
.process-panel p,
.contact-cards p {
  margin: 0;
  color: var(--muted);
}

.hero-subtitle {
  max-width: 38rem;
  margin-top: 1.3rem;
  font-size: clamp(1rem, 1.9vw, 1.2rem);
  text-wrap: pretty;
}

.hero-actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.btn {
  min-height: 3.35rem;
  padding: 0 1.4rem;
  border-radius: 999px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  font-weight: 700;
  transition:
    transform 300ms cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 300ms var(--ease),
    background-color 300ms var(--ease),
    border-color 300ms var(--ease);
}

.btn:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow:
    0 10px 20px rgba(0, 0, 0, 0.08),
    0 4px 8px rgba(0, 0, 0, 0.04);
}

.btn::after {
  display: none;
}

.btn:disabled {
  cursor: wait;
  opacity: 0.75;
  transform: none;
  box-shadow: none;
}

.btn-primary {
  background: linear-gradient(140deg, #17385b, #245b88 92%);
  color: #fff;
  box-shadow:
    0 8px 16px rgba(23, 56, 91, 0.15),
    0 4px 8px rgba(23, 56, 91, 0.08);
}

.btn-primary:hover {
  box-shadow:
    0 16px 32px rgba(23, 56, 91, 0.2),
    0 8px 16px rgba(23, 56, 91, 0.12);
}

.btn-secondary {
  border-color: rgba(23, 56, 91, 0.16);
  background: rgba(255, 255, 255, 0.68);
  color: var(--text);
  box-shadow: 0 12px 28px rgba(21, 34, 48, 0.06);
}

.btn-full {
  width: 100%;
}

.safe-drive-section {
  background:
    linear-gradient(135deg, rgba(23, 56, 91, 0.97), rgba(11, 28, 47, 0.98)),
    var(--surface-dark);
  color: #fff;
}

.safe-drive-grid,
.safe-drive-hero-grid,
.app-download-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.safe-drive-section .section-title,
.safe-drive-section .section-text {
  color: #fff;
}

.safe-drive-section .section-text {
  color: rgba(237, 243, 249, 0.78);
}

.safe-drive-actions {
  margin-top: 1.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.safe-drive-preview,
.safe-drive-device {
  display: flex;
  justify-content: center;
}

.safe-screen-stack {
  width: min(100%, 34rem);
  min-height: 38rem;
  position: relative;
}

.safe-screen-stack-hero {
  min-height: 42rem;
}

.safe-screen-stack-compact {
  min-height: 34rem;
}

.safe-screen-card {
  margin: 0;
  overflow: hidden;
  border-radius: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.52);
  background: #fff;
  box-shadow: 0 28px 70px rgba(8, 20, 34, 0.22);
}

.safe-screen-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: top center;
}

.safe-screen-card-main {
  position: absolute;
  top: 0;
  left: 5%;
  width: 58%;
  aspect-ratio: 390 / 844;
}

.safe-screen-card-float {
  position: absolute;
  right: 0;
  top: 5.5rem;
  width: 54%;
  aspect-ratio: 390 / 844;
  transform: rotate(3deg);
}

.safe-screen-card-alert {
  position: absolute;
  left: 0;
  bottom: 0.8rem;
  width: 42%;
  aspect-ratio: 390 / 844;
  transform: rotate(-5deg);
  box-shadow: 0 22px 52px rgba(234, 88, 12, 0.22);
}

.safe-screen-stack-compact .safe-screen-card-main {
  left: 6%;
  width: 54%;
}

.safe-screen-stack-compact .safe-screen-card-float {
  top: 3rem;
  width: 50%;
}

.app-phone {
  width: min(100%, 24rem);
  min-height: 31rem;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 2.2rem;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.94),
      rgba(246, 248, 252, 0.9)
    ),
    #fff;
  color: var(--heading);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.22);
  position: relative;
  overflow: hidden;
}

.app-phone::before {
  content: "";
  position: absolute;
  top: 0.7rem;
  left: 50%;
  width: 5.6rem;
  height: 0.35rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.16);
  transform: translateX(-50%);
}

.app-phone-large {
  width: min(100%, 25rem);
  min-height: 35rem;
}

.app-phone-top {
  margin-top: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.app-phone-top img {
  width: 3.8rem;
  height: 3.8rem;
  border-radius: 1.1rem;
  background: #111827;
  box-shadow: 0 14px 24px rgba(15, 23, 42, 0.14);
}

.app-phone-top span,
.ride-status-card span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.app-phone-top strong,
.ride-status-card strong {
  display: block;
  margin-top: 0.15rem;
  color: var(--heading);
  font-family: Sora, Manrope, sans-serif;
  font-size: 1.1rem;
  line-height: 1.2;
}

.app-speedometer {
  width: 100%;
  margin: 2rem 0 1.1rem;
}

.app-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.app-stat-grid span,
.safe-feature-card,
.download-card,
.ride-status-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.78);
}

.app-stat-grid span {
  min-height: 4.25rem;
  padding: 0.8rem;
  display: grid;
  place-items: center;
  color: var(--heading);
  font-weight: 800;
  text-align: center;
  line-height: 1.25;
}

.safe-drive-hero {
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--header-h) + 4rem) 0 4rem;
  display: grid;
  align-items: center;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.86),
      rgba(241, 245, 249, 0.74)
    ),
    var(--page-bg-alt);
}

.safe-drive-page .hero-title {
  max-width: 13ch;
}

.download-note {
  max-width: 38rem;
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.ride-status-card {
  padding: 1rem;
}

.app-bike {
  width: min(70%, 12rem);
  margin: 1.1rem auto 0;
}

.safe-feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  gap: 1rem;
}

.safe-feature-card {
  padding: 1.35rem;
  box-shadow: var(--shadow-sm);
}

.safe-feature-card span {
  color: var(--accent);
  font-weight: 900;
}

.safe-feature-card h3 {
  margin: 0.55rem 0 0.6rem;
  color: var(--heading);
  font-size: 1.08rem;
  line-height: 1.25;
}

.safe-feature-card p {
  margin: 0;
  color: var(--muted);
}

.safe-screens-showcase {
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.96),
      rgba(241, 245, 249, 0.9)
    ),
    #fff;
}

.screen-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
  gap: 1rem;
  align-items: start;
}

.screen-gallery-card {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-md);
}

.screen-gallery-card img {
  width: 100%;
  aspect-ratio: 390 / 844;
  object-fit: cover;
  object-position: top center;
  background: var(--page-bg-alt);
}

.screen-gallery-card div {
  padding: 1rem;
  display: grid;
  gap: 0.35rem;
}

.screen-gallery-card span {
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.screen-gallery-card strong {
  color: var(--heading);
  font-size: 0.98rem;
  line-height: 1.35;
}

.app-download-panel {
  background: #fff;
}

.download-card {
  padding: 1rem;
  box-shadow: var(--shadow-md);
}

.download-card img {
  width: 100%;
  border-radius: var(--radius-sm);
  background: var(--page-bg-alt);
}

.download-card div {
  margin-top: 1rem;
  display: grid;
  gap: 0.2rem;
}

.download-card strong {
  color: var(--heading);
  font-family: Sora, Manrope, sans-serif;
}

.download-card span {
  color: var(--muted);
}

.safe-drive-page .safe-drive-hero {
  min-height: auto;
  padding: calc(var(--header-h) + 6rem) 0 6rem;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.96),
      rgba(246, 248, 252, 0.92)
    ),
    var(--page-bg);
}

.safe-drive-page .safe-drive-hero-grid {
  gap: clamp(2rem, 6vw, 5rem);
}

.safe-drive-page .hero-title {
  max-width: 12ch;
  font-size: clamp(1.55rem, 6.4vw, 3.3rem);
  line-height: 0.98;
}

.safe-drive-page .hero-subtitle {
  max-width: 42rem;
}

.safe-phone-frame {
  width: min(100%, 21rem);
  margin: 0;
  padding: 0.55rem;
  border-radius: 2rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #fff;
  box-shadow:
    0 28px 80px rgba(15, 23, 42, 0.14),
    0 8px 24px rgba(15, 23, 42, 0.08);
}

.safe-phone-frame img {
  display: block;
  width: 100%;
  aspect-ratio: 390 / 844;
  border-radius: 1.45rem;
  object-fit: cover;
  object-position: top center;
}

.safe-phone-frame-hero {
  width: min(100%, 23rem);
}

.safe-phone-frame-small {
  width: min(100%, 19rem);
}

.safe-feature-grid-minimal {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 1.35rem;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow-sm);
}

.safe-feature-grid-minimal .safe-feature-card {
  border: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 1.35rem;
}

.safe-feature-grid-minimal .safe-feature-card:nth-child(4n) {
  border-right: 0;
}

.safe-feature-grid-minimal .safe-feature-card h3 {
  margin-top: 0;
  font-size: 1rem;
}

.safe-feature-grid-minimal .safe-feature-card p {
  font-size: 0.94rem;
  line-height: 1.6;
}

.screen-gallery-minimal {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.85rem;
}

.screen-gallery-minimal .screen-gallery-card {
  border-radius: 1rem;
  box-shadow: none;
  background: #fff;
}

.screen-gallery-minimal .screen-gallery-card img {
  aspect-ratio: 390 / 760;
}

.screen-gallery-minimal .screen-gallery-card div {
  padding: 0.8rem 0.85rem;
}

.screen-gallery-minimal .screen-gallery-card span {
  color: var(--heading);
  font-size: 0.72rem;
}

.app-download-minimal {
  width: min(52rem, calc(100% - 1rem));
  margin-inline: auto;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  background: #fff;
  box-shadow: var(--shadow-md);
  text-align: center;
}

.app-download-minimal .section-title,
.app-download-minimal .section-text {
  margin-inline: auto;
}

.app-download-minimal .safe-drive-actions {
  justify-content: center;
}

.install-steps {
  margin-top: 1.5rem;
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 1rem;
  overflow: hidden;
  text-align: left;
}

.install-steps article {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  gap: 0.85rem;
  padding: 0.95rem 1rem;
  border-bottom: 1px solid var(--line);
  background: rgba(248, 250, 252, 0.72);
}

.install-steps article:last-child {
  border-bottom: 0;
}

.install-steps span {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.install-steps p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.55;
}

.install-steps strong {
  color: var(--heading);
}

.hero-metrics {
  margin-top: 6rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.hero-metrics article,
.stat-card,
.contact-cards article {
  padding: 1rem 1.1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.7),
    rgba(255, 255, 255, 0.52)
  );
  backdrop-filter: blur(12px) saturate(140%);
  box-shadow:
    0 4px 6px rgba(0, 0, 0, 0.05),
    0 10px 15px rgba(0, 0, 0, 0.03);
  transition:
    transform 300ms var(--ease),
    box-shadow 300ms var(--ease);
}

.hero-metrics article:hover,
.stat-card:hover,
.contact-cards article:hover {
  transform: translateY(-8px);
  box-shadow:
    0 20px 30px rgba(0, 0, 0, 0.1),
    0 10px 15px rgba(0, 0, 0, 0.06);
}

.hero-metrics strong,
.stat-card strong {
  display: block;
  font-family: Sora, Manrope, sans-serif;
  font-size: 1.05rem;
  line-height: 1.2;
}

.hero-metrics span,
.stat-card span {
  display: block;
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.hero-visual {
  position: relative;
  min-height: clamp(22rem, 48vw, 34rem);
  min-width: 0;
}

.hero-photo-card {
  position: absolute;
  inset: 0 0 3.8rem 2.4rem;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.42);
  box-shadow: var(--shadow-lg);
  transform: translate3d(0, var(--parallax-shift, 0px), 0);
}

.hero-photo-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(11, 24, 37, 0),
    rgba(11, 24, 37, 0.28)
  );
}

.hero-photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform 700ms var(--ease),
    filter 700ms var(--ease);
}

.hero-photo-card:hover img {
  transform: scale(1.06);
  filter: saturate(1.08);
}

.floating-card {
  position: absolute;
  max-width: calc(100% - 0.75rem);
  border-radius: 1.75rem;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-sm);
  animation: none;
}

.floating-card-blueprint {
  left: 0;
  bottom: 5.6rem;
  width: min(18rem, 78%);
  display: grid;
  grid-template-columns: 5.2rem 1fr;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
}

.floating-card-blueprint img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 1.2rem;
}

.floating-card-blueprint p,
.floating-card-score p {
  margin: 0;
}

.floating-card-blueprint p,
.floating-card-score strong {
  font-family: Sora, Manrope, sans-serif;
  font-weight: 700;
}

.floating-card-blueprint span,
.floating-label {
  color: var(--muted);
  font-size: 0.9rem;
}

.floating-card-score {
  right: 0;
  bottom: 0;
  width: min(17rem, 78%);
  padding: 1.15rem 1.2rem;
  background:
    linear-gradient(180deg, rgba(23, 56, 91, 0.94), rgba(23, 56, 91, 0.88)),
    linear-gradient(140deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0));
  color: #edf3f9;
  border-color: rgba(255, 255, 255, 0.14);
}

.floating-card-score strong {
  display: block;
  margin-top: 0.45rem;
  font-size: 1.1rem;
  line-height: 1.35;
}

.floating-card-score p {
  margin-top: 0.45rem;
  color: rgba(237, 243, 249, 0.74);
  font-size: 0.95rem;
}

.section {
  padding: clamp(4.8rem, 8vw, 7.8rem) 0;
  position: relative;
}

.section[id],
.service-card[id] {
  scroll-margin-top: calc(var(--header-h) + 1.75rem);
}

.section-cream {
  position: relative;
}

.section-cream::before {
  content: "";
  position: absolute;
  inset: 2rem 0 auto;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(23, 56, 91, 0.12),
    transparent
  );
}

.section-grid,
.contact-grid,
.process-grid {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.2rem);
}

.hero-grid > *,
.section-grid > *,
.contact-grid > *,
.process-grid > *,
.service-grid > *,
.footer-grid > * {
  min-width: 0;
}

.section-head {
  display: grid;
  gap: 0.85rem;
  margin-bottom: clamp(1.75rem, 4vw, 2.5rem);
}

.section-head::after {
  content: "";
  width: min(5rem, 24vw);
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.section-title {
  max-width: 16ch;
  font-size: clamp(2rem, 4.4vw, 3.8rem);
}

.section-text {
  max-width: 40rem;
  font-size: 1rem;
}

.section-text-wide {
  max-width: 46rem;
}

.pill-row,
.tag-row,
.process-checklist {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.pill,
.tag-row span,
.process-checklist span {
  padding: 0.65rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(23, 56, 91, 0.12);
  background: rgba(255, 255, 255, 0.62);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
}

.pill-row {
  margin-top: 1.65rem;
}

.about-stack {
  display: grid;
  gap: 1.25rem;
}

.insight-card,
.service-card,
.process-panel,
.contact-form {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.7))
      padding-box,
    linear-gradient(140deg, rgba(255, 255, 255, 0.7), rgba(23, 56, 91, 0.06))
      border-box;
  box-shadow:
    0 4px 6px rgba(0, 0, 0, 0.05),
    0 10px 15px rgba(0, 0, 0, 0.03);
  backdrop-filter: blur(12px) saturate(130%);
}

.insight-card::before,
.service-card::before,
.process-panel::before,
.contact-form::before {
  content: "";
  position: absolute;
  inset: auto auto 0 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at bottom left,
    rgba(232, 118, 59, 0.12),
    transparent 48%
  );
  pointer-events: none;
}

.insight-card-feature {
  padding: 1.2rem;
  display: grid;
  gap: 1.15rem;
}

.insight-media {
  border-radius: 1.6rem;
  overflow: hidden;
  min-height: 15rem;
}

.insight-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.insight-body {
  display: grid;
  gap: 0.55rem;
}

.insight-body h3,
.service-body h3,
.service-card h3,
.process-step h3,
.process-panel h3,
.contact-form h3 {
  margin: 0;
  font-family: Sora, Manrope, sans-serif;
  font-size: 1.4rem;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.service-grid {
  display: grid;
  gap: 1rem;
  align-items: stretch;
}

.service-card {
  min-height: 100%;
  padding: 1.35rem;
  display: grid;
  align-content: start;
  gap: 0.8rem;
  transition:
    transform 220ms var(--ease),
    box-shadow 220ms var(--ease),
    border-color 220ms var(--ease);
}

.service-card:hover,
.gallery-item:hover,
.insight-card:hover,
.process-panel:hover,
.contact-form:hover {
  transform: translateY(-8px);
  box-shadow:
    0 20px 30px rgba(0, 0, 0, 0.1),
    0 10px 15px rgba(0, 0, 0, 0.06);
  border-color: var(--line-strong);
  transition:
    transform 300ms var(--ease),
    box-shadow 300ms var(--ease),
    border-color 300ms var(--ease);
}

.service-card::after,
.insight-card::after,
.process-panel::after,
.contact-form::after {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(
    90deg,
    rgba(232, 118, 59, 0.55),
    rgba(30, 122, 168, 0.45),
    transparent 72%
  );
  opacity: 0;
  transition: opacity 220ms var(--ease);
}

.service-card:hover::after,
.insight-card:hover::after,
.process-panel:hover::after,
.contact-form:hover::after {
  opacity: 1;
}

.service-card-wide {
  align-content: start;
  padding: clamp(1.4rem, 3vw, 2rem);
}

.service-card-media {
  display: grid;
  grid-template-rows: minmax(12.5rem, auto) auto;
  gap: 1rem;
}

.service-media {
  border-radius: 1.45rem;
  overflow: hidden;
  min-height: 13rem;
  background:
    linear-gradient(180deg, rgba(23, 56, 91, 0.08), rgba(23, 56, 91, 0.02)),
    #f7f2eb;
}

.service-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-media-contain {
  display: grid;
  place-items: center;
  padding: 1rem;
}

.service-media-contain img {
  object-fit: contain;
}

.service-body {
  display: grid;
  gap: 0.55rem;
}

.service-card h3,
.service-body h3 {
  min-height: 3.2rem;
}

.service-card p:last-child,
.service-body p:last-child {
  margin-top: auto;
}

.competent-person-grid,
.learning-grid {
  display: grid;
  gap: 1.25rem;
  align-items: start;
}

.competent-person-copy,
.learning-copy {
  display: grid;
  gap: 1rem;
}

.competent-person-points,
.learning-cards {
  display: grid;
  gap: 1rem;
}

.competent-person-points article,
.inspection-card,
.learning-feature,
.learning-card,
.client-logo-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  /* background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.7))
      padding-box,
    linear-gradient(140deg, rgba(255, 255, 255, 0.7), rgba(23, 56, 91, 0.06))
      border-box; */
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-sm);
}

.competent-person-points article,
.inspection-card,
.learning-feature,
.learning-card {
  padding: 1.2rem;
}

.competent-person-points article strong,
.inspection-card-title,
.learning-card strong {
  display: block;
  font-family: Sora, Manrope, sans-serif;
  font-size: 1.05rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.competent-person-points article p,
.inspection-card p,
.learning-feature p,
.learning-card p {
  margin: 0.55rem 0 0;
  color: var(--muted);
}

.competent-person-visual {
  display: grid;
  gap: 1rem;
}

.competent-person-art {
  overflow: hidden;
  border-radius: calc(var(--radius-lg) - 0.2rem);
  border: 1px solid rgba(23, 56, 91, 0.1);
  background:
    radial-gradient(
      circle at top right,
      rgba(232, 118, 59, 0.12),
      transparent 30%
    ),
    rgba(255, 255, 255, 0.74);
  box-shadow: var(--shadow-lg);
  position: relative;
}

.competent-person-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.competent-person-art-badge {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  padding: 0.8rem 0.9rem;
  border-radius: 1.2rem;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.88),
    rgba(255, 255, 255, 0.74)
  );
  border: 1px solid rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(16px);
  box-shadow: 0 12px 28px rgba(21, 34, 48, 0.1);
}

.competent-person-art-badge strong,
.competent-person-art-badge span {
  display: block;
}

.competent-person-art-badge strong {
  font-family: Sora, Manrope, sans-serif;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.competent-person-art-badge span {
  margin-top: 0.28rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.competent-person-focus {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.competent-person-focus span {
  padding: 0.75rem 0.95rem;
  border-radius: 999px;
  background: rgba(23, 56, 91, 0.08);
  color: var(--surface-dark);
  font-size: 0.92rem;
  font-weight: 700;
}

.inspection-grid {
  margin-top: 1.35rem;
  display: grid;
  gap: 1rem;
}

.inspection-card {
  min-height: 100%;
  transition:
    transform 220ms var(--ease),
    box-shadow 220ms var(--ease),
    border-color 220ms var(--ease);
}

.inspection-card:hover,
.learning-card:hover,
.client-logo-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
}

.logo-marquee {
  position: relative;
  overflow: hidden;
  padding: 0.75rem 0;
}

.logo-marquee::before,
.logo-marquee::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: min(5rem, 10vw);
  z-index: 1;
  pointer-events: none;
}

.logo-marquee::before {
  left: 0;
}

.logo-marquee::after {
  right: 0;
}

.logo-marquee-track {
  display: flex;
  width: max-content;
  gap: 1rem;
  animation: logoMarquee 40s linear infinite;
  will-change: transform;
}

.logo-marquee:hover .logo-marquee-track {
  animation-play-state: paused;
}

@keyframes logoMarquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-50% - 0.5rem));
  }
}

.client-logo-card {
  width: min(14rem, 42vw);
  min-height: 9rem;
  padding: 1rem;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 0.8rem;
  text-align: center;
  /* background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.82))
      padding-box,
    linear-gradient(140deg, rgba(255, 255, 255, 0.7), rgba(23, 56, 91, 0.06))
      border-box; */
  box-shadow: 0 8px 18px rgba(21, 34, 48, 0.05);
}

.client-logo-card p {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--muted);
}

.client-logo-asset {
  min-height: 3.9rem;
  width: 100%;
  display: grid;
  place-items: center;
}

.client-logo-image {
  max-width: 100%;
  max-height: 3.9rem;
  object-fit: contain;
  mix-blend-mode: multiply;
  transition:
    transform 260ms var(--ease),
    filter 260ms var(--ease);
}

.client-logo-card:hover .client-logo-image {
  transform: scale(1.05);
  filter: saturate(1.05);
}

.client-logo-fallback {
  display: none;
  min-width: 3.5rem;
  min-height: 3.5rem;
  padding: 0.65rem 0.85rem;
  border-radius: 1rem;
  /* background: linear-gradient(140deg, #17385b, #2b699d); */
  color: #fff;
  font-family: Sora, Manrope, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  place-items: center;
}

.client-logo-card.is-fallback .client-logo-image {
  display: none;
}

.client-logo-card.is-fallback .client-logo-fallback {
  display: grid;
}

.learning-stack {
  display: grid;
  gap: 1rem;
}

.learning-feature {
  padding: clamp(1.4rem, 3vw, 2rem);
  background:
    linear-gradient(180deg, rgba(16, 37, 59, 0.9), rgba(16, 37, 59, 0.82)),
    linear-gradient(120deg, rgba(232, 118, 59, 0.12), rgba(255, 255, 255, 0));
  color: #edf3f9;
}

.learning-feature h3 {
  margin: 0;
  font-family: Sora, Manrope, sans-serif;
  font-size: 1.6rem;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.learning-feature p {
  color: rgba(237, 243, 249, 0.78);
}

.process {
  position: relative;
}

.process::before {
  content: "";
  position: absolute;
  inset: 5% auto auto -8rem;
  width: 18rem;
  height: 18rem;
  border-radius: 50%;
  background: rgba(232, 118, 59, 0.08);
  filter: blur(18px);
}

.process-copy {
  display: grid;
  gap: 1.25rem;
}

.process-steps {
  display: grid;
  gap: 1rem;
}

.process-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1.1rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.62);
  transition:
    transform 220ms var(--ease),
    border-color 220ms var(--ease),
    box-shadow 220ms var(--ease);
}

.process-step:hover {
  transform: translateX(2px);
  border-color: var(--line-strong);
  box-shadow: 0 14px 28px rgba(21, 34, 48, 0.06);
}

.process-step span {
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  display: grid;
  place-items: center;
  background: rgba(23, 56, 91, 0.08);
  color: var(--surface-dark);
  font-family: Sora, Manrope, sans-serif;
  font-weight: 700;
}

.process-panel {
  display: grid;
  align-content: start;
  gap: 1rem;
  padding: clamp(1.5rem, 3vw, 2rem);
  background:
    linear-gradient(180deg, rgba(16, 37, 59, 0.9), rgba(16, 37, 59, 0.82)),
    url("../images/hero_background.png") center/cover no-repeat;
  color: #edf3f9;
}

.process-panel p {
  color: rgba(237, 243, 249, 0.78);
}

.process-checklist span {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.work {
  position: relative;
}

.gallery-grid {
  display: grid;
  gap: 1rem;
}

.gallery-item {
  position: relative;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.7))
      padding-box,
    linear-gradient(140deg, rgba(255, 255, 255, 0.7), rgba(23, 56, 91, 0.06))
      border-box;
  box-shadow: var(--shadow-sm);
  transition:
    transform 220ms var(--ease),
    box-shadow 220ms var(--ease),
    border-color 220ms var(--ease);
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(11, 24, 37, 0.02),
    rgba(11, 24, 37, 0.58)
  );
}

.gallery-item img {
  width: 100%;
  height: 100%;
  min-height: 16rem;
  object-fit: cover;
  transition:
    transform 260ms var(--ease),
    filter 260ms var(--ease);
}

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

.gallery-item span {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 1;
  font-family: Sora, Manrope, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  text-align: left;
}

.gallery-item-contain {
  background:
    linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.94),
        rgba(255, 255, 255, 0.82)
      )
      padding-box,
    linear-gradient(140deg, rgba(255, 255, 255, 0.7), rgba(23, 56, 91, 0.06))
      border-box;
}

.gallery-item-contain img {
  object-fit: contain;
  padding: 1.5rem;
  background: linear-gradient(180deg, #fefefe, #f3efe8);
}

.contact-grid {
  align-items: start;
}

.contact-copy {
  display: grid;
  gap: 1rem;
}

.contact-cards {
  display: grid;
  gap: 0.9rem;
  margin-top: 0.5rem;
}

.contact-cards article span {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.contact-cards a,
.contact-cards p {
  margin-top: 0.35rem;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
}

.contact-form {
  display: grid;
  gap: 1rem;
  padding: clamp(1.4rem, 3vw, 2rem);
}

.contact-form label {
  display: grid;
  gap: 0.45rem;
  font-size: 0.95rem;
  font-weight: 700;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(23, 56, 91, 0.14);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.84);
  color: var(--text);
  transition:
    border-color 180ms var(--ease),
    box-shadow 180ms var(--ease),
    background-color 180ms var(--ease);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: rgba(23, 56, 91, 0.34);
  box-shadow: 0 0 0 4px rgba(23, 56, 91, 0.08);
  background: rgba(255, 255, 255, 0.98);
}

.contact-form textarea {
  resize: vertical;
  min-height: 8.5rem;
}

.contact-form input.invalid,
.contact-form textarea.invalid {
  border-color: #d43d26;
  box-shadow: 0 0 0 4px rgba(212, 61, 38, 0.08);
}

.form-note {
  min-height: 1.5rem;
  margin: 0;
  font-size: 0.94rem;
  font-weight: 600;
}

.form-note.error {
  color: #c33721;
}

.form-note.success {
  color: #1c6c5a;
}

.manpower {
  background:
    radial-gradient(circle at 100% 0%, rgba(23, 56, 91, 0.06), transparent 28%),
    linear-gradient(180deg, rgba(248, 250, 252, 0.96), rgba(255, 255, 255, 1));
}

.manpower-grid {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

.manpower-copy {
  display: grid;
  gap: 1.5rem;
}

.manpower-copy .section-head {
  margin-bottom: 0;
}

.manpower-points {
  display: grid;
  gap: 0.95rem;
}

.manpower-points article {
  padding: 1.1rem 1.15rem;
  border-radius: 1.35rem;
  border: 1px solid rgba(23, 56, 91, 0.1);
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.88),
      rgba(245, 248, 251, 0.9)
    ),
    rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 36px rgba(21, 34, 48, 0.08);
}

.manpower-points strong {
  display: block;
  margin-bottom: 0.35rem;
  font-family: Sora, Manrope, sans-serif;
  font-size: 1rem;
  line-height: 1.25;
}

.manpower-points p {
  margin: 0;
  color: var(--muted);
}

.manpower-media {
  margin: 0;
  overflow: hidden;
  border-radius: 2rem;
  border: 1px solid rgba(23, 56, 91, 0.12);
  background: #fff;
  box-shadow:
    0 24px 56px rgba(18, 35, 56, 0.14),
    0 8px 22px rgba(18, 35, 56, 0.08);
}

.manpower-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.site-footer {
  padding: 3.25rem 0 2rem;
  background:
    radial-gradient(
      circle at 88% 18%,
      rgba(42, 164, 111, 0.16),
      transparent 18%
    ),
    radial-gradient(
      circle at 0% 0%,
      rgba(255, 255, 255, 0.08),
      transparent 24%
    ),
    linear-gradient(180deg, #17385b, #10253c);
  color: rgba(237, 243, 249, 0.84);
}

.footer-grid {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}

.footer-grid > div {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.footer-grid h3 {
  margin: 0 0 0.7rem;
  font-family: Sora, Manrope, sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}

.footer-grid a,
.footer-grid span,
.footer-grid p {
  display: block;
  margin: 0.4rem 0;
  color: rgba(237, 243, 249, 0.78);
}

.footer-grid a {
  width: fit-content;
  max-width: 100%;
  transition:
    color 180ms var(--ease),
    transform 180ms var(--ease);
}

.footer-grid a:hover {
  color: #fff;
  transform: translateX(0.15rem);
}

.footer-brand-block p {
  max-width: 26rem;
  margin: 0;
}

.brand-footer {
  margin-bottom: 1rem;
}

.footer-brand-mark {
  max-width: none;
}

.footer-logo-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 4.9rem;
  padding: 0.85rem 1.15rem;
  border-radius: 1.5rem;
  background: linear-gradient(180deg, #ffffff, #eef4f8);
  box-shadow:
    0 18px 38px rgba(7, 18, 30, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.footer-logo-badge .brand-logo {
  height: clamp(3.2rem, 6vw, 4rem);
  padding: 0;
}

.footer-links,
.footer-contact {
  display: grid;
  align-content: start;
  gap: 0.2rem;
}

.footer-contact a[href^="mailto:"] {
  width: 100%;
  max-width: 16rem;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-bottom p {
  margin: 0;
  color: rgba(237, 243, 249, 0.7);
}

.back-to-top {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 1000;
  width: 3.2rem;
  height: 3.2rem;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 1.1rem;
  display: grid;
  place-items: center;
  background:
    linear-gradient(180deg, rgba(23, 56, 91, 0.96), rgba(36, 91, 136, 0.92)),
    rgba(255, 255, 255, 0.08);
  color: #fff;
  box-shadow: 0 20px 36px rgba(23, 56, 91, 0.24);
  backdrop-filter: blur(16px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(0.7rem);
  transition:
    opacity 180ms var(--ease),
    visibility 180ms var(--ease),
    transform 180ms var(--ease);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top svg {
  width: 1.15rem;
  height: 1.15rem;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1400;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: rgba(10, 22, 35, 0.78);
  backdrop-filter: blur(12px);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 180ms var(--ease),
    visibility 180ms var(--ease);
}

.lightbox.open {
  opacity: 1;
  visibility: visible;
}

.lightbox-dialog {
  width: min(64rem, 100%);
}

.lightbox-dialog img {
  width: 100%;
  max-height: 74vh;
  object-fit: contain;
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.08);
}

.lightbox-dialog p {
  margin: 0.9rem 0 0;
  color: #fff;
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  min-height: 2.75rem;
  padding: 0 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.reveal {
  opacity: 0;
  transform: translate3d(0, 0.8rem, 0);
  transition:
    opacity 560ms var(--ease) var(--reveal-delay, 0ms),
    transform 560ms var(--ease) var(--reveal-delay, 0ms);
}

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

@media (min-width: 760px) {
  .hero-grid,
  .about-grid,
  .contact-grid,
  .process-grid,
  .competent-person-grid,
  .learning-grid,
  .manpower-grid,
  .safe-drive-grid,
  .safe-drive-hero-grid,
  .app-download-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.15rem;
  }

  .service-card-wide {
    grid-column: span 2;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 16rem;
  }

  .inspection-grid,
  .learning-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-item-tall {
    grid-row: span 2;
  }

  .gallery-item-wide {
    grid-column: span 2;
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.9fr) minmax(0, 1fr);
  }
}

@media (max-width: 980px) {
  .hero {
    /* padding-top: calc(var(--header-h) + 1.8rem); */
    padding-bottom: 1rem;
  }

  .hero-settings {
    left: calc(100% - 1rem);
    width: min(72vh, 44rem);
    height: min(72vh, 44rem);
    opacity: 0.12;
  }

  .hero-grid {
    grid-template-columns: fr;
    align-content: center;
    gap: 1.5rem;
    min-height: calc(100svh - var(--header-h) - 1.5rem);
  }

  .hero-copy {
    max-width: 42rem;
  }

  .hero-title {
    max-width: 11ch;
    font-size: clamp(2.1rem, 6vw, 3.6rem);
  }

  .hero-subtitle {
    max-width: 34rem;
  }

  .hero-visual {
    width: min(100%, 34rem);
    margin-inline: auto;
    min-height: clamp(20rem, 62vw, 28rem);
  }

  .hero-photo-card {
    inset: 0 0.2rem 3.2rem 1.4rem;
    transform: translate3d(0, var(--parallax-shift, 0px), 0);
  }

  .floating-card-blueprint {
    bottom: 4.8rem;
    width: min(16rem, 72%);
  }

  .floating-card-score {
    width: min(14.5rem, 70%);
  }
}

@media (min-width: 1080px) {
  .main-nav {
    position: static;
    top: auto;
    left: auto;
    width: auto;
    padding: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    border-radius: 0;
    /* blurry background */
    /* background: rgba(255, 255, 255, 0.8); */
    /* backdrop-filter: blur(18px); */
    border: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none !important;
  }

  .main-nav a {
    color: var(--text);
    padding: 0.7rem 0.95rem;
  }

  .nav-dropdown {
    align-items: center;
  }

  .nav-dropdown-head {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
  }

  .nav-dropdown-link {
    padding: 0.7rem 0.95rem;
  }

  .nav-dropdown-toggle {
    min-height: auto;
    min-width: auto;
    padding: 0.7rem 0.7rem;
  }

  .nav-submenu {
    position: absolute;
    top: calc(100% + 0.65rem);
    left: 0;
    min-width: 16rem;
    margin-top: 0;
    max-height: none;
    opacity: 0;
    visibility: hidden;
    overflow: visible;
    transform: translateY(0.45rem);
    transition:
      opacity 180ms var(--ease),
      visibility 180ms var(--ease),
      transform 180ms var(--ease),
      max-height 0s linear 180ms;
  }

  .nav-dropdown:hover .nav-submenu,
  .nav-dropdown:focus-within .nav-submenu,
  .nav-dropdown.open .nav-submenu {
    opacity: 1;
    visibility: visible;
    max-height: none;
    transform: translateY(0);
  }

  .main-nav a:hover,
  .main-nav a.active {
    color: var(--surface-dark);
    background: transparent;
    transform: none;
  }

  .nav-dropdown-link:hover,
  .nav-dropdown-link.active,
  .nav-dropdown-toggle:hover,
  .nav-dropdown-toggle.active,
  .nav-dropdown.open .nav-dropdown-toggle,
  .nav-dropdown.open .nav-dropdown-link {
    background: transparent;
  }

  .menu-toggle {
    display: none;
  }

  .service-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 1.2rem;
  }

  .service-card-wide {
    grid-column: span 6;
    min-height: 100%;
  }

  .service-grid .service-card:nth-child(2),
  .service-grid .service-card:nth-child(3) {
    grid-column: span 3;
  }

  .service-grid .service-card:nth-child(4) {
    grid-column: span 4;
  }

  .service-grid .service-card:nth-child(5),
  .service-grid .service-card:nth-child(6) {
    grid-column: span 4;
  }

  .gallery-grid {
    grid-template-columns: 1.25fr 0.9fr 0.9fr;
    grid-auto-rows: 15rem;
  }

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

@media (max-width: 759px) {
  .site-header {
    padding-top: 0;
  }

  .site-header.scrolled {
    padding-top: 0.35rem;
  }

  .site-header.scrolled .container {
    width: calc(100% - 0.65rem);
  }

  .nav-wrap {
    min-height: 4rem;
    padding: 0.28rem 0.8rem;
  }

  .site-header.scrolled .nav-wrap {
    border-radius: 1.1rem;
  }

  .nav-dropdown-head {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .hero {
    padding-top: calc(var(--header-h) + 2rem);
    padding-bottom: 1rem;
  }

  .hero-settings {
    left: calc(100% - 0.45rem);
    width: min(64vh, 30rem);
    height: min(64vh, 30rem);
    opacity: 0.11;
  }

  .hero-photo-card {
    inset: 0 0.35rem 7rem;
  }

  .floating-card-blueprint {
    width: min(16rem, calc(100% - 1rem));
  }

  .floating-card-score {
    width: min(15rem, calc(100% - 1rem));
  }

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

  .client-logo-card {
    width: min(12rem, 62vw);
  }
}

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

  .brand {
    gap: 0.65rem;
    max-width: calc(100% - 3.75rem);
  }

  .brand-title {
    font-size: 0.94rem;
    gap: 0.28rem;
  }

  .brand-logo {
    width: 9rem;
    padding: 4px 5px;
    flex: 0 0 auto;
    object-fit: cover;
  }

  .hero-title,
  .section-title {
    max-width: none;
  }

  .hero {
    padding-top: calc(var(--header-h) + 1.4rem);
    padding-bottom: 0.85rem;
  }

  .hero-settings {
    top: 8rem;
    left: calc(100% - 0.2rem);
    width: 18rem;
    height: 18rem;
    opacity: 0.1;
    transform: translate(-50%, 0);
    animation-name: heroSettingsSpinMobile;
  }

  .hero-grid {
    display: grid;
    gap: 1.35rem;
    align-content: center;
    min-height: calc(100svh - var(--header-h) - 0.9rem);
  }

  .hero-title {
    font-size: clamp(1.9rem, 8.2vw, 2.55rem);
    line-height: 1.04;
  }

  .hero-copy {
    margin-top: 0;
    padding-bottom: 0;
  }

  .hero-subtitle {
    margin-top: 0.95rem;
    font-size: 0.97rem;
  }

  .hero-actions {
    margin-top: 1.35rem;
    gap: 0.7rem;
  }

  .hero-actions .btn {
    width: auto;
  }

  .hero-visual {
    min-height: auto;
    display: grid;
    gap: 1rem;
  }

  .hero-actions,
  .pill-row,
  .tag-row,
  .process-checklist,
  .safe-drive-actions {
    gap: 0.6rem;
  }

  .btn,
  .menu-toggle,
  .back-to-top {
    min-height: 3rem;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
    margin-top: 5.2rem;
    gap: 0.8rem;
  }

  .hero-photo-card {
    position: relative;
    inset: auto;
    min-height: 15rem;
    margin: 0;
    transform: none;
  }

  .floating-card-blueprint {
    position: relative;
    left: auto;
    bottom: auto;
    width: 100%;
    max-width: none;
    grid-template-columns: 3.6rem 1fr;
    gap: 0.65rem;
    padding: 0.7rem;
  }

  .floating-card-score {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    width: 100%;
    max-width: none;
    padding: 0.85rem 0.9rem;
  }

  .main-nav {
    top: calc(var(--header-h) + 0.45rem);
    width: calc(100vw - 1rem);
    background: rgba(255, 255, 255, 1);
    opacity: 1;
    /* backdrop-filter: blur(1px); */
  }

  .footer-grid > div {
    padding: 0;
  }

  .footer-logo-badge {
    min-height: 4.35rem;
    padding: 0.75rem 0.95rem;
  }

  .footer-logo-badge .brand-logo {
    height: 3.1rem;
  }

  .process-step {
    grid-template-columns: 1fr;
  }

  .safe-drive-hero {
    padding-top: calc(var(--header-h) + 2rem);
  }

  .app-phone,
  .app-phone-large {
    min-height: auto;
    border-radius: 1.45rem;
  }

  .app-stat-grid {
    grid-template-columns: 1fr;
  }

  .safe-screen-stack,
  .safe-screen-stack-hero,
  .safe-screen-stack-compact {
    min-height: auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .safe-screen-card-main,
  .safe-screen-card-float,
  .safe-screen-card-alert,
  .safe-screen-stack-compact .safe-screen-card-main,
  .safe-screen-stack-compact .safe-screen-card-float {
    position: relative;
    inset: auto;
    width: min(100%, 18rem);
    margin-inline: auto;
    transform: none;
  }

  .safe-screen-card-float,
  .safe-screen-card-alert {
    display: none;
  }

  .screen-gallery {
    grid-template-columns: 1fr;
  }

  .safe-drive-page .safe-drive-hero {
    padding-top: calc(var(--header-h) + 2rem);
    padding-bottom: 3rem;
  }

  .safe-drive-page .hero-title {
    font-size: clamp(2.15rem, 10vw, 3rem);
  }

  .safe-feature-grid-minimal {
    border-radius: 1rem;
  }

  .safe-feature-grid-minimal .safe-feature-card {
    border-right: 0;
  }

  .screen-gallery-minimal {
    display: flex;
    overflow-x: auto;
    padding-bottom: 0.75rem;
    scroll-snap-type: x mandatory;
  }

  .screen-gallery-minimal .screen-gallery-card {
    min-width: 13.5rem;
    scroll-snap-align: start;
  }

  .app-download-minimal {
    width: min(100% - 1rem, 52rem);
    padding: 1.25rem;
    text-align: left;
  }

  .app-download-minimal .safe-drive-actions {
    justify-content: flex-start;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

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