@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

:root {
  --bg: #050608;
  --bg-deep: #000000;
  --surface: #0b0d10;
  --surface-strong: #101317;
  --surface-light: rgba(255, 255, 255, 0.03);
  --text: #ffffff;
  --text-secondary: #a9b0ba;
  --text-muted: #7d8794;
  --accent: #36bffa;
  --accent-soft: rgba(54, 191, 250, 0.14);
  --border: rgba(255, 255, 255, 0.08);
  --border-blue: rgba(54, 191, 250, 0.22);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  --glow: 0 0 40px rgba(54, 191, 250, 0.16);
  --radius-sm: 14px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-pill: 999px;
  --container: 1200px;
  --header-height: 78px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
  scroll-behavior: smooth;
  background: var(--bg);
}

[id] {
  scroll-margin-top: calc(var(--header-height) + 24px);
}

body {
  margin: 0;
  min-height: 100vh;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--text);
  background: var(--bg);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

::selection {
  color: #001018;
  background: var(--accent);
}

.container {
  width: min(var(--container), calc(100% - 40px));
  margin-inline: auto;
}

.section {
  position: relative;
  padding: 96px 0;
}

h2.section-title,
.section-header h2 {
  font-size: clamp(28px, 3.4vw, 44px);
}

.section-major {
  padding: clamp(112px, 12vw, 144px) 0;
}

.section-dark {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 45%), var(--surface-strong);
  border-block: 1px solid var(--border);
}

.section-header {
  display: grid;
  gap: 14px;
  max-width: 680px;
  margin-bottom: 48px;
}

.section-header.centered {
  margin-inline: auto;
  text-align: center;
}

.eyebrow,
.hero-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 30px;
  padding: 5px 12px;
  border: 1px solid var(--border-blue);
  border-radius: var(--radius-pill);
  color: #90ddff;
  background: rgba(5, 20, 29, 0.64);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.13em;
  line-height: 1;
  text-transform: uppercase;
}

.section-header.centered .eyebrow {
  margin-inline: auto;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--text);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

h1 {
  margin-bottom: 24px;
  font-size: clamp(44px, 7vw, 88px);
}

h2 {
  margin-bottom: 0;
  font-size: clamp(28px, 3.4vw, 44px);
}

h3 {
  margin-bottom: 12px;
  font-size: clamp(20px, 2vw, 25px);
}

.lead,
.section-header p {
  margin-bottom: 0;
  color: var(--text-secondary);
  font-size: clamp(17px, 1.8vw, 20px);
  line-height: 1.7;
}

.muted {
  color: var(--text-secondary);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #8fdcff;
  font-size: 14px;
  font-weight: 600;
  transition: gap 0.25s ease, color 0.25s ease;
}

.text-link::after {
  content: "→";
  font-size: 17px;
}

.text-link:hover {
  gap: 12px;
  color: #fff;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: var(--header-height);
  border-bottom: 1px solid var(--border);
  background: rgba(5, 7, 10, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
  gap: 28px;
}

.brand {
  display: inline-flex;
  flex: 0 1 auto;
  min-width: 0;
  align-items: center;
  gap: 11px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  line-height: 1.15;
}

.brand-name {
  white-space: nowrap;
}

.brand-tagline {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--text-secondary);
  white-space: nowrap;
}

.brand-mark,
.brand-mark-m41 {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  object-fit: contain;
  background: transparent;
  filter: drop-shadow(0 0 10px rgba(54, 191, 250, 0.22));
}

.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-left: auto;
}

.nav-link {
  position: relative;
  padding: 9px 13px;
  border-radius: 10px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover {
  color: var(--text);
  background: var(--surface-light);
}

.nav-link.active {
  color: var(--text);
  background: var(--accent-soft);
}

.nav-link.active::after {
  position: absolute;
  right: 13px;
  bottom: 5px;
  left: 13px;
  height: 1px;
  content: "";
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

.mobile-toggle {
  display: none;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface-light);
  cursor: pointer;
}

.burger-lines {
  position: relative;
  display: block;
  width: 18px;
  height: 12px;
  margin: auto;
}

.burger-lines::before,
.burger-lines::after,
.burger-lines span {
  position: absolute;
  left: 0;
  width: 18px;
  height: 1.5px;
  border-radius: 2px;
  background: #fff;
  content: "";
  transition: transform 0.25s ease, opacity 0.2s ease, top 0.25s ease;
}

.burger-lines::before {
  top: 0;
}

.burger-lines span {
  top: 5px;
}

.burger-lines::after {
  top: 10px;
}

.mobile-toggle[aria-expanded="true"] .burger-lines::before {
  top: 5px;
  transform: rotate(45deg);
}

.mobile-toggle[aria-expanded="true"] .burger-lines span {
  opacity: 0;
}

.mobile-toggle[aria-expanded="true"] .burger-lines::after {
  top: 5px;
  transform: rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  top: var(--header-height);
  right: 0;
  left: 0;
  z-index: 99;
  display: none;
  min-height: calc(100dvh - var(--header-height));
  padding: 14px 20px 28px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(10px);
}

.mobile-menu.open {
  display: block;
  animation: menu-fade 0.25s ease both;
}

.mobile-menu-panel {
  display: grid;
  gap: 5px;
  width: min(100%, 520px);
  margin-inline: auto;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: #0b1016;
  box-shadow: var(--shadow);
}

.mobile-menu .nav-link {
  padding: 14px 15px;
  font-size: 16px;
}

.mobile-menu .btn {
  width: 100%;
  margin-top: 8px;
}

@keyframes menu-fade {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Buttons */
.btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition:
    transform 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease,
    box-shadow 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #001018;
  background: var(--accent);
  box-shadow: 0 0 0 1px rgba(54, 191, 250, 0.2), 0 0 26px rgba(54, 191, 250, 0.18);
}

.btn-primary:hover {
  background: #75d7ff;
  box-shadow: 0 0 34px rgba(54, 191, 250, 0.3);
}

.btn-secondary {
  border-color: rgba(255, 255, 255, 0.16);
  color: var(--text);
  background: rgba(8, 12, 17, 0.62);
}

.btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.06);
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
}

.btn-ghost {
  padding-inline: 18px;
  border-color: var(--border);
  color: var(--text);
  background: var(--surface-light);
}

.btn svg {
  width: 17px;
  height: 17px;
}

/* Home hero */
.home-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: min(94vh, 920px);
  min-height: min(94dvh, 920px);
  align-items: center;
  overflow: hidden;
  background-color: #020406;
  background-image:
    linear-gradient(180deg, rgba(1, 4, 7, 0.08), rgba(1, 4, 7, 0.12) 52%, rgba(5, 6, 8, 0.84) 100%),
    radial-gradient(ellipse 58% 48% at 50% 44%, rgba(0, 0, 0, 0.3), transparent 72%),
    url("assets/hero-m41-bg.webp");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: 50% 42%;
}

.home-hero::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0, 4, 8, 0.14), transparent 26%, transparent 74%, rgba(0, 4, 8, 0.12)),
    radial-gradient(circle at 50% 44%, rgba(0, 0, 0, 0.18), transparent 46%);
}

.home-hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.12;
  content: "";
  pointer-events: none;
  background-image: radial-gradient(rgba(94, 206, 255, 0.45) 0.7px, transparent 0.7px);
  background-size: 30px 30px;
  mask-image: linear-gradient(90deg, transparent 10%, #000 42%, #000 58%, transparent 90%);
}

.hero-hud-line {
  position: absolute;
  top: 16%;
  left: 50%;
  width: min(48vw, 620px);
  height: 1px;
  transform: translateX(-50%);
  opacity: 0.48;
  background: linear-gradient(90deg, transparent, rgba(54, 191, 250, 0.4), transparent);
}

.hero-hud-line::before,
.hero-hud-line::after {
  position: absolute;
  top: -3px;
  width: 7px;
  height: 7px;
  border: 1px solid rgba(54, 191, 250, 0.58);
  border-radius: 50%;
  content: "";
}

.hero-hud-line::before { left: 14%; }
.hero-hud-line::after { right: 14%; }

.hero-content {
  width: min(720px, 100%);
  padding: 88px 0 96px;
  text-align: center;
  margin-inline: auto;
}

.hero-badge {
  margin-bottom: 28px;
}

.home-hero h1 {
  max-width: 100%;
  margin-inline: auto;
  font-size: clamp(34px, 3.8vw, 56px);
  text-wrap: pretty;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.86);
}

.hero-accent {
  background: linear-gradient(180deg, #9aecff 0%, #36bffa 58%, #1ea0e0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.home-hero .hero-line {
  display: inline-block;
}

@media (min-width: 900px) {
  .home-hero .hero-line {
    display: block;
    white-space: nowrap;
  }
}

.home-hero .lead {
  max-width: 690px;
  margin: 0 auto 34px;
  color: #c4cbd3;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.95);
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.hero-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin: 20px 0 0;
  color: #aebac4;
  font-size: 13px;
}

.hero-note::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  content: "";
  background: var(--accent);
  box-shadow: 0 0 11px var(--accent);
}

/* Cards and grids */
.card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.13);
}

.project-card:hover,
.contact-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.055);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.35);
}

.icon-box {
  display: grid;
  width: 44px;
  height: 44px;
  margin-bottom: 28px;
  place-items: center;
  border: 1px solid var(--border-blue);
  border-radius: 13px;
  color: var(--accent);
  background: var(--accent-soft);
}

.icon-box svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

/* Primary services (flagship) */
.service-primary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 20px;
}

.service-primary {
  display: flex;
  flex-direction: column;
  padding: 36px;
  border: 1px solid var(--border-blue);
  border-radius: var(--radius-md);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.service-primary:hover {
  transform: translateY(-4px);
  border-color: rgba(54, 191, 250, 0.4);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(54, 191, 250, 0.1);
}

.service-primary .icon-box {
  width: 52px;
  height: 52px;
  margin-bottom: 30px;
}

.service-primary .icon-box svg {
  width: 24px;
  height: 24px;
}

.service-primary h3 {
  font-size: clamp(21px, 2.2vw, 27px);
}

.service-primary p {
  margin-bottom: 22px;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.7;
}

.service-primary .text-link {
  margin-top: auto;
}

/* Secondary services (compact rows) */
.service-secondary-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--border);
}

.service-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px 8px;
  border-bottom: 1px solid var(--border);
  color: inherit;
  text-decoration: none;
  transition: background 0.2s ease;
}

.service-row:nth-child(odd) {
  border-right: 1px solid var(--border);
}

.service-row:hover {
  background: rgba(255, 255, 255, 0.03);
}

.service-row-icon {
  display: grid;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--accent);
  background: rgba(255, 255, 255, 0.02);
}

.service-row-icon svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.service-row-text {
  display: grid;
  gap: 4px;
}

.service-row-text strong {
  color: var(--text);
  font-size: 14.5px;
  font-weight: 600;
}

.service-row-text span {
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.5;
}

.service-row-arrow {
  align-self: center;
  margin-left: auto;
  color: var(--text-muted);
  font-size: 15px;
  transition: transform 0.2s ease, color 0.2s ease;
}

.service-row:hover .service-row-arrow {
  color: var(--accent);
  transform: translateX(3px);
}

/* Featured CRM case */
.featured-case {
  position: relative;
  overflow: hidden;
}

.featured-case::before {
  position: absolute;
  top: 15%;
  left: -14%;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  content: "";
  pointer-events: none;
  background: rgba(14, 165, 233, 0.08);
  filter: blur(90px);
}

.case-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(40px, 6vw, 76px);
}

.case-copy h2 {
  margin: 18px 0 22px;
  font-size: clamp(32px, 4vw, 52px);
}

.case-copy > p {
  margin-bottom: 28px;
  color: var(--text-secondary);
  font-size: 17px;
  line-height: 1.75;
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 30px;
  padding: 0;
  list-style: none;
}

.chip-list li {
  padding: 7px 11px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  color: #bdc6cf;
  background: rgba(255, 255, 255, 0.025);
  font-size: 12px;
  line-height: 1;
}

.crm-screenshot-placeholder,
.crm-shot-placeholder {
  display: grid;
  width: 100%;
  aspect-ratio: 16 / 10;
  place-items: center;
  overflow: hidden;
  color: #5b6470;
  background: #ffffff;
}

.crm-screenshot-placeholder span,
.crm-shot-placeholder span {
  padding: 20px;
  color: #5b6470;
  font-size: 13px;
  text-align: center;
}

.crm-real-screenshot {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* Subtle browser-style frame around white screenshot placeholders */
.browser-frame {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: #0b0d10;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.browser-frame-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  background: #101317;
}

.browser-frame-bar span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}

.case-visual {
  position: relative;
}

.case-visual::before {
  position: absolute;
  top: 50%;
  right: -26px;
  width: 52px;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, var(--accent), transparent);
}

/* Compact benefit list (no heavy cards) */
.benefit-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--border);
}

.benefit-item {
  display: flex;
  gap: 18px;
  padding: 28px 8px;
  border-bottom: 1px solid var(--border);
}

.benefit-item:nth-child(odd) {
  border-right: 1px solid var(--border);
}

.benefit-item:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  border-right: 0;
}

.benefit-index {
  flex: 0 0 auto;
  padding-top: 3px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.benefit-item h3 {
  margin-bottom: 8px;
  font-size: 18px;
}

.benefit-item p {
  margin-bottom: 0;
  color: var(--text-secondary);
  font-size: 14px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  counter-reset: steps;
}

.step {
  position: relative;
  padding: 4px 30px 12px 0;
  counter-increment: steps;
}

.step:not(:last-child)::after {
  position: absolute;
  top: 25px;
  right: 22px;
  left: 74px;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, rgba(54, 191, 250, 0.5), rgba(255, 255, 255, 0.05));
}

.step-number {
  display: block;
  margin-bottom: 36px;
  color: var(--accent);
  font-size: 36px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.05em;
}

.step h3 {
  font-size: 19px;
}

.step p {
  margin-bottom: 0;
  color: var(--text-secondary);
  font-size: 14px;
}

/* Business solutions (compact strip) */
.solution-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.solution-item {
  padding: 26px 22px;
  border-right: 1px solid var(--border);
  background: var(--surface-light);
  transition: background 0.2s ease;
}

.solution-item:last-child {
  border-right: 0;
}

.solution-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.solution-item span {
  display: block;
  margin-bottom: 14px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
}

.solution-item h3 {
  margin-bottom: 0;
  font-size: 19px;
}

.solution-item p {
  margin: 8px 0 0;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.6;
}

/* CTA */
.cta-section {
  padding: 48px 0 96px;
}

.cta-panel {
  position: relative;
  display: grid;
  min-height: 360px;
  align-items: end;
  overflow: hidden;
  padding: clamp(34px, 6vw, 72px);
  border: 1px solid var(--border-blue);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 82% 25%, rgba(54, 191, 250, 0.18), transparent 28%),
    linear-gradient(135deg, #071019, #05070a 62%);
  box-shadow: var(--glow);
}

.cta-panel::after {
  position: absolute;
  top: -110px;
  right: -60px;
  width: 360px;
  height: 360px;
  border: 1px solid rgba(54, 191, 250, 0.15);
  border-radius: 50%;
  content: "";
  box-shadow:
    0 0 0 42px rgba(54, 191, 250, 0.025),
    0 0 0 84px rgba(54, 191, 250, 0.018);
}

.cta-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.cta-content h2 {
  margin: 0 0 30px;
  font-size: clamp(38px, 5vw, 66px);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Inner pages */
.page-hero {
  position: relative;
  display: grid;
  min-height: 0;
  align-items: end;
  overflow: hidden;
  padding: 104px 0 72px;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(circle at 78% 16%, rgba(54, 191, 250, 0.08), transparent 26rem),
    linear-gradient(180deg, #0b0d10, var(--bg) 74%);
}

.page-hero::before {
  position: absolute;
  inset: 0;
  opacity: 0.14;
  content: "";
  background-image:
    linear-gradient(rgba(54, 191, 250, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(54, 191, 250, 0.12) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, #000, transparent 90%);
}

.page-hero-content {
  position: relative;
  max-width: 800px;
}

.page-hero .eyebrow {
  margin-bottom: 22px;
}

.page-hero h1 {
  margin-bottom: 20px;
  font-size: clamp(36px, 4.6vw, 64px);
}

.page-hero p {
  max-width: 650px;
  margin-bottom: 0;
}

/* Detailed services */
.service-detail-list {
  display: grid;
  gap: 0;
}

.service-detail {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: clamp(40px, 8vw, 120px);
  padding: 72px 0;
  border-bottom: 1px solid var(--border);
}

.service-detail:first-child {
  padding-top: 0;
}

.service-detail:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.service-number {
  display: block;
  margin-bottom: 22px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
}

.service-detail h2 {
  font-size: clamp(30px, 3.4vw, 44px);
}

.service-detail-copy > p {
  max-width: 650px;
  margin-bottom: 26px;
  color: var(--text-secondary);
  font-size: 17px;
}

.check-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 20px;
  color: #d2d7dd;
  font-size: 14px;
}

.check-list li::before {
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  content: "";
  background: var(--accent);
  box-shadow: 0 0 8px rgba(54, 191, 250, 0.7);
}

/* Projects */
.project-case-header {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 60px;
  margin-bottom: 70px;
}

.project-case-header h2 {
  margin: 16px 0 0;
}

.project-case-intro {
  align-self: end;
  margin-bottom: 0;
  color: var(--text-secondary);
  font-size: 18px;
}

.case-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 72px;
}

.case-fact {
  padding: 26px;
}

.case-fact span {
  display: block;
  margin-bottom: 18px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
}

.case-fact h3 {
  font-size: 18px;
}

.case-fact p {
  margin-bottom: 0;
  color: var(--text-secondary);
  font-size: 14px;
}

.shot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.crm-shot {
  margin: 0;
}

.crm-shot:first-child {
  grid-column: 1 / -1;
}

.crm-shot:first-child .crm-shot-placeholder {
  aspect-ratio: 16 / 9;
  max-height: 560px;
}

.crm-shot:not(:first-child) .crm-shot-placeholder {
  max-height: 340px;
}

.project-traits {
  margin: -8px 0 40px;
  color: var(--text-secondary);
  font-size: 14px;
}

.crm-shot figcaption {
  margin-top: 12px;
  color: var(--text-muted);
  font-size: 12px;
}

.other-projects {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.project-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.project-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-bottom: 1px solid var(--border);
  object-fit: cover;
  background: #071019;
}

.project-card img.project-real-image {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
}

.project-card-copy {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  padding: 25px;
}

.project-card-copy h3,
.project-card-copy p {
  overflow-wrap: break-word;
}

.project-card-copy span {
  display: block;
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.project-card-copy h3 {
  font-size: 20px;
}

.project-card-copy p {
  margin-bottom: 0;
  color: var(--text-secondary);
  font-size: 14px;
}

/* About */
.about-intro {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(50px, 9vw, 130px);
  align-items: start;
}

.about-intro h2 {
  position: sticky;
  top: calc(var(--header-height) + 30px);
  font-size: clamp(30px, 3.6vw, 46px);
}

.about-copy p {
  color: var(--text-secondary);
  font-size: 19px;
  line-height: 1.8;
}

.about-copy p:first-child {
  color: #e2e6ea;
}

.audience-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.audience-card {
  min-height: 260px;
  padding: 32px;
}

.audience-card .icon-box {
  margin-bottom: 55px;
}

.audience-card p {
  margin-bottom: 0;
  color: var(--text-secondary);
}

/* Contact */
.contact-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(46px, 8vw, 110px);
  align-items: start;
}

.contact-cards {
  display: grid;
  gap: 14px;
}

.contact-card {
  display: block;
  padding: 27px;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.contact-card:hover {
  transform: translateY(-3px);
}

.contact-card-label {
  display: block;
  margin-bottom: 12px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.contact-card-value {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--text);
  font-size: clamp(19px, 2vw, 25px);
  font-weight: 600;
  letter-spacing: -0.03em;
}

.contact-card-value::after {
  color: var(--accent);
  content: "↗";
  font-size: 18px;
}

.contact-note {
  margin-top: 24px;
  color: var(--text-muted);
  font-size: 13px;
}

.contact-form-wrap {
  padding: clamp(26px, 4vw, 42px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.025);
}

.contact-form-wrap h2 {
  margin-bottom: 32px;
  font-size: clamp(27px, 3vw, 38px);
}

.contact-form {
  position: relative;
  display: grid;
  gap: 21px;
}

.hp-field {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.field {
  display: grid;
  gap: 9px;
}

.field label {
  color: #d6dbe0;
  font-size: 13px;
  font-weight: 500;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  outline: 0;
  color: var(--text);
  background: rgba(0, 0, 0, 0.28);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input {
  height: 52px;
  padding: 0 16px;
}

.field textarea {
  min-height: 150px;
  padding: 14px 16px;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #606a75;
}

.field input:focus,
.field textarea:focus {
  border-color: rgba(54, 191, 250, 0.55);
  box-shadow: 0 0 0 3px rgba(54, 191, 250, 0.08);
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: #98dfff;
  font-size: 13px;
  line-height: 1.5;
  white-space: pre-line;
}

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
  margin: 0;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.5;
  cursor: pointer;
}

.form-consent input {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin: 3px 0 0;
  accent-color: var(--accent);
}

.form-consent span {
  min-width: 0;
  overflow-wrap: break-word;
}

.form-consent-link {
  color: #8fdcff;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}

.contact-form > .btn {
  max-width: 100%;
}

/* Footer */
.site-footer {
  padding: 70px 0 26px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr;
  gap: 50px;
  padding-bottom: 52px;
}

.footer-brand p {
  max-width: 320px;
  margin: 20px 0 0;
  color: var(--text-secondary);
  font-size: 14px;
}

.footer-column h2 {
  margin-bottom: 18px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.footer-links {
  display: grid;
  gap: 10px;
}

.footer-links a {
  width: fit-content;
  color: var(--text-secondary);
  font-size: 14px;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 20px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 12px;
}

.footer-requisites {
  flex: 1 1 100%;
  min-width: 0;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.55;
}

.footer-requisites p {
  margin: 0;
  overflow-wrap: anywhere;
}

.footer-requisites-name {
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
}

.footer-requisites a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-requisites a:hover {
  color: var(--text);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  min-width: 0;
}

.footer-legal a,
.footer-legal button {
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-legal a:hover,
.footer-legal button:hover {
  color: var(--text);
}

.footer-legal button {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  cursor: pointer;
}

.cookie-banner {
  position: fixed;
  right: auto;
  bottom: 24px;
  left: 24px;
  z-index: 120;
  display: grid;
  gap: 16px;
  width: min(640px, calc(100vw - 48px));
  padding: 22px 22px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text);
  background: var(--surface);
  box-shadow: var(--shadow), var(--glow);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(12px);
  transition:
    opacity 0.28s ease,
    transform 0.28s ease,
    visibility 0.28s ease;
}

.cookie-banner.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
}

.cookie-banner-text {
  margin: 0;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.cookie-banner-text a {
  color: #8fdcff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cookie-banner .btn {
  min-height: 44px;
  padding: 10px 18px;
}

@media (prefers-reduced-motion: reduce) {
  .cookie-banner {
    transition: none;
    transform: none;
  }
}

.legal-doc {
  display: grid;
  gap: 36px;
  max-width: 800px;
}

.legal-doc h2 {
  margin-bottom: 14px;
  overflow-wrap: break-word;
  font-size: clamp(20px, 2.2vw, 26px);
}

.legal-doc p,
.legal-doc li {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.75;
}

.legal-doc p {
  margin-bottom: 12px;
}

.legal-doc p:last-child,
.legal-doc ul {
  margin-bottom: 0;
}

.legal-doc ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
}

.legal-doc a {
  color: #8fdcff;
}

/* Reveal */
.reveal {
  opacity: 0;
  filter: blur(6px);
  transform: translateY(22px);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.visible {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }

/* Responsive */
@media (max-width: 1100px) {
  .home-hero {
    background-position: 32% 42%;
  }

  .solution-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .solution-item:nth-child(-n + 2) {
    border-bottom: 1px solid var(--border);
  }

  .solution-item:nth-child(even) {
    border-right: 0;
  }

  .case-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .section {
    padding: 80px 0;
  }

  .section-major {
    padding: 96px 0;
  }

  .case-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .case-copy {
    max-width: 680px;
  }

  .case-visual::before {
    display: none;
  }

  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 48px 20px;
  }

  .step:nth-child(2)::after {
    display: none;
  }

  .project-case-header,
  .about-intro {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .project-case-intro {
    max-width: 680px;
  }

  .about-intro h2 {
    position: static;
  }

  .other-projects {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1024px) {
  .desktop-nav,
  .nav-shell > .btn {
    display: none;
  }

  .mobile-toggle {
    display: block;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 70px;
  }

  .brand-mark,
  .brand-mark-m41 {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
  }

  .container {
    width: min(100% - 40px, var(--container));
  }

  .home-hero {
    min-height: calc(100svh - var(--header-height));
    background-position: 20% 40%;
  }

  .hero-content {
    padding: 72px 0;
  }

  .hero-badge {
    margin-bottom: 22px;
  }

  .home-hero h1 {
    font-size: clamp(34px, 8.4vw, 48px);
  }

  .hero-actions {
    flex-wrap: wrap;
  }

  .page-hero {
    padding: 72px 0 52px;
  }

  .service-detail {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 58px 0;
  }

  .service-number {
    margin-bottom: 16px;
  }

  .shot-grid {
    grid-template-columns: 1fr;
  }

  .crm-shot:first-child {
    grid-column: auto;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .cta-section {
    padding-bottom: 88px;
  }
}

@media (max-width: 600px) {
  .section {
    padding: 64px 0;
  }

  .section-major {
    padding: 80px 0;
  }

  .section-header {
    margin-bottom: 34px;
  }

  .service-primary-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .service-primary {
    padding: 26px 22px;
  }

  .service-primary .icon-box {
    margin-bottom: 20px;
  }

  .service-row {
    align-items: center;
    padding: 14px 0;
  }

  .service-row-text span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .service-secondary-list,
  .benefit-list,
  .solution-strip,
  .steps,
  .case-facts,
  .other-projects,
  .audience-grid,
  .form-row {
    grid-template-columns: 1fr;
  }

  .service-row:nth-child(odd),
  .benefit-item:nth-child(odd) {
    border-right: 0;
  }

  .solution-item {
    border-right: 0 !important;
    border-bottom: 1px solid var(--border);
  }

  .solution-item:last-child {
    border-bottom: 0;
  }

  .reveal-delay-1,
  .reveal-delay-2,
  .reveal-delay-3 {
    transition-delay: 0.04s;
  }

  .step {
    padding-right: 0;
  }

  .step:not(:last-child)::after {
    top: auto;
    right: auto;
    bottom: -24px;
    left: 17px;
    width: 1px;
    height: 30px;
    background: linear-gradient(to bottom, rgba(54, 191, 250, 0.5), rgba(255, 255, 255, 0.05));
  }

  .step-number {
    margin-bottom: 20px;
  }

  .check-list {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-brand {
    grid-column: auto;
  }

  .footer-bottom {
    flex-direction: column;
  }

  .cookie-banner {
    right: 16px;
    bottom: 16px;
    left: 16px;
    width: auto;
    max-width: none;
    padding: 20px 18px 18px;
  }

  .cookie-banner-actions {
    flex-direction: column;
  }

  .cookie-banner .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .container {
    width: min(100% - 32px, var(--container));
  }

  h1 {
    font-size: 40px;
  }

  .home-hero {
    background-position: 14% 38%;
  }

  .brand {
    gap: 8px;
    font-size: 16px;
  }

  .nav-shell {
    gap: 12px;
  }

  .home-hero h1 {
    font-size: clamp(32px, 8.8vw, 40px);
  }

  .home-hero .lead {
    font-size: 16px;
  }

  .hero-actions,
  .hero-actions .btn,
  .cta-actions,
  .cta-actions .btn {
    width: 100%;
  }

  .hero-note {
    align-items: flex-start;
  }

  .cta-panel {
    min-height: 390px;
    padding: 30px 24px;
  }

  .contact-form-wrap {
    border-radius: var(--radius-md);
  }

  .contact-card-value {
    font-size: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    filter: none;
    transform: none;
  }
}

/* Services page — services.html only */
.svc-page .page-hero {
  padding: 88px 0 56px;
}

.svc-page .page-hero p {
  max-width: 720px;
}

.svc-primary {
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

.svc-primary::before {
  position: absolute;
  inset: 0;
  opacity: 0.11;
  content: "";
  pointer-events: none;
  background-image:
    linear-gradient(rgba(54, 191, 250, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(54, 191, 250, 0.14) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 50% 12%, #000 18%, transparent 78%);
}

.svc-primary::after {
  position: absolute;
  top: -80px;
  right: -40px;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  content: "";
  pointer-events: none;
  background: rgba(54, 191, 250, 0.07);
  filter: blur(70px);
}

.svc-primary .container,
.svc-secondary .container {
  position: relative;
  z-index: 1;
}

.svc-primary .section-header,
.svc-secondary .section-header {
  max-width: 740px;
}

.svc-primary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.svc-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: min-content;
  overflow: hidden;
  padding: 28px 28px 24px;
  border: 1px solid var(--border-blue);
  border-radius: var(--radius-md);
  background:
    radial-gradient(circle at 92% 0%, rgba(54, 191, 250, 0.12), transparent 42%),
    linear-gradient(180deg, #11161c, #0b0d10 72%);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.svc-card::before {
  position: absolute;
  top: 0;
  right: 28px;
  left: 28px;
  height: 1px;
  content: "";
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(54, 191, 250, 0.5), transparent);
}

.svc-card:hover {
  transform: translateY(-4px);
  border-color: rgba(54, 191, 250, 0.46);
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.35),
    0 0 36px rgba(54, 191, 250, 0.12);
}

.svc-card-featured {
  border-color: rgba(54, 191, 250, 0.42);
  background:
    radial-gradient(circle at 92% 0%, rgba(54, 191, 250, 0.2), transparent 48%),
    linear-gradient(180deg, #121b22, #0b0d10 74%);
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.22),
    0 0 34px rgba(54, 191, 250, 0.12);
}

.svc-card-featured:hover {
  border-color: rgba(54, 191, 250, 0.58);
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.35),
    0 0 42px rgba(54, 191, 250, 0.16);
}

.svc-card-watermark {
  position: absolute;
  right: 10px;
  bottom: -12px;
  z-index: 0;
  color: rgba(54, 191, 250, 0.07);
  font-size: clamp(72px, 8vw, 104px);
  font-weight: 700;
  letter-spacing: -0.07em;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.svc-card-head,
.svc-card h3,
.svc-card > p,
.svc-chips {
  position: relative;
  z-index: 1;
}

.svc-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 12px;
  margin-bottom: 20px;
}

.svc-kicker {
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.svc-badge {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 24px;
  padding: 4px 10px;
  border: 1px solid rgba(54, 191, 250, 0.28);
  border-radius: var(--radius-pill);
  color: #9edfff;
  background: rgba(8, 24, 34, 0.72);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-transform: uppercase;
}

.svc-card h3 {
  margin-bottom: 12px;
  overflow-wrap: break-word;
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.18;
}

.svc-card > p {
  margin-bottom: 0;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.65;
}

.svc-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: auto 0 0;
  padding: 22px 0 0;
  list-style: none;
}

.svc-chips li {
  max-width: 100%;
  padding: 7px 11px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  color: #c5ced6;
  background: rgba(255, 255, 255, 0.03);
  font-size: 12px;
  line-height: 1.3;
}

.svc-secondary {
  padding-top: 80px;
  padding-bottom: 80px;
}

.svc-support-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.svc-support-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 22px 20px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.25s ease, background 0.25s ease;
}

.svc-support-card:hover {
  border-color: rgba(54, 191, 250, 0.22);
  background: rgba(255, 255, 255, 0.035);
}

.svc-support-card .svc-kicker {
  display: block;
  margin-bottom: 12px;
  font-size: 11px;
}

.svc-support-card h3 {
  margin-bottom: 10px;
  overflow-wrap: break-word;
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.3;
  letter-spacing: -0.03em;
}

.svc-support-card > p {
  margin-bottom: 16px;
  color: var(--text-secondary);
  font-size: 13.5px;
  line-height: 1.55;
}

.svc-mini-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
  margin: auto 0 0;
  padding: 0;
  list-style: none;
}

.svc-mini-list li {
  position: relative;
  min-width: 0;
  padding-left: 12px;
  color: #c2cad2;
  font-size: 12.5px;
  line-height: 1.4;
}

.svc-mini-list li::before {
  position: absolute;
  top: 0.55em;
  left: 0;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  content: "";
  background: var(--accent);
  box-shadow: 0 0 6px rgba(54, 191, 250, 0.55);
}

.svc-page .cta-section {
  padding-top: 56px;
}

@media (max-width: 900px) {
  .svc-primary-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .svc-page .page-hero {
    padding: 72px 0 48px;
  }

  .svc-primary,
  .svc-secondary {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .svc-card {
    padding: 24px 22px 22px;
  }

  .svc-card-watermark {
    font-size: 76px;
  }
}

@media (max-width: 640px) {
  .svc-support-grid {
    grid-template-columns: 1fr;
  }

  .svc-mini-list {
    grid-template-columns: 1fr;
  }

  .svc-card h3 {
    font-size: clamp(22px, 6.4vw, 26px);
  }

  .svc-support-card h3 {
    font-size: 17px;
  }
}

@media (max-width: 480px) {
  .svc-page .page-hero p {
    font-size: 16px;
  }

  .svc-card,
  .svc-support-card {
    padding: 20px 16px 18px;
  }

  .svc-chips {
    padding-top: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .svc-card:hover,
  .svc-support-card:hover {
    transform: none;
  }
}

/* About page — about.html only */
.about-page .page-hero {
  padding: 88px 0 56px;
}

.about-page .page-hero-content {
  max-width: 860px;
}

.about-page .page-hero h1 {
  overflow-wrap: break-word;
  font-size: clamp(32px, 4.2vw, 54px);
}

.about-page .page-hero p {
  max-width: 740px;
}

.about-page .about-intro h2 {
  overflow-wrap: break-word;
}

.about-page .about-solutions .solution-item {
  min-width: 0;
}

.about-page .about-solutions h3,
.about-page .about-solutions p {
  overflow-wrap: break-word;
}

.about-page .about-audience {
  align-items: stretch;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 0.85fr);
}

.about-page .about-audience-primary {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-color: var(--border-blue);
  background:
    radial-gradient(circle at 88% 0%, rgba(54, 191, 250, 0.12), transparent 46%),
    var(--surface);
}

.about-page .about-audience-primary h3 {
  font-size: clamp(24px, 2.4vw, 30px);
}

.about-page .about-audience-secondary {
  min-width: 0;
  background: rgba(255, 255, 255, 0.02);
}

.about-page .about-audience-secondary .icon-box {
  margin-bottom: 40px;
}

.about-page .about-audience-secondary h3 {
  font-size: clamp(20px, 1.8vw, 22px);
}

.about-page .about-audience-chips {
  margin: 20px 0 0;
}

.about-page .about-audience h3,
.about-page .about-audience p {
  overflow-wrap: break-word;
}

@media (max-width: 768px) {
  .about-page .page-hero {
    padding: 72px 0 48px;
  }

  .about-page .about-audience {
    grid-template-columns: 1fr;
  }

  .about-page .about-audience-secondary .icon-box {
    margin-bottom: 28px;
  }
}

@media (max-width: 480px) {
  .about-page .page-hero p {
    font-size: 16px;
  }

  .about-page .audience-card {
    padding: 24px 20px;
  }
}

/* ========== Premium motion layer ========== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 140;
  width: 100%;
  height: 2px;
  pointer-events: none;
  background: transparent;
}

.scroll-progress > span {
  display: block;
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--accent));
  box-shadow: 0 0 10px rgba(54, 191, 250, 0.45);
  transform-origin: left center;
}

.site-header {
  transition:
    min-height 0.28s ease,
    background 0.28s ease,
    box-shadow 0.28s ease;
}

.site-header.is-compact {
  min-height: 64px;
  background: rgba(5, 7, 10, 0.88);
  backdrop-filter: blur(26px);
  -webkit-backdrop-filter: blur(26px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.28);
}

.site-header.is-compact .nav-shell {
  min-height: 64px;
}

.site-header.is-compact .brand-mark {
  width: 44px;
  height: 44px;
  flex-basis: 44px;
}

.site-header.is-compact ~ .mobile-menu {
  top: 64px;
  min-height: calc(100dvh - 64px);
}

.mobile-menu {
  background: rgba(2, 4, 8, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.btn:active {
  transform: translateY(1px) scale(0.98);
}

a.btn-primary[href*="contact"]::after,
.float-cta::after {
  content: "→";
  display: inline-block;
  margin-left: 2px;
  transition: transform 0.25s ease;
}

a.btn-primary[href*="contact"]:hover::after,
.float-cta:hover::after {
  transform: translateX(4px);
}

.hero-tech-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.hero-tech-grid {
  position: absolute;
  inset: -12%;
  opacity: 0.16;
  background-image:
    linear-gradient(rgba(54, 191, 250, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(54, 191, 250, 0.18) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 62% 58% at 50% 42%, #000 20%, transparent 78%);
  animation: hero-grid-shift 32s linear infinite;
}

.hero-tech-glow {
  position: absolute;
  top: 8%;
  left: 18%;
  width: 46%;
  height: 42%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(54, 191, 250, 0.16), transparent 68%);
  filter: blur(18px);
  animation: hero-glow-drift 18s ease-in-out infinite alternate;
}

@keyframes hero-grid-shift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(0, 28px, 0); }
}

@keyframes hero-glow-drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(6%, 8%, 0) scale(1.08); }
}

@media (prefers-reduced-motion: no-preference) {
  .home-hero .hero-line {
    opacity: 0;
    animation: hero-line-in 0.62s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  }

  .home-hero .hero-line:nth-child(1) { animation-delay: 0.05s; }
  .home-hero .hero-line:nth-child(2) { animation-delay: 0.14s; }
  .home-hero .hero-line:nth-child(3) { animation-delay: 0.24s; }
}

@keyframes hero-line-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.crm-showcase {
  display: grid;
  gap: 14px;
}

.crm-showcase-screens {
  position: relative;
  overflow: hidden;
}

.crm-showcase-screens .crm-real-screenshot {
  display: block;
  width: 100%;
  height: auto;
}

.crm-showcase-screens .crm-real-screenshot:not(.is-active) {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  opacity: 0;
  transform: translateY(8px) scale(1.015);
  pointer-events: none;
}

.crm-showcase-screens .crm-real-screenshot.is-active {
  position: relative;
  opacity: 1;
  transform: none;
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.crm-showcase-screens .crm-real-screenshot:not(.is-active) {
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.crm-showcase-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.crm-showcase-tab {
  min-height: 36px;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.crm-showcase-tab:hover,
.crm-showcase-tab.is-active {
  color: var(--text);
  border-color: var(--border-blue);
  background: var(--accent-soft);
}

.build-process-layout {
  display: grid;
  gap: 36px;
}

.build-steps {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.build-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  padding: 22px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.build-step.is-active {
  border-color: var(--border-blue);
  background: rgba(54, 191, 250, 0.06);
}

.build-step h3 {
  margin-bottom: 8px;
}

.build-step p {
  margin: 0;
  color: var(--text-secondary);
}

.build-step-index {
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.build-visual {
  display: none;
}

.build-visual-frame {
  min-height: 340px;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 20% 20%, rgba(54, 191, 250, 0.1), transparent 42%),
    var(--surface);
  box-shadow: var(--shadow);
}

.build-visual-label {
  display: inline-flex;
  margin-bottom: 22px;
  color: #90ddff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.build-visual-ui {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 12px;
}

.build-visual-ui span {
  display: block;
  min-height: 72px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  transition: transform 0.45s ease, background 0.45s ease, opacity 0.45s ease;
}

.build-visual-ui[data-stage="0"] span:nth-child(1) { grid-column: 1 / -1; background: rgba(54, 191, 250, 0.12); }
.build-visual-ui[data-stage="1"] span:nth-child(2),
.build-visual-ui[data-stage="1"] span:nth-child(3) { background: rgba(54, 191, 250, 0.1); transform: translateY(-4px); }
.build-visual-ui[data-stage="2"] span:nth-child(4) { grid-column: 1 / -1; background: rgba(54, 191, 250, 0.16); }
.build-visual-ui[data-stage="3"] span:nth-child(5),
.build-visual-ui[data-stage="3"] span:nth-child(6) { background: rgba(54, 191, 250, 0.14); }
.build-visual-ui[data-stage="4"] span { opacity: 1; }
.build-visual-ui[data-stage="4"] span:nth-child(1) { background: rgba(54, 191, 250, 0.2); }

.tech-marquee-section {
  overflow: hidden;
  padding: 28px 0;
  border-block: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.015);
}

.tech-marquee-track {
  display: flex;
  width: max-content;
  gap: 42px;
  animation: marquee-shift 36s linear infinite;
}

.tech-marquee:hover .tech-marquee-track {
  animation-duration: 80s;
}

.tech-marquee-track span {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
}

@keyframes marquee-shift {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.float-cta {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid var(--border-blue);
  border-radius: var(--radius-pill);
  color: #001018;
  background: var(--accent);
  box-shadow: 0 10px 30px rgba(54, 191, 250, 0.28);
  font-size: 13px;
  font-weight: 700;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
  transition:
    opacity 0.28s ease,
    transform 0.28s ease,
    visibility 0.28s ease,
    bottom 0.28s ease;
}

.float-cta.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
}

.float-cta.is-lifted,
body:has(.cookie-banner.is-visible) .float-cta {
  bottom: 148px;
}

.page-transition {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  background: #050608;
  opacity: 0;
  transition: opacity 0.22s ease;
}

body.is-leaving .page-transition {
  pointer-events: auto;
  opacity: 1;
}

.has-glow {
  position: relative;
  overflow: hidden;
}

.has-glow::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  content: "";
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(
    220px circle at var(--glow-x, 50%) var(--glow-y, 50%),
    rgba(54, 191, 250, 0.16),
    transparent 55%
  );
  transition: opacity 0.25s ease;
}

.has-glow:hover::before {
  opacity: 0;
}

@media (hover: hover) and (pointer: fine) {
  .has-glow:hover::before {
    opacity: 1;
  }

  .has-glow:hover {
    border-color: rgba(54, 191, 250, 0.34);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.32), 0 0 0 1px rgba(54, 191, 250, 0.1);
  }
}

.has-glow > * {
  position: relative;
  z-index: 1;
}

@media (min-width: 1024px) {
  .build-process-layout {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.92fr);
    align-items: start;
    gap: 48px;
  }

  .build-visual {
    display: block;
    position: sticky;
    top: calc(var(--header-height) + 28px);
  }
}

@media (hover: hover) and (pointer: fine) {
  .card,
  .svc-card,
  .service-primary,
  .project-card,
  .contact-card {
    transform: translate3d(0, 0, 0);
    transition:
      transform 0.28s ease,
      border-color 0.28s ease,
      box-shadow 0.28s ease,
      background 0.28s ease;
  }
}

@media (max-width: 768px) {
  .reveal {
    filter: none;
  }

  .hero-tech-grid {
    animation: none;
    opacity: 0.1;
  }

  .float-cta {
    right: 14px;
    left: auto;
    padding: 11px 14px;
    font-size: 12px;
  }

  .float-cta.is-lifted,
  body:has(.cookie-banner.is-visible) .float-cta {
    bottom: 176px;
  }

  .tech-marquee-track {
    animation-duration: 48s;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-tech-grid,
  .hero-tech-glow,
  .tech-marquee-track,
  .home-hero .hero-line {
    animation: none !important;
    opacity: 1;
  }

  .crm-showcase-screens .crm-real-screenshot {
    transition: none;
  }

  .page-transition,
  .float-cta,
  .has-glow::before {
    transition: none;
  }

  .has-glow::before {
    display: none;
  }
}

