:root {
  color-scheme: light;
  --ink: #101c22;
  --muted: #51636d;
  --subtle: #6f8089;
  --paper: #ffffff;
  --panel: #f6f9fb;
  --panel-strong: #eaf2f5;
  --line: #d9e3e8;
  --navy: #07171d;
  --navy-2: #0d252c;
  --teal: #0e7c75;
  --teal-2: #15a196;
  --ice: #dff7f4;
  --amber: #c98712;
  --red: #c03a32;
  --green: #18845c;
  --shadow: 0 22px 70px rgba(11, 29, 35, .12);
  --max: 1180px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-rendering: optimizeLegibility;
}

html.no-js .lang-select { display: none; }

img, svg { max-width: 100%; height: auto; }

a { color: inherit; }

.skip-link {
  position: absolute;
  left: 16px;
  top: -64px;
  z-index: 20;
  background: var(--navy);
  color: white;
  padding: 10px 14px;
  border-radius: 8px;
}

.skip-link:focus { top: 16px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(217, 227, 232, .82);
}

.nav-shell {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 850;
  letter-spacing: 0;
  color: var(--ink);
  min-width: max-content;
}

.brand img { width: 36px; height: 36px; }

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  flex: 1;
  font-size: 14px;
  color: #2c3b42;
}

.nav-links a {
  text-decoration: none;
  white-space: nowrap;
}

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

.lang-select {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  padding: 10px 28px 10px 10px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 12px 17px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
  border: 1px solid transparent;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

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

.button.primary {
  background: var(--teal);
  color: white;
}

.button.secondary {
  background: white;
  color: var(--navy);
  border-color: var(--line);
}

.hero {
  background:
    linear-gradient(180deg, rgba(7, 23, 29, .92), rgba(7, 23, 29, .98)),
    #07171d;
  color: white;
  min-height: 88vh;
  display: grid;
  align-items: center;
}

.hero-shell {
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  padding: 72px 24px 56px;
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  gap: 46px;
  align-items: center;
}

.hero h1 {
  margin: 0;
  max-width: 720px;
  font-size: clamp(48px, 7vw, 84px);
  line-height: .98;
  letter-spacing: 0;
}

.hero-lead {
  max-width: 640px;
  margin: 24px 0 0;
  color: #d6e4e8;
  font-size: 19px;
  line-height: 1.7;
}

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

.hero-actions .secondary {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .22);
  color: white;
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 38px;
  max-width: 720px;
}

.proof-strip span {
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .06);
  border-radius: 8px;
  padding: 12px;
  color: #cfe0e4;
  font-size: 13px;
  font-weight: 750;
}

.hero-media {
  position: relative;
  min-width: 0;
}

.hero-dashboard {
  display: block;
  width: 100%;
  border-radius: 18px;
  box-shadow: 0 36px 110px rgba(0, 0, 0, .45);
  border: 1px solid rgba(255, 255, 255, .16);
  background: #0a2027;
}

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

.hero-caption div {
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, .06);
}

.hero-caption strong {
  display: block;
  color: white;
  font-size: 21px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.hero-caption span {
  display: block;
  color: #aac0c7;
  font-size: 12px;
  margin-top: 4px;
}

.section {
  padding: 84px 24px;
}

.section.alt { background: var(--panel); }

.section.dark {
  background: var(--navy);
  color: white;
}

.section-shell {
  max-width: var(--max);
  margin: 0 auto;
}

.section-head {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(34px, 4.8vw, 56px);
  line-height: 1.06;
}

.section-head p {
  margin: 18px 0 0;
  font-size: 18px;
  line-height: 1.72;
  color: var(--muted);
}

.dark .section-head p,
.dark .muted { color: #bfd1d6; }

.grid {
  display: grid;
  gap: 16px;
}

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

.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  min-height: 190px;
}

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

.card p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

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

.module {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
}

.module img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  margin-bottom: 18px;
}

.module h3 { margin: 0; }
.module p { margin: 10px 0 0; color: var(--muted); line-height: 1.62; }

.workflow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  counter-reset: step;
}

.step {
  position: relative;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
}

.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: inline-flex;
  margin-bottom: 22px;
  color: var(--teal);
  font-weight: 900;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.visual-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  align-items: center;
}

.visual-frame {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  padding: 14px;
  box-shadow: var(--shadow);
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 22px;
}

.feature-list span {
  border-left: 3px solid var(--teal);
  background: var(--panel);
  border-radius: 6px;
  padding: 11px 12px;
  color: #22323a;
  font-weight: 750;
  font-size: 14px;
}

.evidence-band {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 28px;
  align-items: center;
}

.dark .visual-frame {
  background: #102a32;
  border-color: rgba(255, 255, 255, .16);
}

.api-panel {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 22px;
  align-items: start;
}

.code-block {
  margin: 0;
  background: #07171d;
  color: #e6fbf8;
  border-radius: 8px;
  padding: 22px;
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, .12);
  font-size: 14px;
  line-height: 1.7;
}

.code-block code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.faq {
  display: grid;
  gap: 12px;
}

.faq details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 18px 20px;
}

.faq summary {
  cursor: pointer;
  font-weight: 850;
}

.faq p {
  color: var(--muted);
  line-height: 1.65;
  margin: 12px 0 0;
}

.cta {
  background: #0a242b;
  color: white;
  border-radius: 18px;
  padding: 48px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
}

.cta h2 {
  margin: 0;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.06;
}

.cta p {
  margin: 16px 0 0;
  color: #cfe0e4;
  line-height: 1.65;
  max-width: 720px;
}

.footer {
  padding: 34px 24px;
  background: var(--navy);
  color: #b9cbd0;
}

.footer-shell {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
}

.locale-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
}

.locale-links a { color: #d8e7eb; text-decoration: none; }

.api-page {
  background: var(--panel);
}

.doc-hero {
  padding: 76px 24px;
  background: var(--navy);
  color: white;
}

.doc-shell {
  max-width: 940px;
  margin: 0 auto;
}

.doc-shell h1 {
  margin: 0;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.02;
}

.doc-shell p {
  color: #cfe0e4;
  line-height: 1.7;
  font-size: 18px;
}

html[dir="rtl"] .nav-shell,
html[dir="rtl"] .hero-shell,
html[dir="rtl"] .visual-row,
html[dir="rtl"] .evidence-band,
html[dir="rtl"] .api-panel,
html[dir="rtl"] .cta,
html[dir="rtl"] .footer-shell {
  direction: rtl;
}

@media (max-width: 980px) {
  .nav-shell { flex-wrap: wrap; }
  .nav-links { order: 3; flex-basis: 100%; justify-content: flex-start; overflow-x: auto; padding-bottom: 4px; }
  .hero-shell,
  .visual-row,
  .evidence-band,
  .api-panel,
  .cta {
    grid-template-columns: 1fr;
  }
  .grid.three,
  .platform-grid,
  .workflow {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero { min-height: auto; }
}

@media (max-width: 640px) {
  .nav-actions { width: 100%; justify-content: space-between; }
  .hero-shell { padding-top: 44px; }
  .hero h1 { font-size: 42px; }
  .proof-strip,
  .hero-caption,
  .grid.three,
  .grid.two,
  .platform-grid,
  .workflow,
  .feature-list {
    grid-template-columns: 1fr;
  }
  .section { padding: 64px 18px; }
  .cta { padding: 30px; }
}
