@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@300;400;500;600&display=swap");

:root {
  color-scheme: dark;
  --bg: #070810;
  --bg-2: #0b0d1a;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --ink: #eef1fb;
  --ink-soft: #9aa3bd;
  --ink-dim: #6b7390;
  --violet: #9a86ff;
  --blue: #5cb3ff;
  --cyan: #25e0d4;
  --grad: linear-gradient(120deg, #9a86ff 0%, #5cb3ff 50%, #25e0d4 100%);
  --glow-violet: rgba(124, 108, 255, 0.45);
  --glow-cyan: rgba(37, 224, 212, 0.32);
  --radius: 16px;
  --radius-lg: 22px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", "Helvetica Neue", sans-serif;
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

h1,
h2,
h3 {
  font-family: "Space Grotesk", "Inter", sans-serif;
  margin: 0 0 14px;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

/* ---------- Background ---------- */
#net-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(90px);
  opacity: 0.5;
}

.orb-1 {
  width: 520px;
  height: 520px;
  top: -180px;
  right: -120px;
  background: radial-gradient(circle, rgba(124, 108, 255, 0.5), transparent 70%);
}

.orb-2 {
  width: 460px;
  height: 460px;
  bottom: -200px;
  left: -140px;
  background: radial-gradient(circle, rgba(37, 224, 212, 0.4), transparent 70%);
}

.grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 80%);
}

/* ---------- Header ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 7vw;
  background: rgba(7, 8, 16, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

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

.brand-logo {
  width: 42px;
  height: 42px;
  filter: drop-shadow(0 0 10px var(--glow-cyan));
}

.brand-text {
  display: grid;
  line-height: 1.1;
}

.brand-name {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.01em;
}

.brand-name-accent {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-left: 3px;
}

.brand-tag {
  font-size: 11px;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 15px;
  font-weight: 500;
}

.nav a {
  color: var(--ink-soft);
  transition: color 0.2s ease;
}

.nav a:hover,
.nav a.active {
  color: var(--ink);
}

.nav-cta {
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  color: var(--ink) !important;
}

.nav-cta:hover {
  border-color: var(--violet);
  box-shadow: 0 0 22px rgba(124, 108, 255, 0.25);
}

.lang-toggle {
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--ink);
  padding: 7px 13px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.08em;
  cursor: pointer;
  font-family: "Space Grotesk", sans-serif;
}

.menu-toggle {
  display: none;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 16px;
  color: var(--ink);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
}

/* ---------- Layout ---------- */
main {
  position: relative;
  z-index: 1;
}

.section {
  padding: 96px 7vw;
  position: relative;
}

.section.alt {
  background: linear-gradient(180deg, transparent, rgba(124, 108, 255, 0.04), transparent);
}

.section-header {
  max-width: 720px;
  margin: 0 auto 52px;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 11px;
  font-weight: 600;
  color: var(--cyan);
  margin: 0 0 14px;
}

h2 {
  font-size: clamp(28px, 4vw, 40px);
}

.section-lead {
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.6;
  margin: 0;
}

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 56px;
  align-items: center;
  padding: 92px 7vw 80px;
  position: relative;
  z-index: 1;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 15px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-size: 13px;
  color: var(--ink-soft);
  background: var(--surface);
  margin: 0 0 22px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
  animation: pulse 2.4s ease-in-out infinite;
}

.hero h1 {
  font-size: clamp(34px, 5.2vw, 58px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  background: linear-gradient(180deg, #ffffff, #c6cdec);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1.62;
  max-width: 560px;
  margin: 0 0 30px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 24px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  font-family: "Space Grotesk", sans-serif;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.25s ease, border-color 0.2s ease;
}

.btn.primary {
  color: #0a0b14;
  background: var(--grad);
  box-shadow: 0 14px 40px rgba(92, 179, 255, 0.3);
}

.btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 48px rgba(124, 108, 255, 0.42);
}

.btn.ghost {
  color: var(--ink);
  border: 1px solid var(--border-strong);
  background: var(--surface);
}

.btn.ghost:hover {
  border-color: var(--violet);
  transform: translateY(-2px);
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 13.5px;
  color: var(--ink-soft);
}

.chip-ico {
  font-size: 14px;
}

/* ---------- Hero agent card ---------- */
.hero-panel {
  position: relative;
}

.agent-card {
  background: linear-gradient(160deg, rgba(20, 22, 40, 0.92), rgba(12, 14, 28, 0.92));
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.agent-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(154, 134, 255, 0.6), transparent 40%, rgba(37, 224, 212, 0.5));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.agent-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.agent-avatar {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--grad);
  color: #0a0b14;
  font-size: 18px;
  box-shadow: 0 0 18px var(--glow-violet);
}

.agent-head strong {
  font-family: "Space Grotesk", sans-serif;
  display: block;
  font-size: 15px;
}

.agent-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--ink-soft);
}

.dot-live {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
  animation: pulse 1.8s ease-in-out infinite;
}

.agent-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 11px;
}

.agent-steps li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 14px;
  color: var(--ink-soft);
}

.agent-steps .step-ico {
  width: 22px;
  height: 22px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 7px;
  font-size: 11px;
  background: rgba(37, 224, 212, 0.14);
  color: var(--cyan);
}

.agent-steps .step-active {
  color: var(--ink);
  border-color: rgba(154, 134, 255, 0.4);
  background: rgba(124, 108, 255, 0.1);
}

.agent-steps .step-active .step-ico {
  background: rgba(154, 134, 255, 0.2);
  color: var(--violet);
  animation: blink 1.2s steps(2) infinite;
}

.agent-foot {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--cyan);
  text-align: center;
}

/* ---------- Cards (solutions) ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  max-width: 1040px;
  margin: 0 auto;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  background: var(--surface-2);
}

.card-ico {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  font-size: 24px;
  background: rgba(124, 108, 255, 0.12);
  border: 1px solid var(--border);
  margin-bottom: 18px;
}

.card h3 {
  font-size: 20px;
}

.card p {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
}

/* ---------- Steps (process) ---------- */
.steps {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 1080px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  counter-reset: step;
}

.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px;
  position: relative;
}

.step-num {
  font-family: "Space Grotesk", sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.step h3 {
  font-size: 19px;
  margin: 12px 0 8px;
}

.step p {
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.55;
  margin: 0;
}

/* ---------- Cases ---------- */
.cases {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 1080px;
  margin: 0 auto;
}

.case {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.case:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
}

.case-ico {
  font-size: 24px;
  line-height: 1;
}

.case h3 {
  font-size: 16.5px;
  margin: 2px 0 6px;
}

.case p {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
}

/* ---------- Why ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  max-width: 1040px;
  margin: 0 auto;
}

.why {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
}

.why::before {
  content: "";
  position: absolute;
  top: 28px;
  left: 28px;
  width: 34px;
  height: 3px;
  border-radius: 3px;
  background: var(--grad);
}

.why h3 {
  font-size: 19px;
  margin-top: 22px;
}

.why p {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
}

/* ---------- Contact ---------- */
.contact {
  padding-bottom: 110px;
}

.contact-card {
  max-width: 1040px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.7fr);
  gap: 32px;
  align-items: center;
  padding: 44px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
  background: radial-gradient(120% 140% at 0% 0%, rgba(124, 108, 255, 0.16), transparent 55%),
    radial-gradient(120% 140% at 100% 100%, rgba(37, 224, 212, 0.14), transparent 55%),
    rgba(13, 15, 28, 0.7);
  box-shadow: var(--shadow);
}

.contact-card h2 {
  font-size: clamp(26px, 3.4vw, 36px);
}

.contact-card .section-lead {
  font-size: 16px;
}

.contact-actions {
  display: grid;
  gap: 14px;
}

.contact-line {
  display: grid;
  gap: 3px;
  margin-bottom: 4px;
}

.contact-line span {
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--cyan);
}

.contact-line strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 18px;
}

/* ---------- Footer ---------- */
.footer {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  padding: 30px 7vw 46px;
  border-top: 1px solid var(--border);
  color: var(--ink-soft);
  background: rgba(7, 8, 16, 0.7);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-logo {
  width: 38px;
  height: 38px;
  filter: drop-shadow(0 0 8px var(--glow-cyan));
}

.footer-brand strong {
  font-family: "Space Grotesk", sans-serif;
  display: block;
  color: var(--ink);
  font-size: 16px;
}

.footer-brand span {
  font-size: 13px;
}

.footer-meta {
  font-size: 13px;
}

/* ---------- Reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ---------- Animations ---------- */
@keyframes pulse {
  0%, 100% { opacity: 0.45; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.25); }
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-top: 64px;
  }

  .cards,
  .why-grid,
  .cases {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-card {
    grid-template-columns: 1fr;
    padding: 32px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .nav {
    position: absolute;
    top: 72px;
    right: 7vw;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 22px;
    border-radius: 18px;
    border: 1px solid var(--border-strong);
    background: rgba(11, 13, 26, 0.98);
    backdrop-filter: blur(16px);
    box-shadow: var(--shadow);
    display: none;
  }

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

@media (max-width: 560px) {
  .steps {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 72px 6vw;
  }
}

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

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
