/* ==========================================================================
   PeakOps — styles.css
   Design tokens from the PeakOps Brand Identity.
   Accent: Peak Indigo #2F39A9 · Ground: warm paper (light, not white)
   Fonts: JetBrains Mono (Latin display / labels) · Readex Pro (body, Arabic display)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Fonts (self-hosted, variable)
   -------------------------------------------------------------------------- */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url('../fonts/jetbrains-mono-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url('../fonts/jetbrains-mono-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Readex Pro';
  font-style: normal;
  font-weight: 160 700;
  font-display: swap;
  src: url('../fonts/readex-pro-arabic.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
@font-face {
  font-family: 'Readex Pro';
  font-style: normal;
  font-weight: 160 700;
  font-display: swap;
  src: url('../fonts/readex-pro-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Readex Pro';
  font-style: normal;
  font-weight: 160 700;
  font-display: swap;
  src: url('../fonts/readex-pro-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* --------------------------------------------------------------------------
   2. Tokens
   -------------------------------------------------------------------------- */
:root {
  --accent: #2f39a9;
  --accent-ink: #1b2170;
  --accent-hover: #26309a;
  --accent-soft: rgba(47, 57, 169, 0.07);
  --accent-line: rgba(47, 57, 169, 0.24);

  --bg: #e9e9e4;
  --panel: #f6f6f3;
  --panel-2: #efefea;
  --ink: #17171a;
  --muted: #5c5f66;
  --faint: #82858c;

  --line: #d6d5ce;
  --line-strong: #b9b8b0;

  --dark: #15151a;
  --dark-section: #202029;
  --dark-2: #1c1c22;
  --dark-3: #26262c;
  --dark-line: rgba(255, 255, 255, 0.1);
  --dark-text: #ececea;
  --dark-muted: #9a9aa2;

  --r: 4px;
  --r-sm: 3px;

  --container: 1200px;
  --nav-h: 70px;

  --font-body: 'Readex Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --font-display: var(--font-mono);
  --brand-accent: #2f39a9;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.5s;

  --shadow: 0 1px 2px rgba(20, 20, 30, 0.05);
}

/* Arabic headings use Readex Pro (JetBrains Mono has no Arabic glyphs). */
html[lang='ar'] {
  --font-display: 'Readex Pro', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* --------------------------------------------------------------------------
   3. Reset / base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 20px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
a:hover {
  color: var(--accent-hover);
}

::selection {
  background: var(--accent);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

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

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

button {
  font-family: inherit;
}

/* --------------------------------------------------------------------------
   3b. Arabic typography safeguards
   Negative tracking, uppercase and Latin-only fonts break Arabic shaping.
   -------------------------------------------------------------------------- */
html[lang='ar'] h1,
html[lang='ar'] h2,
html[lang='ar'] h3,
html[lang='ar'] h4,
html[lang='ar'] .hero__title,
html[lang='ar'] .section-title,
html[lang='ar'] .system__title,
html[lang='ar'] .cta__title {
  letter-spacing: 0;
}

html[lang='ar'] h1,
html[lang='ar'] h2,
html[lang='ar'] h3,
html[lang='ar'] h4 {
  line-height: 1.3;
}
html[lang='ar'] .hero__title {
  line-height: 1.22;
}

html[lang='ar'] .eyebrow,
html[lang='ar'] .hero__label,
html[lang='ar'] .system__kicker,
html[lang='ar'] .svc-more__label,
html[lang='ar'] .footer__title,
html[lang='ar'] .contact-card__label,
html[lang='ar'] .form label,
html[lang='ar'] .integrations__title,
html[lang='ar'] .footer__bottom .mono,
html[lang='ar'] .graph__title,
html[lang='ar'] .graph__hint,
html[lang='ar'] .graph__label,
html[lang='ar'] .graph__name,
html[lang='ar'] .graph__sub,
html[lang='ar'] .graph__caption {
  font-family: var(--font-body);
  letter-spacing: 0;
  text-transform: none;
}

/* --------------------------------------------------------------------------
   3c. Ambient background (decorative, calm)
   A fixed layer of very soft, slowly drifting brand-tinted glows plus a faint
   technical grid. Sits behind all content; pauses with reduced-motion.
   -------------------------------------------------------------------------- */
.bg-fx {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background: var(--bg);
}

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

.bg-fx__orb--a {
  width: 52vw;
  height: 52vw;
  max-width: 760px;
  max-height: 760px;
  top: -18vw;
  inset-inline-end: -12vw;
  background: radial-gradient(circle at 50% 50%, rgba(47, 57, 169, 0.3), rgba(47, 57, 169, 0) 68%);
  animation: bg-drift-a 52s var(--ease) infinite alternate;
}

.bg-fx__orb--b {
  width: 46vw;
  height: 46vw;
  max-width: 680px;
  max-height: 680px;
  bottom: -20vw;
  inset-inline-start: -14vw;
  background: radial-gradient(circle at 50% 50%, rgba(140, 146, 208, 0.32), rgba(140, 146, 208, 0) 68%);
  animation: bg-drift-b 66s var(--ease) infinite alternate;
}

.bg-fx__orb--c {
  width: 38vw;
  height: 38vw;
  max-width: 560px;
  max-height: 560px;
  top: 34%;
  inset-inline-start: 44%;
  background: radial-gradient(circle at 50% 50%, rgba(216, 180, 254, 0.26), rgba(216, 180, 254, 0) 68%);
  animation: bg-drift-c 84s var(--ease) infinite alternate;
}

.bg-fx__grid {
  position: absolute;
  inset: -25%;
  background-image: linear-gradient(to right, rgba(23, 23, 26, 0.055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(23, 23, 26, 0.055) 1px, transparent 1px);
  background-size: 76px 76px;
  -webkit-mask-image: radial-gradient(85% 65% at 50% 0%, #000 0%, transparent 72%);
  mask-image: radial-gradient(85% 65% at 50% 0%, #000 0%, transparent 72%);
}

@keyframes bg-drift-a {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(-4%, 7%, 0) scale(1.14);
  }
}
@keyframes bg-drift-b {
  from {
    transform: translate3d(0, 0, 0) scale(1.08);
  }
  to {
    transform: translate3d(7%, -6%, 0) scale(1);
  }
}
@keyframes bg-drift-c {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(-7%, -5%, 0) scale(1.16);
  }
}

/* Lighter footprint on small screens: fewer layers. */
@media (max-width: 760px) {
  .bg-fx__orb--c,
  .bg-fx__grid {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   4. Layout helpers
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.section {
  padding-block: clamp(54px, 5.6vw, 88px);
  scroll-margin-top: calc(var(--nav-h) + 12px);
}

.section--tight {
  padding-block: clamp(36px, 3.6vw, 54px);
}

/* Dark section: brand-dark ground + the identity's grid pattern.
   Redefining the neutral tokens here flips every child automatically. */
.section--dark {
  --ink: #f3f3f5;
  --muted: #a4a5ae;
  --faint: #83848d;
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.22);
  --panel: #2a2a35;
  --panel-2: #343440;

  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: var(--muted);
  background: var(--dark-section);
  border-block: 1px solid var(--line);
}
.section--dark::before,
.section--dark::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.section--dark::before {
  background-image: linear-gradient(to right, rgba(255, 255, 255, 0.075) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.075) 1px, transparent 1px);
  background-size: 68px 68px;
  -webkit-mask-image: radial-gradient(130% 95% at 50% 0%, #000 0%, transparent 88%);
  mask-image: radial-gradient(130% 95% at 50% 0%, #000 0%, transparent 88%);
}
.section--dark::after {
  background: radial-gradient(55% 55% at 85% 0%, rgba(47, 57, 169, 0.3), transparent 70%),
    radial-gradient(50% 50% at 8% 100%, rgba(140, 146, 208, 0.13), transparent 72%);
}
.section--dark .eyebrow::before,
.section--dark .system__badge::before {
  background: #8c92d0;
}
.section--dark .system__kicker,
.section--dark .why-item__idx,
.section--dark .stat__suffix {
  color: #aab0e0;
}
.section--dark a:not(.btn) {
  color: #aab0e0;
}
.section--dark a:not(.btn):hover {
  color: #c9cdf0;
}

.section-head {
  max-width: 640px;
  margin-bottom: clamp(28px, 2.8vw, 44px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: '';
  width: 20px;
  height: 1px;
  background: var(--accent);
}

.section-title {
  font-size: clamp(1.6rem, 1.1rem + 2.4vw, 2.6rem);
  letter-spacing: -0.025em;
}

.section-lead {
  margin-top: 14px;
  color: var(--muted);
  font-size: clamp(1rem, 0.97rem + 0.2vw, 1.1rem);
  line-height: 1.75;
}

.accent {
  color: var(--accent);
}

.skip-link {
  position: absolute;
  inset-inline-start: 16px;
  top: -64px;
  z-index: 200;
  background: var(--accent);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--r-sm);
  transition: top 0.2s var(--ease);
}
.skip-link:focus {
  top: 12px;
  color: #fff;
}

/* --------------------------------------------------------------------------
   5. Buttons & links
   -------------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--accent);
  --btn-fg: #fff;
  --btn-bd: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid var(--btn-bd);
  border-radius: var(--r-sm);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.btn:hover {
  color: var(--btn-fg);
}
.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.btn--primary {
  --btn-bg: var(--accent);
}
.btn--primary:hover {
  --btn-bg: var(--accent-hover);
}

.btn--lg {
  min-height: 52px;
  padding: 0 28px;
  font-size: 16px;
}

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

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 2px;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.link-arrow:hover {
  color: var(--accent);
  border-color: var(--accent);
}
.link-arrow svg {
  width: 17px;
  height: 17px;
}

[dir='rtl'] .dir-icon {
  transform: scaleX(-1);
}

/* --------------------------------------------------------------------------
   6. Navbar
   -------------------------------------------------------------------------- */
.nav {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: var(--dark);
  border-bottom: 1px solid transparent;
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.nav.is-scrolled,
.nav.is-open {
  background: var(--dark);
  border-bottom-color: var(--dark-line);
}

.nav__inner {
  display: flex;
  align-items: center;
  gap: 22px;
  width: 100%;
}

/* Arabic keeps the same header layout as English (logo on the left). */
html[lang='ar'] .nav__inner {
  flex-direction: row-reverse;
}
html[lang='ar'] .nav__actions {
  flex-direction: row-reverse;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  /* The wordmark lockup is the same in both languages: mark then "PeakOps". */
  direction: ltr;
  color: var(--dark-text);
  font-family: var(--font-mono);
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.02em;
  flex: none;
}
.brand:hover {
  color: #fff;
}
.brand__mark {
  width: 36px;
  height: 36px;
  flex: none;
  /* masked so the mark takes the exact tone of "Ops" */
  background-color: var(--brand-accent);
  -webkit-mask-image: url('../img/logo-mark.png');
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
  mask-image: url('../img/logo-mark.png');
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
}
.brand__ops {
  color: var(--brand-accent);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-inline: auto;
}
.nav__link {
  position: relative;
  color: var(--dark-muted);
  font-size: 15px;
  padding: 8px 12px;
  border-radius: var(--r-sm);
  transition: color 0.2s var(--ease);
}
.nav__link:hover {
  color: #fff;
}
.nav__link.is-active {
  color: #fff;
}
.nav__link.is-active::after {
  content: '';
  position: absolute;
  inset-inline: 12px;
  bottom: 1px;
  height: 1px;
  background: #8c92d0;
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--dark-line);
  border-radius: var(--r-sm);
  color: var(--dark-muted);
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.lang-toggle:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}
.lang-toggle svg {
  width: 15px;
  height: 15px;
}

.nav__toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--dark-line);
  border-radius: var(--r-sm);
  color: var(--dark-text);
  cursor: pointer;
}
.nav__toggle:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}
.nav__toggle svg {
  width: 20px;
  height: 20px;
}
.nav__toggle .icon-close {
  display: none;
}
.nav.is-open .nav__toggle .icon-menu {
  display: none;
}
.nav.is-open .nav__toggle .icon-close {
  display: block;
}

@media (max-width: 960px) {
  .nav__links,
  .nav__cta {
    display: none;
  }
  .nav__toggle {
    display: inline-flex;
  }
  .nav__inner {
    justify-content: space-between;
  }
  .nav__actions {
    margin-inline-start: 0;
  }

  .nav__links {
    position: fixed;
    inset-inline: 0;
    top: var(--nav-h);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 8px 24px 20px;
    background: var(--dark-2);
    border-bottom: 1px solid var(--dark-line);
    transform: translateY(-6px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
  }
  .nav.is-open .nav__links {
    display: flex;
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
  .nav__link {
    padding: 14px 4px;
    font-size: 16px;
    border-bottom: 1px solid var(--dark-line);
  }
  .nav__link.is-active::after {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   7. Hero
   -------------------------------------------------------------------------- */
.hero {
  padding-top: calc(var(--nav-h) + clamp(30px, 4.2vw, 62px));
  padding-bottom: clamp(34px, 4.2vw, 62px);
}

.hero__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(30px, 3.6vw, 54px);
  align-items: center;
}

.hero__label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--muted);
  margin-bottom: 22px;
}
.hero__label .idx {
  font-family: var(--font-mono);
  color: var(--accent);
  font-weight: 600;
}
.hero__label::after {
  content: '';
  width: 40px;
  height: 1px;
  background: var(--line-strong);
}

.hero__title {
  font-size: clamp(2.1rem, 1.2rem + 4vw, 3.6rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
  font-weight: 800;
}

.hero__sub {
  margin-top: 22px;
  max-width: 520px;
  color: var(--muted);
  font-size: clamp(1.02rem, 0.97rem + 0.35vw, 1.2rem);
  line-height: 1.72;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
  margin-top: 32px;
}

.hero__micro {
  display: flex;
  flex-wrap: wrap;
  margin-top: 34px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.hero__micro li {
  color: var(--muted);
  font-size: 13.5px;
  padding-inline: 18px;
  border-inline-start: 1px solid var(--line);
}
.hero__micro li:first-child {
  padding-inline-start: 0;
  border-inline-start: 0;
}

.hero__visual {
  min-width: 0;
}

/* ------------------------------------------------ Interactive node graph
   Frameless: the diagram sits directly on the page (no card, no border). */
.graph {
  position: relative;
}
.graph__foot {
  margin-top: 18px;
}
.graph__hint {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}
.graph__hint-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: graph-pulse 2.4s var(--ease) infinite;
}
@keyframes graph-pulse {
  0%,
  100% {
    opacity: 0.3;
  }
  50% {
    opacity: 1;
  }
}

.graph__canvas {
  position: relative;
  aspect-ratio: 700 / 520;
}
.graph__wires {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.graph__wire {
  fill: none;
  stroke: rgba(23, 23, 26, 0.18);
  stroke-width: 1.8;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  transition: stroke 0.35s var(--ease);
}
.graph__wire.is-active {
  stroke: var(--accent);
  stroke-dasharray: 5 7;
  animation: graph-wire 1.1s linear infinite;
}
@keyframes graph-wire {
  to {
    stroke-dashoffset: -12;
  }
}
.graph__dot {
  fill: rgba(23, 23, 26, 0.22);
  transition: fill 0.35s var(--ease);
}

.graph__node {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--w);
  height: var(--h);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  border: 1px solid var(--dark-3);
  border-radius: var(--r-sm);
  background: var(--dark-2);
  color: var(--dark-text);
  text-align: start;
  box-sizing: border-box;
  box-shadow: 0 10px 26px -18px rgba(20, 20, 30, 0.75);
}
.graph__node--stage {
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.graph__node--stage:hover {
  border-color: #4a4a6a;
}
.graph__node--stage:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.graph__node--stage.is-active {
  border-color: rgba(140, 146, 208, 0.8);
  background: var(--dark-3);
  box-shadow: 0 0 0 1px rgba(140, 146, 208, 0.28), 0 14px 30px -16px rgba(47, 57, 169, 0.85);
}

.graph__icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 8px;
  background: rgba(140, 146, 208, 0.14);
  border: 1px solid rgba(140, 146, 208, 0.24);
  color: #aab0e0;
}
.graph__icon svg {
  width: 18px;
  height: 18px;
}
.graph__node--stage.is-active .graph__icon {
  background: var(--accent);
  border-color: transparent;
  color: #fff;
}

.graph__meta {
  display: grid;
  min-width: 0;
}
.graph__name {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.graph__sub {
  font-size: 12.5px;
  color: var(--dark-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.graph__node--stage.is-active .graph__sub {
  color: #aab0e0;
}

/* Cards (input / result) */
.graph__node--card {
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 10px;
  padding: 14px;
  background: linear-gradient(180deg, var(--dark-2), var(--dark));
  overflow: hidden;
}
.graph__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dark-muted);
}

/* Brief box: looks like a real input with a send action */
.graph__field {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  flex: 1;
  min-height: 0;
  padding: 10px 11px;
  border: 1px solid rgba(140, 146, 208, 0.24);
  border-radius: 8px;
  background: rgba(140, 146, 208, 0.07);
}
.graph__field-text {
  font-size: 12.5px;
  line-height: 1.5;
  color: #d5d5dd;
}
.graph__field-send {
  align-self: flex-end;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: var(--accent);
  color: #fff;
}
.graph__field-send svg {
  width: 14px;
  height: 14px;
}

.graph__out-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--dark-line);
}
/* the result title may need two lines in some languages */
.graph__out-head .graph__name {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  line-height: 1.25;
}
.graph__check {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: 50%;
  background: rgba(140, 146, 208, 0.16);
  border: 1px solid rgba(140, 146, 208, 0.3);
  color: #aab0e0;
}
.graph__check svg {
  width: 15px;
  height: 15px;
}
.graph__list {
  display: grid;
  gap: 6px;
}
.graph__list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  line-height: 1.35;
  color: var(--dark-muted);
}
.graph__list li span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.graph__list svg {
  width: 13px;
  height: 13px;
  flex: none;
  color: #8c92d0;
}

.graph__caption {
  max-width: 54ch;
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
  transition: opacity 0.28s var(--ease);
}
.graph__caption.is-swapping {
  opacity: 0;
}

/* Small screens: drop the absolute diagram for a simple readable stack. */
@media (max-width: 640px) {
  .graph__canvas {
    aspect-ratio: auto;
    display: grid;
    gap: 10px;
  }
  .graph__wires {
    display: none;
  }
  .graph__node {
    position: static;
    left: auto;
    top: auto;
    width: auto;
    height: auto;
    min-height: 56px;
    padding: 12px 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .graph__wire.is-active {
    animation: none;
    stroke-dasharray: none;
  }
}

@media (max-width: 980px) {
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }
  .hero__sub {
    max-width: none;
  }
}
@media (max-width: 760px) {
  .graph__name {
    font-size: 13px;
  }
  .graph__caption {
    font-size: 13.5px;
  }
}

/* --------------------------------------------------------------------------
   8. Stats
   -------------------------------------------------------------------------- */
.stats {
  border-block: 1px solid var(--line);
  background: var(--panel);
}
/* the stats strip follows the same dark ground as the other dark sections */
.stats.section--dark {
  background: var(--dark-section);
}
.stats__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat {
  display: grid;
  gap: 6px;
  padding: 30px 26px;
  border-inline-start: 1px solid var(--line);
}
.stat:first-child {
  border-inline-start: 0;
}
.stat__num {
  font-family: var(--font-mono);
  font-size: clamp(1.7rem, 1.3rem + 1.5vw, 2.4rem);
  font-weight: 800;
  color: var(--ink);
  line-height: 1;
  letter-spacing: -0.03em;
}
.stat__suffix {
  color: var(--accent);
}
.stat__label {
  color: var(--muted);
  font-size: 14px;
}
@media (max-width: 900px) {
  .stats__inner {
    grid-template-columns: 1fr 1fr;
  }
  .stat {
    padding: 24px 20px;
  }
  .stat:nth-child(odd) {
    border-inline-start: 0;
  }
  .stat:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
}
@media (max-width: 480px) {
  .stats__inner {
    grid-template-columns: 1fr;
  }
  .stat {
    border-inline-start: 0;
    border-top: 1px solid var(--line);
  }
  .stat:first-child {
    border-top: 0;
  }
}

/* --------------------------------------------------------------------------
   9. Integrations
   -------------------------------------------------------------------------- */
.integrations {
  padding-block: clamp(26px, 3vw, 40px);
  border-block: 1px solid var(--line);
}
.integrations__title {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.5;
  margin-bottom: 20px;
}

/* Animated tech strip — infinite marquee, pauses on hover. */
.logo-marquee {
  position: relative;
  overflow: hidden;
  /* Keep the marquee's own layout LTR in both languages: the track then
     overflows to the right, so translating one group left always keeps the
     viewport covered (in RTL it would overflow left and expose a gap). */
  direction: ltr;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.logo-marquee__track {
  display: flex;
  width: max-content;
  direction: ltr;
  --logo-groups: 4;
  animation: logo-marquee-scroll 44s linear infinite;
  will-change: transform;
}
.logo-marquee:hover .logo-marquee__track,
.logo-marquee:focus-within .logo-marquee__track {
  animation-play-state: paused;
}
.logo-marquee__group {
  display: flex;
  align-items: center;
  gap: clamp(30px, 4vw, 58px);
  padding-inline-end: clamp(30px, 4vw, 58px);
  flex: none;
}
.logo-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.25s var(--ease);
}
.logo-item:hover {
  color: var(--accent);
}
.logo-item__mark {
  width: 22px;
  height: 22px;
  flex: none;
  background-color: currentColor;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
}

/* One rule per logo: paths are relative to this stylesheet. */
.logo-item__mark--nodejs {
  -webkit-mask-image: url('../img/tech/nodejs.svg');
  mask-image: url('../img/tech/nodejs.svg');
}
.logo-item__mark--typescript {
  -webkit-mask-image: url('../img/tech/typescript.svg');
  mask-image: url('../img/tech/typescript.svg');
}
.logo-item__mark--nestjs {
  -webkit-mask-image: url('../img/tech/nestjs.svg');
  mask-image: url('../img/tech/nestjs.svg');
}
.logo-item__mark--react {
  -webkit-mask-image: url('../img/tech/react.svg');
  mask-image: url('../img/tech/react.svg');
}
.logo-item__mark--postgresql {
  -webkit-mask-image: url('../img/tech/postgresql.svg');
  mask-image: url('../img/tech/postgresql.svg');
}
.logo-item__mark--mongodb {
  -webkit-mask-image: url('../img/tech/mongodb.svg');
  mask-image: url('../img/tech/mongodb.svg');
}
.logo-item__mark--docker {
  -webkit-mask-image: url('../img/tech/docker.svg');
  mask-image: url('../img/tech/docker.svg');
}
.logo-item__mark--aws {
  -webkit-mask-image: url('../img/tech/aws.svg');
  mask-image: url('../img/tech/aws.svg');
}
.logo-item__mark--odoo {
  -webkit-mask-image: url('../img/tech/odoo.svg');
  mask-image: url('../img/tech/odoo.svg');
}

@keyframes logo-marquee-scroll {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(calc(-100% / var(--logo-groups, 4)), 0, 0);
  }
}

/* Reduced motion: show a single static, wrapping row instead of scrolling. */
@media (prefers-reduced-motion: reduce) {
  .logo-marquee {
    -webkit-mask-image: none;
    mask-image: none;
  }
  .logo-marquee__track {
    animation: none;
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 16px;
  }
  .logo-marquee__group {
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 16px;
    padding-inline-end: 0;
  }
  .logo-marquee__group[aria-hidden='true'] {
    display: none;
  }
}
@media (max-width: 820px) {
  .logo-item {
    font-size: 14px;
  }
  .logo-item__mark {
    width: 19px;
    height: 19px;
  }
}

/* --------------------------------------------------------------------------
   10. Services (editorial list)
   -------------------------------------------------------------------------- */
.svc-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: clamp(40px, 5vw, 80px);
  border-bottom: 1px solid var(--line);
}
.svc-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 22px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}
.svc-row__idx {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  padding-top: 5px;
}
.svc-row__title {
  font-family: var(--font-body);
  font-size: 1.22rem;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--ink);
}
.svc-row__text {
  margin-top: 10px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

.svc-more {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 20px;
  margin-top: 26px;
}
.svc-more__label {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tag {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--muted);
  font-size: 13.5px;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.tag:hover {
  color: var(--ink);
  border-color: var(--accent);
  background: var(--panel);
}
@media (max-width: 760px) {
  .svc-list {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   11. Ready systems
   -------------------------------------------------------------------------- */
.systems {
  display: grid;
  gap: 28px;
}
.system {
  display: grid;
  grid-template-columns: 1.02fr 1fr;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r);
}
.system--reverse .system__media {
  order: 2;
}
.system__media {
  position: relative;
  display: grid;
  place-items: center;
  padding: 26px;
  background: radial-gradient(100% 80% at 50% 0%, rgba(47, 57, 169, 0.38), transparent 70%), var(--panel-2);
  border-inline-end: 1px solid var(--line);
  overflow: hidden;
}
.system--reverse .system__media {
  border-inline-end: 1px solid var(--line);
  border-inline-start: 0;
}
.system__body {
  padding: clamp(30px, 3.4vw, 48px);
}
.system__kicker {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.system__title {
  font-size: clamp(1.35rem, 1.1rem + 0.9vw, 1.7rem);
}
.system__text {
  margin-top: 14px;
  max-width: 50ch;
  color: var(--muted);
  line-height: 1.78;
}
.system__features {
  display: grid;
  gap: 0;
  margin-top: 26px;
  border-top: 1px solid var(--line);
}
.feature {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 9px 0;
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.6;
}
.feature + .feature {
  border-top: 1px solid var(--line);
}
.feature svg {
  width: 16px;
  height: 16px;
  margin-top: 3px;
  flex: none;
  color: var(--accent);
}
.system__badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.4;
}
.system__badge::before {
  content: '';
  width: 8px;
  height: 8px;
  flex: none;
  background: var(--accent);
}
.system__cta {
  margin-top: 26px;
}

/* ------------------------------------------------ Framed screenshot */
.shot {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  background: var(--panel);
  overflow: hidden;
  box-shadow: 0 28px 60px -30px rgba(0, 0, 0, 0.95);
}
.shot__screen {
  padding: 0;
}
.shot__screen svg {
  display: block;
  width: 100%;
  height: auto;
}
.shot__screen svg {
  width: 100%;
  height: auto;
}

@media (max-width: 900px) {
  .system,
  .system--reverse {
    grid-template-columns: 1fr;
  }
  .system__media,
  .system--reverse .system__media {
    order: 0;
    border-inline: 0;
    border-bottom: 1px solid var(--line);
    padding: 24px;
  }
  .system__features {
    margin-top: 20px;
  }
}

/* --------------------------------------------------------------------------
   12. Process
   -------------------------------------------------------------------------- */
.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}
.process__step {
  padding: 26px 26px 0;
  border-inline-start: 1px solid var(--line);
}
.process__step:first-child {
  border-inline-start: 0;
  padding-inline-start: 0;
}
.process__num {
  display: block;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 40px;
}
.process__title {
  font-family: var(--font-body);
  font-size: 1.08rem;
  font-weight: 600;
}
.process__text {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.7;
}
@media (max-width: 900px) {
  .process {
    grid-template-columns: 1fr 1fr;
  }
  .process__step {
    padding: 24px 22px;
    border-top: 1px solid var(--line);
  }
  .process__step:nth-child(odd) {
    border-inline-start: 0;
    padding-inline-start: 0;
  }
  .process__num {
    margin-bottom: 20px;
  }
}
@media (max-width: 560px) {
  .process {
    grid-template-columns: 1fr;
  }
  .process__step {
    border-inline-start: 0;
    padding-inline: 0;
  }
}

/* --------------------------------------------------------------------------
   13. Why
   -------------------------------------------------------------------------- */
.why-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.why-item {
  padding: 30px 34px;
  border-top: 1px solid var(--line);
  border-inline-start: 1px solid var(--line);
}
.why-item:nth-child(odd) {
  border-inline-start: 0;
  padding-inline-start: 0;
}
.why-item__idx {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
}
.why-item__title {
  margin-top: 14px;
  font-family: var(--font-body);
  font-size: 1.18rem;
  font-weight: 600;
  color: var(--ink);
}
.why-item__text {
  margin-top: 10px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}
@media (max-width: 700px) {
  .why-list {
    grid-template-columns: 1fr;
  }
  .why-item {
    border-inline-start: 0;
    padding-inline: 0;
  }
}

/* --------------------------------------------------------------------------
   14. CTA band
   -------------------------------------------------------------------------- */
.cta__box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: clamp(36px, 4vw, 56px) clamp(28px, 4vw, 56px);
  border-radius: var(--r);
  background: var(--dark);
  color: var(--dark-text);
}
.cta__title {
  color: #fff;
  font-size: clamp(1.4rem, 1.05rem + 1.8vw, 2.15rem);
  max-width: 560px;
}
.cta__lead {
  margin-top: 14px;
  max-width: 520px;
  color: var(--dark-muted);
  font-size: 15px;
  line-height: 1.7;
}
.cta__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  flex: none;
}
.cta__btn {
  --btn-bg: #fff;
  --btn-fg: var(--accent-ink);
}
.cta__btn:hover {
  --btn-bg: #e6e7ff;
}
.cta__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--dark-text);
  font-size: 15px;
  border-bottom: 1px solid var(--dark-line);
  padding-bottom: 2px;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.cta__link:hover {
  color: #fff;
  border-color: #fff;
}
.cta__link svg {
  width: 17px;
  height: 17px;
}
@media (max-width: 820px) {
  .cta__box {
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
  }
}

/* --------------------------------------------------------------------------
   15. Contact
   -------------------------------------------------------------------------- */
.contact {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
  align-items: start;
}
@media (max-width: 900px) {
  .contact {
    grid-template-columns: 1fr;
  }
}

.form {
  padding: clamp(26px, 3vw, 38px);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r);
}
.form__row {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}
.form label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--muted);
  text-transform: uppercase;
}
.form input,
.form select,
.form textarea {
  width: 100%;
  padding: 13px 14px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.form textarea {
  min-height: 128px;
  resize: vertical;
}
.form select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-inline-end: 38px;
}
[dir='rtl'] .form select {
  background-position: 20px 50%, 15px 50%;
}
.form input::placeholder,
.form textarea::placeholder {
  color: var(--faint);
}
.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: none;
  background: var(--bg);
  border-color: var(--accent);
}
.form input:user-invalid,
.form textarea:user-invalid,
.form select:user-invalid {
  border-color: #b0403a;
}
.form__error {
  color: #9d3a36;
  font-size: 13px;
  min-height: 1px;
}
.form__hp {
  position: absolute;
  top: 0;
  inset-inline-start: 0;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.form__status {
  display: none;
  margin-top: 16px;
  padding: 13px 16px;
  border-radius: var(--r-sm);
  font-size: 14.5px;
  line-height: 1.5;
}
.form__status.is-ok {
  display: block;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  color: var(--accent-ink);
}
.form__status.is-err {
  display: block;
  background: rgba(176, 64, 58, 0.08);
  border: 1px solid rgba(176, 64, 58, 0.3);
  color: #9d3a36;
}
.form__submit {
  margin-top: 6px;
}

.contact-aside {
  display: grid;
  gap: 16px;
}
.contact-card {
  padding: 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r);
}
.contact-card__label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact-card__value {
  margin-top: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink);
  word-break: break-word;
}
.contact-card__hint {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}
.copy-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.copy-btn:hover {
  color: var(--ink);
  border-color: var(--accent);
  background: var(--panel-2);
}
.copy-btn svg {
  width: 15px;
  height: 15px;
}
.copy-btn.is-copied {
  color: var(--accent);
  border-color: var(--accent);
}

/* --------------------------------------------------------------------------
   16. Footer
   -------------------------------------------------------------------------- */
.footer {
  background: var(--dark);
  color: var(--dark-text);
  padding-block: clamp(52px, 6vw, 76px) 0;
}
.footer .brand,
.footer .brand:hover {
  color: #fff;
}
.footer .brand__ops {
  color: var(--brand-accent);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer__about {
  max-width: 320px;
}
.footer__desc {
  margin-top: 18px;
  color: var(--dark-muted);
  font-size: 14px;
  line-height: 1.7;
}
.footer__title {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8f8f98;
  margin-bottom: 18px;
}
.footer__list {
  display: grid;
  gap: 11px;
}
.footer__list a,
.footer__list span {
  color: var(--dark-muted);
  font-size: 14px;
}
.footer__list a:hover {
  color: #fff;
}
.footer__social {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}
.footer__social a,
.footer__social .social-ph {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--dark-line);
  border-radius: var(--r-sm);
  color: var(--dark-muted);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.footer__social a:hover {
  color: #fff;
  border-color: #fff;
}
.footer__social svg {
  width: 17px;
  height: 17px;
}
.footer__bottom {
  margin-top: clamp(40px, 5vw, 60px);
  padding-block: 22px;
  border-top: 1px solid var(--dark-line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  color: #7f7f88;
  font-size: 13px;
}
.footer__bottom .mono {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.02em;
}
@media (max-width: 900px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .footer__about {
    grid-column: 1 / -1;
    max-width: none;
  }
}
@media (max-width: 520px) {
  .footer__grid {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   17. Back to top
   -------------------------------------------------------------------------- */
.to-top {
  position: fixed;
  inset-inline-end: 22px;
  bottom: 22px;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--panel);
  color: var(--muted);
  cursor: pointer;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.to-top.is-visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.to-top:hover {
  color: var(--accent);
  border-color: var(--accent);
}
.to-top svg {
  width: 19px;
  height: 19px;
}

/* --------------------------------------------------------------------------
   18. Reveal on scroll
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .bg-fx__orb,
  .bg-fx__grid {
    animation: none;
  }
}

/* --------------------------------------------------------------------------
   19. Utilities
   -------------------------------------------------------------------------- */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
