/* ============ TOKENS ============ */
:root {
  --bg: #ffffff;
  --bg-soft: #f4f8ff;
  --surface: #ffffff;
  --surface-2: #eef4ff;
  --border: #dbe6f5;
  --border-strong: #c4d5ee;
  --text: #0b1b3a;
  --muted: #52617c;
  --blue: #1747b0;
  --blue-600: #1747b0;
  --blue-700: #0f3584;
  --sky: #3ba7ff;
  --navy: #0a1a3f;
  --ring: rgba(29, 91, 216, 0.28);
  --glow: rgba(29, 91, 216, 0.22);
  --success: #0f9d6b;
  --danger: #d64545;
  --warn: #c77d12;
  --shadow-sm:
    0 1px 2px rgba(11, 27, 58, 0.06), 0 2px 6px rgba(11, 27, 58, 0.04);
  --shadow-md:
    0 6px 24px -8px rgba(11, 27, 58, 0.14), 0 2px 6px rgba(11, 27, 58, 0.05);
  --shadow-lg:
    0 30px 60px -20px rgba(15, 53, 132, 0.28),
    0 10px 24px -12px rgba(11, 27, 58, 0.12);
  --radius: 18px;
  --radius-sm: 12px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 72px;
  color-scheme: light;
}
body.night-mode {
  --bg: #060d1f;
  --bg-soft: #091530;
  --surface: #0c1a37;
  --surface-2: #10224a;
  --border: #1b2e57;
  --border-strong: #27406f;
  --text: #e8eefc;
  --muted: #9cb0d4;
  --blue: #4d8dff;
  --blue-600: #3a78f0;
  --blue-700: #2a5fd0;
  --sky: #6cc4ff;
  --navy: #e8eefc;
  --ring: rgba(77, 141, 255, 0.4);
  --glow: rgba(77, 141, 255, 0.32);
  --success: #34d399;
  --danger: #f47272;
  --warn: #f5b450;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md:
    0 10px 30px -12px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(77, 141, 255, 0.05);
  --shadow-lg:
    0 30px 70px -24px rgba(0, 0, 0, 0.75),
    0 0 40px -10px rgba(77, 141, 255, 0.18);
  color-scheme: dark;
}

/* ============ BASE ============ */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: "Vazirmatn", Tahoma, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.8;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
html.modal-open body {
  overflow: hidden;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
}
h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.35;
  color: var(--text);
}
p {
  margin: 0;
}
::selection {
  background: var(--blue);
  color: #fff;
}
:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 8px;
}
.hidden {
  display: none !important;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.container {
  width: min(1200px, 100% - 40px);
  margin-inline: auto;
}
.theme-anim,
.theme-anim *,
.theme-anim *::before,
.theme-anim *::after {
  transition-property:
    background-color, color, border-color, fill, stroke, box-shadow !important;
  transition-duration: 0.1s !important;
  transition-timing-function: ease !important;
}

/* ============ ICONS ============ */
.icon {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-sm {
  width: 16px;
  height: 16px;
}
.icon-btn {
  width: 18px;
  height: 18px;
}
.icon-brand {
  width: 22px;
  height: 22px;
}

/* ============ LOADER ============ */
.app-loader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  background: radial-gradient(60% 50% at 50% 50%, #eaf2ff 0%, #ffffff 70%);
  transition:
    opacity 0.7s var(--ease),
    visibility 0.7s;
  animation: loaderFallback 0.6s 5s forwards;
}
.pre-dark .app-loader {
  background: radial-gradient(60% 50% at 50% 50%, #0d1f45 0%, #060d1f 70%);
}
.is-ready .app-loader {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
@keyframes loaderFallback {
  to {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
}
.loader-logo {
  position: relative;
  display: grid;
  place-items: center;
  width: 112px;
  height: 112px;
  animation: logoIn 0.9s var(--ease) both;
}
.loader-logo::before {
  content: "";
  position: absolute;
  inset: -30px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(59, 167, 255, 0.45),
    rgba(29, 91, 216, 0) 65%
  );
  animation: breathe 2.2s ease-in-out infinite;
}
.loader-logo .mark {
  position: relative;
  width: 112px;
  height: 112px;
  border-radius: 30px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #3ba7ff, #1d5bd8 55%, #0f3584);
  box-shadow:
    0 20px 50px -14px rgba(29, 91, 216, 0.7),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.loader-logo .mark svg {
  width: 56px;
  height: 56px;
  color: #fff;
}

.loader-ring {
  position: absolute;
  inset: -14px;
  border-radius: 38px;
  border: 2px solid transparent;
  background: conic-gradient(
      from 0deg,
      transparent 0 70%,
      #3ba7ff 85%,
      transparent
    )
    border-box;
  -webkit-mask:
    linear-gradient(#000 0 0) padding-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: spin 1.6s linear infinite;
}
.is-ready .loader-logo {
  transform: scale(1.12);
  opacity: 0;
  transition:
    transform 0.7s var(--ease),
    opacity 0.5s;
}
@keyframes logoIn {
  from {
    opacity: 0;
    transform: scale(0.82);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes breathe {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(0.92);
  }
  50% {
    opacity: 1;
    transform: scale(1.08);
  }
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.scroll-progress {
  position: fixed;
  top: 0;
  inset-inline: 0;
  height: 3px;
  z-index: 120;
  transform-origin: right;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--sky), var(--blue));
  pointer-events: none;
}

/* ============ BUTTONS ============ */
.btn,
.primary-btn,
.ghost-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 14px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
  isolation: isolate;
  overflow: hidden;
  transition:
    transform 0.25s var(--ease),
    box-shadow 0.25s var(--ease),
    background-color 0.25s,
    border-color 0.25s,
    color 0.25s,
    opacity 0.25s;
}
.btn-primary,
.primary-btn {
  color: #fff;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-700) 100%);
  box-shadow:
    0 10px 24px -10px var(--glow),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.btn-primary::after,
.primary-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    120deg,
    transparent 30%,
    rgba(255, 255, 255, 0.35) 50%,
    transparent 70%
  );
  transform: translateX(120%);
  transition: transform 0.7s var(--ease);
}
.btn-primary:hover,
.primary-btn:hover {
  transform: translateY(-2px);
  box-shadow:
    0 16px 32px -12px var(--glow),
    0 0 0 4px var(--ring);
}
.btn-primary:hover::after,
.primary-btn:hover::after {
  transform: translateX(-120%);
}
.btn:active,
.primary-btn:active,
.ghost-btn:active {
  transform: translateY(0) scale(0.98);
}
.btn-outline,
.ghost-btn {
  color: var(--text);
  background: var(--surface);
  border-color: var(--border-strong);
}
.btn-outline:hover,
.ghost-btn:hover {
  border-color: var(--blue);
  color: var(--blue);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-sm {
  min-height: 40px;
  padding: 0 16px;
  font-size: 14px;
  border-radius: 12px;
}
.btn-lg {
  min-height: 54px;
  padding: 0 28px;
  font-size: 16px;
  border-radius: 16px;
}
.btn-block {
  width: 100%;
}
button:disabled {
  cursor: not-allowed;
}
button.is-loading:disabled {
  opacity: 0.85;
  transform: none !important;
}
button.is-loading:disabled::before {
  content: "";
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid currentColor;
  border-inline-end-color: transparent;
  animation: spin 0.7s linear infinite;
  flex: none;
}
.link-btn {
  background: none;
  border: 0;
  padding: 6px 10px;
  border-radius: 10px;
  color: var(--blue);
  font-weight: 600;
  font-size: 14px;
  transition:
    background-color 0.2s,
    color 0.2s;
}
.link-btn:hover {
  background: var(--surface-2);
}

/* ============ HEADER ============ */
.site-header {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 100;
  height: var(--header-h);
  transition:
    background-color 0.35s,
    box-shadow 0.35s,
    border-color 0.35s,
    height 0.35s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: var(--border);
  box-shadow: 0 6px 24px -18px rgba(11, 27, 58, 0.3);
}
.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 22px;
  letter-spacing: -0.3px;
  order: 0;
}
.brand .brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(
    145deg,
    var(--sky),
    var(--blue) 55%,
    var(--blue-700)
  );
  box-shadow: 0 8px 20px -8px var(--glow);
  transition: transform 0.4s var(--ease);
}
.brand:hover .brand-mark {
  transform: rotate(-12deg) scale(1.05);
}
.brand-name {
  background: linear-gradient(135deg, var(--text), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.site-header:not(.scrolled) .brand-name {
  color: #fff;
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
}
.site-header:not(.scrolled) #headerHello {
  color: rgba(255, 255, 255, 0.9);
}

.header-center {
  order: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-inline-start: auto;
}
#headerHello {
  font-size: 14px;
  color: var(--muted);
  white-space: nowrap;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
}
#headerHello b {
  color: inherit;
  font-weight: 800;
}
.menu-wrap {
  order: 3;
  position: relative;
  display: flex;
  align-items: center;
}

.nav-toggle {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  display: grid;
  place-items: center;
  gap: 0;
  padding: 0;
  position: relative;
  color: var(--text);
  transition:
    background-color 0.25s,
    border-color 0.25s;
}
.site-header:not(.scrolled) .nav-toggle {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
}
.nav-toggle .bar {
  position: absolute;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition:
    transform 0.35s var(--ease),
    opacity 0.2s;
}
.nav-toggle .bar:nth-child(1) {
  transform: translateY(-6px);
}
.nav-toggle .bar:nth-child(3) {
  transform: translateY(6px);
}
.nav-toggle[aria-expanded="true"] .bar:nth-child(1) {
  transform: rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0.2);
}
.nav-toggle[aria-expanded="true"] .bar:nth-child(3) {
  transform: rotate(-45deg);
}

.nav-links {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  width: min(300px, calc(100vw - 32px));
  display: flex;
  flex-direction: column;
  padding: 10px;
  gap: 2px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.98);
  transform-origin: top left;
  transition:
    opacity 0.25s var(--ease),
    transform 0.35s var(--ease),
    visibility 0.25s;
}
.nav-links.open {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.nav-primary,
.nav-utilities {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
}
.nav-primary {
  gap: 2px;
}
.nav-utilities {
  gap: 2px;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid var(--border);
}
.nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border-radius: 12px;
  border: 0;
  background: none;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  text-align: start;
  transition:
    background-color 0.2s,
    color 0.2s,
    transform 0.2s;
}
.nav-links .nav-item {
  color: var(--text);
}
.nav-more {
  position: relative;
  width: 100%;
}
.nav-more-toggle {
  cursor: pointer;
}
.nav-more-toggle::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-inline-start: 8px;
  border-inline-end: 2px solid currentColor;
  border-block-end: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.2s ease;
}
.nav-more-toggle[aria-expanded="true"]::after {
  transform: translateY(2px) rotate(225deg);
}
.nav-more-menu {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-inline-start: 10px;
}
.nav-more-menu[hidden] {
  display: none !important;
}
.nav-more-menu .nav-item {
  min-height: 42px;
  padding-inline-start: 22px;
}
.customer-push-floating {
  display: none;
}
.push-state-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
}
.nav-item .icon {
  color: var(--muted);
  transition:
    transform 0.3s var(--ease),
    color 0.2s;
}
.nav-item:hover {
  background: var(--surface-2);
  color: var(--blue);
}
.nav-item:hover .icon {
  color: var(--blue);
  transform: translateX(-3px);
}
.nav-item.active {
  color: var(--blue);
  background: var(--surface-2);
}
.nav-item.active .icon {
  color: var(--blue);
}
#menuLogoutBtn {
  color: var(--danger) !important;
}
#menuLogoutBtn .icon {
  color: var(--danger);
}
.nav-switch-row {
  cursor: default;
  margin: 0;
  padding-top: 0;
}
.nav-switch-row:hover {
  background: none;
  color: var(--text);
}
.theme-switch {
  position: relative;
  display: inline-block;
  width: 56px;
  height: 30px;
  flex: none;
}
.theme-switch input {
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
  cursor: pointer;
  z-index: 2;
}
.theme-switch .slider {
  position: absolute;
  inset: 0;
  border-radius: 99px;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  transition:
    background-color 0.35s,
    border-color 0.35s;
}
.theme-switch .slider::before {
  content: "";
  position: absolute;
  top: 3px;
  right: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ffe7a3, #f6b73c);
  box-shadow: 0 2px 8px rgba(246, 183, 60, 0.5);
  transition:
    transform 0.45s var(--ease),
    background 0.45s,
    box-shadow 0.45s;
}
.theme-switch input:checked + .slider {
  background: #12275a;
  border-color: #2a4a8a;
}
.theme-switch input:checked + .slider::before {
  transform: translateX(-26px);
  background:
    radial-gradient(circle at 65% 35%, #e8eefc 0 40%, transparent 41%),
    radial-gradient(circle at 40% 50%, #bcd3ff, #7ea6f5);
  box-shadow: 0 0 12px rgba(126, 166, 245, 0.7);
}
.theme-switch input:focus-visible + .slider {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

@media (min-width: 1024px) {
  .menu-wrap {
    order: 1;
    flex: 1;
    justify-content: center;
  }
  .header-center {
    margin-inline-start: 0;
  }
  .nav-toggle {
    display: none;
  }
  .nav-links {
    position: static;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    width: auto;
    padding: 5px;
    gap: 2px;
    opacity: 1;
    visibility: visible;
    transform: none;
    border-radius: 16px;
    background: color-mix(in srgb, var(--surface) 70%, transparent);
    box-shadow: none;
  }
  .nav-primary,
  .nav-utilities {
    flex-direction: row;
    align-items: center;
    width: auto;
  }
  .nav-primary {
    gap: 2px;
  }
  .nav-more {
    display: flex;
    align-items: center;
    width: auto;
  }
  .nav-more-toggle {
    display: none;
  }
  .nav-more-menu,
  .nav-more-menu[hidden] {
    position: static;
    display: flex !important;
    flex-direction: row;
    align-items: center;
    gap: 2px;
    min-width: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }
  .nav-more-menu .nav-item {
    width: auto;
    min-height: 40px;
    padding: 0 9px;
    white-space: nowrap;
  }
  .customer-push-floating {
    position: fixed;
    z-index: 120;
    right: max(20px, env(safe-area-inset-right, 0px));
    bottom: max(20px, env(safe-area-inset-bottom, 0px));
    display: block;
  }
  .customer-push-floating #customerPushToggle {
    display: grid;
    place-items: center;
    width: 54px;
    min-width: 54px;
    height: 54px;
    min-height: 54px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: var(--surface);
    color: var(--blue);
    box-shadow: var(--shadow-lg);
  }
  .customer-push-floating #customerPushToggle [data-push-label] {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
  .customer-push-floating #customerPushToggle .push-state-icon {
    width: 24px;
    height: 24px;
  }
  .customer-push-floating #customerPushToggle:hover {
    transform: translateY(-2px);
  }
  .customer-push-floating #customerPushToggle:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--blue) 42%, transparent);
    outline-offset: 3px;
  }
  .nav-utilities {
    gap: 2px;
    margin: 0;
    margin-inline-start: 10px;
    padding: 0;
    padding-inline-start: 10px;
    border: 0;
    border-inline-start: 1px solid var(--border);
  }
  .site-header:not(.scrolled) .nav-links .nav-item {
    color: rgba(255, 255, 255, 0.86);
  }
  /* Keep the primary customer links legible over the transparent hero header. */
  body:not(.landing-page) .site-header:not(.scrolled) .nav-primary > .nav-item,
  body:not(.landing-page)
    .site-header:not(.scrolled)
    .nav-primary
    > a.nav-item {
    color: rgba(255, 255, 255, 0.92);
  }
  .site-header:not(.scrolled) .nav-links #menuLogoutBtn {
    color: #ffb4b4 !important;
  }
  .site-header:not(.scrolled) .nav-links {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.16);
  }
  .site-header.scrolled .nav-links {
    background: color-mix(in srgb, var(--surface) 88%, transparent);
    border-color: var(--border);
  }
  .site-header.scrolled .nav-links .nav-item,
  .site-header.scrolled .nav-links .nav-item .icon {
    color: var(--text);
  }
  .site-header.scrolled .nav-links .nav-item.active,
  .site-header.scrolled .nav-links .nav-item:hover {
    background: var(--surface-2);
    color: var(--blue);
  }
  .site-header.scrolled .nav-links .nav-item.active .icon,
  .site-header.scrolled .nav-links .nav-item:hover .icon {
    color: var(--blue);
  }
  .nav-item {
    width: auto;
    min-height: 40px;
    padding: 0 14px;
    font-size: 14.5px;
    justify-content: center;
    white-space: nowrap;
  }
  .nav-more {
    width: auto;
    flex: 0 0 auto;
  }
  .nav-more-toggle {
    gap: 8px;
    padding-inline: 12px;
  }
  .nav-more-menu {
    position: absolute;
    z-index: 1000;
    top: calc(100% + 8px);
    inset-inline-end: 0;
    min-width: 190px;
    padding: 8px;
    gap: 2px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow-lg);
  }
  .nav-more-menu .nav-item {
    width: 100%;
    min-height: 42px;
    justify-content: space-between;
    padding-inline: 12px;
    text-align: start;
  }
  .site-header:not(.scrolled) .nav-links .nav-more-menu .nav-item {
    color: var(--text);
  }
  .site-header:not(.scrolled) .nav-links .nav-more-menu .nav-item .icon {
    color: var(--muted);
  }
  .nav-links a.nav-item .icon {
    display: none;
  }
  .nav-item.active {
    background: var(--surface-2);
  }
  .site-header:not(.scrolled) .nav-item.active,
  .site-header:not(.scrolled) .nav-item:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
  }
  .site-header:not(.scrolled) .nav-item .icon {
    color: rgba(255, 255, 255, 0.8);
  }
  .site-header.scrolled .nav-toggle {
    background: var(--surface);
    border-color: var(--border);
    color: var(--text);
  }
  .nav-switch-row {
    border: 0;
    margin: 0;
    padding: 0 6px;
  }
  .nav-switch-row > span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }
}

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: min(100svh, 920px);
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 40px) 0 90px;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  background: #071433;
}
.hero-img {
  position: absolute;
  inset: -6% 0 -6% 0;
  width: 100%;
  height: 112%;
  object-fit: cover;
  z-index: -3;
  transform: translate3d(0, var(--py, 0px), 0) scale(1.06);
  will-change: transform;
  opacity: 0.55;
  transition: opacity 1.2s var(--ease);
}
.hero-img.img-failed {
  opacity: 0;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(
      70% 60% at 85% 20%,
      rgba(59, 167, 255, 0.35),
      transparent 60%
    ),
    radial-gradient(
      60% 60% at 10% 90%,
      rgba(29, 91, 216, 0.45),
      transparent 60%
    ),
    linear-gradient(
      180deg,
      rgba(5, 14, 38, 0.55) 0%,
      rgba(7, 20, 51, 0.85) 70%,
      rgba(7, 20, 51, 0.95) 100%
    );
}
.hero-grid-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: 0.22;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(140, 190, 255, 0.25) 1px, transparent 1px),
    linear-gradient(90deg, rgba(140, 190, 255, 0.25) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(
    70% 60% at 50% 40%,
    #000,
    transparent 75%
  );
  mask-image: radial-gradient(70% 60% at 50% 40%, #000, transparent 75%);
  transform: translate3d(
    calc(var(--mx, 0) * -10px),
    calc(var(--my, 0) * -10px),
    0
  );
}
.hero-orb {
  position: absolute;
  border-radius: 50%;
  z-index: -1;
  pointer-events: none;
  filter: blur(2px);
}
.hero-orb.o1 {
  width: 420px;
  height: 420px;
  top: -120px;
  left: -80px;
  background: radial-gradient(
    circle,
    rgba(59, 167, 255, 0.35),
    transparent 65%
  );
  animation: drift 14s ease-in-out infinite;
}
.hero-orb.o2 {
  width: 520px;
  height: 520px;
  bottom: -220px;
  right: 20%;
  background: radial-gradient(circle, rgba(29, 91, 216, 0.4), transparent 65%);
  animation: drift 18s ease-in-out infinite reverse;
}
@keyframes drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(40px, 30px, 0);
  }
}
.hero-flow {
  position: absolute;
  inset: auto 0 0 0;
  height: 60%;
  z-index: -1;
  pointer-events: none;
  opacity: 0.55;
}
.hero-flow path {
  fill: none;
  stroke: url(#flowGrad);
  stroke-width: 1.4;
  stroke-dasharray: 6 14;
  animation: flow 6s linear infinite;
}
.hero-flow path:nth-child(2) {
  animation-duration: 8s;
  opacity: 0.7;
}
.hero-flow path:nth-child(3) {
  animation-duration: 10s;
  opacity: 0.5;
}
@keyframes flow {
  to {
    stroke-dashoffset: -200;
  }
}
.particles {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.particles i {
  position: absolute;
  bottom: -10px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #bfe0ff;
  box-shadow: 0 0 8px #7cc4ff;
  opacity: 0;
  animation: rise var(--t, 12s) linear var(--d, 0s) infinite;
}
@keyframes rise {
  0% {
    transform: translate3d(0, 0, 0);
    opacity: 0;
  }
  10% {
    opacity: 0.8;
  }
  90% {
    opacity: 0.6;
  }
  100% {
    transform: translate3d(var(--x, 20px), -95vh, 0);
    opacity: 0;
  }
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}
.hero-copy {
  max-width: 640px;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 6px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 13.5px;
  font-weight: 600;
  color: #d8e8ff;
}
.hero-eyebrow .dot {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(59, 167, 255, 0.25);
}
.hero-eyebrow .dot::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #5ff0b0;
  box-shadow: 0 0 0 0 rgba(95, 240, 176, 0.6);
  animation: ping 2s infinite;
}
@keyframes ping {
  0% {
    box-shadow: 0 0 0 0 rgba(95, 240, 176, 0.6);
  }
  80%,
  100% {
    box-shadow: 0 0 0 10px rgba(95, 240, 176, 0);
  }
}
.hero-title {
  margin-top: 22px;
  font-size: clamp(38px, 6.2vw, 76px);
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1.15;
  color: #fff;
}
.hero-title .accent {
  display: block;
  font-size: 0.7em;
  margin-top: 6px;
  background: linear-gradient(90deg, #7cc8ff, #ffffff 40%, #8fb8ff 80%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shine 6s linear infinite;
}
@keyframes shine {
  to {
    background-position: -200% 0;
  }
}
.hero-sub {
  margin-top: 18px;
  font-size: clamp(15px, 1.6vw, 18px);
  color: #c6d6f2;
  max-width: 540px;
  line-height: 2;
}
.hero-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 99px;
  font-size: 14px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.hero-badge .icon {
  color: #7cc8ff;
}
@media (max-width: 600px) {
  .hero-badge-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .hero-badge-row .hero-badge {
    min-width: 0;
    max-width: 100%;
    justify-content: center;
    padding: 8px 9px;
    font-size: 12px;
    text-align: center;
  }
  .hero-badge-row .hero-badge:nth-child(1) {
    grid-column: 1;
    grid-row: 1;
  }
  .hero-badge-row .hero-badge:nth-child(2) {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    gap: 6px;
    padding-inline: 10px;
    font-size: clamp(10.5px, 3.2vw, 12px);
    white-space: nowrap;
  }
  .hero-badge-row .hero-badge:nth-child(3) {
    grid-column: 2;
    grid-row: 1;
  }
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}
.hero .btn-outline {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}
.hero .btn-outline:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  border-color: #fff;
}
.hero .btn-call {
  background: transparent;
  color: #dbe8ff;
  border-color: transparent;
}
.hero .btn-call:hover {
  color: #fff;
  transform: translateY(-2px);
}

.hero-visual {
  position: relative;
  display: none;
  justify-self: center;
  width: 100%;
  max-width: 440px;
  transform: translate3d(
    calc(var(--mx, 0) * 14px),
    calc(var(--my, 0) * 14px),
    0
  );
}
.dial-card {
  position: relative;
  padding: 26px;
  border-radius: 28px;
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.14),
    rgba(255, 255, 255, 0.04)
  );
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow:
    0 40px 80px -30px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.dial-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: #c6d6f2;
}
.dial-head b {
  color: #fff;
  font-size: 15px;
}
.live-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 99px;
  background: rgba(95, 240, 176, 0.14);
  color: #8ff5c8;
  font-weight: 700;
  font-size: 12px;
}
.live-chip::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #5ff0b0;
  animation: ping 2s infinite;
}
.dial {
  position: relative;
  width: 230px;
  height: 230px;
  margin: 18px auto 10px;
}
.dial svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.dial .track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.1);
  stroke-width: 12;
}
.dial .prog {
  fill: none;
  stroke: url(#dialGrad);
  stroke-width: 12;
  stroke-linecap: round;
  stroke-dasharray: 590;
  stroke-dashoffset: 590;
}
.is-ready .dial .prog {
  animation: dialIn 2s var(--ease) 0.8s forwards;
}
@keyframes dialIn {
  to {
    stroke-dashoffset: 190;
  }
}
.dial .ticks {
  fill: none;
  stroke: rgba(255, 255, 255, 0.25);
  stroke-width: 2;
  stroke-dasharray: 1 8.3;
}
.dial-center {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
}
.dial-center .temp {
  font-size: 58px;
  font-weight: 900;
  line-height: 1;
  color: #fff;
}
.dial-center .temp sup {
  font-size: 22px;
  color: #7cc8ff;
}
.dial-center small {
  color: #a9c1e8;
  font-size: 13px;
  margin-top: 6px;
}
.dial-fan {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300px;
  height: 300px;
  margin: -150px 0 0 -150px;
  border-radius: 50%;
  pointer-events: none;
  background: conic-gradient(
    from 0deg,
    transparent 0 80%,
    rgba(124, 200, 255, 0.25),
    transparent
  );
  animation: spin 5s linear infinite;
  -webkit-mask: radial-gradient(
    circle,
    transparent 58%,
    #000 59%,
    #000 70%,
    transparent 71%
  );
  mask: radial-gradient(
    circle,
    transparent 58%,
    #000 59%,
    #000 70%,
    transparent 71%
  );
}
.dial-rows {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}
.dial-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13.5px;
  color: #dbe8ff;
}
.dial-row .ico {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: rgba(59, 167, 255, 0.2);
  color: #9ad3ff;
  flex: none;
}
.dial-row .meta {
  flex: 1;
  min-width: 0;
}
.dial-row .meta b {
  display: block;
  color: #fff;
  font-size: 14px;
}
.bar-mini {
  height: 6px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
  margin-top: 6px;
}
.bar-mini i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #3ba7ff, #8fd3ff);
}
.is-ready .bar-mini i {
  animation: barIn 1.8s var(--ease) 1.1s forwards;
}
@keyframes barIn {
  to {
    width: var(--w, 70%);
  }
}
.float-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  background: #fff;
  box-shadow: 0 20px 40px -16px rgba(0, 0, 0, 0.45);
  animation: bob 5s ease-in-out infinite;
}
.float-chip .icon {
  color: var(--blue);
}
.float-chip.c1 {
  top: 18%;
  right: -38px;
}
.float-chip.c2 {
  bottom: 14%;
  left: -42px;
  animation-delay: -2.5s;
}
body.night-mode .float-chip {
  background: #0f2250;
  color: #e8eefc;
  border: 1px solid #27406f;
}
@keyframes bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.hero-scroll {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border-radius: 99px;
  border: 2px solid rgba(255, 255, 255, 0.35);
}
.hero-scroll::after {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 4px;
  background: #fff;
  animation: scrollDot 1.8s ease-in-out infinite;
}
@keyframes scrollDot {
  0% {
    opacity: 0;
    transform: translateY(0);
  }
  40% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(14px);
  }
}

/* hero entrance */
.js .hero [data-in] {
  opacity: 0;
  transform: translateY(26px);
}
.js.is-ready .hero [data-in] {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.9s var(--ease),
    transform 1s var(--ease);
  transition-delay: calc(var(--i, 0) * 110ms + 150ms);
}
.js .hero-visual[data-in] {
  transform: translateY(30px) scale(0.96);
}

@media (min-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1.1fr 0.9fr;
  }
  .hero-visual {
    display: block;
  }
}
.hero-inner-no-visual {
  grid-template-columns: minmax(0, 1fr);
}
.hero-inner-no-visual .hero-copy {
  max-width: 760px;
}

/* ============ SECTIONS ============ */
section {
  position: relative;
}
.section-pad {
  padding: clamp(64px, 9vw, 120px) 0;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 800;
  color: var(--blue);
  letter-spacing: 0.3px;
  padding: 6px 12px;
  border-radius: 99px;
  background: var(--surface-2);
  border: 1px solid var(--border);
}
.section-title {
  font-size: clamp(26px, 3.4vw, 40px);
  font-weight: 900;
  letter-spacing: -0.5px;
}
.section-desc {
  color: var(--muted);
  font-size: clamp(15px, 1.4vw, 17px);
  margin-top: 10px;
}
.center {
  text-align: center;
}
.section-head {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 12px;
  max-width: 640px;
  margin: 0 auto 48px;
}
.section-head .section-desc {
  margin-top: 0;
}

/* reveal */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.8s var(--ease),
    transform 0.9s var(--ease);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.js [data-reveal="left"] {
  transform: translateX(-32px);
}
.js [data-reveal="right"] {
  transform: translateX(32px);
}
.js [data-reveal="scale"] {
  transform: scale(0.94);
}
.js [data-reveal].in,
.no-ui [data-reveal] {
  opacity: 1;
  transform: none;
}

/* ============ STEPS ============ */
.steps {
  margin-top: -54px;
  z-index: 2;
}
.steps-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: start;
  gap: 0;
  padding: 26px 20px;
  border-radius: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}
.step {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 10px;
  text-align: center;
}
.step-circle {
  position: relative;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  color: var(--blue);
  background: var(--surface-2);
  border: 1px solid var(--border);
  transition:
    transform 0.4s var(--ease),
    background-color 0.4s,
    color 0.4s;
}
.step-circle .icon {
  width: 24px;
  height: 24px;
}
.step-circle::after {
  content: attr(data-n);
  position: absolute;
  top: -8px;
  left: -8px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 800;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--blue);
  box-shadow: 0 0 0 3px var(--surface);
}
.step:hover .step-circle {
  transform: translateY(-4px) rotate(-4deg);
  background: var(--blue);
  color: #fff;
}
.step-label {
  font-weight: 800;
  font-size: 15px;
}
.step-sub {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: -8px;
}
.step-line {
  position: absolute;
  top: 55px;
  height: 2px;
  width: calc(33.33% - 80px);
  background: var(--border);
  overflow: hidden;
  border-radius: 2px;
}
.step-line:nth-of-type(2) {
  right: calc(16.66% + 40px);
}
.step-line:nth-of-type(4) {
  left: calc(16.66% + 40px);
}
.step-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(270deg, var(--blue), var(--sky));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 1.2s var(--ease);
}
.steps-track.in .step-line::after {
  transform: scaleX(1);
}
.steps-track.in .step-line:nth-of-type(4)::after {
  transition-delay: 0.6s;
}
.no-ui .step-line::after {
  transform: scaleX(1);
}
@media (max-width: 560px) {
  .steps-track {
    padding: 20px 10px;
  }
  .step-circle {
    width: 48px;
    height: 48px;
    border-radius: 14px;
  }
  .step-label {
    font-size: 13px;
  }
  .step-sub {
    display: none;
  }
  .step-line {
    top: 44px;
    width: calc(33.33% - 60px);
  }
  .step-line:nth-of-type(2) {
    right: calc(16.66% + 30px);
  }
  .step-line:nth-of-type(4) {
    left: calc(16.66% + 30px);
  }
}

/* ============ STATS ============ */
.stats {
  padding: 56px 0 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.stat {
  padding: 22px;
  border-radius: var(--radius);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.stat::before {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  top: -60px;
  left: -60px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--glow), transparent 70%);
}
.stat-num {
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 900;
  color: var(--blue);
  line-height: 1.1;
}
.stat-num small {
  font-size: 0.45em;
  font-weight: 700;
  color: var(--muted);
  margin-inline-start: 4px;
}
.stat-label {
  color: var(--muted);
  font-size: 14px;
  margin-top: 6px;
  font-weight: 500;
}
@media (min-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
  }
}

/* ============ REQUEST / FORM ============ */
.request {
  padding: clamp(64px, 8vw, 110px) 0;
}
.request::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(
    50% 40% at 80% 20%,
    var(--surface-2),
    transparent 70%
  );
}
.request-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: start;
}
@media (min-width: 1024px) {
  .request-grid {
    grid-template-columns: 1.45fr 1fr;
    gap: 28px;
  }
}
.form-card {
  position: relative;
  padding: clamp(22px, 3.5vw, 40px);
  border-radius: 26px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}
.form-card::before {
  content: "";
  position: absolute;
  inset: 0 24px auto;
  height: 3px;
  border-radius: 0 0 4px 4px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--blue),
    var(--sky),
    transparent
  );
}
.form-card .section-title {
  font-size: clamp(22px, 2.6vw, 30px);
}
#loggedAs {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--surface-2);
  color: var(--blue);
  font-weight: 700;
  font-size: 14px;
  border: 1px dashed var(--border-strong);
}
.request-form {
  display: grid;
  gap: 20px;
  margin-top: 26px;
}
.package-form-block {
  display: grid;
  min-width: 0;
  gap: 16px;
  margin: 0;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: color-mix(in srgb, var(--surface-2) 35%, var(--surface));
}
.package-form-block legend {
  padding: 0 8px;
  color: var(--text);
  font-weight: 800;
}
.package-form-block .req {
  color: var(--danger);
}
.package-field-hint {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}
.package-field-hint:empty {
  display: none;
}
.package-field-hint.is-error,
.package-field-error {
  color: var(--danger);
}
.package-problem-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.package-problem {
  position: relative;
  min-width: 0;
  cursor: pointer;
}
.package-problem input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
  cursor: pointer;
}
.package-problem span {
  display: flex;
  min-height: 48px;
  align-items: center;
  padding: 9px 13px;
  border: 1.5px solid var(--border);
  border-radius: 13px;
  background: var(--bg-soft);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  transition:
    border-color 0.2s,
    background-color 0.2s,
    box-shadow 0.2s;
}
.package-problem:hover span {
  border-color: var(--border-strong);
}
.package-problem input:checked + span {
  border-color: var(--blue);
  background: var(--surface);
  color: var(--blue);
  box-shadow: 0 0 0 3px var(--ring);
}
.package-problem input:focus-visible + span {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}
.package-form-block.is-optional .package-problem span {
  opacity: 0.75;
}
.package-field-error {
  min-height: 0;
  margin-top: -8px;
  font-size: 13px;
}
.package-request-form textarea {
  width: 100%;
  min-height: 96px;
  padding: 12px 15px;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  background: var(--bg-soft);
  color: var(--text);
  resize: vertical;
}
.package-request-form textarea:focus {
  border-color: var(--blue);
  background: var(--surface);
  box-shadow: 0 0 0 4px var(--ring);
  outline: none;
}
.package-discount-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 4px;
  padding: 14px 16px;
  border: 1px solid color-mix(in srgb, var(--success) 26%, var(--border));
  border-radius: 15px;
  background: color-mix(in srgb, var(--success) 7%, var(--surface));
  color: var(--text);
}
.package-discount-note > .icon {
  width: 22px;
  height: 22px;
  flex: none;
  color: var(--success);
}
.package-discount-note strong,
.package-discount-note span {
  display: block;
}
.package-discount-note strong {
  font-size: 14px;
}
.package-discount-note span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}
@media (max-width: 520px) {
  .package-form-block {
    padding: 14px;
  }
  .package-problem-grid {
    grid-template-columns: 1fr;
  }
}
.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 640px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}
.form-group {
  display: grid;
  gap: 8px;
  min-width: 0;
}
.form-group > label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}
.form-group > label .icon {
  color: var(--blue);
}
.request-form input[type="text"],
.request-form input[type="tel"],
.request-form select,
.modal input[type="text"],
.modal input[type="tel"] {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1.5px solid var(--border);
  background: var(--bg-soft);
  color: var(--text);
  font-size: 15px;
  outline: none;
  transition:
    border-color 0.25s,
    box-shadow 0.25s,
    background-color 0.25s,
    transform 0.25s var(--ease);
}
.request-form input::placeholder,
.modal input::placeholder {
  color: color-mix(in srgb, var(--muted) 75%, transparent);
}
.request-form input:hover,
.request-form select:hover,
.modal input:hover {
  border-color: var(--border-strong);
}
.request-form input:focus,
.request-form select:focus,
.modal input:focus {
  border-color: var(--blue);
  background: var(--surface);
  box-shadow: 0 0 0 4px var(--ring);
}
.request-form input[dir="ltr"],
.modal input[dir="ltr"] {
  text-align: right;
  letter-spacing: 1px;
}
.request-form input[dir="ltr"]::placeholder,
.modal input[dir="ltr"]::placeholder {
  text-align: right;
}
.request-form select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  padding-left: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%231d5bd8' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 16px center;
}
.request-form select:invalid {
  color: var(--muted);
}
.request-form select option {
  color: var(--text);
  background: var(--surface);
}
.field-shake {
  animation: shake 0.45s var(--ease);
}
@keyframes shake {
  20%,
  60% {
    transform: translateX(-6px);
  }
  40%,
  80% {
    transform: translateX(6px);
  }
}

.device-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.device-btn {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 18px 10px 16px;
  border-radius: 18px;
  border: 1.5px solid var(--border);
  background: var(--bg-soft);
  color: var(--text);
  overflow: hidden;
  transition:
    transform 0.35s var(--ease),
    border-color 0.25s,
    box-shadow 0.35s,
    background-color 0.25s;
}
.device-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(80% 70% at 50% 0%, var(--glow), transparent 70%);
  opacity: 0;
  transition: opacity 0.35s;
}
.device-btn:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}
.device-btn .device-ico {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: var(--blue);
  background: var(--surface);
  border: 1px solid var(--border);
  transition:
    transform 0.45s var(--ease),
    background-color 0.3s,
    color 0.3s;
}
.device-btn .device-ico .icon {
  width: 26px;
  height: 26px;
}
.device-btn:hover .device-ico {
  transform: scale(1.06) rotate(-6deg);
}
.device-btn b {
  position: relative;
  font-size: 14.5px;
  font-weight: 800;
}
.device-btn .device-check {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--blue);
  color: #fff;
  transform: scale(0);
  transition: transform 0.35s var(--ease);
}
.device-btn .device-check .icon {
  width: 13px;
  height: 13px;
  stroke-width: 3;
}
.device-btn.active {
  border-color: var(--blue);
  background: var(--surface);
  box-shadow:
    0 0 0 4px var(--ring),
    var(--shadow-md);
  transform: translateY(-3px);
}
.device-btn.active::before {
  opacity: 1;
}
.device-btn.active .device-ico {
  background: linear-gradient(145deg, var(--sky), var(--blue));
  color: #fff;
  border-color: transparent;
  animation: pop 0.5s var(--ease);
}
.device-btn.active .device-check {
  transform: scale(1);
}
@keyframes pop {
  0% {
    transform: scale(0.85);
  }
  60% {
    transform: scale(1.12);
  }
  100% {
    transform: scale(1);
  }
}
@media (max-width: 400px) {
  .device-grid {
    gap: 8px;
  }
  .device-btn {
    padding: 14px 6px;
  }
  .device-btn .device-ico {
    width: 44px;
    height: 44px;
  }
  .device-btn b {
    font-size: 13px;
  }
}

.radio-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.radio-pill {
  position: relative;
  cursor: pointer;
}
.radio-pill input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
  cursor: pointer;
}
.radio-pill span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 15px;
  border: 1.5px solid var(--border);
  background: var(--bg-soft);
  transition: all 0.25s var(--ease);
}
.radio-pill span::before {
  content: "";
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--border-strong);
  background: var(--surface);
  transition: all 0.25s var(--ease);
  flex: none;
}
.radio-pill:hover span {
  border-color: var(--border-strong);
}
.radio-pill input:checked + span {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--surface);
  box-shadow: 0 0 0 4px var(--ring);
}
.radio-pill input:checked + span::before {
  border-color: var(--blue);
  border-width: 5px;
}
.radio-pill input:focus-visible + span {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}
.request-form button[type="submit"] {
  min-height: 58px;
  font-size: 16.5px;
  border-radius: 16px;
  margin-top: 4px;
}
.form-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  margin-top: -6px;
}
.form-note .icon {
  color: var(--success);
}
.form-terms {
  margin: -10px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
  text-align: center;
}
.form-terms a {
  color: var(--blue);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.form-terms a:focus-visible,
.customer-terms-close:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 3px;
}
.customer-terms-dialog {
  width: min(640px, calc(100vw - 24px));
  max-width: calc(100vw - 24px);
  max-height: min(84dvh, 720px);
  margin: auto;
  padding: clamp(18px, 5vw, 28px);
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-lg, 0 24px 60px rgba(0, 0, 0, 0.3));
  font-family: inherit;
  line-height: 1.9;
  overscroll-behavior: contain;
}
.customer-terms-dialog::backdrop {
  background: rgba(4, 13, 32, 0.62);
  backdrop-filter: blur(3px);
}
.customer-terms-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.customer-terms-header h3 {
  margin: 0;
  color: var(--text);
  font-size: 19px;
}
.customer-terms-close {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--text);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.customer-terms-close:hover {
  border-color: var(--border-strong);
}
.customer-terms-intro {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 14px;
}
.customer-terms-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-inline-start: 22px;
  color: var(--text);
  font-size: 14px;
}
.customer-terms-list li {
  padding-inline-start: 4px;
}
@media (max-width: 480px) {
  .customer-terms-dialog {
    width: calc(100vw - 20px);
    max-width: calc(100vw - 20px);
    max-height: min(88dvh, 760px);
    border-radius: 18px;
  }
  .customer-terms-list {
    font-size: 13px;
  }
}

.sidebar {
  border-radius: 26px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}
.landing-about-wrap .sidebar {
  width: min(100%, 780px);
  margin-inline: auto;
}
@media (min-width: 1024px) {
  .sidebar {
    position: sticky;
    top: calc(var(--header-h) + 20px);
  }
  .landing-about-wrap .sidebar {
    position: relative;
    top: auto;
  }
}
.sidebar-image {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(145deg, #1d5bd8, #0a1a3f);
}
.sidebar-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.sidebar:hover .sidebar-image img {
  transform: scale(1.05);
}
.sidebar-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(7, 20, 51, 0.75));
}
.sidebar-image .img-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.9);
}
.sidebar-image .img-fallback svg {
  width: 46%;
  height: auto;
}
.sidebar-image img:not(.img-failed) ~ .img-fallback {
  opacity: 0;
}
.sidebar-image .img-failed {
  opacity: 0;
}
.sidebar-tag {
  position: absolute;
  z-index: 1;
  bottom: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  color: #0b1b3a;
  font-size: 13px;
  font-weight: 800;
}
.sidebar-tag .icon {
  color: var(--blue);
}
.sidebar-body {
  padding: clamp(20px, 3vw, 30px);
}
.sidebar-title {
  font-size: 22px;
  font-weight: 900;
}
.why-list {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.why-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 12px;
  border-radius: 16px;
  transition:
    background-color 0.25s,
    transform 0.3s var(--ease);
}
.why-list li:hover {
  background: var(--bg-soft);
  transform: translateX(-4px);
}
.why-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  flex: none;
  color: var(--blue);
  background: var(--surface-2);
  border: 1px solid var(--border);
  transition:
    transform 0.4s var(--ease),
    background-color 0.3s,
    color 0.3s;
}
.why-list li:hover .why-icon {
  background: var(--blue);
  color: #fff;
  transform: rotate(-8deg);
}
.why-list strong {
  display: block;
  font-size: 15.5px;
  font-weight: 800;
}
.why-list p {
  font-size: 13.5px;
  color: var(--muted);
  margin-top: 2px;
}

/* ============ ORDERS ============ */
#orders {
  padding-top: clamp(28px, 4vw, 48px);
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.orders-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}
.orders-heading .section-title {
  font-size: clamp(22px, 2.6vw, 30px);
}
.orders-heading .section-desc {
  margin-top: 7px;
}
.orders-close-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 13px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: var(--surface);
  color: var(--muted);
  font-weight: 700;
  transition:
    color 0.2s,
    border-color 0.2s,
    background 0.2s;
}
.orders-close-btn:hover {
  border-color: var(--blue);
  background: var(--surface-2);
  color: var(--blue);
}
.orders-close-btn span {
  font-size: 22px;
  line-height: 1;
}
#ordersList {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}
@media (min-width: 768px) {
  #ordersList {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 420px) {
  .orders-heading {
    gap: 10px;
  }
  .orders-close-btn {
    padding-inline: 10px;
  }
}
.order-item {
  position: relative;
  padding: 18px 18px 14px;
  border-radius: 18px;
  background: var(--bg-soft);
  border: 1.5px solid var(--border);
  transition:
    transform 0.3s var(--ease),
    border-color 0.25s,
    box-shadow 0.3s;
  animation: fadeUp 0.5s var(--ease) both;
}
.order-item:hover {
  transform: translateY(-3px);
  border-color: var(--blue);
  box-shadow: var(--shadow-md);
}
.order-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.order-code {
  font-weight: 900;
  font-size: 16px;
}
.order-status {
  font-size: 12.5px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 99px;
  background: var(--surface-2);
  color: var(--blue);
  border: 1px solid var(--border);
}
.order-state-group {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px;
}
.order-invoice-status {
  color: var(--text);
  background: var(--surface-2);
  border-color: var(--border);
}
.order-invoice-status.is-paid {
  color: var(--success);
  background: color-mix(in srgb, var(--success) 12%, transparent);
  border-color: color-mix(in srgb, var(--success) 30%, transparent);
}
.status-pending {
  color: var(--warn);
  background: color-mix(in srgb, var(--warn) 12%, transparent);
  border-color: color-mix(in srgb, var(--warn) 30%, transparent);
}
.status-assigned {
  color: var(--blue);
  background: color-mix(in srgb, var(--blue) 12%, transparent);
  border-color: color-mix(in srgb, var(--blue) 30%, transparent);
}
.status-done {
  color: var(--success);
  background: color-mix(in srgb, var(--success) 12%, transparent);
  border-color: color-mix(in srgb, var(--success) 30%, transparent);
}
.status-canceled {
  color: var(--danger);
  background: color-mix(in srgb, var(--danger) 10%, transparent);
  border-color: color-mix(in srgb, var(--danger) 28%, transparent);
}
.order-detail {
  font-size: 14px;
  color: var(--muted);
}
.order-compact-meta {
  margin-top: 5px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.order-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.order-item .link-btn {
  min-height: 44px;
  margin: 0;
  padding-inline: 12px;
  border-radius: 10px;
  color: var(--danger);
  font-size: 13px;
}
.order-item .order-rate-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding-inline: 15px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  transition:
    transform 0.2s var(--ease),
    background-color 0.2s,
    box-shadow 0.2s;
}
.order-item .order-rate-btn:hover {
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}
.empty-state {
  padding: 34px;
  text-align: center;
  border-radius: 18px;
  border: 1.5px dashed var(--border-strong);
  color: var(--muted);
  grid-column: 1 / -1;
}
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ============ SERVICES ============ */
.services {
  background: var(--bg-soft);
  overflow: hidden;
}
.services::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.5;
  pointer-events: none;
  background-image: radial-gradient(var(--border-strong) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 60%);
  mask-image: linear-gradient(180deg, #000, transparent 60%);
}
.services-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  perspective: 1200px;
}
@media (min-width: 720px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
  }
}
.service-card {
  --rx: 0deg;
  --ry: 0deg;
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 26px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transform-style: preserve-3d;
  transition:
    box-shadow 0.4s var(--ease),
    border-color 0.3s;
}
.service-card .tilt {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.service-card {
  rotate: var(--ax, 0) var(--ay, 1) 0 var(--ang, 0deg);
}
.js .service-card[data-reveal],
.service-card {
  transition-property: opacity, transform, rotate, box-shadow, border-color;
  transition-duration: 0.8s, 0.9s, 0.6s, 0.4s, 0.3s;
  transition-timing-function: var(--ease);
  transition-delay:
    calc(var(--i, 0) * 90ms), calc(var(--i, 0) * 90ms), 0s, 0s, 0s;
}
.service-card.tilting {
  transition-duration: 0.8s, 0.9s, 0.12s, 0.4s, 0.3s;
}
.service-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: color-mix(in srgb, var(--blue) 40%, var(--border));
}
.service-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s;
  background: radial-gradient(
    400px circle at var(--gx, 50%) var(--gy, 0%),
    var(--glow),
    transparent 45%
  );
}
.service-card:hover::after {
  opacity: 1;
}
.service-image {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.service-image .illus {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}
.service-image .illus svg {
  width: 78%;
  height: auto;
  transition: transform 0.8s var(--ease);
}
.service-card:hover .service-image .illus svg {
  transform: translateY(-6px) scale(1.04);
}
.service-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform 1s var(--ease),
    opacity 0.6s;
}
.service-image img.img-failed {
  opacity: 0;
}
.service-card:hover .service-image img {
  transform: scale(1.08);
}
.service-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(7, 20, 51, 0.45));
  pointer-events: none;
}
.svc-abi .service-image {
  background: linear-gradient(150deg, #e6f3ff, #b9dcff);
}
.svc-gazi .service-image {
  background: linear-gradient(150deg, #e9efff, #c3d2ff);
}
.svc-pkg .service-image {
  background: linear-gradient(150deg, #eaf0fb, #c9d8f3);
}
body.night-mode .svc-abi .service-image {
  background: linear-gradient(150deg, #0f2a55, #0a1a3f);
}
body.night-mode .svc-gazi .service-image {
  background: linear-gradient(150deg, #13265a, #0a1636);
}
body.night-mode .svc-pkg .service-image {
  background: linear-gradient(150deg, #142a52, #091634);
}
.service-num {
  position: absolute;
  z-index: 2;
  top: 16px;
  right: 16px;
  font-size: 13px;
  font-weight: 900;
  color: #fff;
  padding: 4px 10px;
  border-radius: 10px;
  background: rgba(7, 20, 51, 0.5);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.service-body {
  position: relative;
  padding: 24px 24px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.service-chip {
  position: absolute;
  top: -30px;
  left: 22px;
  width: 60px;
  height: 60px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  color: #fff;
  z-index: 2;
  background: linear-gradient(
    145deg,
    var(--sky),
    var(--blue) 60%,
    var(--blue-700)
  );
  box-shadow:
    0 14px 30px -10px var(--glow),
    0 0 0 5px var(--surface);
  transition: transform 0.5s var(--ease);
}
.service-chip .icon {
  width: 26px;
  height: 26px;
}
.service-card:hover .service-chip {
  transform: translateY(-4px) rotate(-10deg);
}
.service-body h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 21px;
  font-weight: 900;
}
.service-body h3 .icon {
  display: none;
}
.service-body p {
  color: var(--muted);
  font-size: 14.5px;
  margin-top: 8px;
}
.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}
.service-tags span {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 99px;
  background: var(--surface-2);
  color: var(--blue);
  border: 1px solid var(--border);
}
.service-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 18px;
  font-weight: 800;
  color: var(--blue);
  font-size: 15px;
  align-self: flex-start;
}
.service-link span {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--surface-2);
  transition:
    transform 0.35s var(--ease),
    background-color 0.3s,
    color 0.3s;
}
.service-card:hover .service-link span,
.service-link:hover span {
  transform: translateX(-6px);
  background: var(--blue);
  color: #fff;
}

/* ============ TWO-SERVICE LANDING PAGE ============ */
.landing-page .landing-main {
  min-height: calc(100svh - var(--header-h));
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 0%, var(--surface-2), transparent 58%),
    var(--bg);
}
.landing-page .landing-content {
  position: relative;
  width: 100%;
  padding-top: clamp(52px, 7vw, 88px);
  padding-bottom: clamp(48px, 7vw, 84px);
}
.landing-page #top {
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.landing-page #serviceOptions {
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.landing-page .landing-heading {
  max-width: 760px;
  margin: 0 auto 32px;
  text-align: center;
}
.landing-page .landing-heading .eyebrow {
  display: inline-flex;
  margin-top: 30px;
  align-items: center;
  gap: 8px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 800;
}
.landing-page .landing-heading .eyebrow .icon {
  width: 18px;
  height: 18px;
}
.landing-page .landing-title {
  margin: 10px 0 8px;
  color: var(--text);
  font-size: clamp(27px, 4.2vw, 44px);
  font-weight: 900;
  line-height: 1.4;
}
.landing-page .landing-description {
  max-width: 610px;
  margin: 0 auto;
  color: var(--muted);
  font-size: clamp(14px, 1.6vw, 17px);
}
.landing-page .landing-grid {
  max-width: 1180px;
  margin: 0 auto;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 1.8vw, 22px);
}
.landing-page .landing-card {
  min-width: 0;
  text-align: start;
}
.landing-page .landing-card:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
}
.landing-page .landing-card .service-image {
  aspect-ratio: 16 / 9;
}
.landing-page .landing-card .service-image::after {
  background: linear-gradient(180deg, transparent 36%, rgba(7, 20, 51, 0.58));
}
.landing-page .landing-card .service-body {
  min-height: 190px;
  padding: 26px 20px 20px;
}
.landing-page .landing-card .service-body h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: clamp(18px, 1.8vw, 21px);
  font-weight: 900;
}
.landing-page .landing-card .service-body p {
  margin-bottom: 10px;
}
.landing-page .landing-card .service-tags {
  margin-top: auto;
}
@media (min-width: 1024px) {
  .landing-page .landing-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 719px) {
  .landing-page .landing-main {
    min-height: 0;
    padding: 0;
  }
  .landing-page .landing-content {
    padding-top: 42px;
    padding-bottom: 48px;
  }
  .landing-page .landing-heading {
    margin-bottom: 24px;
  }
  .landing-page .landing-grid {
    grid-template-columns: 1fr;
    max-width: 520px;
  }
  .landing-page .landing-card .service-image {
    aspect-ratio: 16 / 10;
  }
  .landing-page .landing-card .service-body {
    min-height: 190px;
    padding: 28px 20px 20px;
  }
}

/* illustration animations */
.illus .spin-slow {
  transform-box: fill-box;
  transform-origin: center;
  animation: spin 3s linear infinite;
}
.illus .drip {
  animation: drip 2.4s ease-in infinite;
}
.illus .drip:nth-of-type(2) {
  animation-delay: 0.8s;
}
.illus .drip:nth-of-type(3) {
  animation-delay: 1.6s;
}
@keyframes drip {
  0% {
    transform: translateY(0);
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  100% {
    transform: translateY(26px);
    opacity: 0;
  }
}
.illus .air {
  stroke-dasharray: 8 10;
  animation: flow 3s linear infinite;
}
.illus .flame-p {
  transform-box: fill-box;
  transform-origin: bottom center;
  animation: flick 1.4s ease-in-out infinite alternate;
}
@keyframes flick {
  0% {
    transform: scaleY(1) scaleX(1);
  }
  100% {
    transform: scaleY(1.12) scaleX(0.94);
  }
}

/* ============ FAQ ============ */
.faq-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: start;
}
@media (min-width: 1024px) {
  .faq-wrap {
    grid-template-columns: 0.8fr 1.2fr;
    gap: 48px;
  }
  .faq-wrap .section-head {
    text-align: start;
    justify-items: start;
    margin: 0;
    position: sticky;
    top: calc(var(--header-h) + 30px);
  }
}
.faq-list {
  display: grid;
  gap: 12px;
}
.faq-item {
  border-radius: 18px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  transition:
    border-color 0.3s,
    box-shadow 0.3s;
  overflow: hidden;
}
.faq-item[open] {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px var(--ring);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 20px 22px;
  font-weight: 800;
  font-size: 16px;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::after {
  content: "";
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background-color: var(--surface-2);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%231d5bd8' stroke-width='2.4' stroke-linecap='round' viewBox='0 0 24 24'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  transition:
    transform 0.4s var(--ease),
    background-color 0.3s;
}
.faq-item[open] summary::after {
  transform: rotate(135deg);
}
.faq-item summary:focus-visible {
  outline-offset: -3px;
  border-radius: 16px;
}
.faq-answer {
  height: 0;
  overflow: hidden;
  opacity: 0;
  transition:
    height 0.42s var(--ease),
    opacity 0.32s ease;
}
.faq-answer-inner {
  transform: translateY(-6px);
  transition: transform 0.42s var(--ease);
}
.faq-item.faq-enhanced[open]:not(.is-closing) .faq-answer {
  height: auto;
  opacity: 1;
}
.faq-item.faq-enhanced[open]:not(.is-closing) .faq-answer-inner {
  transform: translateY(0);
}
.faq-item.faq-enhanced.is-closing .faq-answer-inner {
  transform: translateY(-6px);
}
.faq-answer p {
  margin: 0;
  padding: 0 22px 20px;
  color: var(--muted);
  font-size: 15px;
}

@media (prefers-reduced-motion: reduce) {
  .faq-item,
  .faq-item summary::after,
  .faq-answer,
  .faq-answer-inner {
    transition: none;
  }
}

/* ============ CTA ============ */
.cta {
  padding: 0 0 clamp(64px, 8vw, 110px);
}
.cta-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: 30px;
  padding: clamp(30px, 5vw, 56px);
  display: grid;
  gap: 22px;
  align-items: center;
  color: #fff;
  background: linear-gradient(135deg, #0f3584 0%, #1d5bd8 55%, #3ba7ff 120%);
  box-shadow: var(--shadow-lg);
}
.cta-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.25;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.3) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.3) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: radial-gradient(60% 80% at 20% 50%, #000, transparent);
  mask-image: radial-gradient(60% 80% at 20% 50%, #000, transparent);
}
.cta-card::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 360px;
  height: 360px;
  left: -80px;
  top: -120px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(124, 200, 255, 0.5),
    transparent 65%
  );
  animation: drift 12s ease-in-out infinite;
}
.cta-card h2 {
  color: #fff;
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 900;
}
.cta-card p {
  color: #d6e5ff;
  margin-top: 8px;
}
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.cta-card .btn-light {
  background: #fff;
  color: #0f3584;
  box-shadow: 0 14px 30px -12px rgba(0, 0, 0, 0.4);
}
.cta-card .btn-light:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px -12px rgba(0, 0, 0, 0.5);
}
.cta-card .btn-ghost-light {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.08);
}
.cta-card .btn-ghost-light:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-2px);
}
@media (min-width: 900px) {
  .cta-card {
    grid-template-columns: 1fr auto;
  }
}

/* ============ FOOTER ============ */
.site-footer {
  position: relative;
  background: #061230;
  color: #c3d2ee;
  padding-top: clamp(56px, 7vw, 80px);
  overflow: hidden;
}
body.night-mode .site-footer {
  background: #040a1a;
  border-top: 1px solid var(--border);
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  inset-inline: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #3ba7ff, transparent);
}
.site-footer::after {
  content: "";
  position: absolute;
  width: 500px;
  height: 500px;
  top: -260px;
  right: -120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(29, 91, 216, 0.35), transparent 65%);
  pointer-events: none;
}
.footer-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding-bottom: 40px;
}
@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
  }
}
.footer-brand {
  color: #fff;
}
.footer-brand .brand-name {
  color: #fff;
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
}
.footer-bio {
  margin-top: 16px;
  font-size: 14.5px;
  line-height: 2;
  color: #9fb2d6;
  max-width: 360px;
}
.footer-col h4 {
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 16px;
  position: relative;
  padding-bottom: 10px;
}
.footer-col h4::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 28px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--sky), #1d5bd8);
}
.footer-links,
.footer-contact {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  color: #b6c6e4;
  transition:
    color 0.2s,
    transform 0.3s var(--ease);
}
.footer-links a::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2a4a8a;
  transition:
    background-color 0.2s,
    transform 0.3s var(--ease);
}
.footer-links a:hover {
  color: #fff;
  transform: translateX(-4px);
}
.footer-links a:hover::before {
  background: #3ba7ff;
  transform: scale(1.4);
}
.footer-contact li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14.5px;
}
.footer-contact .icon {
  width: 36px;
  height: 36px;
  padding: 9px;
  border-radius: 11px;
  background: rgba(59, 167, 255, 0.12);
  color: #7cc8ff;
  border: 1px solid rgba(124, 200, 255, 0.18);
}
.footer-contact a:hover {
  color: #fff;
}
.footer-bottom {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px 0;
  font-size: 13.5px;
  color: #8496b8;
  text-align: center;
}

/* ============ MODALS ============ */
.modal-back.hidden {
  display: flex !important;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.modal-back {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(4, 12, 32, 0.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 1;
  visibility: visible;
  transition:
    opacity 0.3s var(--ease),
    visibility 0.3s;
}
.modal {
  position: relative;
  width: min(460px, 100%);
  max-height: calc(100svh - 40px);
  overflow-y: auto;
  padding: 26px;
  border-radius: 26px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  transform: translateY(0) scale(1);
  opacity: 1;
  transition:
    transform 0.45s var(--ease),
    opacity 0.3s;
}
.modal::before {
  content: "";
  position: absolute;
  top: 0;
  inset-inline: 30px;
  height: 3px;
  border-radius: 0 0 4px 4px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--blue),
    var(--sky),
    transparent
  );
}
.modal-back.hidden .modal {
  transform: translateY(20px) scale(0.95);
  opacity: 0;
}
.modal h3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 20px;
  font-weight: 900;
  margin-bottom: 16px;
}
.modal h3 .link-btn {
  font-size: 13px;
  padding: 6px 12px;
  background: var(--surface-2);
  color: var(--muted);
  border: 1px solid var(--border);
}
.modal h3 .link-btn:hover {
  color: var(--danger);
  border-color: var(--danger);
}
.modal label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin: 12px 0 8px;
}
.modal p {
  color: var(--muted);
  font-size: 14.5px;
}
.modal p b {
  color: var(--text);
}
.modal .primary-btn,
.modal .ghost-btn {
  min-height: 50px;
}
.modal hr {
  border: 0;
  height: 1px;
  background: var(--border);
  margin: 18px 0 6px;
}
.modal input[type="checkbox"] {
  width: 20px !important;
  height: 20px;
  accent-color: var(--blue);
  cursor: pointer;
}
.modal-otp-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
  flex-wrap: wrap;
}
.modal-otp-row .primary-btn {
  flex: 0 0 auto;
  min-height: 54px;
}
@media (max-width: 420px) {
  .modal-otp-row .primary-btn {
    flex: 1 1 100%;
  }
  .modal {
    padding: 22px 18px;
  }
}

.hint {
  font-size: 13px !important;
  color: var(--muted);
  margin-top: 8px;
  min-height: 0;
}
.hint:empty {
  margin: 0;
}
#loginOtpCountdown,
#requestOtpCountdown {
  color: var(--blue);
  font-weight: 700;
}
#resendBtn {
  margin-top: 8px;
}
.kv {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  margin-top: 8px;
  font-size: 14.5px;
}
.kv b {
  font-weight: 700;
  color: var(--text);
}
.kv span {
  color: var(--muted);
  font-weight: 600;
}
#invId {
  color: var(--blue);
  margin-inline-end: auto;
}
.success-mark {
  width: 76px;
  height: 76px;
  margin: 4px auto 14px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--success) 14%, transparent);
}
.success-mark svg {
  width: 40px;
  height: 40px;
  stroke: var(--success);
  stroke-width: 3;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.success-mark path {
  stroke-dasharray: 30;
  stroke-dashoffset: 30;
}
.modal-back:not(.hidden) .success-mark {
  animation: pop 0.6s var(--ease);
}
.modal-back:not(.hidden) .success-mark path {
  animation: draw 0.6s var(--ease) 0.25s forwards;
}
@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}
#doneHint2 {
  font-size: 13px;
  color: var(--warn);
  margin-top: 10px;
  font-weight: 700;
}

/* ============ TOAST ============ */
#toast {
  position: fixed;
  z-index: 900;
  bottom: max(20px, env(safe-area-inset-bottom));
  left: 50%;
  max-width: calc(100% - 32px);
  display: block !important;
  padding: 14px 20px 14px 22px;
  border-radius: 16px;
  font-size: 14.5px;
  font-weight: 700;
  background: var(--navy);
  color: var(--bg);
  box-shadow: var(--shadow-lg);
  border-inline-start: 4px solid var(--success);
  transform: translate(-50%, 20px);
  opacity: 0;
  visibility: hidden;
  transition:
    transform 0.4s var(--ease),
    opacity 0.3s,
    visibility 0.3s;
}
body.night-mode #toast {
  background: #e8eefc;
  color: #0b1b3a;
}
#toast.show {
  transform: translate(-50%, 0);
  opacity: 1;
  visibility: visible;
}
#toast.err {
  border-inline-start-color: var(--danger);
}

/* ============ REDUCED MOTION ============ */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .particles,
  .hero-flow,
  .dial-fan,
  .hero-orb {
    display: none;
  }
  .js [data-reveal],
  .js .hero [data-in] {
    opacity: 1;
    transform: none;
  }
  .dial .prog {
    stroke-dashoffset: 190;
  }
  .bar-mini i {
    width: var(--w, 70%);
  }
}
@media (max-width: 767px) {
  .particles i:nth-child(n + 6) {
    display: none;
  }
  .hero-orb.o2 {
    display: none;
  }
  .hero {
    min-height: auto;
    padding-bottom: 110px;
  }
  .hero-scroll {
    display: none;
  }
}
@media (max-width: 400px) {
  .container {
    width: calc(100% - 28px);
  }
  #headerHello {
    display: none;
  }
  .brand {
    font-size: 19px;
  }
  .brand .brand-mark {
    width: 36px;
    height: 36px;
  }
  .hero-actions .btn {
    flex: 1 1 100%;
  }
}

/* ============ RATING ============ */
.star-row {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: 14px 0 6px;
}
.star-btn {
  background: none;
  border: 0;
  padding: 4px;
  border-radius: 12px;
  color: var(--border-strong);
  transition:
    transform 0.2s var(--ease),
    color 0.2s;
}
.star-btn .icon {
  width: 38px;
  height: 38px;
  stroke-width: 1.6;
}
.star-btn:hover {
  transform: scale(1.12);
}
.star-btn.on {
  color: #f5b301;
}
.star-btn.on .icon {
  fill: #f5b301;
}

.travel-fee-notice,
.prepay-travel-hint {
  margin: 10px 0;
  padding: 11px 13px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--blue) 8%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--blue) 26%, var(--border));
  color: var(--text);
  font-size: 13px;
  line-height: 1.8;
}
.prepay-travel-hint {
  margin-top: -4px;
  color: var(--muted);
  background: var(--surface-2);
}
.prepay-travel-button {
  background: var(--surface);
  color: var(--blue);
  border: 1.5px solid var(--blue);
}
.prepay-travel-button:hover {
  background: color-mix(in srgb, var(--blue) 8%, var(--surface));
}
.modal textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1.5px solid var(--border);
  background: var(--bg-soft);
  color: var(--text);
  font-size: 15px;
  resize: vertical;
  outline: none;
  transition:
    border-color 0.25s,
    box-shadow 0.25s;
}
.modal textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px var(--ring);
  background: var(--surface);
}

/* The shared scroll detector controls both landing header states. */
.landing-page #siteHeader:not(.scrolled) {
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border-bottom-color: transparent;
  box-shadow: none;
}
.landing-page #siteHeader.scrolled {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: var(--border);
  box-shadow: 0 6px 24px -18px rgba(11, 27, 58, 0.3);
}
.landing-page #siteHeader:not(.scrolled) .brand-name {
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  color: #fff;
}
.landing-page #siteHeader:not(.scrolled) #headerHello {
  color: rgba(255, 255, 255, 0.9);
}
.landing-page #siteHeader.scrolled #headerHello {
  color: var(--muted);
}
.landing-page #siteHeader:not(.scrolled) .nav-toggle {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
}
.landing-page #siteHeader.scrolled .nav-toggle {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
}

/* Use theme tokens so landing headings stay legible in both color schemes. */
.landing-page .landing-heading .eyebrow {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--blue);
}
.landing-page .landing-title,
.landing-page .landing-card .service-body h2 {
  color: var(--text);
}
.landing-page .landing-description,
.landing-page .landing-card .service-body p {
  color: var(--muted);
}
.landing-page .landing-card .service-body {
  background: var(--surface);
}

@media (min-width: 1024px) {
  .landing-page #siteHeader:not(.scrolled) .nav-links {
    background: rgba(10, 26, 63, 0.42);
    border-color: rgba(255, 255, 255, 0.22);
  }
  .landing-page #siteHeader:not(.scrolled) .nav-links .nav-item,
  .landing-page #siteHeader:not(.scrolled) .nav-links .nav-item .icon {
    color: rgba(255, 255, 255, 0.96);
  }
  .landing-page #siteHeader:not(.scrolled) .nav-links .nav-item.active,
  .landing-page #siteHeader:not(.scrolled) .nav-links .nav-item:hover {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
  }
  .landing-page #siteHeader:not(.scrolled) .nav-links .nav-item.active .icon,
  .landing-page #siteHeader:not(.scrolled) .nav-links .nav-item:hover .icon {
    color: #fff;
  }
  .landing-page #siteHeader.scrolled .nav-links {
    background: color-mix(in srgb, var(--surface) 94%, transparent);
    border-color: var(--border);
  }
  .landing-page #siteHeader.scrolled .nav-links .nav-item,
  .landing-page #siteHeader.scrolled .nav-links .nav-item .icon {
    color: var(--text);
  }
  .landing-page #siteHeader.scrolled .nav-links .nav-item.active,
  .landing-page #siteHeader.scrolled .nav-links .nav-item:hover {
    background: var(--surface-2);
    color: var(--blue);
  }
  .landing-page #siteHeader.scrolled .nav-links .nav-item.active .icon,
  .landing-page #siteHeader.scrolled .nav-links .nav-item:hover .icon {
    color: var(--blue);
  }
  .landing-page #siteHeader:not(.scrolled) .nav-links #menuLogoutBtn {
    color: var(--danger) !important;
  }
}

@media (max-width: 719px) {
  .landing-page .landing-heading .eyebrow {
    margin-top: 0;
  }
}

@media (max-width: 400px) {
  .landing-page .site-header .nav-inner {
    gap: 8px;
  }
  .landing-page .brand {
    min-width: 0;
    gap: 6px;
    font-size: 18px;
  }
  .landing-page .header-center {
    flex: 1 1 0;
    min-width: 0;
    margin-inline-start: 0;
    justify-content: center;
  }
  .landing-page #headerHello:not(.hidden) {
    display: block;
    max-width: 100%;
    font-size: 12px;
    text-align: center;
  }
  .landing-page #headerHello b {
    display: inline-block;
    max-width: 72px;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: bottom;
  }
  .landing-page .menu-wrap {
    flex: 0 0 44px;
  }
}

/* Service-page desktop navigation follows the transparent hero header state. */
@media (min-width: 1024px) {
  body:not(.landing-page) #siteHeader:not(.scrolled) .nav-links {
    background: rgba(10, 26, 63, 0.42);
    border-color: rgba(255, 255, 255, 0.22);
  }
  body:not(.landing-page) #siteHeader:not(.scrolled) .nav-primary > .nav-item,
  body:not(.landing-page)
    #siteHeader:not(.scrolled)
    .nav-primary
    > .nav-more
    > .nav-more-toggle,
  body:not(.landing-page)
    #siteHeader:not(.scrolled)
    .nav-utilities
    > .nav-item {
    color: rgba(255, 255, 255, 0.96);
  }
  body:not(.landing-page)
    #siteHeader:not(.scrolled)
    .nav-primary
    > .nav-item
    .icon,
  body:not(.landing-page)
    #siteHeader:not(.scrolled)
    .nav-utilities
    > .nav-item
    .icon {
    color: rgba(255, 255, 255, 0.86);
  }
  body:not(.landing-page)
    #siteHeader:not(.scrolled)
    .nav-primary
    > .nav-item.active,
  body:not(.landing-page)
    #siteHeader:not(.scrolled)
    .nav-primary
    > .nav-item:hover,
  body:not(.landing-page)
    #siteHeader:not(.scrolled)
    .nav-primary
    > .nav-more
    > .nav-more-toggle:hover {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
  }
  body:not(.landing-page)
    #siteHeader:not(.scrolled)
    .nav-primary
    > .nav-item.active
    .icon,
  body:not(.landing-page)
    #siteHeader:not(.scrolled)
    .nav-primary
    > .nav-item:hover
    .icon {
    color: #fff;
  }

  body:not(.landing-page) #siteHeader.scrolled .nav-links {
    background: color-mix(in srgb, var(--surface) 94%, transparent);
    border-color: var(--border);
  }
  body:not(.landing-page) #siteHeader.scrolled .nav-primary > .nav-item,
  body:not(.landing-page)
    #siteHeader.scrolled
    .nav-primary
    > .nav-more
    > .nav-more-toggle,
  body:not(.landing-page) #siteHeader.scrolled .nav-utilities > .nav-item {
    color: var(--text);
  }
  body:not(.landing-page) #siteHeader.scrolled .nav-primary > .nav-item .icon,
  body:not(.landing-page)
    #siteHeader.scrolled
    .nav-utilities
    > .nav-item
    .icon {
    color: var(--muted);
  }
  body:not(.landing-page) #siteHeader.scrolled .nav-primary > .nav-item.active,
  body:not(.landing-page) #siteHeader.scrolled .nav-primary > .nav-item:hover,
  body:not(.landing-page)
    #siteHeader.scrolled
    .nav-primary
    > .nav-more
    > .nav-more-toggle:hover {
    background: var(--surface-2);
    color: var(--blue);
  }
  body:not(.landing-page)
    #siteHeader.scrolled
    .nav-primary
    > .nav-item.active
    .icon,
  body:not(.landing-page)
    #siteHeader.scrolled
    .nav-primary
    > .nav-item:hover
    .icon {
    color: var(--blue);
  }
  /* Desktop flattens this group into the transparent header row, so its
     links must follow the header state rather than the dropdown surface. */
  body:not(.landing-page) #siteHeader:not(.scrolled) .nav-more-menu .nav-item {
    color: rgba(255, 255, 255, 0.96);
  }
  body:not(.landing-page)
    #siteHeader:not(.scrolled)
    .nav-more-menu
    .nav-item
    .icon {
    color: rgba(255, 255, 255, 0.86);
  }
  body:not(.landing-page) #siteHeader.scrolled .nav-more-menu .nav-item {
    color: var(--text);
  }
  body:not(.landing-page) #siteHeader.scrolled .nav-more-menu .nav-item .icon {
    color: var(--muted);
  }
}

/* Package request wizard: keep each step focused and mobile-friendly. */
.package-request-form .request-wizard-progress {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface-2);
}
.request-wizard-progress-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}
.request-wizard-progress-label strong {
  color: var(--text);
  font-size: 14px;
}
.request-wizard-progress-track {
  position: relative;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--border);
}
.request-wizard-progress-track span {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--sky));
  transition: width 180ms ease;
}
[dir="rtl"] .request-wizard-progress-track span {
  right: 0;
  left: auto;
}
.request-wizard-dots {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin: 0;
  padding: 0 4px;
  list-style: none;
}
.request-wizard-dots li {
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  background: var(--surface);
}
.request-wizard-dots li.is-current,
.request-wizard-dots li.is-complete {
  border-color: var(--blue);
  background: var(--blue);
}
.package-request-form .request-wizard-steps {
  min-width: 0;
}
.package-request-form .request-wizard-step[hidden],
.package-request-form [hidden] {
  display: none !important;
}
.package-request-form .request-wizard-step {
  display: grid;
  min-width: 0;
  gap: 16px;
  animation: wizard-step-in 160ms ease-out;
}
.request-wizard-heading {
  margin: 0;
  color: var(--text);
  font-size: clamp(19px, 4vw, 23px);
  line-height: 1.5;
}
.request-wizard-heading:focus {
  outline: none;
}
.request-wizard-heading:focus-visible {
  border-radius: 6px;
  outline: 2px solid var(--blue);
  outline-offset: 4px;
}
.request-wizard-intro {
  margin: -8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}
.wizard-field-error {
  min-height: 0;
  margin: 0;
  color: var(--danger);
  font-size: 13px;
  line-height: 1.6;
}
.wizard-field-error:empty {
  display: none;
}
.package-request-form [aria-invalid="true"] {
  border-color: var(--danger) !important;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--danger) 18%, transparent);
}
.package-request-form
  #problemFieldset[aria-invalid="true"]
  .package-problem
  span {
  border-color: var(--danger);
}
.request-wizard-navigation {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  direction: ltr;
  gap: 12px;
  padding-top: 4px;
}
.request-wizard-navigation .btn {
  min-height: 48px;
  min-width: 120px;
  direction: rtl;
}
#requestWizardBack {
  grid-column: 1;
  justify-self: start;
}
#requestWizardNext {
  grid-column: 2;
  justify-self: end;
}
.wizard-review-card {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface-2);
}
.wizard-review-card h4 {
  margin: 0 0 12px;
  color: var(--text);
  font-size: 16px;
}
.wizard-review-list {
  display: grid;
  gap: 0;
  margin: 0;
}
.wizard-review-list > div {
  display: grid;
  grid-template-columns: minmax(82px, 0.35fr) minmax(0, 1fr);
  gap: 12px;
  padding: 9px 0;
  border-top: 1px solid var(--border);
}
.wizard-review-list dt {
  color: var(--muted);
  font-size: 13px;
}
.wizard-review-list dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
}
.wizard-submit-options {
  display: grid;
  gap: 12px;
}
.wizard-submit-options .btn {
  min-height: 50px;
  white-space: normal;
  line-height: 1.7;
}
.package-request-form .form-group,
.package-request-form .form-row,
.package-request-form .package-form-block,
.package-request-form select,
.package-request-form input,
.package-request-form textarea {
  min-width: 0;
  max-width: 100%;
}
@keyframes wizard-step-in {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width: 480px) {
  .package-request-form .request-wizard-progress {
    padding: 13px;
    border-radius: 15px;
  }
  .request-wizard-progress-label {
    font-size: 12px;
  }
  .request-wizard-progress-label strong {
    font-size: 13px;
  }
  .package-request-form .package-form-block {
    padding: 14px;
  }
  .package-request-form .form-row {
    grid-template-columns: minmax(0, 1fr);
  }
  .request-wizard-navigation .btn {
    min-width: 0;
    width: 100%;
  }
  .wizard-review-card {
    padding: 13px;
  }
  .wizard-review-list > div {
    grid-template-columns: minmax(74px, 0.3fr) minmax(0, 1fr);
    gap: 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .package-request-form .request-wizard-step {
    animation: none;
  }
  .request-wizard-progress-track span {
    transition: none;
  }
}

@media (max-width: 719px) {
  .hero .hero-copy {
    width: 100%;
    margin-inline: auto;
    text-align: center;
  }
  .hero .hero-eyebrow {
    margin-inline: auto;
  }
  .hero .hero-title,
  .hero .hero-sub {
    text-align: center;
  }
  .hero .hero-sub {
    margin-inline: auto;
  }
  .hero .hero-badge-row {
    justify-content: center;
  }
  .hero .hero-badge-row .hero-badge:nth-child(2) {
    justify-content: center;
    text-align: center;
  }
}

@media (min-width: 376px) and (max-width: 655px) {
  .hero .hero-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .hero .hero-actions > a[href="#request"] {
    grid-column: 1;
    grid-row: 1;
  }
  .hero .hero-actions > #customerCalculatorButton {
    grid-column: 2;
    grid-row: 1;
  }
  .hero .hero-actions > #myOrdersBtn {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: center;
    width: max-content;
    min-width: 180px;
  }
  .hero .hero-actions > a[href^="tel:"] {
    grid-column: 1 / -1;
    grid-row: 3;
    width: 100%;
    min-height: 58px;
    justify-content: center;
    gap: 10px;
    font-size: 18px;
  }
  .hero .hero-actions > a[href="#request"],
  .hero .hero-actions > #customerCalculatorButton {
    width: 100%;
    min-width: 0;
    padding-inline: 8px;
    font-size: 14px;
    line-height: 1.45;
    text-align: center;
  }
  .landing-page .hero .hero-actions > a:first-child {
    grid-column: 1;
    grid-row: 1;
    width: 100%;
    min-width: 0;
    padding-inline: 8px;
    font-size: 14px;
    line-height: 1.45;
    text-align: center;
  }
  .landing-page .hero .hero-actions > a[href^="tel:"] {
    grid-column: 2;
    grid-row: 1;
    width: 100%;
    min-height: 48px;
    padding-inline: 8px;
    font-size: 14px;
    text-align: center;
  }
  .landing-page .hero .hero-actions > #customerCalculatorButton {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: center;
    width: max-content;
    max-width: 100%;
    min-width: 180px;
  }
}

@media (max-width: 600px) {
  .landing-page .hero .hero-badge-row .hero-badge:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
    justify-content: center;
  }
}
