:root {
  --navy-950: #07111f;
  --navy-900: #0a1424;
  --navy-800: #10213a;
  --ink: #101828;
  --muted: #5d6a7c;
  --line: #dce4ef;
  --soft: #f4f7fb;
  --white: #ffffff;
  --blue: #3977ff;
  --violet: #8b5cf6;
  --cyan: #41d7ff;
  --shadow: 0 24px 70px rgba(12, 29, 55, 0.14);
  --radius: 8px;
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--white);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

.site-header {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  width: min(calc(100% - 32px), 1180px);
  margin: 16px auto 0;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(7, 17, 31, 0.72);
  color: var(--white);
  backdrop-filter: blur(18px);
  transition: background 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(7, 17, 31, 0.93);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--white);
  font-weight: 850;
  letter-spacing: 0;
}

.brand-mark {
  position: relative;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.28), transparent 36%),
    linear-gradient(135deg, #4f7dff 0%, #7b61ff 52%, #42d8ff 100%);
  box-shadow: 0 12px 30px rgba(57, 119, 255, 0.30);
  overflow: hidden;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 7px 5px 5px 14px;
  border-radius: 9px 5px 7px 12px;
  background: rgba(7, 17, 31, 0.18);
  transform: rotate(38deg);
}

.site-nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 26px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.95rem;
}

.site-nav a {
  transition: color 160ms ease;
}

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

.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 750;
  letter-spacing: 0;
}

.header-cta {
  padding: 0 18px;
  background: var(--white);
  color: var(--navy-950);
}

.nav-toggle {
  display: none;
}

.section-inner {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
}

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

.section-dark {
  color: var(--white);
  background:
    radial-gradient(circle at 78% 20%, rgba(139, 92, 246, 0.30), transparent 32%),
    radial-gradient(circle at 14% 74%, rgba(65, 215, 255, 0.16), transparent 30%),
    linear-gradient(145deg, var(--navy-950), var(--navy-900) 52%, #101b33);
}

.section-light {
  background: var(--white);
}

.section-soft {
  background:
    linear-gradient(180deg, rgba(244, 247, 251, 0.75), #fff 100%);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 122px 0 92px;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.32), transparent);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(410px, 1fr);
  align-items: start;
  gap: 58px;
}

.hero-copy {
  padding-top: 72px;
}

.hero-visual {
  padding-top: 20px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-dark .eyebrow {
  color: #8fdcff;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(3rem, 4.15vw, 4.65rem);
  line-height: 1.12;
  letter-spacing: 0;
}

.headline-highlight {
  color: #7f89ff;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 1.14rem;
  line-height: 1.25;
  letter-spacing: 0;
}

.hero-subtitle {
  max-width: 640px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: clamp(1.06rem, 2vw, 1.28rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  padding: 0 22px;
}

.button-primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--blue), var(--violet));
  box-shadow: 0 18px 44px rgba(57, 119, 255, 0.28);
}

.button-secondary {
  color: var(--white);
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-visual {
  position: relative;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 10% -8% -8% 10%;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(57, 119, 255, 0.35), rgba(139, 92, 246, 0.20));
  filter: blur(28px);
}

.dashboard-shell {
  position: relative;
  min-height: 430px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 40px 110px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(18px);
}

.dashboard-top {
  display: flex;
  gap: 7px;
  padding: 0 0 18px;
}

.dashboard-top span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.40);
}

.dashboard-main {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 14px;
}

.metric-card {
  min-height: 132px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(6, 15, 29, 0.55);
}

.metric-card-large {
  min-height: 240px;
  grid-row: span 2;
}

.metric-card-wide {
  grid-column: 1 / -1;
}

.metric-card p {
  margin: 0 0 8px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.86rem;
}

.metric-card strong {
  display: block;
  color: var(--white);
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1.1;
}

.line-chart {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  align-items: end;
  gap: 9px;
  height: 110px;
  margin-top: 28px;
}

.line-chart i,
.mini-bars i {
  display: block;
  border-radius: 8px 8px 2px 2px;
  background: linear-gradient(180deg, var(--cyan), var(--blue));
  animation: rise 5s ease-in-out infinite;
}

.line-chart i:nth-child(1) { height: 36%; }
.line-chart i:nth-child(2) { height: 58%; animation-delay: 0.15s; }
.line-chart i:nth-child(3) { height: 44%; animation-delay: 0.30s; }
.line-chart i:nth-child(4) { height: 74%; animation-delay: 0.45s; }
.line-chart i:nth-child(5) { height: 62%; animation-delay: 0.60s; }
.line-chart i:nth-child(6) { height: 88%; animation-delay: 0.75s; }

.mini-bars {
  display: flex;
  align-items: end;
  gap: 8px;
  height: 42px;
  margin-top: 18px;
}

.mini-bars i {
  width: 22%;
}

.mini-bars i:nth-child(1) { height: 40%; }
.mini-bars i:nth-child(2) { height: 70%; }
.mini-bars i:nth-child(3) { height: 52%; }
.mini-bars i:nth-child(4) { height: 86%; }

.pulse-row {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}

.pulse-row i {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--violet), var(--blue));
  box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.38);
  animation: pulse 2.4s ease-out infinite;
}

.pulse-row i:nth-child(2) { animation-delay: 0.25s; }
.pulse-row i:nth-child(3) { animation-delay: 0.50s; }

.status-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin-top: 18px;
}

.status-grid span {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.status-grid span:nth-child(odd) {
  background: linear-gradient(90deg, var(--blue), var(--cyan));
}

.about,
.services,
.workflow,
.values,
.contact {
  padding: 92px 0;
}

.cooperation,
.compliance {
  padding: 100px 0;
}

.split-layout,
.contact-grid,
.compliance-grid {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: 70px;
  align-items: start;
}

.section-heading p,
.body-copy p {
  color: var(--muted);
  font-size: 1.05rem;
}

.section-dark .section-heading p,
.section-dark .model-card p,
.section-dark .compliance-panel p {
  color: rgba(255, 255, 255, 0.68);
}

.centered {
  max-width: 700px;
  margin: 0 auto 42px;
  text-align: center;
}

.narrow {
  max-width: 760px;
  margin-bottom: 42px;
}

.card-grid {
  display: grid;
  gap: 18px;
}

.card-grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.service-card,
.value-card,
.model-card,
.timeline-step,
.contact-form,
.compliance-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 18px 48px rgba(12, 29, 55, 0.08);
}

.service-card,
.value-card {
  min-height: 234px;
  padding: 24px;
}

.service-card p,
.value-card p,
.timeline-step p {
  margin: 14px 0 0;
  color: var(--muted);
}

.icon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 26px;
  border-radius: var(--radius);
  color: var(--white);
  background: linear-gradient(135deg, var(--blue), var(--violet));
  font-size: 0.8rem;
  font-weight: 900;
}

.model-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.model-card {
  min-height: 210px;
  padding: 24px;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.04)),
    rgba(255, 255, 255, 0.04);
  box-shadow: none;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
}

.timeline-step {
  position: relative;
  min-height: 216px;
  padding: 26px;
  border-radius: 0;
  box-shadow: none;
}

.timeline-step:first-child {
  border-radius: var(--radius) 0 0 var(--radius);
}

.timeline-step:last-child {
  border-radius: 0 var(--radius) var(--radius) 0;
}

.timeline-step + .timeline-step {
  border-left: 0;
}

.timeline-step span {
  display: block;
  margin-bottom: 32px;
  color: var(--blue);
  font-weight: 900;
}

.compliance-panel {
  padding: 30px;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.compliance-panel dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 30px 0 0;
}

.compliance-panel dl div {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(7, 17, 31, 0.42);
}

.compliance-panel dt {
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.84rem;
}

.compliance-panel dd {
  margin: 5px 0 0;
  font-weight: 800;
}

.mail-link {
  display: inline-flex;
  margin-top: 10px;
  color: var(--blue);
  font-weight: 800;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 28px;
}

.contact-form label {
  display: grid;
  gap: 8px;
}

.contact-form span {
  color: #334155;
  font-size: 0.9rem;
  font-weight: 760;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 13px 14px;
  color: var(--ink);
  background: #fbfdff;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(57, 119, 255, 0.72);
  box-shadow: 0 0 0 4px rgba(57, 119, 255, 0.12);
}

.site-footer {
  padding: 62px 0 32px;
  color: rgba(255, 255, 255, 0.72);
  background:
    radial-gradient(circle at 18% 0%, rgba(57, 119, 255, 0.14), transparent 32%),
    radial-gradient(circle at 86% 18%, rgba(139, 92, 246, 0.16), transparent 28%),
    linear-gradient(180deg, #101010, #080d17 68%, #050914);
}

.footer-inner {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.5fr 0.82fr 0.72fr 1.15fr;
  gap: 52px;
  align-items: start;
  padding-bottom: 42px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.site-footer p {
  margin: 18px 0 0;
}

.site-footer a {
  color: inherit;
}

.site-footer a:hover {
  color: var(--white);
}

.footer-company p {
  max-width: 370px;
}

.footer-details {
  display: grid;
  gap: 10px;
  margin: 26px 0 0;
}

.footer-details div {
  display: grid;
  gap: 2px;
}

.footer-details dt,
.footer-column h2,
.footer-cta h2 {
  margin: 0;
  color: rgba(255, 255, 255, 0.95);
  font-size: 1rem;
  line-height: 1.35;
}

.footer-details dt {
  color: rgba(255, 255, 255, 0.46);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.footer-details dd {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 700;
}

.footer-column {
  display: grid;
  gap: 14px;
}

.footer-column a {
  color: rgba(255, 255, 255, 0.62);
  font-weight: 700;
}

.footer-cta {
  display: grid;
  gap: 20px;
  justify-items: start;
}

.footer-cta h2 {
  font-size: clamp(1.2rem, 2vw, 1.55rem);
}

.footer-cta p {
  margin: 0;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  padding-top: 28px;
}

.footer-bottom p {
  margin: 0;
}

.footer-links {
  display: flex;
  gap: 24px;
  align-items: start;
}

.legal-page {
  min-height: 100vh;
  padding: 112px 0 70px;
  background: var(--soft);
}

.legal-card {
  width: min(calc(100% - 40px), 860px);
  margin: 0 auto;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.legal-card h1 {
  color: var(--ink);
  font-size: clamp(2.1rem, 6vw, 3.8rem);
}

.legal-card h2 {
  margin-top: 34px;
  font-size: 1.35rem;
}

.legal-card p,
.legal-card li {
  color: var(--muted);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 650ms ease, transform 650ms ease;
}

.hero .reveal {
  opacity: 1;
  transform: none;
}

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

@keyframes rise {
  0%,
  100% {
    transform: scaleY(0.88);
    opacity: 0.84;
  }
  50% {
    transform: scaleY(1);
    opacity: 1;
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.36);
  }
  70% {
    box-shadow: 0 0 0 16px rgba(139, 92, 246, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(139, 92, 246, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 1020px) {
  .hero-grid,
  .split-layout,
  .contact-grid,
  .compliance-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 42px;
  }

  .hero-copy,
  .hero-visual {
    padding-top: 0;
  }

  .card-grid.four,
  .model-grid,
  .timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .timeline-step,
  .timeline-step:first-child,
  .timeline-step:last-child {
    border-radius: var(--radius);
  }

  .timeline-step + .timeline-step {
    border-left: 1px solid var(--line);
  }
}

@media (max-width: 760px) {
  .site-header {
    grid-template-columns: 1fr auto;
    width: min(calc(100% - 24px), 1180px);
  }

  .header-cta {
    display: none;
  }

  .nav-toggle {
    display: inline-grid;
    gap: 5px;
    align-content: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.08);
    cursor: pointer;
  }

  .nav-toggle span {
    width: 18px;
    height: 2px;
    background: var(--white);
    transition: transform 160ms ease;
  }

  .site-header.is-open .nav-toggle span:first-child {
    transform: translateY(3.5px) rotate(45deg);
  }

  .site-header.is-open .nav-toggle span:last-child {
    transform: translateY(-3.5px) rotate(-45deg);
  }

  .site-nav {
    grid-column: 1 / -1;
    justify-self: stretch;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-top: 8px;
  }

  .site-header.is-open .site-nav {
    display: flex;
  }

  .site-nav a {
    padding: 12px 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.10);
  }

  .hero {
    padding: 120px 0 72px;
  }

  .section-inner {
    width: min(calc(100% - 28px), var(--max));
  }

  .about,
  .services,
  .workflow,
  .values,
  .contact,
  .cooperation,
  .compliance {
    padding: 68px 0;
  }

  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .dashboard-shell {
    min-height: auto;
  }

  .dashboard-main,
  .card-grid.four,
  .model-grid,
  .timeline,
  .compliance-panel dl {
    grid-template-columns: 1fr;
  }

  .metric-card-large,
  .metric-card-wide {
    grid-column: auto;
    grid-row: auto;
  }

  .footer-inner {
    width: min(calc(100% - 28px), var(--max));
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .footer-bottom {
    flex-direction: column;
  }

  .footer-links {
    flex-wrap: wrap;
  }
}

@media (max-width: 440px) {
  h1 {
    font-size: 2.5rem;
  }

  .service-card,
  .value-card,
  .model-card,
  .timeline-step,
  .contact-form,
  .compliance-panel,
  .legal-card {
    padding: 22px;
  }
}
