:root {
  --bg: #07111f;
  --bg-soft: #0b1728;
  --panel: #0f1e31;
  --panel-2: #13243a;
  --text: #f7fbff;
  --muted: #99a9bd;
  --line: rgba(255,255,255,.09);
  --accent: #63e6be;
  --accent-2: #74c0fc;
  --shadow: 0 24px 70px rgba(0,0,0,.28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

.grid-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 85%);
  z-index: -1;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  background: rgba(7,17,31,.76);
  border-bottom: 1px solid var(--line);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -.02em;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #06111d;
  font-size: 13px;
  font-weight: 900;
}

.nav-links {
  display: flex;
  gap: 28px;
  color: var(--muted);
  font-size: 14px;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.language-switch {
  display: flex;
  flex-shrink: 0;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.language-switch a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.language-switch a[aria-current="page"] {
  background: var(--accent);
  color: var(--bg);
}

.language-switch a:hover {
  color: var(--text);
  background: var(--panel-2);
}

.language-switch a:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
}

@media (max-width: 1200px) {
  .nav-links {
    display: none;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 20px;
  border-radius: 12px;
  font-weight: 700;
  transition: .2s ease;
  border: 1px solid transparent;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-small {
  padding: 10px 14px;
  font-size: 14px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #05101c;
  box-shadow: 0 10px 28px rgba(99,230,190,.18);
}

.btn-outline {
  border-color: var(--line);
  background: rgba(255,255,255,.03);
}

.btn-ghost {
  color: var(--muted);
}

.hero {
  padding: 110px 0 90px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  align-items: center;
  gap: 72px;
}

.eyebrow {
  display: inline-block;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
  margin-bottom: 18px;
}

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

h1 {
  font-size: clamp(48px, 6vw, 76px);
  line-height: 1.02;
  letter-spacing: -.055em;
  margin-bottom: 24px;
}

h2 {
  font-size: clamp(34px, 4vw, 50px);
  line-height: 1.08;
  letter-spacing: -.04em;
  margin-bottom: 18px;
}

h3 {
  font-size: 19px;
  letter-spacing: -.02em;
  margin-bottom: 10px;
}

.gradient-text {
  display: block;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  max-width: 680px;
  font-size: 20px;
  color: var(--muted);
  margin-bottom: 34px;
}

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

.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 42px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.hero-proof div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero-proof strong {
  font-size: 14px;
}

.hero-proof span {
  font-size: 13px;
  color: var(--muted);
}

.hero-panel {
  background:
    radial-gradient(circle at top right, rgba(116,192,252,.12), transparent 30%),
    linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.panel-top {
  display: flex;
  align-items: center;
  gap: 9px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 16px var(--accent);
}

.system-map {
  padding: 28px 4px 24px;
}

.node {
  background: rgba(255,255,255,.04);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px 12px;
  text-align: center;
  font-size: 13px;
  color: #cbd7e6;
}

.node-main {
  max-width: 210px;
  margin: 0 auto;
  background: rgba(99,230,190,.08);
  border-color: rgba(99,230,190,.22);
  color: var(--text);
  font-weight: 700;
}

.connector {
  width: 1px;
  height: 28px;
  background: var(--line);
  margin: 0 auto;
}

.node-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 10px;
}

.agent-card {
  margin-top: 6px;
  padding: 18px;
  border-radius: 16px;
  background: rgba(255,255,255,.035);
  border: 1px solid var(--line);
}

.agent-label {
  display: block;
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 10px;
}

.agent-card p {
  margin-bottom: 14px;
  color: #d8e2ef;
  font-size: 14px;
}

.agent-result {
  display: flex;
  gap: 9px;
  color: var(--muted);
  font-size: 12px;
}

.agent-result span:first-child {
  color: var(--accent);
}

.logos-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 26px 0;
}

.logos-strip p {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 14px;
}

.logo-list {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 30px;
  color: #b8c6d8;
  font-size: 14px;
  font-weight: 700;
}

.section {
  padding: 100px 0;
}

.section-dark {
  background: rgba(255,255,255,.025);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 48px;
}

.section-heading p,
.muted,
.why-copy p {
  color: var(--muted);
  font-size: 18px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.service-card {
  min-height: 230px;
  padding: 24px;
  border-radius: 18px;
  background: rgba(255,255,255,.025);
  border: 1px solid var(--line);
}

.service-card p {
  color: var(--muted);
  font-size: 14px;
}

.icon {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  margin-bottom: 30px;
  background: rgba(99,230,190,.08);
  color: var(--accent);
  border: 1px solid rgba(99,230,190,.18);
  font-size: 12px;
  font-weight: 800;
}

.split-section {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 60px;
}

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

#rag .service-card p,
.rag-example p {
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: 0;
}

.rag-example {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 24px;
  padding: 28px;
  border: 1px solid rgba(99,230,190,.18);
  border-radius: 18px;
  background: rgba(99,230,190,.045);
}

.rag-example > div {
  flex: 1 1 420px;
  min-width: 0;
}

.rag-example .agent-label {
  font-size: .875rem;
}

.dept-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.dept-card {
  padding: 22px;
  border-radius: 16px;
  background: rgba(255,255,255,.025);
  border: 1px solid var(--line);
}

.dept-card p {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 0;
}

.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}

.process-step {
  padding: 28px;
  min-height: 230px;
  border-right: 1px solid var(--line);
  background: rgba(255,255,255,.02);
}

.process-step:last-child {
  border-right: 0;
}

.process-step > span {
  display: inline-flex;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  background: rgba(116,192,252,.08);
  border: 1px solid rgba(116,192,252,.18);
  color: var(--accent-2);
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 40px;
}

.process-step p {
  color: var(--muted);
  font-size: 14px;
}

.why-grid {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 70px;
  align-items: center;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  gap: 12px;
}

.check-list li {
  color: #dce6f2;
}

.check-list li::before {
  content: "✓";
  color: var(--accent);
  margin-right: 10px;
}

.comparison-card {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 18px;
  align-items: stretch;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255,255,255,.025);
}

.compare-col {
  padding: 22px;
  border-radius: 14px;
  background: rgba(255,255,255,.025);
}

.compare-col.highlight {
  background: rgba(99,230,190,.06);
  border: 1px solid rgba(99,230,190,.16);
}

.compare-label {
  font-size: 13px;
  color: var(--muted);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.compare-col ul {
  padding-left: 18px;
  color: #d7e2ee;
}

.compare-col li {
  margin: 12px 0;
}

.compare-arrow {
  display: flex;
  align-items: center;
  color: var(--accent);
  font-size: 24px;
}

.proof-section {
  padding-top: 10px;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.proof-grid > div {
  padding: 26px;
  border-top: 1px solid var(--line);
}

.metric {
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -.03em;
  margin-bottom: 8px;
}

.proof-grid p {
  color: var(--muted);
  font-size: 14px;
}

.cta-section {
  padding: 60px 0 110px;
}

.cta-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 44px;
  border-radius: 24px;
  border: 1px solid rgba(99,230,190,.18);
  background:
    radial-gradient(circle at right, rgba(116,192,252,.12), transparent 35%),
    rgba(99,230,190,.045);
}

.cta-card > div:first-child {
  max-width: 720px;
}

.cta-card p {
  color: var(--muted);
  margin-bottom: 0;
}

.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 230px;
}

footer {
  border-top: 1px solid var(--line);
  padding: 28px 0;
  color: var(--muted);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-size: 13px;
}

.footer-inner p {
  margin-bottom: 0;
}

@media (max-width: 920px) {
  .nav-links {
    display: none;
  }

  .hero {
    padding-top: 72px;
  }

  .hero-grid,
  .split-section,
  .why-grid {
    grid-template-columns: 1fr;
  }

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

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

  .process-step:nth-child(2) {
    border-right: 0;
  }

  .process-step:nth-child(-n+2) {
    border-bottom: 1px solid var(--line);
  }

  .cta-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .cta-actions {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 28px, 1180px);
  }

  .site-header .btn-small {
    display: none;
  }

  h1 {
    font-size: 46px;
  }

  .hero-proof,
  .card-grid,
  .dept-grid,
  .proof-grid,
  .process {
    grid-template-columns: 1fr;
  }

  .process-step {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .process-step:last-child {
    border-bottom: 0;
  }

  .comparison-card {
    grid-template-columns: 1fr;
  }

  .compare-arrow {
    transform: rotate(90deg);
    justify-content: center;
  }

  .cta-card {
    padding: 28px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

.company-link {
  color: var(--accent-2);
  text-decoration: underline;
  text-underline-offset: .2em;
}

.company-link:hover {
  color: var(--text);
}

.company-link:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
}
