:root {
  --bg: #0b0f14;
  --panel: rgba(255, 255, 255, 0.018);
  --panel-border: rgba(255, 255, 255, 0.08);
  --line: rgba(255, 255, 255, 0.08);
  --text: #e6edf3;
  --muted: #9fb2c3;
  --accent: #2f6bff;
  --container: 1200px;
  --radius: 8px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 18% 14%, rgba(80, 120, 255, 0.08), transparent 32%),
    radial-gradient(circle at 82% 18%, rgba(80, 120, 255, 0.06), transparent 28%),
    linear-gradient(180deg, rgba(19, 27, 42, 0.65), rgba(11, 15, 20, 0.96) 42%),
    var(--bg);
  color: var(--text);
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

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

button,
input,
textarea,
select {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.bg-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.bg-noise {
  z-index: 0;
  background: url("../assets/noise-tile.png") 0 0 / 220px 220px repeat;
  opacity: 0.09;
  mix-blend-mode: screen;
}

.bg-dots {
  z-index: 0;
  background: url("../assets/dot-grid.svg") 0 0 / 600px 600px repeat;
  opacity: 0.16;
}

.bg-circuit {
  z-index: 0;
  background: url("../assets/circuit.svg") center top / cover no-repeat;
  opacity: 0.18;
}

.page {
  position: relative;
  z-index: 1;
}

.container {
  width: min(var(--container), calc(100% - 64px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(11, 15, 20, 0.58);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

#logo {
  width: 48px;
  height: auto;
  flex: 0 0 auto;
}

.brand-copy {
  display: inline-flex;
  flex-direction: column;
  padding-top: 2px;
}

.brand-title {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.brand-subtitle {
  margin-top: -6px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(159, 178, 195, 0.72);
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 12px;
  position: relative;
  border: 1px solid transparent;
  border-radius: 6px;
  color: rgba(230, 237, 243, 0.8);
  text-decoration: none;
  font-size: 0.92rem;
  transition: color 180ms ease, border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: -11px;
  height: 12px;
  border-radius: 999px;
  background: radial-gradient(
    ellipse at center,
    rgba(47, 107, 255, 0.62) 0%,
    rgba(47, 107, 255, 0.26) 48%,
    rgba(47, 107, 255, 0) 78%
  );
  opacity: 0;
  transform: scaleX(0.68);
  filter: blur(9px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.site-nav a::before {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: -2px;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(47, 107, 255, 0) 0%,
    rgba(96, 149, 255, 0.88) 18%,
    rgba(163, 196, 255, 0.94) 50%,
    rgba(96, 149, 255, 0.88) 82%,
    rgba(47, 107, 255, 0) 100%
  );
  opacity: 0;
  transform: scaleX(0.7);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
}

.site-nav a.is-active,
.site-nav a[aria-current="location"] {
  color: #ffffff;
  border-color: transparent;
  background: transparent;
  font-weight: 500;
  box-shadow: none;
  text-shadow: 0 0 12px rgba(109, 159, 255, 0.22);
}

.site-nav a.is-active::before,
.site-nav a[aria-current="location"]::before {
  opacity: 1;
  transform: scaleX(1);
}

.site-nav a.is-active::after,
.site-nav a[aria-current="location"]::after {
  opacity: 1;
  transform: scaleX(1);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 26px;
  border: 1px solid rgba(59, 130, 246, 0.64);
  border-radius: 6px;
  color: var(--text);
  text-decoration: none;
  background: transparent;
  font-size: 0.96rem;
  font-weight: 500;
  transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button-small {
  min-height: 40px;
  padding-inline: 18px;
}

.button-large {
  min-height: 50px;
}

.button-accent {
  background: var(--accent);
  border-color: var(--accent);
}

.button-accent:hover,
.button-accent:focus-visible {
  background: rgba(47, 107, 255, 0.9);
}

.button-outline:hover,
.button-outline:focus-visible {
  background: rgba(47, 107, 255, 0.12);
}

.menu-toggle {
  display: none;
  position: relative;
  width: 46px;
  height: 46px;
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: transparent;
  color: var(--text);
}

.menu-toggle-bar {
  position: absolute;
  left: 11px;
  width: 22px;
  height: 1px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-toggle-bar:nth-child(1) {
  top: 15px;
}

.menu-toggle-bar:nth-child(2) {
  top: 22px;
}

.menu-toggle-bar:nth-child(3) {
  top: 29px;
}

.site-header.menu-open .menu-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-header.menu-open .menu-toggle-bar:nth-child(2) {
  opacity: 0;
}

.site-header.menu-open .menu-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero,
.section,
.site-footer {
  position: relative;
}

.hero {
  padding: 128px 0 116px;
  border-bottom: 1px solid var(--line);
}

.hero-grid,
.collaboration-grid,
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px;
  align-items: center;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  max-width: 12ch;
  font-size: clamp(2.35rem, 4.8vw, 3.1rem);
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.045em;
}

h2 {
  font-size: clamp(1.75rem, 3.2vw, 2.15rem);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

h3 {
  font-size: 1.55rem;
  line-height: 1.25;
  letter-spacing: -0.03em;
}

.hero-lead,
.rich-copy,
.card p,
.cooperation-panel,
.contact-copy p,
.footer-inner {
  color: var(--muted);
}

.hero-lead {
  margin-top: 22px;
  font-size: 1.18rem;
  line-height: 1.8;
}

.hero-copy .button {
  margin-top: 32px;
}

.hero-visual,
.collaboration-art {
  position: relative;
  min-height: 220px;
}

.ant {
  opacity: 0.52;
  mix-blend-mode: screen;
  filter: brightness(1.15) drop-shadow(0 0 30px rgba(92, 137, 255, 0.2));
  user-select: none;
}

.ant-hero {
  position: absolute;
  right: -76px;
  top: -46px;
  width: min(100%, 760px);
}

.section {
  padding: 104px 0;
  border-bottom: 1px solid var(--line);
}

.section[id] {
  scroll-margin-top: 112px;
}

.section-title {
  max-width: 16ch;
  font-size: clamp(1.9rem, 3.4vw, 2.3rem);
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.04em;
}

.section-intro {
  max-width: 62rem;
  margin-bottom: 28px;
}

.section-title-wide {
  max-width: 22ch;
}

.section-lead {
  max-width: 50rem;
  margin-top: 22px;
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.75;
}

.rich-copy {
  max-width: 46rem;
  display: grid;
  gap: 20px;
  font-size: 1.06rem;
}

.section-approach {
  background:
    radial-gradient(circle at 86% 24%, rgba(47, 107, 255, 0.08), transparent 24%),
    radial-gradient(circle at 88% 76%, rgba(47, 107, 255, 0.05), transparent 28%);
  overflow: hidden;
}

.section-approach::before,
.section-approach::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.section-approach::before {
  top: 88px;
  right: -140px;
  width: 520px;
  height: 520px;
  background-image:
    radial-gradient(circle, rgba(230, 234, 242, 0.5) 0 2px, transparent 3px),
    linear-gradient(rgba(230, 234, 242, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(230, 234, 242, 0.08) 1px, transparent 1px);
  background-size: 64px 64px, 64px 64px, 64px 64px;
  mask-image: radial-gradient(circle at center, black 18%, transparent 72%);
  opacity: 0.16;
  transform: rotate(8deg);
}

.section-approach::after {
  right: -80px;
  bottom: -140px;
  width: 420px;
  height: 420px;
  background-image:
    repeating-linear-gradient(0deg, transparent 0 31px, rgba(255, 255, 255, 0.04) 31px 32px),
    repeating-linear-gradient(90deg, transparent 0 31px, rgba(255, 255, 255, 0.04) 31px 32px);
  mask-image: radial-gradient(circle at center, black 20%, transparent 70%);
  opacity: 0.1;
}

.approach-intro,
.approach-bottom {
  position: relative;
  z-index: 1;
}

.approach-intro {
  margin-bottom: 28px;
}

.approach-bottom {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
}

.approach-copy {
  max-width: 46rem;
}

.approach-copy p,
.approach-note p,
.approach-foundation p {
  color: var(--muted);
  font-size: 1.04rem;
}

.approach-copy ul {
  margin: 0;
  padding-left: 1.5rem;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.7;
}

.approach-copy li {
  color: inherit;
}

.approach-flow {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin-top: 64px;
}

.approach-flow::before {
  content: "";
  position: absolute;
  left: 5%;
  right: 5%;
  top: 50%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line) 8%, var(--line) 92%, transparent);
  z-index: 0;
}

.approach-step {
  position: relative;
  z-index: 1;
  min-height: 100%;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  padding: 24px 22px 20px;
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  background: rgba(13, 18, 27, 0.7);
  backdrop-filter: blur(4px);
}

.approach-step::before {
  content: "";
  position: absolute;
  top: 50%;
  right: -15px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(47, 107, 255, 0.09);
  transform: translateY(-50%);
}

.approach-step:last-child::before {
  display: none;
}

.approach-step-number {
  margin-bottom: 14px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.94rem;
  letter-spacing: 0.04em;
  color: var(--accent);
}

.approach-step h3,
.approach-note h3,
.approach-foundation h3 {
  margin-bottom: 18px;
  font-size: 1.34rem;
  line-height: 1.18;
  letter-spacing: -0.03em;
  font-weight: 600;
}

.approach-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  align-content: start;
  gap: 8px;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.6;
}

.approach-result {
  margin-top: 18px;
  min-height: 6em;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.approach-result strong {
  color: var(--text);
  font-weight: 500;
}

.approach-bottom {
  margin-top: 64px;
  align-items: start;
}

.approach-note,
.approach-foundation {
  position: relative;
  z-index: 1;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.approach-foundation {
  padding: 28px;
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  background: rgba(15, 17, 21, 0.42);
}

.approach-formula {
  position: relative;
  z-index: 1;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.94rem;
  line-height: 1.8;
  text-align: center;
  letter-spacing: 0.02em;
  color: var(--text);
}

.approach-formula span {
  color: var(--accent);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.card,
.cooperation-panel,
.contact-card {
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  background: var(--panel);
}

.card {
  min-height: 100%;
  padding: 28px;
}

.card-icon {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 6px;
  background: rgba(59, 130, 246, 0.08);
}

.card-icon svg {
  width: 22px;
  height: 22px;
  stroke: #6a92d6;
  fill: none;
  stroke-width: 1.35;
}

.card h3 {
  margin-bottom: 14px;
  font-size: 1.34rem;
  line-height: 1.18;
  letter-spacing: -0.03em;
}

.card p {
  font-size: 1rem;
}

.collaboration-grid {
  align-items: start;
}

.cooperation-panel {
  padding: 28px 30px;
}

.cooperation-panel > p {
  margin-bottom: 18px;
  color: var(--text);
}

.cooperation-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.cooperation-list li {
  position: relative;
  padding-left: 18px;
}

.cooperation-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 8px;
  height: 1px;
  background: #6a92d6;
}

.collaboration-art {
  margin-top: 28px;
  min-height: 120px;
}

.ant-bottom {
  width: min(100%, 620px);
  margin-left: auto;
}

.contact-grid {
  align-items: start;
}

.contact-copy {
  display: grid;
  gap: 22px;
  max-width: 34rem;
}

.contact-note {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.contact-card {
  padding: 28px 30px;
  display: grid;
  gap: 18px;
}

.contact-card a {
  text-decoration: none;
  font-size: 1.02rem;
  color: var(--text);
}

.contact-card a:hover,
.contact-card a:focus-visible {
  color: #8fb3ff;
}

.site-footer {
  padding: 22px 0 34px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 24px;
  align-items: center;
  font-size: 0.9rem;
}

.footer-links,
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-links a {
  text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--text);
}

.reveal {
  opacity: 1;
  transform: translateY(0);
}

body.is-animated .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 680ms ease, transform 680ms ease;
}

body.is-animated .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1024px) {
  .hero-grid,
  .collaboration-grid,
  .contact-grid,
  .approach-intro,
  .approach-bottom {
    grid-template-columns: 1fr;
  }

  .cards,
  .approach-flow {
    grid-template-columns: 1fr;
  }

  .approach-flow::before,
  .approach-step::before {
    display: none;
  }

  h1 {
    max-width: none;
  }

  .hero-visual,
  .collaboration-art {
    min-height: 180px;
  }

  .ant-hero {
    position: relative;
    inset: auto;
    width: min(100%, 640px);
    margin-left: auto;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .header-controls {
    position: absolute;
    top: calc(100% + 10px);
    left: 20px;
    right: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(11, 15, 20, 0.94);
  }

  .site-header.menu-open .header-controls {
    display: flex;
  }

  .site-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .header-controls .button {
    width: 100%;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(var(--container), calc(100% - 32px));
  }

  .hero {
    padding-top: 92px;
    padding-bottom: 82px;
  }

  .section {
    padding-top: 76px;
    padding-bottom: 76px;
  }

  .hero-lead {
    font-size: 1.04rem;
  }

  .approach-flow {
    gap: 20px;
    margin-top: 44px;
  }

  .approach-bottom {
    margin-top: 48px;
  }

  .approach-step,
  .approach-foundation {
    padding: 24px;
  }

  .approach-step h3 {
    min-height: auto;
    font-size: 1.22rem;
  }

  .approach-formula {
    margin-top: 42px;
    text-align: left;
  }

  .section-intro {
    margin-bottom: 32px;
  }

  .section-lead {
    margin-top: 18px;
    font-size: 1rem;
  }

  .card,
  .cooperation-panel,
  .contact-card {
    padding: 24px;
  }

  .ant-hero,
  .ant-bottom {
    width: 100%;
  }

  .footer-links,
  .footer-legal {
    gap: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  body.is-animated .reveal {
    opacity: 1;
    transform: none;
  }
}
