/* =========================================================================
   Inovy — Software Solutions Company
   ========================================================================= */

/* ---------- Design tokens ---------- */

:root {
  --font-head: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --container: 1200px;
  --gutter: clamp(1.25rem, 4vw, 2rem);
  --header-h: 76px;
  --radius: 14px;
  --radius-lg: 20px;
  --ease: cubic-bezier(0.22, 0.75, 0.25, 1);

  --bg: #ffffff;
  --bg-soft: #f6f7fb;
  --surface: #ffffff;
  --surface-2: #f1f3f9;
  --border: #e6e8f0;
  --border-strong: #d5d9e5;
  --text: #0b1020;
  --text-2: #4a5268;
  --muted: #6b7390;
  --primary: #4a58f5;
  --primary-soft: rgba(74, 88, 245, 0.08);
  --primary-ring: rgba(74, 88, 245, 0.28);
  --btn-bg: #4a58f5;
  --btn-bg-hover: #3a47e0;
  --success: #0f9f74;
  --success-soft: rgba(18, 184, 134, 0.12);
  --warning: #c27c0e;
  --warning-soft: rgba(245, 166, 35, 0.14);
  --danger: #d93a44;
  --grad: linear-gradient(135deg, #4a58f5 0%, #8b5cf6 100%);
  --grad-text: linear-gradient(110deg, #4a58f5 0%, #7c5cf6 55%, #b04fe0 100%);
  --ink: #0b1024;
  --header-bg: rgba(255, 255, 255, 0.82);
  --grid-line: rgba(15, 23, 42, 0.05);
  --blob-1: rgba(74, 88, 245, 0.16);
  --blob-2: rgba(139, 92, 246, 0.14);

  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.05);
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 10px 28px -10px rgba(16, 24, 40, 0.12);
  --shadow-lg: 0 2px 4px rgba(16, 24, 40, 0.04), 0 24px 56px -20px rgba(16, 24, 40, 0.2);
  --shadow-xl: 0 40px 90px -30px rgba(30, 41, 90, 0.32), 0 2px 6px rgba(16, 24, 40, 0.04);

  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #070a13;
  --bg-soft: #0b0f1c;
  --surface: #0f1424;
  --surface-2: #161c31;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #eef0f8;
  --text-2: #b3b9cf;
  --muted: #8a91aa;
  --primary: #8d97ff;
  --primary-soft: rgba(124, 136, 255, 0.12);
  --primary-ring: rgba(124, 136, 255, 0.35);
  --btn-bg: #5865f2;
  --btn-bg-hover: #6874ff;
  --success: #2fd69b;
  --success-soft: rgba(47, 214, 155, 0.12);
  --warning: #f5b544;
  --warning-soft: rgba(245, 181, 68, 0.14);
  --danger: #ff6b73;
  --grad: linear-gradient(135deg, #5b68ff 0%, #9b6cff 100%);
  --grad-text: linear-gradient(110deg, #8d97ff 0%, #b49cff 55%, #e29cf0 100%);
  --ink: #0e1430;
  --header-bg: rgba(7, 10, 19, 0.78);
  --grid-line: rgba(255, 255, 255, 0.035);
  --blob-1: rgba(91, 104, 255, 0.26);
  --blob-2: rgba(155, 108, 255, 0.2);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px -12px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 2px 4px rgba(0, 0, 0, 0.3), 0 30px 60px -20px rgba(0, 0, 0, 0.7);
  --shadow-xl: 0 40px 100px -30px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.03);

  color-scheme: dark;
}

/* ---------- Base ---------- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  -webkit-text-size-adjust: 100%;
}

html:has(.subnav) {
  scroll-padding-top: calc(var(--header-h) + 4.5rem);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  transition: background-color 0.3s;
}

body.no-scroll {
  overflow: hidden;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--text);
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

p {
  margin: 0;
}

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

a {
  color: inherit;
}

button {
  font: inherit;
}

::selection {
  background: var(--primary-ring);
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.icon {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  background: var(--btn-bg);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

/* ---------- Typography helpers ---------- */

.h-display {
  font-size: clamp(2.5rem, 5.4vw, 4.25rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.h-section {
  font-size: clamp(2rem, 3.6vw, 2.875rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.lead {
  color: var(--text-2);
  font-size: clamp(1.0625rem, 1.4vw, 1.1875rem);
  line-height: 1.7;
  text-wrap: pretty;
}

.text-grad {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.85rem;
  border: 1px solid var(--primary-ring);
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.eyebrow__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 3px var(--primary-soft);
}

/* ---------- Buttons & links ---------- */

.btn {
  --h: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  height: var(--h);
  padding: 0 1.35rem;
  border: 1px solid transparent;
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.25s, transform 0.25s var(--ease);
}

.btn .icon {
  width: 18px;
  height: 18px;
}

.btn .icon--arrow {
  transition: transform 0.25s var(--ease);
}

.btn:hover .icon--arrow {
  transform: translateX(3px);
}

.btn:active {
  transform: translateY(0);
}

.btn--sm {
  --h: 40px;
  padding: 0 1rem;
  border-radius: 10px;
  font-size: 0.875rem;
}

.btn--lg {
  --h: 54px;
  padding: 0 1.6rem;
  font-size: 1rem;
}

.btn--block {
  width: 100%;
}

.btn--primary {
  background: var(--btn-bg);
  color: #fff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.btn--primary:hover {
  background: var(--btn-bg-hover);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px -8px var(--primary-ring), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.btn--secondary {
  background: var(--surface);
  border-color: var(--border-strong);
  color: var(--text);
}

.btn--secondary:hover {
  background: var(--surface-2);
  transform: translateY(-1px);
}

.btn--white {
  background: #fff;
  color: #0b1020;
}

.btn--white:hover {
  background: #eef0ff;
  transform: translateY(-1px);
  box-shadow: 0 12px 28px -10px rgba(0, 0, 0, 0.45);
}

.btn--glass {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.btn--glass:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-1px);
}

.btn[disabled] {
  opacity: 0.7;
  pointer-events: none;
}

.spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.btn.is-loading .spinner {
  display: block;
}

.btn.is-loading .icon {
  display: none;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--primary);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
}

.link-arrow .icon {
  width: 16px;
  height: 16px;
  transition: transform 0.25s var(--ease);
}

.link-arrow:hover .icon {
  transform: translateX(3px);
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
}

.icon-btn:hover {
  background: var(--surface-2);
  border-color: var(--border-strong);
}

.icon-tile {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex: none;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary);
  transition: background 0.3s, color 0.3s;
}

.icon-tile .icon {
  width: 24px;
  height: 24px;
}

.icon-tile--lg {
  width: 60px;
  height: 60px;
  border-radius: 16px;
}

.icon-tile--lg .icon {
  width: 28px;
  height: 28px;
}

/* ---------- Header ---------- */

.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s, border-color 0.3s;
}

.header.is-scrolled {
  background: var(--header-bg);
  border-bottom-color: var(--border);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
}

.header.menu-open {
  background: var(--bg);
  border-bottom-color: var(--border);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: var(--header-h);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  text-decoration: none;
}

.nav {
  margin-inline: auto;
}

.nav__list {
  display: flex;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  height: 40px;
  padding: 0 0.9rem;
  border-radius: 10px;
  color: var(--text-2);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s, background-color 0.2s;
}

.nav__link:hover {
  background: var(--surface-2);
  color: var(--text);
}

.nav__link[aria-current="page"] {
  color: var(--text);
  font-weight: 600;
}

.nav__link .icon {
  width: 16px;
  height: 16px;
  transition: transform 0.25s var(--ease);
}

.has-menu {
  position: relative;
}

.has-menu:hover .nav__link .icon,
.has-menu:focus-within .nav__link .icon {
  transform: rotate(180deg);
}

/* Services dropdown */
.mega {
  position: absolute;
  top: 100%;
  left: 50%;
  width: 600px;
  padding-top: 0.75rem;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 6px);
  transition: opacity 0.2s, transform 0.2s var(--ease), visibility 0.2s;
}

.has-menu:hover .mega,
.has-menu:focus-within .mega {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.mega__panel {
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}

.mega__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.25rem;
}

.mega__item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.85rem;
  border-radius: 12px;
  color: var(--text);
  text-decoration: none;
  transition: background-color 0.2s;
}

.mega__item:hover {
  background: var(--surface-2);
}

.mega__item .icon-tile {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.mega__item .icon-tile .icon {
  width: 20px;
  height: 20px;
}

.mega__item strong {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
}

.mega__item small {
  display: block;
  margin-top: 0.15rem;
  color: var(--muted);
  font-size: 0.8125rem;
}

.mega__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.5rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: var(--bg-soft);
  color: var(--text-2);
  font-size: 0.875rem;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.theme-toggle .icon--sun,
[data-theme="dark"] .theme-toggle .icon--moon {
  display: none;
}

[data-theme="dark"] .theme-toggle .icon--sun {
  display: block;
}

.menu-toggle {
  display: none;
}

.menu-toggle .icon--close,
.menu-toggle[aria-expanded="true"] .icon--open {
  display: none;
}

.menu-toggle[aria-expanded="true"] .icon--close {
  display: block;
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: var(--header-h) 0 0;
  z-index: 59;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 1rem var(--gutter) 2rem;
  overflow-y: auto;
  background: var(--bg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.25s, transform 0.25s var(--ease), visibility 0.25s;
}

.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.mobile-menu__list,
.mobile-menu__sub {
  margin: 0;
  padding: 0;
  list-style: none;
}

.mobile-menu__list > li > a,
.mobile-menu__list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0.25rem;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font-head);
  font-size: 1.125rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  list-style: none;
}

.mobile-menu__list summary::-webkit-details-marker {
  display: none;
}

.mobile-menu__list summary .icon {
  transition: transform 0.25s var(--ease);
}

.mobile-menu__list details[open] summary .icon {
  transform: rotate(180deg);
}

.mobile-menu__list a[aria-current="page"] {
  color: var(--primary);
}

.mobile-menu__sub {
  padding: 0.5rem 0 0.75rem;
  border-bottom: 1px solid var(--border);
}

.mobile-menu__sub a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.25rem;
  color: var(--text-2);
  font-weight: 500;
  text-decoration: none;
}

.mobile-menu__sub .icon {
  color: var(--primary);
}

/* ---------- Decorative backgrounds ---------- */

.bg-decor {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.bg-decor::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 80% 75% at 50% 0%, #000 25%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 75% at 50% 0%, #000 25%, transparent 75%);
}

.blob {
  position: absolute;
  border-radius: 50%;
}

.blob--1 {
  top: -220px;
  right: -120px;
  width: 640px;
  height: 640px;
  background: radial-gradient(closest-side, var(--blob-1), transparent);
}

.blob--2 {
  top: 80px;
  left: -220px;
  width: 560px;
  height: 560px;
  background: radial-gradient(closest-side, var(--blob-2), transparent);
}

/* ---------- Hero (home) ---------- */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: calc(var(--header-h) + clamp(3rem, 7vw, 5.5rem)) 0 clamp(4rem, 8vw, 6rem);
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: clamp(2.5rem, 5vw, 4.5rem);
}

.hero h1 {
  margin: 1.25rem 0;
}

.hero .lead {
  max-width: 35rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.25rem;
}

.hero__points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--text-2);
  font-size: 0.9375rem;
  font-weight: 500;
}

.hero__points li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.hero__points .icon {
  width: 18px;
  height: 18px;
  color: var(--success);
  stroke-width: 2.25;
}

/* Product mock-up */
.hero__visual {
  position: relative;
  padding: 1.5rem 0;
}

.mock {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-xl);
}

.mock__bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  height: 40px;
  padding: 0 1rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}

.mock__dots {
  display: flex;
  gap: 6px;
}

.mock__dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff6b6b;
  opacity: 0.85;
}

.mock__dots i:nth-child(2) {
  background: #ffc65c;
}

.mock__dots i:nth-child(3) {
  background: #4fd18b;
}

.mock__url {
  display: grid;
  place-items: center;
  flex: 1;
  max-width: 250px;
  height: 24px;
  margin: 0 auto;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.6875rem;
}

.mock__body {
  display: grid;
  grid-template-columns: 56px 1fr;
}

.mock__side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem 0;
  border-right: 1px solid var(--border);
  background: var(--bg-soft);
}

.mock__brand {
  width: 26px;
  height: 26px;
  margin-bottom: 0.4rem;
  border-radius: 8px;
  background: var(--grad);
}

.mock__nav {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: var(--surface-2);
}

.mock__nav.is-active {
  background: var(--primary-soft);
  box-shadow: inset 0 0 0 1.5px var(--primary);
}

.mock__main {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.1rem 1.25rem 1.25rem;
}

.mock__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mock__kicker {
  display: block;
  color: var(--muted);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mock__title {
  display: block;
  color: var(--text);
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
}

.mock__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: var(--success-soft);
  color: var(--success);
  font-size: 0.6875rem;
  font-weight: 600;
}

.mock__badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  50% {
    opacity: 0.35;
  }
}

.mock__kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
}

.kpi {
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 12px;
}

.kpi span {
  display: block;
  color: var(--muted);
  font-size: 0.6875rem;
}

.kpi strong {
  display: block;
  margin: 0.15rem 0 0.1rem;
  color: var(--text);
  font-family: var(--font-head);
  font-size: 1.05rem;
}

.kpi em {
  color: var(--success);
  font-size: 0.6875rem;
  font-style: normal;
  font-weight: 600;
}

.mock__chart {
  height: 118px;
  padding: 0.6rem 0.6rem 0;
  border: 1px solid var(--border);
  border-radius: 12px;
}

.mock__chart svg {
  width: 100%;
  height: 100%;
}

.chart-grid {
  fill: none;
  stroke: var(--border);
  stroke-dasharray: 4 4;
  vector-effect: non-scaling-stroke;
}

.chart-stop-a {
  stop-color: var(--primary);
  stop-opacity: 0.28;
}

.chart-stop-b {
  stop-color: var(--primary);
  stop-opacity: 0;
}

.chart-area {
  fill: url(#chart-fill);
}

.chart-line {
  fill: none;
  stroke: var(--primary);
  stroke-width: 2.5;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

.mock__rows {
  display: grid;
  gap: 0.55rem;
}

.mock__row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.mock__row i {
  width: 22px;
  height: 22px;
  flex: none;
  border-radius: 50%;
  background: var(--surface-2);
}

.mock__row b {
  flex: 1;
  height: 7px;
  border-radius: 4px;
  background: var(--surface-2);
}

.mock__row b + b {
  flex: 0.55;
}

.mock__row span {
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: var(--success-soft);
  color: var(--success);
  font-size: 0.625rem;
  font-weight: 600;
}

.mock__row span.is-pending {
  background: var(--warning-soft);
  color: var(--warning);
}

.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem 1rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  animation: float 6s ease-in-out infinite;
}

.float-card strong {
  display: block;
  color: var(--text);
  font-size: 0.8125rem;
}

.float-card small {
  display: block;
  color: var(--muted);
  font-size: 0.6875rem;
}

.float-card--a {
  bottom: 2.25rem;
  left: -2rem;
}

.float-card__icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--success-soft);
  color: var(--success);
}

.float-card__icon .icon {
  width: 18px;
  height: 18px;
  stroke-width: 2.5;
}

.float-card--b {
  top: -0.25rem;
  right: -1.5rem;
  flex-direction: column;
  align-items: stretch;
  gap: 0.35rem;
  min-width: 150px;
  animation-delay: -3s;
}

.float-card--b strong {
  font-family: var(--font-head);
  font-size: 1.5rem;
  line-height: 1;
}

.float-card--b strong span {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 500;
}

.meter {
  display: block;
  height: 6px;
  overflow: hidden;
  border-radius: 3px;
  background: var(--surface-2);
}

.meter i {
  display: block;
  width: 98%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #12b886, #3bd6a5);
}

@keyframes float {
  50% {
    transform: translateY(-8px);
  }
}

/* ---------- Technology marquee ---------- */

.tech {
  padding: 2.5rem 0 2.75rem;
  border-block: 1px solid var(--border);
  background: var(--bg-soft);
}

.tech__label {
  margin-bottom: 1.5rem;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 500;
  text-align: center;
}

.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 50s linear infinite;
}

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

.marquee ul {
  display: flex;
  gap: 0.75rem;
  margin: 0;
  padding: 0 0.75rem 0 0;
  list-style: none;
}

.marquee li {
  padding: 0.6rem 1.15rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-2);
  font-family: var(--font-head);
  font-size: 0.9375rem;
  font-weight: 600;
  white-space: nowrap;
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* ---------- Sections ---------- */

.section {
  position: relative;
  padding: clamp(4.5rem, 9vw, 7rem) 0;
}

.section--soft {
  border-block: 1px solid var(--border);
  background: var(--bg-soft);
}

/* Avoid a doubled hairline where a soft section meets the footer */
main > .section--soft:last-child {
  border-bottom: 0;
}

.section--flush {
  padding-top: 0;
}

.section-head {
  max-width: 720px;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.section-head .h-section {
  margin: 1rem 0;
}

.grid {
  display: grid;
  gap: 1.25rem;
}

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

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

.split {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  align-items: center;
  gap: clamp(2.5rem, 6vw, 5rem);
}

.split .h-section {
  margin: 1rem 0;
}

/* Service cards */
.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  overflow: hidden;
  padding: 1.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: inherit;
  text-decoration: none;
  transition: transform 0.3s var(--ease), box-shadow 0.3s, border-color 0.3s;
}

.service-card::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}

.service-card:hover {
  border-color: var(--primary-ring);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.service-card:hover::after {
  transform: scaleX(1);
}

.service-card:hover .icon-tile {
  background: var(--grad);
  color: #fff;
}

.service-card h3 {
  margin-top: 0.75rem;
  font-size: 1.2rem;
}

.service-card p {
  flex: 1;
  color: var(--text-2);
}

.service-card .link-arrow {
  margin-top: 0.5rem;
}

.service-card:hover .link-arrow .icon {
  transform: translateX(3px);
}

/* Checklist */
.checklist {
  display: grid;
  gap: 0.85rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--text-2);
}

.check {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex: none;
  margin-top: 0.1rem;
  border-radius: 50%;
  background: var(--success-soft);
  color: var(--success);
}

.check .icon {
  width: 13px;
  height: 13px;
  stroke-width: 3;
}

/* Feature cards */
.features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.feature {
  padding: 1.6rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.feature h3 {
  margin: 1.1rem 0 0.4rem;
  font-size: 1.075rem;
}

.feature p {
  color: var(--text-2);
  font-size: 0.9375rem;
}

.why__copy .checklist {
  margin: 1.75rem 0 2.25rem;
}

/* Industries */
.industries {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.industry {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.3;
}

.industry .icon-tile {
  width: 44px;
  height: 44px;
  border-radius: 11px;
}

.industry .icon-tile .icon {
  width: 22px;
  height: 22px;
}

/* Process */
.process {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.process::before {
  content: "";
  position: absolute;
  top: 27px;
  left: 12.5%;
  right: 12.5%;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--border-strong) 0 8px, transparent 8px 16px);
}

.step {
  position: relative;
  padding: 0 0.5rem;
  text-align: center;
}

.step__num {
  position: relative;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 700;
  box-shadow: 0 0 0 8px var(--bg-soft), 0 10px 24px -8px var(--primary-ring);
}

.step h3 {
  margin-bottom: 0.5rem;
  font-size: 1.125rem;
}

.step p {
  color: var(--text-2);
  font-size: 0.9375rem;
}

/* ---------- CTA band ---------- */

.cta {
  padding: clamp(4rem, 8vw, 6rem) 0;
}

.cta__panel {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  overflow: hidden;
  padding: clamp(2.25rem, 5vw, 4rem);
  border-radius: 28px;
  background: var(--ink);
  color: #fff;
}

[data-theme="dark"] .cta__panel {
  border: 1px solid var(--border);
}

.cta__panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 120% at 100% 0%, rgba(124, 92, 246, 0.55), transparent 60%),
    radial-gradient(50% 120% at 0% 100%, rgba(74, 88, 245, 0.5), transparent 60%);
}

.cta__panel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000);
  mask-image: linear-gradient(90deg, transparent, #000);
}

.cta h2 {
  color: #fff;
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  letter-spacing: -0.03em;
}

.cta p {
  max-width: 34rem;
  margin-top: 0.75rem;
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.0625rem;
}

.cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ---------- Inner page hero ---------- */

.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: calc(var(--header-h) + clamp(3rem, 6vw, 5rem)) 0 clamp(3.5rem, 6vw, 5rem);
  border-bottom: 1px solid var(--border);
  background: var(--bg-soft);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.875rem;
}

.breadcrumb a {
  color: var(--text-2);
  text-decoration: none;
}

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

.breadcrumb li + li::before {
  content: "/";
  margin-right: 0.5rem;
  color: var(--border-strong);
}

.page-hero h1 {
  max-width: 20ch;
  margin: 1.1rem 0 1.25rem;
  font-size: clamp(2.25rem, 4.6vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.page-hero .lead {
  max-width: 42rem;
}

/* ---------- Services page ---------- */

.subnav {
  position: sticky;
  top: var(--header-h);
  z-index: 40;
  border-bottom: 1px solid var(--border);
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
}

.subnav__list {
  display: flex;
  gap: 0.25rem;
  margin: 0;
  padding: 0.6rem 0;
  overflow-x: auto;
  list-style: none;
  scrollbar-width: none;
}

.subnav__list::-webkit-scrollbar {
  display: none;
}

.subnav a {
  display: inline-flex;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  color: var(--text-2);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s, color 0.2s;
}

.subnav a:hover {
  background: var(--surface-2);
  color: var(--text);
}

.subnav a.is-active {
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 600;
}

.service-detail {
  padding: clamp(4rem, 8vw, 6rem) 0;
  border-bottom: 1px solid var(--border);
}

.service-detail--alt {
  background: var(--bg-soft);
}

.service-detail__inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
}

.service-detail h2 {
  margin: 1.4rem 0 1rem;
  font-size: clamp(1.75rem, 3vw, 2.375rem);
  letter-spacing: -0.03em;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.5rem 0 2rem;
  padding: 0;
  list-style: none;
}

.tags li {
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text-2);
  font-size: 0.8125rem;
  font-weight: 500;
}

.panel {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.panel__title {
  margin-bottom: 1.25rem;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.plan {
  display: flex;
  flex-direction: column;
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.plan h3 {
  margin: 1.25rem 0 0.5rem;
  font-size: 1.25rem;
}

.plan > p {
  margin-bottom: 1.5rem;
  color: var(--text-2);
}

.plan .checklist {
  margin-bottom: 1.5rem;
}

.plan__best {
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.875rem;
}

.plan__best strong {
  color: var(--text);
}

/* ---------- About page ---------- */

.prose p + p {
  margin-top: 1rem;
}

.prose p {
  color: var(--text-2);
  font-size: 1.0625rem;
  line-height: 1.75;
}

.pillars {
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}

.pillar {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
}

.pillar + .pillar {
  border-top: 1px solid var(--border);
}

.pillar h3 {
  margin: 0.15rem 0 0.3rem;
  font-size: 1.075rem;
}

.pillar p {
  color: var(--text-2);
  font-size: 0.9375rem;
}

.mv-card {
  position: relative;
  overflow: hidden;
  padding: clamp(1.75rem, 4vw, 2.5rem);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.mv-card::after {
  content: "";
  position: absolute;
  top: -80px;
  right: -80px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--blob-1), transparent);
  pointer-events: none;
}

.mv-card h3 {
  margin: 1.4rem 0 0.75rem;
  font-size: 1.5rem;
}

.mv-card p {
  color: var(--text-2);
  font-size: 1.0625rem;
  line-height: 1.7;
}

.careers {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: clamp(2rem, 5vw, 3rem);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: radial-gradient(80% 160% at 100% 0%, var(--primary-soft), transparent 60%), var(--surface);
}

.careers h2 {
  margin: 1rem 0 0.6rem;
  font-size: clamp(1.6rem, 3vw, 2.125rem);
  letter-spacing: -0.03em;
}

.careers p {
  max-width: 36rem;
  color: var(--text-2);
}

/* ---------- Contact page ---------- */

.contact-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  align-items: start;
  gap: clamp(1.5rem, 3vw, 2rem);
}

.form-card {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}

.form-card__head h2 {
  font-size: 1.5rem;
}

.form-card__head p {
  margin-top: 0.4rem;
  color: var(--muted);
  font-size: 0.9375rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.15rem 1rem;
  margin-top: 1.75rem;
}

.field--full {
  grid-column: 1 / -1;
}

.field label {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 600;
}

.field .req {
  color: var(--danger);
}

.field .optional {
  color: var(--muted);
  font-weight: 400;
}

.input {
  width: 100%;
  height: 50px;
  padding: 0 1rem;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  outline: none;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.input::placeholder {
  color: var(--muted);
  opacity: 0.75;
}

.input:hover {
  border-color: var(--muted);
}

.input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-ring);
}

textarea.input {
  height: auto;
  min-height: 140px;
  padding: 0.85rem 1rem;
  resize: vertical;
}

select.input {
  appearance: none;
  padding-right: 2.75rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7390' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 18px;
  cursor: pointer;
}

.field.has-error .input {
  border-color: var(--danger);
}

.field.has-error .input:focus {
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--danger) 22%, transparent);
}

.field__error {
  display: none;
  margin-top: 0.4rem;
  color: var(--danger);
  font-size: 0.8125rem;
  font-weight: 500;
}

.field.has-error .field__error {
  display: block;
}

.form-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  margin-top: 1.75rem;
}

.form-note {
  max-width: 24rem;
  color: var(--muted);
  font-size: 0.8125rem;
}

.form-status {
  margin-top: 1rem;
  color: var(--danger);
  font-size: 0.875rem;
  font-weight: 500;
}

.form-status:empty {
  display: none;
}

.form-success {
  padding: 2.5rem 1rem;
  text-align: center;
}

.form-success__icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  background: var(--success-soft);
  color: var(--success);
}

.form-success__icon .icon {
  width: 30px;
  height: 30px;
  stroke-width: 2.5;
}

.form-success h2 {
  font-size: 1.6rem;
  outline: none;
}

.form-success p {
  max-width: 28rem;
  margin: 0.75rem auto 1.75rem;
  color: var(--text-2);
}

.contact-aside {
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
  display: grid;
  gap: 1.25rem;
}

.contact-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 2rem;
  border-radius: var(--radius-lg);
  background: var(--ink);
  color: #fff;
}

.contact-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(90% 90% at 100% 0%, rgba(124, 92, 246, 0.5), transparent 60%),
    radial-gradient(70% 90% at 0% 100%, rgba(74, 88, 245, 0.4), transparent 60%);
}

.contact-card__kicker {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contact-card h2 {
  margin-top: 0.5rem;
  color: #fff;
  font-size: 1.5rem;
}

.contact-card p {
  margin-top: 0.4rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9375rem;
}

.contact-card__phone {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin: 1.5rem 0;
  color: #fff;
  font-family: var(--font-head);
  font-size: clamp(1.35rem, 2.4vw, 1.625rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
}

.contact-card__phone .icon {
  width: 22px;
  height: 22px;
  opacity: 0.8;
}

.contact-card__phone:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

.contact-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.contact-card__actions .btn {
  flex: 1 1 auto;
}

.next-steps {
  display: grid;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.next-steps li {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 0.9rem;
  counter-increment: step;
}

.next-steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 0.875rem;
  font-weight: 700;
}

.next-steps strong {
  display: block;
  color: var(--text);
  font-family: var(--font-head);
}

.next-steps span {
  color: var(--text-2);
  font-size: 0.9375rem;
}

/* FAQ */
.faq {
  display: grid;
  gap: 0.75rem;
  max-width: 820px;
  margin: 0 auto;
}

.faq details {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.faq details[open] {
  border-color: var(--primary-ring);
  box-shadow: var(--shadow);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.35rem;
  color: var(--text);
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary .icon {
  color: var(--muted);
  transition: transform 0.25s var(--ease);
}

.faq details[open] summary .icon {
  transform: rotate(180deg);
  color: var(--primary);
}

.faq details p {
  padding: 0 1.35rem 1.3rem;
  color: var(--text-2);
}

/* ---------- Footer ---------- */

.footer {
  padding: clamp(3.5rem, 7vw, 5rem) 0 2rem;
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
}

.footer__top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.25fr;
  gap: 2.5rem;
}

.footer__about {
  max-width: 22rem;
  margin-top: 1rem;
  color: var(--text-2);
  font-size: 0.9375rem;
}

.footer__title {
  margin-bottom: 1rem;
  color: var(--text);
  font-family: var(--font-head);
  font-size: 0.9375rem;
  font-weight: 700;
}

.footer__links {
  display: grid;
  gap: 0.7rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer__links a {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text-2);
  font-size: 0.9375rem;
  text-decoration: none;
  transition: color 0.2s;
}

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

.footer__links .icon {
  width: 17px;
  height: 17px;
  color: var(--primary);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.875rem;
}

.footer__bottom a {
  text-decoration: none;
}

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

.phone {
  direction: ltr;
  unicode-bidi: isolate;
  white-space: nowrap;
}

/* Back to top */
.to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 40;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s, transform 0.25s var(--ease), visibility 0.25s, background-color 0.2s;
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.to-top:hover {
  background: var(--surface-2);
}

/* ---------- Scroll reveal (only when JS runs) ---------- */

.js .reveal:not(.is-visible) {
  opacity: 0;
}

.js .reveal.is-visible {
  animation: reveal 0.8s var(--ease) var(--d, 0ms) backwards;
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .hero__inner {
    grid-template-columns: 1fr;
  }

  .hero__copy {
    max-width: 680px;
    margin-inline: auto;
    text-align: center;
  }

  .hero .lead {
    margin-inline: auto;
  }

  .hero__actions,
  .hero__points {
    justify-content: center;
  }

  .hero__visual {
    width: 100%;
    max-width: 640px;
    margin-inline: auto;
  }

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

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

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

  .footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 960px) {
  .nav,
  .header__cta {
    display: none;
  }

  .menu-toggle {
    display: grid;
  }

  .header__actions {
    margin-left: auto;
  }

  .split,
  .service-detail__inner,
  .contact-layout,
  .grid--2,
  .plans {
    grid-template-columns: 1fr;
  }

  .process {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 2.5rem;
  }

  .process::before {
    display: none;
  }

  .cta__panel,
  .careers {
    flex-direction: column;
    align-items: flex-start;
  }

  .contact-aside {
    position: static;
  }
}

@media (max-width: 640px) {
  .grid--3,
  .features,
  .form-grid,
  .footer__top {
    grid-template-columns: 1fr;
  }

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

  .step {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 1.1rem;
    padding: 0;
    text-align: left;
  }

  .step__num {
    grid-row: span 2;
    width: 48px;
    height: 48px;
    margin: 0;
    box-shadow: 0 10px 24px -8px var(--primary-ring);
  }

  .step h3 {
    margin: 0.6rem 0 0.35rem;
  }

  .hero__actions .btn,
  .cta__actions,
  .cta__actions .btn {
    width: 100%;
  }

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

  .mock__side,
  .mock__rows,
  .float-card--b {
    display: none;
  }

  .float-card--a {
    bottom: -0.25rem;
    left: 0.75rem;
  }

  .mega__foot {
    flex-direction: column;
  }
}

@media (max-width: 420px) {
  .industries {
    grid-template-columns: 1fr;
  }

  .kpi strong {
    font-size: 0.9375rem;
  }
}

@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;
  }

  .marquee__track {
    animation: none;
  }
}
