/* Dark technical theme. Product mockups stay light so they read as real screens. */
@font-face {
  font-family: "Geologica";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("fonts/geologica-cyrillic-wght-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Geologica";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("fonts/geologica-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  src: url("fonts/jetbrains-mono-cyrillic-wght-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  src: url("fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #070a12;
  --card: #0e1420;
  --card-2: #121a29;
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.16);
  --text: #e9edf5;
  --muted: #8e98ae;
  --a1: #38d5f7;
  --a2: #5b7cff;
  --a3: #a26bff;
  --ok: #3ddc97;
  --grad: linear-gradient(100deg, var(--a1), var(--a2) 55%, var(--a3));
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  /* Light palette for the product mockups */
  --ui-ink: #0e1736;
  --ui-muted: #5c6785;
  --ui-line: #dfe4ef;
  --ui-tint: #f1f4fa;
  --ui-blue: #3558f0;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Geologica", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  font-weight: 350;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--a1); outline-offset: 3px; border-radius: 4px; }
.mono { font-family: var(--mono); }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 30; background: #fff; color: #000; padding: 8px 12px; }

/* ---------- Header ---------- */
.top {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(7, 10, 18, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.top-in { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 600; font-size: 16px; text-decoration: none; letter-spacing: -0.01em; }
.brand-mark { width: 30px; height: 30px; flex: none; }
.nav { display: flex; gap: 26px; margin-left: auto; font-size: 15px; }
.nav a { text-decoration: none; color: var(--muted); transition: color 0.15s; }
.nav a:hover { color: var(--text); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 24px;
  font-weight: 550;
  font-size: 16px;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.2s;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-main { background: #fff; color: #070a12; }
.btn-main:hover { box-shadow: 0 0 0 4px rgba(91, 124, 255, 0.35), 0 10px 40px -8px rgba(56, 213, 247, 0.6); }
.btn-line { border-color: var(--line-2); background: rgba(255, 255, 255, 0.03); color: var(--text); }
.btn-line:hover { border-color: rgba(255, 255, 255, 0.4); background: rgba(255, 255, 255, 0.07); }
.top-cta { min-height: 38px; padding: 0 16px; font-size: 15px; border-radius: 10px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(40px, 6vw, 80px) 0 clamp(48px, 7vw, 96px); overflow: hidden; }
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 20%, transparent 75%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 38%;
  width: min(1100px, 120vw);
  height: 620px;
  transform: translateX(-50%);
  background:
    radial-gradient(closest-side at 30% 50%, rgba(56, 213, 247, 0.22), transparent),
    radial-gradient(closest-side at 70% 55%, rgba(162, 107, 255, 0.26), transparent),
    radial-gradient(closest-side at 50% 60%, rgba(91, 124, 255, 0.3), transparent);
  filter: blur(30px);
  pointer-events: none;
}
.hero > .wrap { position: relative; z-index: 1; }

.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px 6px 12px;
  background: rgba(255, 255, 255, 0.03);
}
.status i, .app-live i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(61, 220, 151, 0.6); animation: pulse 2.4s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(61, 220, 151, 0); } 100% { box-shadow: 0 0 0 0 rgba(61, 220, 151, 0); } }

h1 {
  margin-top: 24px;
  font-size: clamp(38px, 6.4vw, 84px);
  font-weight: 620;
  line-height: 1.02;
  letter-spacing: -0.04em;
  max-width: 13em;
  text-wrap: balance;
  background: linear-gradient(180deg, #fff 30%, #aebbe0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lead { margin-top: 24px; font-size: clamp(17px, 1.6vw, 21px); line-height: 1.5; max-width: 36em; color: #b9c2d6; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* ---------- Demo ---------- */
.demo { margin-top: clamp(48px, 6vw, 80px); }
.demo-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-bottom: 20px; }
.demo-tabs { display: inline-flex; padding: 4px; gap: 2px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, 0.03); }
.demo-tab { background: transparent; border: 0; border-radius: 9px; padding: 8px 16px; font-size: 15px; cursor: pointer; color: var(--muted); }
.demo-tab:hover { color: var(--text); }
.demo-tab[aria-selected="true"] { background: #fff; color: #070a12; font-weight: 550; }
.demo-note { font-size: 14px; color: var(--muted); }

.stage { position: relative; padding-bottom: 36px; }
.stage::before {
  /* gradient frame around the app window */
  content: "";
  position: absolute;
  left: -1px;
  top: -1px;
  right: 139px;
  bottom: 35px;
  border-radius: 17px;
  background: var(--grad);
  opacity: 0.75;
}
.app {
  position: relative;
  margin-right: 140px;
  height: 500px;
  background: #fff;
  color: var(--ui-ink);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 50px 120px -30px rgba(91, 124, 255, 0.55);
}
.app-bar { display: flex; align-items: center; gap: 14px; padding: 10px 14px; background: #eef1f7; border-bottom: 1px solid var(--ui-line); }
.app-dots { display: inline-flex; gap: 6px; }
.app-dots i { width: 10px; height: 10px; border-radius: 50%; background: #cdd4e3; }
.app-path { font-family: var(--mono); font-size: 12px; color: var(--ui-muted); background: #fff; border: 1px solid var(--ui-line); border-radius: 6px; padding: 3px 12px; flex: 1; max-width: 360px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-body { flex: 1; display: grid; grid-template-columns: 188px minmax(0, 1fr); min-height: 0; }
.app-side { background: #0f1630; color: #c5cde3; padding: 16px 10px; font-size: 14px; }
.app-logo { width: 28px; height: 28px; border-radius: 8px; background: var(--grad); margin: 0 8px 18px; }
.app-side li { padding: 8px 10px; border-radius: 8px; display: flex; align-items: center; gap: 10px; }
.app-side li::before { content: ""; width: 14px; height: 14px; border-radius: 4px; border: 1.5px solid currentColor; opacity: 0.6; flex: none; }
.app-side li.on { background: rgba(255, 255, 255, 0.1); color: #fff; }
.app-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; padding: 18px 150px 0 22px; }
.app-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.app-head b { font-size: 19px; font-weight: 620; letter-spacing: -0.02em; }
.app-live { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12px; color: var(--ui-muted); }
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.kpis li { border: 1px solid var(--ui-line); border-radius: 10px; padding: 10px 12px; }
.kpis span { display: block; font-size: 12px; color: var(--ui-muted); line-height: 1.3; }
.kpis b { display: block; font-size: 24px; font-weight: 620; letter-spacing: -0.02em; line-height: 1.2; font-variant-numeric: tabular-nums; }
.kpis li.bump { border-color: var(--ui-blue); background: #eef2ff; transition: background 0.3s, border-color 0.3s; }

.rows { flex: 1; overflow-y: auto; margin-top: 14px; border-top: 1px solid var(--ui-line); font-size: 14px; line-height: 1.35; }
.row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; padding: 10px 4px; border-bottom: 1px solid var(--ui-line); }
.row b { font-weight: 550; display: block; overflow-wrap: anywhere; }
.row small { color: var(--ui-muted); font-size: 13px; }
.row-new { background: linear-gradient(90deg, #e9eeff, #f3ecff); animation: rowIn 0.45s ease-out; }
@keyframes rowIn { from { opacity: 0; transform: translateY(-8px); } }
.badge { font-size: 12px; font-weight: 550; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--ui-line); color: var(--ui-muted); white-space: nowrap; }
.badge-hot { background: var(--ui-blue); border-color: var(--ui-blue); color: #fff; }
.badge-ok { border-color: #bfe8d6; background: #eafaf2; color: #0d7a52; }

.phone {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 272px;
  height: 468px;
  background: #fff;
  color: var(--ui-ink);
  border-radius: 30px;
  border: 7px solid #1a2238;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 30px 80px -10px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.12);
}
.phone-head { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--ui-line); font-size: 14px; line-height: 1.2; }
.phone-head b { display: block; font-weight: 600; }
.phone-head small { color: var(--ui-muted); font-size: 12px; }
.phone-avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--grad); flex: none; }
.chat { flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 8px; background: var(--ui-tint); font-size: 14px; line-height: 1.4; }
.msg { max-width: 88%; padding: 8px 11px; border-radius: 13px; }
.msg-bot { background: #fff; align-self: flex-start; border-bottom-left-radius: 4px; }
.msg-me { background: var(--ui-blue); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.msg-typing { color: var(--ui-muted); letter-spacing: 2px; }
.choices { display: grid; gap: 6px; padding: 10px 12px 12px; border-top: 1px solid var(--ui-line); min-height: 58px; align-content: start; }
.choice { background: #fff; border: 1.5px solid var(--ui-blue); color: var(--ui-blue); border-radius: 9px; padding: 8px 10px; font-size: 14px; font-weight: 500; cursor: pointer; text-align: center; }
.choice:hover { background: var(--ui-blue); color: #fff; }
.choice-again { border-style: dashed; }

/* ---------- Sections ---------- */
.sec { padding-block: clamp(56px, 8vw, 112px); }
.sec-head { max-width: 760px; margin-bottom: clamp(32px, 4vw, 56px); }
.path { font-family: var(--mono); font-size: 13px; color: var(--a1); margin-bottom: 16px; }
h2 { font-size: clamp(30px, 4vw, 52px); font-weight: 620; line-height: 1.06; letter-spacing: -0.035em; text-wrap: balance; }
.sec-lead { margin-top: 18px; color: var(--muted); font-size: clamp(17px, 1.4vw, 19px); max-width: 36em; }
h3 { font-size: 19px; font-weight: 600; line-height: 1.25; letter-spacing: -0.015em; }

/* Cards with a pointer-following glow */
.card, .case {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}
.glow::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(91, 124, 255, 0.2), transparent 60%);
  opacity: 0;
  transition: opacity 0.25s;
  pointer-events: none;
}
.glow:hover::before { opacity: 1; }
.glow:hover { border-color: var(--line-2); }
.glow > * { position: relative; }

.spec { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.spec .card { padding: 28px; }
.spec h3 { font-size: 22px; padding-bottom: 20px; border-bottom: 1px solid var(--line); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.spec dl > div { padding-block: 14px; border-bottom: 1px solid var(--line); }
.spec dl > div:last-child { border-bottom: 0; padding-bottom: 0; }
.spec dt { font-weight: 550; }
.spec dd { color: var(--muted); font-size: 15px; margin-top: 2px; }

.stack { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 24px; padding: 18px 24px; border: 1px dashed var(--line-2); border-radius: 18px; }
.stack-label { font-size: 15px; color: var(--muted); }
.stack ul { display: flex; flex-wrap: wrap; gap: 8px; }
.stack li { font-family: var(--mono); font-size: 13px; padding: 5px 12px; border-radius: 8px; background: var(--card-2); border: 1px solid var(--line); color: #c9d2e6; }

/* Cases */
.cases { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.case { padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.case-wide { grid-column: span 2; padding: 32px; background: linear-gradient(140deg, #131c33, var(--card) 60%); }
.case-wide h3 { font-size: clamp(22px, 2.2vw, 28px); }
.case p { color: var(--muted); font-size: 15.5px; }
.tag { font-family: var(--mono); font-size: 12px; color: var(--a1); }

/* Process: a commit-graph line */
.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; counter-reset: step; position: relative; }
.steps::before { content: ""; position: absolute; left: 0; right: 0; top: 17px; height: 2px; background: var(--grad); opacity: 0.6; }
.steps li { counter-increment: step; position: relative; padding-top: 56px; }
.steps li::before {
  content: counter(step);
  position: absolute;
  top: 0;
  left: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 600;
  background: var(--bg);
  border: 2px solid var(--a2);
  color: var(--text);
  box-shadow: 0 0 0 6px var(--bg), 0 0 24px rgba(91, 124, 255, 0.6);
}
.steps p { color: var(--muted); font-size: 15.5px; margin-top: 8px; }

/* Price */
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.facts .card { padding: 28px; }
.facts p { color: var(--muted); font-size: 16px; margin-top: 10px; }

/* Team */
.team h2 { margin-bottom: 28px; }
.team-lead { font-size: clamp(24px, 3.2vw, 42px); font-weight: 450; line-height: 1.22; letter-spacing: -0.025em; max-width: 24em; text-wrap: pretty; }
.team-note { margin-top: 24px; max-width: 40em; color: var(--muted); }
.team-note a { color: var(--a1); text-underline-offset: 4px; }

/* Contact */
.contact {
  position: relative;
  border-radius: 28px;
  padding: clamp(32px, 6vw, 80px);
  background:
    radial-gradient(600px circle at 85% 0%, rgba(162, 107, 255, 0.35), transparent 60%),
    radial-gradient(600px circle at 10% 100%, rgba(56, 213, 247, 0.25), transparent 60%),
    var(--card);
  border: 1px solid var(--line-2);
  overflow: hidden;
}
.contact-lead { margin-top: 16px; max-width: 34em; color: #b9c2d6; font-size: clamp(17px, 1.4vw, 19px); }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.contact-actions .btn { min-height: 56px; padding: 0 26px; }

.foot { display: flex; justify-content: space-between; gap: 16px; padding-block: 32px; font-size: 14px; color: var(--muted); }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .nav { display: none; }
  .top-cta { margin-left: auto; }
  .spec, .facts { grid-template-columns: minmax(0, 1fr); }
  .cases { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .steps::before { left: 17px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
  .steps li { padding-top: 4px; padding-left: 60px; }
  .app-body { grid-template-columns: 150px minmax(0, 1fr); }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .brand span { display: none; }
  .demo-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; }
  .demo-tab { padding: 8px 4px; font-size: 13px; line-height: 1.2; }
  .stage { display: flex; flex-direction: column; align-items: center; gap: 20px; padding-bottom: 0; }
  .stage::before { display: none; }
  .phone { position: relative; order: -1; width: min(300px, 100%); height: 440px; }
  .app { margin-right: 0; width: 100%; height: 400px; border: 1px solid var(--a2); }
  .app-body { grid-template-columns: minmax(0, 1fr); }
  .app-side { display: none; }
  .app-main { padding: 14px 14px 0; }
  .kpis b { font-size: 20px; }
  .cases { grid-template-columns: minmax(0, 1fr); }
  .case-wide { grid-column: auto; padding: 24px; }
  .contact-actions .btn { width: 100%; }
  .foot { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .row-new, .status i, .app-live i { animation: none; }
}
