:root {
  --bg: #0b0e14;
  --bg-2: #0f131b;
  --surface: #131924;
  --surface-2: #19202d;
  --border: #232b3a;
  --text: #e6edf3;
  --muted: #8b949e;
  --faint: #5b6472;
  --accent: #3ee6a8;
  --accent-ink: #062016;
  --accent-2: #7fe6ff;
  --radius: 14px;
  --max: 1120px;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
code, kbd, .mono { font-family: var(--mono); }
kbd {
  font-size: .85em;
  padding: .1em .45em;
  border: 1px solid var(--border);
  border-bottom-width: 2px;
  border-radius: 6px;
  background: var(--surface);
  white-space: nowrap;
}
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
/* Visually hidden until focused. Not positioned off-screen, which would add
   horizontal scroll in right-to-left pages. */
.skip { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { width: auto; height: auto; clip-path: none; inset-inline-start: 16px; top: 16px; background: var(--accent); color: var(--accent-ink); padding: 8px 12px; border-radius: 8px; z-index: 10; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 5;
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  background: rgba(11, 14, 20, .72);
  border-bottom: 1px solid rgba(35, 43, 58, .6);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; letter-spacing: -.01em; }
.brand img { width: 28px; height: 28px; }
.nav { display: flex; align-items: center; gap: 28px; font-size: 15px; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover { color: var(--text); }
.nav .btn { color: var(--accent-ink); }
.nav .lang { color: var(--text); border: 1px solid var(--border); border-radius: 8px; padding: 5px 10px; font-size: 14px; }
.nav .lang:hover { background: var(--surface); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 20px; border-radius: 11px;
  font-weight: 650; font-size: 16px; text-decoration: none;
  background: var(--accent); color: var(--accent-ink);
  border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  box-shadow: 0 6px 24px -8px rgba(62, 230, 168, .55);
}
.btn:hover { transform: translateY(-1px); background: #5cf0ba; }
.btn.small { padding: 8px 14px; font-size: 14px; border-radius: 9px; box-shadow: none; }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--border); box-shadow: none; }
.btn.ghost:hover { background: var(--surface); }
.btn[aria-disabled="true"] { background: var(--surface-2); color: var(--muted); box-shadow: none; cursor: default; transform: none; }
.btn svg { width: 18px; height: 18px; }

/* Hero */
.hero { position: relative; padding: 88px 0 40px; text-align: center; }
.hero::before {
  content: ""; position: absolute; inset: -200px 0 auto; height: 700px; z-index: -1;
  background:
    radial-gradient(600px 300px at 50% 30%, rgba(62, 230, 168, .16), transparent 70%),
    radial-gradient(500px 260px at 75% 10%, rgba(127, 230, 255, .10), transparent 70%);
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font: 600 13px/1 var(--mono); letter-spacing: .02em; color: var(--accent);
  border: 1px solid rgba(62, 230, 168, .3); background: rgba(62, 230, 168, .07);
  padding: 7px 12px; border-radius: 999px; margin-bottom: 26px;
}
h1 {
  font-size: clamp(40px, 6.4vw, 72px); line-height: 1.04; letter-spacing: -.035em; font-weight: 800;
  max-width: 900px; margin: 0 auto;
}
h1 .accent { color: var(--accent); }
.lede { color: var(--muted); font-size: clamp(18px, 2.1vw, 21px); max-width: 640px; margin: 22px auto 34px; }
.cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.meta { margin-top: 16px; color: var(--faint); font-size: 14px; }

/* Product shot (illustration built in HTML/CSS) */
.shot { margin: 64px auto 0; max-width: 1040px; display: grid; grid-template-columns: 1fr 340px; gap: 16px; text-align: start; }
.window {
  background: linear-gradient(180deg, #121823, #0d121a);
  border: 1px solid var(--border); border-radius: 14px; overflow: hidden;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .02) inset;
}
.titlebar { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-bottom: 1px solid var(--border); background: rgba(255, 255, 255, .015); }
.dot { width: 12px; height: 12px; border-radius: 50%; background: #3a4150; }
.dot:nth-child(1) { background: #ff5f57; } .dot:nth-child(2) { background: #febc2e; } .dot:nth-child(3) { background: #28c840; }
.titlebar .title { margin-left: 10px; font-size: 12px; color: var(--muted); }
.term { padding: 18px 20px 22px; font: 13.5px/1.65 var(--mono); color: #c9d1d9; min-height: 300px; white-space: pre-wrap; }
.term .p { color: var(--accent); }
.term .dim { color: var(--faint); }
.term .err { color: #ff7b72; }
.term .ok { color: #7ee787; }
.cursor { display: inline-block; width: .55em; height: 1.1em; vertical-align: -.2em; background: var(--accent); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.ai { display: flex; flex-direction: column; }
.ai .body { padding: 14px; display: flex; flex-direction: column; gap: 12px; font-size: 13.5px; flex: 1; }
.bubble-user { align-self: flex-end; background: rgba(62, 230, 168, .14); border-radius: 10px; padding: 8px 11px; max-width: 90%; }
.bubble-ai { color: #c9d1d9; }
.codeblock { border: 1px solid var(--border); border-radius: 8px; overflow: hidden; background: #0a0e14; }
.codeblock pre { font: 12.5px/1.5 var(--mono); padding: 9px 10px; color: #e6edf3; overflow-x: auto; }
.codeblock .actions { display: flex; gap: 14px; padding: 6px 10px; border-top: 1px solid var(--border); font-size: 12px; color: var(--accent); }
.composer { margin: 0 14px 14px; border: 1px solid var(--border); border-radius: 9px; padding: 9px 11px; color: var(--faint); font-size: 13px; }

/* Sections */
section { padding: 72px 0; }
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.kicker { font: 600 13px/1 var(--mono); color: var(--accent); letter-spacing: .04em; text-transform: uppercase; margin-bottom: 14px; }
h2 { font-size: clamp(30px, 4vw, 44px); line-height: 1.12; letter-spacing: -.025em; font-weight: 780; }
.section-head p { color: var(--muted); margin-top: 16px; font-size: 18px; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card {
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--border); border-radius: var(--radius); padding: 26px;
}
.card .icon {
  width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center;
  background: rgba(62, 230, 168, .1); color: var(--accent); margin-bottom: 18px;
}
.card .icon svg { width: 22px; height: 22px; }
.card h3 { font-size: 18px; margin-bottom: 8px; letter-spacing: -.01em; }
.card p { color: var(--muted); font-size: 15.5px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.steps { list-style: none; display: grid; gap: 18px; counter-reset: s; }
.steps li { position: relative; padding-inline-start: 52px; }
.steps li::before {
  counter-increment: s; content: counter(s);
  position: absolute; inset-inline-start: 0; top: 0; width: 34px; height: 34px; border-radius: 9px;
  display: grid; place-items: center; font: 700 14px var(--mono);
  color: var(--accent); background: rgba(62, 230, 168, .1); border: 1px solid rgba(62, 230, 168, .25);
}
.steps h3 { font-size: 17px; margin-bottom: 4px; }
.steps p { color: var(--muted); font-size: 15.5px; }
.note { margin-top: 26px; color: var(--muted); font-size: 15px; border-inline-start: 2px solid var(--accent); padding-inline-start: 14px; }

.config {
  background: #0a0e14; border: 1px solid var(--border); border-radius: var(--radius);
  font: 14px/1.7 var(--mono); padding: 22px 24px; color: #c9d1d9; overflow-x: auto; white-space: pre;
}
.config .c { color: var(--faint); } .config .k { color: var(--accent-2); } .config .v { color: #ffa657; }

.band {
  border: 1px solid var(--border); border-radius: 22px; padding: 56px 40px; text-align: center;
  background:
    radial-gradient(500px 220px at 50% 0%, rgba(62, 230, 168, .14), transparent 70%),
    linear-gradient(180deg, var(--surface), var(--bg-2));
}
.band h2 { margin-bottom: 12px; }
.band p { color: var(--muted); margin-bottom: 28px; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 40px 0 56px; color: var(--faint); font-size: 14px; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.site-footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); }

/* Long-form pages */
.doc { max-width: 760px; padding: 72px 24px 96px; margin: 0 auto; }
.doc h1 { font-size: clamp(34px, 5vw, 48px); text-align: start; margin: 0 0 8px; }
.doc .updated { color: var(--faint); margin-bottom: 40px; font-size: 15px; }
.doc h2 { font-size: 24px; margin: 40px 0 12px; }
.doc p, .doc li { color: #c3cad3; margin-bottom: 12px; }
.doc ul { padding-inline-start: 22px; }
.doc a { color: var(--accent); }
.doc a.btn { color: var(--accent-ink); }
.doc pre { background: #0a0e14; border: 1px solid var(--border); border-radius: 10px; padding: 16px; font: 13px/1.6 var(--mono); white-space: pre-wrap; color: #c3cad3; }

@media (max-width: 960px) {
  .shot { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav a:not(.btn):not(.lang) { display: none; }
  .nav { gap: 12px; }
  .hero { padding: 56px 0 48px; }
  .grid { grid-template-columns: 1fr; }
  section { padding: 72px 0; }
  .band { padding: 40px 22px; }
  .term { font-size: 12px; min-height: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cursor { animation: none; }
  .btn { transition: none; }
}

/* Right-to-left (Hebrew). Terminal output, code and shortcuts stay left-to-right. */
[dir="rtl"] body { font-family: -apple-system, BlinkMacSystemFont, "SF Hebrew", "Segoe UI", "Arial Hebrew", Arial, sans-serif; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3 { letter-spacing: 0; }
[dir="rtl"] h1 { line-height: 1.12; }
[dir="rtl"] .kicker, [dir="rtl"] .eyebrow { font-family: inherit; letter-spacing: 0; text-transform: none; font-size: 14px; }
[dir="rtl"] .term, [dir="rtl"] .config, [dir="rtl"] pre, [dir="rtl"] .titlebar .title,
[dir="rtl"] .codeblock .actions, [dir="rtl"] .composer { direction: ltr; text-align: left; }
[dir="rtl"] code, [dir="rtl"] kbd, .ltr { direction: ltr; unicode-bidi: isolate; }
[dir="rtl"] .titlebar { flex-direction: row; direction: ltr; }
