/* ==========================================================================
   Sections — ordered as they appear on the page
   ========================================================================== */

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

.site-header {
  position: sticky;
  top: 14px;
  z-index: 50;
  margin-top: 14px;
  padding-inline: var(--gutter);
}

.site-header__bar {
  max-width: var(--container);
  height: 62px;
  margin-inline: auto;
  padding: 0 10px 0 22px;
  display: flex;
  align-items: center;
  gap: 20px;
  background: rgba(11, 15, 21, .72);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
}

.site-header__logo { display: flex; align-items: center; margin-right: auto; }
.site-header__logo img { height: 40px; width: auto; }

.site-nav { display: none; }
.site-nav__list { display: flex; align-items: center; gap: 2px; }
.site-nav__list a {
  display: block;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  color: var(--text-2);
  font-size: 14px;
  font-weight: 500;
  transition: color var(--dur), background-color var(--dur);
}
.site-nav__list a:hover,
.site-nav__list a.is-current { color: #fff; background: rgba(255, 255, 255, .06); }

.site-header__cta { display: none; }
.site-header__cta .dot { background: #1FA3B4; }

.menu-toggle {
  width: 44px;
  height: 44px;
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 50%;
  background: transparent;
}
.menu-toggle__line {
  width: 16px;
  height: 1.5px;
  background: var(--text);
  transition: transform var(--dur) var(--ease-out);
}
.menu-toggle[aria-expanded="true"] .menu-toggle__line:first-of-type { transform: translateY(3.25px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__line:last-of-type { transform: translateY(-3.25px) rotate(-45deg); }

.mobile-menu {
  max-width: var(--container);
  margin: 8px auto 0;
  padding: 12px 24px 24px;
  background: rgba(11, 15, 21, .96);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid var(--line);
  border-radius: 24px;
}
.mobile-menu a:not(.btn) {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
  color: var(--text);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.mobile-menu__cta { width: 100%; margin-top: 20px; }

@media (min-width: 640px) {
  .site-header__cta { display: inline-flex; }
}
@media (min-width: 1060px) {
  .site-nav { display: block; }
  .site-header__logo { margin-right: 0; }
  .site-nav { margin-right: auto; margin-left: 8px; }
  .menu-toggle, .mobile-menu { display: none !important; }
}

/* ---------- Hero ---------- */

.hero { padding-top: clamp(64px, 9vw, 120px); }
.hero__intro { text-align: center; }

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .03);
  color: var(--text-2);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hero__title {
  max-width: 1100px;
  margin: 28px auto 0;
  font-size: var(--fs-display);
  line-height: .96;
  letter-spacing: -0.045em;
  font-weight: 600;
  text-wrap: balance;
}

.hero__lead {
  max-width: 680px;
  margin: 28px auto 0;
  color: var(--text-2);
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.6;
  text-wrap: pretty;
}

.hero__actions { justify-content: center; margin-top: 40px; }

@media (max-width: 480px) {
  .hero__badge { font-size: 10.5px; letter-spacing: .06em; }
  .hero__actions .btn { width: 100%; }
}

/* ERP core visual */

.erp-core {
  margin: clamp(56px, 7vw, 88px) 0 0;
  border: 1px solid var(--line);
  border-radius: var(--r-2xl);
  background: linear-gradient(180deg, rgba(17, 22, 30, .9), rgba(11, 15, 21, .6));
  box-shadow: 0 40px 100px -50px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .06);
  overflow: hidden;
}

.erp-core__live {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
  color: var(--accent);
  font-size: 11px;
  letter-spacing: .08em;
}

.erp-stages {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 6px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--line-soft);
}
.erp-stage {
  position: relative;
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  color: var(--text-4);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color .4s, background-color .4s, border-color .4s;
}
.erp-stage + .erp-stage { margin-left: 20px; }
.erp-stage + .erp-stage::before {
  content: '→';
  position: absolute;
  left: -19px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-faint);
  font-size: 12px;
}
.erp-stage.is-active {
  color: #fff;
  border-color: var(--accent-line-strong);
  background: rgba(60, 198, 210, .1);
}
.erp-stage.is-done { color: var(--text-2); }

.erp-core__body { display: grid; grid-template-columns: minmax(0, 1fr); }

.erp-orbit {
  position: relative;
  aspect-ratio: 16 / 10;
  background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px);
  background-size: 22px 22px;
}

.erp-orbit__lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.erp-orbit__lines line,
.erp-orbit__ring {
  fill: none;
  stroke: rgba(255, 255, 255, .08);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
  transition: stroke .5s;
}
.erp-orbit__ring { stroke-dasharray: 4 6; }
.erp-orbit__lines line.is-active {
  stroke: var(--accent);
  stroke-width: 1.5;
  stroke-dasharray: 5 7;
  animation: flow-dash 1s linear infinite;
}
@keyframes flow-dash { to { stroke-dashoffset: -12; } }

.erp-orbit__core {
  position: absolute;
  left: 50%;
  top: 50%;
  width: clamp(132px, 15vw, 172px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
}
.erp-orbit__spin {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(60, 198, 210, .25);
  border-top-color: var(--accent);
  animation: spin 16s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.erp-orbit__core-inner {
  width: 77%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, #1A2A3A, var(--surface) 70%);
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 0 60px rgba(60, 198, 210, .22);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.erp-orbit__core-inner .mono { font-size: 10px; letter-spacing: .14em; color: var(--accent); }
.erp-orbit__core-inner strong { margin-top: 2px; font-size: clamp(17px, 1.7vw, 20px); font-weight: 600; letter-spacing: -0.02em; }

.erp-node {
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--r-md);
  background: var(--surface-raised);
  color: var(--text-2);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: transform .5s var(--ease-out), background-color .5s, border-color .5s, color .5s, box-shadow .5s;
}
.erp-node .dot { background: var(--text-faint); transition: background-color .5s; }
.erp-node.is-active {
  transform: translate(-50%, -50%) scale(1.06);
  color: #fff;
  border-color: var(--accent-line-strong);
  background: rgba(60, 198, 210, .12);
  box-shadow: 0 0 24px rgba(60, 198, 210, .18);
}
.erp-node.is-active .dot { background: var(--accent); }

.erp-events {
  padding: 22px;
  border-top: 1px solid var(--line-soft);
}
.erp-events__title {
  margin-bottom: 12px;
  color: var(--text-4);
  font-size: 10.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.erp-events__list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
  gap: 6px;
}
.erp-event {
  display: block;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, .05);
  border-radius: 12px;
  background: rgba(255, 255, 255, .02);
  transition: opacity .5s, border-color .5s, background-color .5s;
}
.js .erp-event { opacity: .45; }
.js .erp-event.is-done { opacity: 1; }
.erp-event.is-active { border-color: rgba(60, 198, 210, .45); background: var(--accent-wash); }
.erp-event__head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.erp-event__head strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13.5px;
  font-weight: 600;
}
.erp-event__head .mono { flex: none; color: var(--accent); font-size: 10px; }
.erp-event__sub { display: block; margin-top: 3px; color: var(--text-3); font-size: 12px; }

@media (min-width: 1100px) {
  .erp-core__body { grid-template-columns: minmax(0, 1fr) 300px; }
  .erp-events { border-top: 0; border-left: 1px solid var(--line-soft); }
  .erp-events__list { grid-template-columns: minmax(0, 1fr); }
}

/* Simplified visual for small screens */
@media (max-width: 759px) {
  .window-path { display: none; }
  .erp-stages { padding: 12px 16px; }
  .erp-orbit {
    aspect-ratio: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background-size: 18px 18px;
  }
  .erp-orbit__lines, .erp-orbit__spin { display: none; }
  .erp-orbit__core {
    position: static;
    width: auto;
    aspect-ratio: auto;
    transform: none;
  }
  .erp-orbit__core-inner {
    width: 100%;
    aspect-ratio: auto;
    padding: 18px;
    border-radius: var(--r-lg);
    border-color: var(--accent-line);
    background: radial-gradient(circle at 50% 0, #14283A, var(--surface));
    box-shadow: none;
  }
  .erp-nodes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .erp-node {
    position: static;
    transform: none;
    padding: 10px;
    gap: 8px;
    font-size: 13px;
    border-radius: 12px;
    min-width: 0;
  }
  .erp-node.is-active { transform: none; }
  .erp-events { padding: 0 16px 16px; border-top: 0; }
  .js .erp-event:not(.is-active) { display: none; }
}
@media (max-width: 519px) {
  .erp-nodes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.hero__strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  padding-top: 40px;
}
.hero__strip-label {
  color: var(--text-3);
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.hero__strip-list {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}
@media (max-width: 1099px) {
  .hero__strip-list { justify-content: flex-start; }
}

/* ---------- Custom ERP ---------- */

.compare { margin-top: 56px; overflow: hidden; }
.compare__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-bottom: 1px solid rgba(255, 255, 255, .04);
}
.compare__row:last-child { border-bottom: 0; }
.compare__cell {
  position: relative;
  padding: 13px 20px 13px 40px;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.5;
}
.compare__cell--std { background: rgba(229, 138, 155, .05); color: var(--neg-ink); }
.compare__cell--algeb { background: rgba(60, 198, 210, .06); color: var(--accent-ink); border-left: 1px solid var(--line-soft); }
.compare__cell--std::before,
.compare__cell--algeb::before { position: absolute; left: 20px; }
.compare__cell--std::before { content: '−'; color: var(--neg); }
.compare__cell--algeb::before { content: '+'; color: var(--accent); }

.compare__row--head { border-bottom: 1px solid var(--line-soft); }
.compare__row--head .compare__cell {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  background: none;
  font-size: 11.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.compare__row--head .compare__cell::before { content: none; }
.compare__row--head .compare__cell--std { color: var(--neg); }
.compare__row--head .compare__cell--std .dot { background: var(--neg); }
.compare__row--head .compare__cell--algeb { color: var(--accent); }

@media (max-width: 699px) {
  .compare__row { grid-template-columns: minmax(0, 1fr); }
  .compare__cell--algeb { border-left: 0; }
  .compare__row:not(.compare__row--head) .compare__cell--algeb { border-top: 1px dashed rgba(255, 255, 255, .06); }
  .compare__row:not(.compare__row--head) { border-bottom-color: var(--line); }
  .compare__row--head .compare__cell { padding-block: 10px; }
}

.statement {
  max-width: 900px;
  margin: 64px auto 0;
  color: var(--text-3);
  font-size: clamp(24px, 3vw, 40px);
  line-height: 1.2;
  letter-spacing: -0.03em;
  font-weight: 500;
  text-align: center;
  text-wrap: balance;
}
.statement span { color: var(--text); }

.pillars {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 12px;
}
.pillar { display: flex; flex-direction: column; overflow: hidden; }
.pillar__body { padding: 28px 28px 0; }
.pillar__rule {
  position: relative;
  display: block;
  height: 10px;
  background: linear-gradient(90deg, rgba(60, 198, 210, .4), transparent) no-repeat 22px 50% / calc(100% - 22px) 1px;
}
.pillar__rule::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 10px;
  height: 10px;
  border: 2px solid var(--accent);
  border-radius: 50%;
}
.pillar__title {
  margin-top: 24px;
  font-size: clamp(26px, 2.6vw, 30px);
  font-weight: 600;
  letter-spacing: -0.03em;
}
.pillar__body p { margin-top: 10px; color: var(--text-3); font-size: 16px; line-height: 1.6; }
.pillar__code {
  flex: 1;
  margin: 28px 14px 14px;
  padding: 18px;
  background: var(--bg);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  color: var(--accent-ink);
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.9;
  white-space: pre;
  overflow-x: auto;
}
.pillar__code code { font: inherit; }
.pillar__code .c { color: var(--text-4); }

.focus {
  margin-top: 12px;
  padding: clamp(24px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: rgba(255, 255, 255, .02);
}
.focus__title { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.focus__grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  gap: 24px 28px;
}
.focus__grid li { display: flex; flex-direction: column; gap: 6px; }
.focus__grid strong {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15.5px;
  font-weight: 600;
}
.focus__grid strong::before {
  content: '';
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--accent);
}
.focus__grid span { padding-left: 16px; color: var(--text-3); font-size: 14px; line-height: 1.55; }
.focus__grid .focus__cta { justify-content: center; }
.focus__cta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 13px 20px;
  border-radius: var(--r-pill);
  background: var(--text);
  color: var(--bg);
  font-size: 15px;
  font-weight: 600;
}
.focus__cta a:hover { background: #fff; color: var(--bg); }

/* ---------- ERP solutions ---------- */

.modules {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 12px;
}
.modules > * { grid-column: span 12; }

@media (min-width: 640px) {
  .modules > * { grid-column: span 6; }
  .modules > :first-child,
  .modules > :last-child { grid-column: span 12; }
}
@media (min-width: 1000px) {
  .modules > * { grid-column: span 3; }
  .modules > :first-child { grid-column: span 6; }
  .modules > :nth-child(4),
  .modules > :nth-child(5),
  .modules > :nth-child(6) { grid-column: span 4; }
  .modules > :last-child { grid-column: span 3; }
}

.module {
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.module__code {
  align-self: flex-start;
  padding: 5px 9px;
  border: 1px solid rgba(60, 198, 210, .3);
  border-radius: var(--r-pill);
  color: var(--accent);
  font-size: 11.5px;
}
.module__rows { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.module__rows li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, .04);
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, .03);
  font-size: 13px;
}
.module__rows li span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-2); }
.module__rows .mono { flex: none; font-size: 10.5px; color: var(--text-3); white-space: nowrap; }
.module__rows .mono.is-on { color: var(--accent); }
.module p { margin-top: 8px; color: var(--text-3); font-size: 15px; line-height: 1.55; }

.module--custom {
  min-height: 220px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  border-radius: var(--r-xl);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--bg);
  transition: filter var(--dur);
}
.module--custom:hover { color: var(--bg); filter: brightness(1.08); }
.module--custom .mono { font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: .04em; }
.module--custom__title { display: block; font-size: 24px; font-weight: 600; letter-spacing: -0.025em; line-height: 1.1; }
.module--custom__sub { display: block; margin-top: 10px; font-size: 15px; font-weight: 500; }

/* Integrations */

.integrations { margin-top: clamp(72px, 9vw, 120px); }
.integrations__head { max-width: 760px; margin-inline: auto; text-align: center; }
.integrations__head .h3 { font-size: clamp(28px, 3.6vw, 44px); line-height: 1.05; letter-spacing: -0.035em; text-wrap: balance; }
.integrations__head p { margin-top: 14px; color: var(--text-3); font-size: 18px; }

.integrations__map { margin-top: 48px; }
.integrations__row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 12px;
}
.int-group {
  position: relative;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-radius: var(--r-lg);
}
.int-group__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.int-group__head strong { font-size: 18px; font-weight: 600; }
.int-group__head .mono { color: var(--text-4); font-size: 10.5px; }

.integrations__hub {
  margin: 12px 0;
  padding: 22px 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--accent-line);
  border-radius: var(--r-lg);
  background: linear-gradient(90deg, rgba(60, 198, 210, .14), rgba(74, 143, 224, .14));
}
.integrations__hub > span:first-child { display: flex; align-items: center; gap: 14px; }
.integrations__hub strong { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.integrations__hub .mono { color: var(--accent-ink); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }

@media (min-width: 1000px) {
  .integrations__hub { margin: 40px 0; }
  .integrations__row .int-group::after {
    content: '';
    position: absolute;
    left: 50%;
    width: 1px;
    height: 40px;
  }
  .integrations__row:not(.integrations__row--below) .int-group::after {
    top: 100%;
    background: linear-gradient(180deg, rgba(255, 255, 255, .12), var(--accent));
  }
  .integrations__row--below .int-group::after {
    bottom: 100%;
    background: linear-gradient(180deg, var(--accent-2), rgba(255, 255, 255, .12));
  }
}

/* ---------- Existing systems (inverted panel) ---------- */

.legacy {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 5.5vw, 72px);
  border-radius: var(--r-3xl);
  background: var(--paper);
  color: var(--paper-ink);
}
.legacy::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(6, 8, 12, .08) 1px, transparent 1px);
  background-size: 20px 20px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000);
  mask-image: linear-gradient(90deg, transparent, #000);
  pointer-events: none;
}
.legacy > * { position: relative; }
.legacy__head {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 24px 64px;
  align-items: end;
}
.legacy__eyebrow { color: var(--accent-deep); }
.legacy__title { font-size: clamp(34px, 4.8vw, 60px); }
.legacy__copy p { color: var(--paper-ink-2); font-size: 17px; line-height: 1.6; }
.legacy__copy p + p { margin-top: 12px; }
.legacy__copy .legacy__lead { color: var(--paper-ink); font-size: 17.5px; font-weight: 600; }

.legacy__scale {
  margin-top: 48px;
  padding-bottom: 10px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid rgba(6, 8, 12, .15);
  color: #4B5462;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.legacy__options {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 12px;
}
.legacy__option {
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid rgba(6, 8, 12, .08);
  border-radius: 20px;
  background: #fff;
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur);
}
.legacy__option:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -20px rgba(6, 8, 12, .3); }
.legacy__bars { display: flex; gap: 4px; }
.legacy__bars span { flex: 1; height: 6px; border-radius: 3px; background: rgba(6, 8, 12, .1); }
.legacy__bars[data-level="1"] span:nth-child(-n+1),
.legacy__bars[data-level="2"] span:nth-child(-n+2),
.legacy__bars[data-level="3"] span:nth-child(-n+3),
.legacy__bars[data-level="4"] span { background: var(--accent-deep); }
.legacy__option h3 { margin-top: 28px; font-size: 26px; font-weight: 600; letter-spacing: -0.03em; }
.legacy__option p { margin-top: 8px; color: var(--paper-ink-2); font-size: 15px; line-height: 1.5; }

.legacy__btn { margin-top: 36px; background: var(--paper-ink); color: var(--paper); }
.legacy__btn:hover { background: var(--accent-deep); color: #fff; }
.legacy :focus-visible { outline-color: var(--accent-deep); }

/* ---------- Automation ---------- */

.flow { margin-top: 56px; padding: clamp(22px, 3vw, 32px); }
.flow__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.flow__label { color: var(--text-4); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }

.flow__track {
  --progress-x: 0px;
  --progress-y: 0px;
  position: relative;
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 16px;
}
.flow__track::before,
.flow__track::after {
  content: '';
  position: absolute;
  left: 7px;
  top: 7px;
  height: 1px;
  pointer-events: none;
}
.flow__track::before { right: 0; background: var(--line); }
.flow__track::after {
  height: 2px;
  top: 6.5px;
  width: var(--progress-x);
  background: var(--grad);
  transition: width .7s var(--ease-out);
}

.flow__step { position: relative; display: flex; flex-direction: column; gap: 8px; padding-top: 32px; }
.flow__node {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 1;
  width: 15px;
  height: 15px;
  border: 2px solid var(--text-faint);
  border-radius: 50%;
  background: var(--surface);
  transition: border-color .5s, background-color .5s, box-shadow .5s;
}
.flow__step strong { color: var(--text-2); font-size: 15px; font-weight: 600; letter-spacing: -0.01em; transition: color .5s; }
.flow__step span:not(.flow__node) { color: var(--text-4); font-size: 13px; line-height: 1.45; transition: color .5s; }

.flow__step.is-done .flow__node { border-color: var(--accent); background: var(--accent); }
.flow__step.is-done strong { color: var(--text); }
.flow__step.is-done span:not(.flow__node) { color: var(--text-3); }
.flow__step.is-active .flow__node { box-shadow: 0 0 0 5px rgba(60, 198, 210, .18); }
.flow__step.is-active strong { color: #fff; }
.flow__step.is-active span:not(.flow__node) { color: var(--text-2); }

/* Without JS every step reads as complete */
html:not(.js) .flow__step .flow__node { border-color: var(--accent); }
html:not(.js) .flow__step strong { color: var(--text); }

@media (max-width: 899px) {
  .flow__track { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .flow__track::before { top: 7px; bottom: 7px; left: 7px; right: auto; width: 1px; height: auto; }
  .flow__track::after {
    top: 7px;
    left: 6.5px;
    width: 2px;
    height: var(--progress-y);
    transition: height .7s var(--ease-out);
  }
  .flow__step { padding: 0 0 0 34px; gap: 4px; }
}

.auto-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: 12px;
}
.auto-grid li { padding: 26px; display: flex; flex-direction: column; }
.auto-grid h3 { margin-top: 22px; font-size: 19px; font-weight: 600; letter-spacing: -0.015em; }
.auto-grid p { margin-top: 8px; color: var(--text-3); font-size: 14.5px; line-height: 1.55; }

/* ---------- AI capability layer ---------- */

.cap-key { display: block; color: var(--accent); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; }
.cap-desc { margin-top: 10px; color: var(--text-3); font-size: 14.5px; line-height: 1.55; }
.cap-key + .h3 { margin-top: 10px; }

.ai-top,
.ai-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}
.ai-top { margin-top: 56px; }
.ai-bottom { margin-top: 12px; }
@media (min-width: 1000px) {
  .ai-top, .ai-bottom { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
}

/* Assistant */
.assistant { display: flex; flex-direction: column; overflow: hidden; }
.assistant__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line-soft);
}
.assistant__name { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; }
.assistant__tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 16px 20px 0; }
.assistant__tabs button {
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--text-3);
  font-size: 13px;
  transition: color var(--dur), border-color var(--dur), background-color var(--dur);
}
.assistant__tabs button:hover { color: var(--text); border-color: rgba(255, 255, 255, .25); }
.assistant__tabs button[aria-selected="true"] {
  color: #fff;
  border-color: var(--accent-line-strong);
  background: rgba(60, 198, 210, .1);
}
.assistant__panel { flex: 1; display: flex; flex-direction: column; gap: 14px; padding: 14px 20px 20px; }
.assistant__query {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 52px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--r-md);
  background: var(--bg);
  font-size: 15px;
  line-height: 1.45;
}
.assistant__query .mono { color: var(--accent); font-size: 13px; padding-top: 1px; }
.assistant__caret {
  display: none;
  width: 2px;
  height: 1.15em;
  margin-left: -8px;
  background: var(--accent);
  animation: blink 1s steps(1) infinite;
}
.assistant.is-typing .assistant__caret { display: inline-block; }
@keyframes blink { 50% { opacity: 0; } }

.assistant__answer {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: opacity .45s ease, transform .45s var(--ease-out);
}
.assistant.is-typing .assistant__answer { opacity: 0; transform: translateY(6px); }
.assistant__lead { color: var(--text-2); font-size: 13.5px; }
.assistant__table { border: 1px solid var(--line-soft); border-radius: 12px; overflow: hidden; }
.assistant__tr {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
  padding: 11px 14px;
  border-top: 1px solid rgba(255, 255, 255, .05);
  font-size: 13.5px;
}
.assistant__tr > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.assistant__tr > span:nth-child(2) { color: var(--text-2); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.assistant__tr > span:last-child { text-align: right; color: var(--text-2); }
.assistant__tr--head {
  padding-block: 9px;
  border-top: 0;
  background: rgba(255, 255, 255, .03);
  color: var(--text-4);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.assistant__tr--head > span:nth-child(2) { color: var(--text-4); font-size: 10.5px; }
.assistant__tr--head > span:last-child { color: var(--text-4); }
.assistant__tr .is-warn { color: var(--warn); }
.assistant__tr .is-ok { color: var(--accent); }

.assistant__sources { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.assistant__sources > .mono { color: var(--text-4); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; }
.assistant__sources .tag { font-size: 12px; padding: 4px 9px; }
.assistant__action {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(60, 198, 210, .25);
  border-radius: 12px;
  background: rgba(60, 198, 210, .05);
  font-size: 13.5px;
  font-weight: 500;
}
.assistant__action .mono { color: var(--accent); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; }

/* Document intelligence */
.doc-intel { padding: 26px; display: flex; flex-direction: column; }
.doc-intel__doc {
  margin-top: 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--bg);
  overflow: hidden;
}
.doc-intel__file {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line-soft);
}
.doc-intel__file .mono:first-child { color: var(--text-2); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.doc-intel__fields > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 14px;
  border-top: 1px solid rgba(255, 255, 255, .04);
  font-size: 13px;
}
.doc-intel__fields > div:first-child { border-top: 0; }
.doc-intel__fields dt { color: var(--text-3); }
.doc-intel__fields dd { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.doc-intel__fields .ok,
.doc-intel__fields .warn { font-family: var(--font-mono); font-size: 11px; }
.doc-intel__fields .ok { color: var(--accent); }
.doc-intel__fields .ok::before { content: '✓ '; }
.doc-intel__fields .warn { color: var(--warn); }
.doc-intel__fields .warn::before { content: '! '; }
.doc-intel__types { margin-top: auto; padding-top: 20px; }

/* Intelligent workflow */
.ai-flow {
  margin-top: 12px;
  padding: 26px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px 40px;
  align-items: center;
}
@media (min-width: 1100px) {
  .ai-flow { grid-template-columns: minmax(0, 300px) minmax(0, 1fr); }
}
.ai-flow__steps { display: flex; gap: 22px; }
.ai-flow__steps li {
  position: relative;
  flex: 1;
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, .02);
  transition: border-color .5s, background-color .5s;
}
.ai-flow__steps li:not(:last-child)::after {
  content: '→';
  position: absolute;
  right: -17px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-faint);
  font-size: 13px;
}
.ai-flow__steps .mono { display: block; color: var(--text-2); font-size: 12px; line-height: 1.4; transition: color .5s; }
.ai-flow__steps small { display: block; margin-top: 4px; color: var(--text-4); font-size: 12.5px; line-height: 1.4; }
.ai-flow__steps li.is-done { border-color: rgba(60, 198, 210, .25); }
.ai-flow__steps li.is-done .mono { color: var(--accent-ink); }
.ai-flow__steps li.is-active { border-color: var(--accent-line-strong); background: var(--accent-wash); }
.ai-flow__steps li.is-active .mono { color: #fff; }

@media (max-width: 759px) {
  .ai-flow__steps { flex-direction: column; gap: 22px; }
  .ai-flow__steps li:not(:last-child)::after {
    content: '↓';
    right: auto;
    left: 22px;
    top: auto;
    bottom: -19px;
    transform: none;
  }
}

/* Insights */
.insights { padding: 26px; display: flex; flex-direction: column; }
.insights__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.insights__list { margin-top: 20px; border: 1px solid var(--line-soft); border-radius: var(--r-md); overflow: hidden; }
.insights__list li {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-top: 1px solid rgba(255, 255, 255, .05);
  font-size: 14px;
  line-height: 1.45;
}
.insights__list li:first-child { border-top: 0; }
.insights__kind { color: var(--text-4); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; }
.insights__flag {
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  color: var(--text-2);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.insights__flag.is-warn { color: var(--warn); border-color: rgba(229, 178, 107, .35); }
@media (max-width: 559px) {
  .insights__list li { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; }
  .insights__kind { grid-column: 1 / -1; }
}

/* Agents */
.agents { padding: 26px; display: flex; flex-direction: column; }
.agents__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.agents__task {
  margin-top: 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--bg);
  overflow: hidden;
}
.agents__task-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line-soft);
}
.agents__task-head .mono:first-child { color: var(--text-2); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.agents__steps { padding: 6px 14px; }
.agents__steps li {
  position: relative;
  padding: 8px 0 8px 24px;
  color: var(--text-2);
  font-size: 13.5px;
  line-height: 1.45;
}
.agents__steps li::before {
  position: absolute;
  left: 0;
  font-family: var(--font-mono);
  font-size: 12px;
}
.agents__steps .is-done::before { content: '✓'; color: var(--accent); }
.agents__steps .is-wait { color: var(--text); }
.agents__steps .is-wait::before { content: '…'; color: var(--warn); }
.agents__rules { margin-top: auto; padding-top: 24px; display: flex; flex-direction: column; gap: 10px; }
.agents__rules li { display: flex; align-items: center; gap: 10px; color: var(--text-2); font-size: 14px; }

.guardrails {
  margin-top: 12px;
  padding: 18px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 32px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, .02);
}
.guardrails li { display: flex; align-items: center; gap: 8px; color: var(--text-2); font-size: 14px; }
.guardrails .guardrails__title { color: var(--text); font-size: 14.5px; font-weight: 500; }

/* ---------- Approach ---------- */

.approach { margin-top: 56px; }
.approach__rail {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}
.approach__rail button {
  min-height: 56px;
  padding: 16px 18px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  color: var(--text-3);
  font-size: clamp(16px, 1.5vw, 19px);
  font-weight: 600;
  letter-spacing: -0.02em;
  transition: color var(--dur), border-color var(--dur), background-color var(--dur);
}
.approach__rail button:hover { color: var(--text); border-color: rgba(255, 255, 255, .18); }
.approach__rail button[aria-selected="true"] {
  color: #fff;
  border-color: rgba(60, 198, 210, .45);
  background: var(--accent-wash);
}
.approach__progress {
  position: relative;
  height: 2px;
  margin-top: 14px;
  border-radius: 2px;
  background: var(--line);
}
.approach__progress span {
  position: absolute;
  inset: 0 auto 0 0;
  width: calc(100% / 6);
  border-radius: 2px;
  background: var(--grad);
  transition: width .6s var(--ease-out);
}
.approach__panels { margin-top: 14px; }
.approach__panel {
  min-height: 260px;
  padding: clamp(28px, 4vw, 44px);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: linear-gradient(160deg, var(--surface-3), var(--surface));
}
.approach__panel + .approach__panel { margin-top: 12px; }
.js .approach__panel { margin-top: 0; }
.js .approach__panel:not(.is-active) { display: none; }
.approach__panel.is-active { animation: panel-in .5s var(--ease-out); }
.approach__panel h3 { font-size: clamp(32px, 3.6vw, 48px); font-weight: 600; letter-spacing: -0.035em; }
.approach__panel p { max-width: 640px; margin-top: 16px; color: var(--text-2); font-size: clamp(17px, 1.5vw, 19px); line-height: 1.6; }
.approach__panel .tag-list { margin-top: 28px; gap: 8px; }
.approach__panel .tag { padding: 7px 12px; font-size: 12px; }

@keyframes panel-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

@media (max-width: 899px) {
  .approach__rail { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .approach__progress { display: none; }
}
@media (max-width: 479px) {
  .approach__rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .approach__rail button { padding: 14px; font-size: 16px; }
}

.services { margin-top: clamp(72px, 9vw, 112px); }
.services__title { max-width: 760px; font-size: clamp(28px, 3.4vw, 40px); font-weight: 600; line-height: 1.1; letter-spacing: -0.03em; text-wrap: balance; }
.services__grid {
  margin-top: 32px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--line);
}
@media (min-width: 560px) { .services__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .services__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.services__grid li {
  min-height: 210px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  transition: background-color var(--dur);
}
.services__grid li:hover { background: var(--surface-2); }
.services__grid h4 { margin-top: auto; padding-top: 36px; font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.services__grid p { margin-top: 8px; color: var(--text-3); font-size: 14.5px; line-height: 1.55; }

/* ---------- Industries ---------- */

.industries {
  margin-top: 56px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
}
@media (min-width: 900px) {
  .industries { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
}
.industries__list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.industries__list button {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 20px 4px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: none;
  color: var(--text-4);
  text-align: left;
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 600;
  letter-spacing: -0.025em;
  transition: color var(--dur);
}
.industries__list button:hover { color: var(--text-2); }
.industries__list .dot { background: var(--text-faint); transition: background-color var(--dur); }
.industries__arrow { color: var(--accent); font-size: 18px; opacity: 0; transition: opacity var(--dur), transform var(--dur) var(--ease-out); transform: translateX(-4px); }
.industries__list button[aria-selected="true"] { color: #fff; }
.industries__list button[aria-selected="true"] .dot { background: var(--accent); }
.industries__list button[aria-selected="true"] .industries__arrow { opacity: 1; transform: none; }

.industries__panel {
  min-height: 420px;
  padding: clamp(26px, 4vw, 40px);
  display: flex;
  flex-direction: column;
  background: radial-gradient(500px 300px at 100% 0, rgba(60, 198, 210, .12), transparent 70%), var(--surface);
}
.industries__kicker { color: var(--accent); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.industries__panels { padding-bottom: 32px; }
.industries__item + .industries__item { margin-top: 32px; }
.js .industries__item { margin-top: 0; }
.js .industries__item:not(.is-active) { display: none; }
.industries__item.is-active { animation: panel-in .45s var(--ease-out); }
.industries__item h3 { margin-top: 16px; font-size: clamp(28px, 3.2vw, 42px); font-weight: 600; letter-spacing: -0.035em; line-height: 1.05; }
.industries__tags {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 8px;
}
.industries__tags li {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, .03);
  font-size: 15px;
  font-weight: 500;
}
.industries__tags li::before { content: ''; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); }
.industries__foot {
  margin-top: auto;
  padding-top: 28px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--line-soft);
  color: var(--text-2);
  font-size: 15.5px;
}
.industries__foot a { font-weight: 600; font-size: 15px; }

/* ---------- Why ALGEB ---------- */

.why {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: 12px;
}
.why__item { min-height: 230px; padding: 30px; display: flex; flex-direction: column; }
.why__item h3 { margin-top: auto; padding-top: 28px; font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.why__item p { margin-top: 8px; color: var(--text-3); font-size: 15.5px; line-height: 1.6; }

.tech {
  margin-top: clamp(72px, 9vw, 112px);
  padding: 40px 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 32px 64px;
  align-items: start;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.tech__intro h3 { margin-top: 14px; font-size: clamp(24px, 2.6vw, 32px); font-weight: 600; line-height: 1.1; letter-spacing: -0.03em; }
.tech__intro p:last-child { margin-top: 12px; color: var(--text-3); font-size: 15.5px; line-height: 1.6; }
.tech__list { display: flex; flex-direction: column; gap: 14px; }
.tech__list > div { display: grid; grid-template-columns: minmax(110px, .35fr) minmax(0, 1fr); gap: 16px; align-items: center; }
.tech__list dt { font-size: 14.5px; font-weight: 600; }
.tech__list dd { display: flex; flex-wrap: wrap; gap: 6px; }
.tech__list .tag { border-radius: 8px; background: rgba(255, 255, 255, .04); border-color: var(--line-soft); font-size: 12px; }

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

.about__title { max-width: 1000px; }
.about {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 40px 72px;
}
.about__copy { display: flex; flex-direction: column; gap: 20px; color: var(--text-2); font-size: 18px; line-height: 1.7; }
.about__copy .about__statement { color: var(--text); font-size: clamp(21px, 2vw, 26px); line-height: 1.4; letter-spacing: -0.02em; font-weight: 500; }
.about__card { align-self: start; padding: 28px; display: flex; flex-direction: column; font-style: normal; }
.about__card img { height: 56px; width: auto; }
.about__card strong { margin-top: 24px; font-size: 16px; font-weight: 600; }
.about__card > span { margin-top: 8px; color: var(--text-3); font-size: 15px; line-height: 1.65; }
.about__card .about__links { margin-top: 20px; padding-top: 20px; display: flex; flex-direction: column; gap: 4px; border-top: 1px solid var(--line-soft); font-size: 15px; }

/* ---------- Final CTA ---------- */

.cta {
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 8vw, 112px) clamp(22px, 6vw, 80px);
  text-align: center;
  border: 1px solid rgba(60, 198, 210, .3);
  border-radius: var(--r-3xl);
  background:
    radial-gradient(700px 400px at 50% 120%, rgba(60, 198, 210, .18), transparent 70%),
    radial-gradient(600px 300px at 0% 0%, rgba(74, 143, 224, .16), transparent 70%),
    var(--surface);
}
.cta__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(circle at 50% 100%, #000, transparent 70%);
  mask-image: radial-gradient(circle at 50% 100%, #000, transparent 70%);
}
.cta__inner { position: relative; max-width: 840px; margin-inline: auto; }
.cta .h2 { margin-top: 0; }
.cta__inner > p { max-width: 640px; margin: 28px auto 0; color: var(--text-2); font-size: var(--fs-lead); line-height: 1.6; }
.cta__actions { justify-content: center; margin-top: 40px; }
@media (max-width: 480px) {
  .cta__actions .btn { width: 100%; }
}

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

.contact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: 48px 72px;
  align-items: start;
}
.contact__intro .lead { margin-top: 20px; max-width: 440px; font-size: 17px; }
.contact__channels { margin-top: 40px; display: flex; flex-direction: column; gap: 8px; }
.contact__channels a,
.contact__office {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  color: var(--text);
  transition: border-color var(--dur);
}
.contact__channels a:hover { color: var(--text); border-color: rgba(60, 198, 210, .4); }
.contact__channels .mono { flex: none; color: var(--text-4); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.contact__channels a span:last-child { font-size: 16px; font-weight: 500; overflow-wrap: anywhere; text-align: right; }
.contact__office { align-items: flex-start; }
.contact__office .mono { padding-top: 3px; }
.contact__office span:last-child { color: var(--text-2); font-size: 15px; line-height: 1.55; text-align: right; }

.contact__form-wrap {
  padding: clamp(22px, 4vw, 40px);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 26px;
  background: linear-gradient(180deg, var(--surface-3), var(--surface));
  box-shadow: 0 40px 100px -50px rgba(0, 0, 0, .7);
}
.contact-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 18px;
}
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label,
.field legend { color: var(--text-2); font-size: 13px; font-weight: 500; }
.field__opt { color: var(--text-4); font-weight: 400; }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 12px;
  background: rgba(255, 255, 255, .03);
  color: var(--text);
  font-size: 15px;
  outline: none;
  transition: border-color var(--dur), box-shadow var(--dur);
}
.field select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23AEB6C2' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}
.field select option { background: var(--surface); color: var(--text); }
.field textarea { min-height: 132px; padding: 14px 16px; line-height: 1.5; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(60, 198, 210, .18); }
.field [aria-invalid="true"] { border-color: var(--neg); }

.needs { margin: 0; padding: 0; border: 0; min-width: 0; }
.needs legend { padding: 0; margin-bottom: 10px; }
.needs__list { display: flex; flex-wrap: wrap; gap: 8px; }
.need { position: relative; }
.need input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.need span {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--r-pill);
  color: var(--text-2);
  font-size: 14px;
  transition: color .2s, background-color .2s, border-color .2s;
}
.need:hover span { border-color: rgba(255, 255, 255, .28); color: var(--text); }
.need input:checked + span { border-color: var(--accent); background: rgba(60, 198, 210, .14); color: #fff; }
.need input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.contact-form__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 4px;
}
.contact-form__status { flex: 1 1 220px; min-height: 1.4em; color: var(--text-4); font-size: 13.5px; }
.contact-form__status.is-error { color: var(--neg); }
.contact-form__status.is-success { color: var(--accent); }
@media (max-width: 480px) {
  .contact-form__foot .btn { width: 100%; white-space: normal; text-align: center; }
}

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

.site-footer { padding: 72px 0 32px; border-top: 1px solid var(--line); overflow: hidden; }
.site-footer__top {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
}
.site-footer__brand { grid-column: 1 / -1; max-width: 380px; }
@media (min-width: 560px) {
  .site-footer__top { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .site-footer__top { grid-template-columns: minmax(0, 1.8fr) repeat(3, minmax(0, 1fr)); }
  .site-footer__brand { grid-column: auto; }
}
.site-footer__brand img { height: 52px; width: auto; }
.site-footer__brand p { margin-top: 20px; color: var(--text-3); font-size: 14.5px; line-height: 1.65; }
.site-footer__contact { display: flex; flex-direction: column; gap: 6px; }
.site-footer__brand .site-footer__contact { margin-top: 16px; }
.site-footer__contact a { color: var(--text); }
.site-footer__contact a:hover { color: var(--accent-hover); }
.site-footer__col > .mono { color: var(--text-4); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.site-footer__col ul { margin-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.site-footer__col a { color: var(--text-2); font-size: 14.5px; }
.site-footer__col a:hover { color: #fff; }

.site-footer__word {
  margin-top: 80px;
  font-size: clamp(40px, 8.4vw, 116px);
  line-height: .95;
  letter-spacing: -0.055em;
  font-weight: 600;
  background: linear-gradient(180deg, var(--text) 20%, rgba(237, 241, 245, .08));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-wrap: balance;
}
.site-footer__word .serif { padding-right: .06em; }
.site-footer__bottom {
  margin-top: 40px;
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line-soft);
  color: var(--text-4);
  font-size: 13px;
}

/* ---------- Small-screen refinements ---------- */

@media (max-width: 759px) {
  .erp-stage + .erp-stage { margin-left: 0; }
  .erp-stage + .erp-stage::before { content: none; }
}
@media (max-width: 559px) {
  .services__grid li { min-height: 0; padding: 24px; }
  .services__grid h4 { padding-top: 20px; }
  .why__item { min-height: 0; padding: 26px; }
  .why__item h3 { padding-top: 22px; }
  .legacy__scale { font-size: 10px; }
}
@media (max-width: 479px) {
  .tech__list > div { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .tag { white-space: normal; }
}
