/* DEVOITEX — public site, v3 (engineering team amplified by AI; dark, product-UI driven)
   Every "screenshot" on the site is real HTML, so it stays sharp and translatable. */

:root {
  --bg: #181819;
  --bg-2: #1A1D21;
  --panel: #1E2126;
  --panel-2: #24272D;
  --panel-3: #2B2F36;
  --line: rgba(255, 255, 255, 0.075);
  --line-2: rgba(255, 255, 255, 0.12);
  --line-3: rgba(255, 255, 255, 0.19);
  --text: #F7F8F8;
  --text-2: #D0D6E0;
  --muted: #8F949C;
  --faint: #62676F;
  --blue: #1B67FE;
  --blue-2: #5A8FFF;
  --blue-soft: rgba(27, 103, 254, 0.16);
  --green: #4CB782;
  --yellow: #F2C94C;
  --orange: #F2994A;
  --red: #EB5757;
  --violet: #8B7CF6;
  --logo: #ECF0F3;
  --header-bg: rgba(24, 24, 25, 0.8);
  --ui-bg: #1C1F23;
  --ui-side: #1A1D21;
  --btn-primary-bg: #F7F8F8;
  --btn-primary-fg: #08090A;
  --hover: rgba(255, 255, 255, 0.06);

  --r-sm: 6px;
  --r: 10px;
  --r-lg: 16px;
  --wrap: 1200px;
  --gutter: 24px;

  --f-brand: "Montserrat", system-ui, sans-serif;
  --f: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text-2);
  font: 400 16px/1.6 var(--f);
  font-feature-settings: "cv11", "ss01", "ss03";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--text); text-decoration: none; }
a:hover { color: #fff; }
h1, h2, h3, h4, h5 { color: var(--text); margin: 0; font-weight: 510; font-family: var(--f); letter-spacing: -0.022em; overflow-wrap: break-word; }
p { margin: 0 0 1em; }
::selection { background: rgba(79, 131, 247, .35); color: #fff; }
:focus-visible { outline: 2px solid var(--blue-2); outline-offset: 2px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--f-mono); }
.muted { color: var(--muted); }
.dim { color: var(--muted); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 40px; padding: 8px 16px;
  font: 510 14px/1.2 var(--f); text-align: center;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-2);
  background: var(--panel-2); color: var(--text);
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s, opacity .15s;
}
.btn:hover { background: var(--panel-3); border-color: var(--line-3); color: #fff; }
.btn.primary { background: var(--btn-primary-bg); color: var(--btn-primary-fg); border-color: var(--btn-primary-bg); }
.btn.primary:hover { background: #fff; color: #000; }
.btn.blue { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn.blue:hover { background: #1D4ED8; }
.btn.ghost { background: transparent; }
.btn.sm { min-height: 32px; padding: 6px 12px; font-size: 13px; }
.header-actions .btn, .composer-f .btn { white-space: nowrap; }
.btn .arr { opacity: .6; }
.btn[disabled] { opacity: .5; cursor: default; }
.link-arrow { color: var(--text); font-weight: 510; font-size: 15px; display: inline-flex; gap: 6px; align-items: center; }
.link-arrow span { color: var(--muted); transition: transform .15s; }
.link-arrow:hover span { transform: translateX(2px); color: var(--text); }

.tag {
  display: inline-flex; align-items: center; gap: 6px;
  font: 500 12px/1 var(--f);
  padding: 4px 8px; border-radius: 99px;
  border: 1px solid var(--line-2); color: var(--text-2); background: rgba(255,255,255,.03);
}
.tag i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); }
.tag.green i { background: var(--green); }
.tag.blue i { background: var(--blue-2); }
.tag.yellow i { background: var(--yellow); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  backdrop-filter: blur(16px) saturate(1.6);
  -webkit-backdrop-filter: blur(16px) saturate(1.6);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; height: 64px; gap: 32px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); }
.brand svg { width: 26px; height: 23px; color: var(--logo); flex: none; }
.brand svg.logo-full { width: 138px; height: 23px; }
.brand-name { font: 700 14px/1 var(--f-brand); letter-spacing: 0.18em; }
.nav { display: flex; gap: 4px; margin: 0 auto; }
.nav a { color: var(--muted); font-size: 13.5px; font-weight: 500; padding: 6px 12px; border-radius: var(--r-sm); transition: color .15s; }
.nav a:hover, .nav a.active { color: var(--text); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.header-actions .login { color: var(--muted); font-size: 13.5px; font-weight: 500; padding: 0 10px; }
.header-actions .login:hover { color: var(--text); }
@media (min-width: 901px) and (max-width: 1100px) {
  .site-header .wrap { gap: 16px; }
  .nav { gap: 0; }
  .nav a { padding: 6px 8px; }
}
/* language switcher */
.lang { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 8px 0 9px;
  background: transparent; border: 1px solid transparent; border-radius: var(--r-sm);
  color: var(--muted); font: 500 13px/1 var(--f); cursor: pointer; transition: color .15s, border-color .15s, background .15s;
}
.lang-btn svg { width: 15px; height: 15px; }
.lang-btn .chev { width: 10px; height: 10px; transition: transform .15s; }
.lang-btn:hover, .lang.open .lang-btn { color: var(--text); border-color: var(--line-2); background: rgba(255,255,255,.03); }
.lang.open .lang-btn .chev { transform: rotate(180deg); }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 180px; padding: 5px;
  background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 10px;
  box-shadow: 0 16px 40px -8px rgba(0,0,0,.7);
  opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .15s, transform .15s, visibility .15s;
  z-index: 60;
}
.lang.open .lang-menu { opacity: 1; visibility: visible; transform: none; }
.lang-menu a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 6px; font-size: 13.5px; color: var(--text-2); }
.lang-menu a:hover { background: var(--hover); color: var(--text); }
.lang-menu a .code { font: 500 11px/1 var(--f-mono); color: var(--faint); width: 20px; }
.lang-menu a[aria-current] { color: var(--text); }
.lang-menu a[aria-current]::after { content: ""; margin-left: auto; width: 9px; height: 5px; border-left: 1.5px solid var(--blue-2); border-bottom: 1.5px solid var(--blue-2); transform: rotate(-45deg) translateY(-2px); }
.foot-lang a[aria-current] { color: var(--text-2); }
@media (max-width: 900px) {
  .site-header.open .lang-menu { left: 0; right: auto; }
}

.burger { display: none; width: 36px; height: 36px; margin-left: auto; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: transparent; cursor: pointer; padding: 0; align-items: center; justify-content: center; }
.burger span, .burger span::before, .burger span::after { display: block; width: 16px; height: 1.5px; background: var(--text); position: relative; content: ""; }
.burger span::before { position: absolute; top: -5px; }
.burger span::after { position: absolute; top: 5px; }
@media (max-width: 900px) {
  .burger { display: inline-flex; }
  .nav, .header-actions { display: none; }
  .site-header.open { background: var(--bg); }
  /* open menu: rows flow below the logo bar, sized by their content */
  .site-header.open .wrap { flex-wrap: wrap; height: auto; min-height: 64px; row-gap: 0; padding-top: 14px; padding-bottom: 16px; align-items: center; }
  .site-header.open .nav, .site-header.open .header-actions { display: flex; flex-basis: 100%; margin: 0; }
  .site-header.open .burger { order: 1; }
  .site-header.open .nav { order: 2; }
  .site-header.open .header-actions { order: 3; }
  .site-header.open .nav { flex-direction: column; margin-top: 12px; }
  .site-header.open .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; border-radius: 0; }
  .site-header.open .header-actions { flex-direction: row; align-items: center; padding-top: 14px; }
  .site-header.open .header-actions .btn { flex: 1; height: 40px; }
}

/* ---------- generic sections ---------- */
section { padding: 120px 0; position: relative; }
.border-top { border-top: 1px solid var(--line); }
.bg-surface { background: var(--bg-2); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 500 13px/1 var(--f); color: var(--muted); margin-bottom: 20px; }
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--blue-2); }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(32px, 4vw, 48px); line-height: 1.08; margin-bottom: 18px; }
.section-head p { font-size: 17px; color: var(--muted); margin: 0; max-width: 600px; }
.gray { color: var(--muted); }

/* ---------- hero ---------- */
.hero { padding: 104px 0 0; overflow: hidden; }
.hero-top { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: end; margin-bottom: 64px; }
.hero h1 { font-size: clamp(40px, 5.8vw, 72px); line-height: 1.0; letter-spacing: -0.035em; font-weight: 520; max-width: 900px; }
.hero h1 .gray { color: var(--muted); }
.hero .lead { font-size: 18px; color: var(--muted); max-width: 520px; margin: 28px 0 0; line-height: 1.55; }
.hero .ctas { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-side { display: flex; flex-direction: column; align-items: flex-end; gap: 36px; }
.hero-art { display: block; width: 360px; max-width: 100%; height: auto; font-family: var(--f); }
.hero-art .ha-box { fill: var(--panel); stroke: rgba(90, 143, 255, .28); }
.hero-art .ha-res { stroke: rgba(90, 143, 255, .4); }
.hero-art .ha-hex { fill: var(--panel); stroke: var(--blue-2); stroke-width: 1.5; filter: drop-shadow(0 0 18px rgba(27, 103, 254, .35)); }
.hero-art .ha-ai { fill: var(--blue-soft); stroke: var(--blue); stroke-width: 1.5; filter: drop-shadow(0 0 14px rgba(27, 103, 254, .3)); }
.hero-art .ha-spark { fill: var(--blue-2); }
.hero-art .ha-logo { fill: var(--logo); }
.hero-art .ha-ic { fill: none; stroke: var(--blue-2); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.hero-art .ha-ln { fill: var(--line-3); }
.hero-art .ha-wires { fill: none; stroke: var(--blue-2); stroke-width: 1.2; opacity: .45; }
.hero-art .ha-flow { fill: none; stroke: var(--blue-2); stroke-width: 1.6; stroke-dasharray: 6 34; animation: fl-run 2.4s linear infinite; }
.hero-art .ha-dot { fill: var(--blue-2); filter: drop-shadow(0 0 6px var(--blue-2)); }
.hero-art .ha-ai-t { fill: var(--text); font-size: 18px; font-weight: 600; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 32px;
  font-size: 13px; color: var(--text-2); padding: 5px 12px 5px 6px;
  border: 1px solid var(--line-2); border-radius: 99px; background: rgba(255,255,255,.02);
}
.pill b { white-space: nowrap; font-weight: 510; font-size: 12px; color: #fff; background: var(--blue); padding: 3px 8px; border-radius: 99px; }
.pill span { color: var(--muted); }
@media (max-width: 900px) {
  .hero { padding-top: 64px; }
  .hero-top { grid-template-columns: 1fr; gap: 28px; margin-bottom: 48px; }
  .hero-side { align-items: flex-start; }
  .hero-art { width: 100%; max-width: 360px; align-self: center; }
}

/* ---------- product frame (the big HTML "screenshot") ---------- */
/* Crisp on purpose: a wide blurred halo bands visibly on flat backgrounds. */
.frame {
  position: relative;
  border-radius: 12px;
  padding: 6px;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 18px 36px -18px rgba(0, 0, 0, .55);
}
.frame-fade { position: relative; }
/* fade into the page colour itself (not transparent black) to avoid a gray band */
.frame-fade::after {
  content: ""; position: absolute; left: -1px; right: -1px; bottom: -1px; height: 22%;
  background: linear-gradient(to bottom, rgba(24, 24, 25, 0) 0%, var(--bg) 85%);
  pointer-events: none; z-index: 3;
}
.ui {
  background: var(--ui-bg);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  overflow: hidden;
  font-size: 13px; color: var(--text-2);
  text-align: left;
}
.ui * { letter-spacing: normal; }

/* app layout inside the hero */
.app { display: grid; grid-template-columns: 220px 1fr 260px; min-height: 620px; }
.app-side { border-right: 1px solid var(--line); padding: 12px 10px; background: var(--ui-side); }
.ws { display: flex; align-items: center; gap: 8px; padding: 6px 8px 14px; color: var(--text); font-weight: 510; font-size: 13px; }
.ws svg { width: 19px; height: 17px; color: var(--logo); }
.ws .chev { color: var(--faint); font-size: 10px; margin-left: 2px; }
.ws .icons { margin-left: auto; display: flex; gap: 10px; color: var(--muted); }
.side-link { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 6px; color: var(--text-2); font-size: 13px; }
.side-link .i { width: 14px; height: 14px; border: 1.5px solid var(--muted); border-radius: 4px; flex: none; opacity: .8; }
.side-link .i.c { border-radius: 50%; }
.side-link .n { margin-left: auto; font-size: 11.5px; color: var(--muted); }
.side-link.on { background: var(--hover); color: var(--text); }
.side-h { font-size: 11.5px; color: var(--faint); padding: 16px 8px 6px; font-weight: 500; }
.side-agent { display: flex; align-items: center; gap: 10px; padding: 5px 8px; font-size: 13px; color: var(--text-2); }
.av { width: 18px; height: 18px; border-radius: 5px; display: inline-flex; align-items: center; justify-content: center; font: 600 9px/1 var(--f); color: #fff; flex: none; }
.av.pm { background: #6D5BD0; } .av.dev { background: #2563EB; } .av.ux { background: #D6457A; }
.av.ops { background: #1F9D72; } .av.qa { background: #C7862B; } .av.sup { background: #4B5563; }
.av.you { background: #334155; border-radius: 50%; }
.live { width: 6px; height: 6px; border-radius: 50%; background: var(--green); margin-left: auto; box-shadow: 0 0 0 3px rgba(76,183,130,.15); }
.live.busy { background: var(--blue-2); box-shadow: 0 0 0 3px rgba(79,131,247,.18); animation: blip 1.8s ease-in-out infinite; }
.live.idle { background: var(--faint); box-shadow: none; }
@keyframes blip { 50% { opacity: .35; } }

.app-main { min-width: 0; display: flex; flex-direction: column; }
.app-bar { height: 44px; display: flex; align-items: center; gap: 10px; padding: 0 20px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.app-bar { white-space: nowrap; overflow: hidden; }
.app-bar > span:nth-of-type(3) { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.app-bar b { color: var(--text); font-weight: 510; }
.app-bar .sep { color: var(--faint); }
.app-bar .star { color: var(--yellow); }
.app-body { padding: 36px 48px 24px; flex: 1; }
.app-body h3 { font-size: 22px; letter-spacing: -0.015em; margin-bottom: 10px; }
.app-body .desc { color: var(--text-2); font-size: 14px; line-height: 1.6; max-width: 560px; }
.app-body code, .ui code { font: 500 12px/1 var(--f-mono); background: rgba(255,255,255,.06); border: 1px solid var(--line-2); padding: 2px 6px; border-radius: 4px; color: var(--text); }
.subs { margin: 22px 0 28px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.subs-h { display: flex; justify-content: space-between; padding: 8px 12px; font-size: 12px; color: var(--muted); background: rgba(255,255,255,.02); border-bottom: 1px solid var(--line); }
.sub { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-top: 1px solid var(--line); font-size: 13px; }
.sub:first-of-type { border-top: 0; }
.sub .id { color: var(--faint); font-size: 12px; width: 70px; flex: none; }
.sub .t { color: var(--text); flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--faint); flex: none; position: relative; }
.st.done { background: var(--blue); border-color: var(--blue); }
.st.done::after { content: ""; position: absolute; left: 4px; top: 2px; width: 3px; height: 6px; border: solid #fff; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.st.prog { border-color: var(--yellow); background: conic-gradient(var(--yellow) 0 50%, transparent 50%); background-clip: content-box; padding: 2px; }
.st.review { border-color: var(--green); background: conic-gradient(var(--green) 0 75%, transparent 75%); background-clip: content-box; padding: 2px; }
.st.todo { border-color: var(--muted); }

.act-h { font-size: 14px; color: var(--text); font-weight: 510; margin-bottom: 14px; }
.act { list-style: none; margin: 0; padding: 0; position: relative; }
.act::before { content: ""; position: absolute; left: 8px; top: 10px; bottom: 10px; width: 1px; background: var(--line-2); }
.act li { position: relative; display: flex; gap: 12px; align-items: flex-start; padding: 7px 0; font-size: 13px; color: var(--muted); }
.act li .av { position: relative; z-index: 1; box-shadow: 0 0 0 4px var(--ui-bg); }
.act li b { color: var(--text); font-weight: 510; }
.act li .time { color: var(--faint); }
.act li.card-row { display: block; margin: 6px 0 6px 30px; padding: 12px 14px; background: rgba(255,255,255,.025); border: 1px solid var(--line); border-radius: 8px; color: var(--text-2); }
.act li.card-row .who { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; color: var(--muted); font-size: 12.5px; }
.act li.card-row .who b { color: var(--text); }
.typing { display: inline-flex; gap: 3px; margin-left: 6px; vertical-align: middle; }
.typing i { width: 4px; height: 4px; border-radius: 50%; background: var(--muted); animation: dots 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dots { 0%, 60%, 100% { opacity: .25; } 30% { opacity: 1; } }

.app-props { border-left: 1px solid var(--line); padding: 16px 18px; background: var(--ui-side); }
.prop-h { font-size: 12px; color: var(--muted); margin: 6px 0 10px; font-weight: 500; }
.prop { display: grid; grid-template-columns: 84px 1fr; align-items: center; gap: 8px; padding: 6px 0; font-size: 13px; }
.prop .k { color: var(--muted); }
.prop .v { color: var(--text); display: flex; align-items: center; gap: 8px; min-width: 0; }
.prop .prio { display: inline-flex; gap: 2px; align-items: flex-end; height: 12px; }
.prop .prio i { width: 3px; background: var(--text-2); border-radius: 1px; }
.prop .prio i:nth-child(1) { height: 5px; } .prop .prio i:nth-child(2) { height: 8px; } .prop .prio i:nth-child(3) { height: 12px; background: var(--faint); }
.labels { display: flex; flex-wrap: wrap; gap: 6px; }
.lbl { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; padding: 3px 8px; border: 1px solid var(--line-2); border-radius: 99px; color: var(--text-2); }
.lbl i { width: 7px; height: 7px; border-radius: 50%; }
.prop-sep { height: 1px; background: var(--line); margin: 14px 0; }
.pipe { list-style: none; padding: 0; margin: 0; }
.pipe li { display: flex; align-items: center; gap: 10px; padding: 5px 0; font-size: 12.5px; color: var(--muted); }
.pipe li.done { color: var(--text-2); }
.pipe li.now { color: var(--text); }
.pipe li .st { width: 12px; height: 12px; }
.pipe li.done .st::after { left: 3px; top: 1px; }

@media (max-width: 1140px) { .app { grid-template-columns: 200px 1fr; } .app-props { display: none; } }
@media (max-width: 760px) {
  .app { grid-template-columns: 1fr; min-height: 0; }
  .app-side { display: none; }
  .app-body { padding: 24px 18px 18px; }
  .frame { padding: 5px; border-radius: 12px; }
}

/* ---------- logos / roles strip ---------- */
.strip { padding: 56px 0 24px; }
.strip-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; align-items: center; }
.strip-row div { display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--muted); font-size: 15px; font-weight: 510; letter-spacing: -0.01em; }
.strip-row .av { width: 22px; height: 22px; font-size: 10px; border-radius: 6px; }
.strip-cap { text-align: center; font: 500 11px/1 var(--f-mono); color: var(--faint); letter-spacing: .14em; text-transform: uppercase; margin-top: 28px; }
@media (max-width: 860px) { .strip-row { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 28px; } }
@media (max-width: 520px) { .strip-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } .strip-row div { justify-content: flex-start; font-size: 14px; } }

/* ---------- statement ---------- */
.statement-sec { padding: 120px 0 80px; background: var(--bg-2); }
.statement { font-size: clamp(28px, 3.6vw, 44px); line-height: 1.18; letter-spacing: -0.028em; color: var(--text); font-weight: 510; max-width: 1040px; margin: 0; }
.statement .gray, .statement em { color: var(--muted); font-style: normal; }
.stat-links { display: flex; gap: 28px; margin-top: 40px; flex-wrap: wrap; }

/* flow diagram: request -> team -> AI -> stages -> result (inline SVG, colours from theme vars) */
.flow { margin-top: 72px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.flow-art { width: 100%; min-width: 880px; height: auto; font-family: var(--f); }
.flow-art .fl-box { fill: var(--panel); stroke: rgba(90, 143, 255, .28); }
.flow-art .fl-res { stroke: rgba(90, 143, 255, .4); }
.flow-art .fl-hex { fill: var(--panel); stroke: var(--blue-2); stroke-width: 1.5; filter: drop-shadow(0 0 18px rgba(27, 103, 254, .35)); }
.flow-art .fl-ai { fill: var(--blue-soft); stroke: var(--blue); stroke-width: 1.5; filter: drop-shadow(0 0 14px rgba(27, 103, 254, .3)); }
.flow-art .fl-spark { fill: var(--blue-2); }
.flow-art .fl-logo { fill: var(--logo); }
.flow-art .fl-ic { fill: none; stroke: var(--blue-2); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.flow-art .fl-wires { fill: none; stroke: var(--blue-2); stroke-width: 1.2; opacity: .45; }
.flow-art .fl-flow { fill: none; stroke: var(--blue-2); stroke-width: 1.6; stroke-dasharray: 6 34; animation: fl-run 2.4s linear infinite; }
.flow-art .fl-dot { fill: var(--blue-2); filter: drop-shadow(0 0 6px var(--blue-2)); }
.flow-art .fl-h { fill: var(--text); font-size: 18px; font-weight: 510; }
.flow-art .fl-li { fill: var(--muted); font-size: 14px; }
.flow-art .fl-strong { fill: var(--text-2); font-weight: 500; }
.flow-art .fl-brand { fill: var(--text); font: 700 21px var(--f-brand); letter-spacing: .12em; }
.flow-art .fl-cap { fill: var(--muted); font-size: 11px; font-weight: 500; letter-spacing: .08em; }
.flow-art .fl-ai-t { fill: var(--text); font-size: 20px; font-weight: 600; }
@keyframes fl-run { to { stroke-dashoffset: -40; } }
/* phones: the wide diagram is swapped for a vertical copy (.flow-m) that fits the screen without side scroll */
.flow-art.flow-m { display: none; min-width: 0; }
@media (max-width: 620px) {
  .flow { margin-top: 48px; overflow: visible; }
  .flow-art { display: none; }
  .flow-art.flow-m { display: block; max-width: 420px; margin: 0 auto; }
}

/* ---------- feature sections ---------- */
.feature { padding: 110px 0; border-top: 1px solid var(--line); overflow: hidden; }
.f-head { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: end; margin-bottom: 56px; }
.f-num { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); margin-bottom: 22px; }
.f-num b { color: var(--text); font-weight: 510; }
.f-num span { color: var(--faint); }
.f-head h2 { font-size: clamp(34px, 4.4vw, 56px); line-height: 1.02; letter-spacing: -0.032em; }
.f-head p { color: var(--muted); font-size: 17px; line-height: 1.55; margin: 0; max-width: 460px; }
.f-head p b { color: var(--text); font-weight: 510; }
@media (max-width: 900px) { .f-head { grid-template-columns: 1fr; gap: 20px; } }

.f-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); margin-top: 56px; }
.f-grid > div { padding: 28px 28px 0 0; }
.f-grid > div + div { padding-left: 28px; border-left: 1px solid var(--line); }
.f-grid h4 { font-size: 15px; margin-bottom: 6px; }
.f-grid p { font-size: 14.5px; color: var(--muted); margin: 0; line-height: 1.55; }
@media (max-width: 820px) {
  .f-grid { grid-template-columns: 1fr; }
  .f-grid > div, .f-grid > div + div { padding: 22px 0; border-left: 0; border-bottom: 1px solid var(--line); }
}

/* panels used in feature mockups */
.panels { display: grid; gap: 16px; }
.panels.two { grid-template-columns: 1.25fr 1fr; }
.panels.two-r { grid-template-columns: 1fr 1.25fr; }
@media (max-width: 960px) { .panels.two, .panels.two-r { grid-template-columns: 1fr; } }
.pnl { background: var(--panel); border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden; position: relative; }
.pnl-h { display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 16px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.pnl-h b { color: var(--text); font-weight: 510; white-space: nowrap; }
.pnl-h > span:not(.r):not(.av) { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pnl-h .r { flex: none; }
.pnl-h .r { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.pnl-b { padding: 20px; }

/* composer */
.composer { padding: 22px 22px 16px; }
.composer .ttl { font-size: 20px; color: var(--text); font-weight: 510; letter-spacing: -0.015em; margin-bottom: 8px; }
.composer .caret { display: inline-block; width: 2px; height: 20px; background: var(--blue-2); vertical-align: -3px; margin-left: 1px; animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.composer .body { color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 9px; font-size: 12px; border: 1px solid var(--line-2); border-radius: 6px; color: var(--text-2); background: rgba(255,255,255,.02); }
.chip .st { width: 11px; height: 11px; }
.composer-f { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-top: 1px solid var(--line); }
.composer-f .btn { margin-left: auto; }
.kbd { font: 500 11px/1 var(--f-mono); padding: 3px 5px; border: 1px solid var(--line-2); border-radius: 4px; color: var(--muted); }

.qa-thread { padding: 18px 20px; display: grid; gap: 14px; }
.msg { display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: 13.5px; }
.msg .av { width: 22px; height: 22px; font-size: 10px; }
.msg .who { font-size: 12.5px; color: var(--muted); margin-bottom: 3px; }
.msg .who b { color: var(--text); font-weight: 510; }
.msg .txt { color: var(--text-2); line-height: 1.55; }
.opts { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.opt { font-size: 12px; padding: 4px 9px; border-radius: 6px; border: 1px solid var(--line-2); color: var(--text-2); }
.opt.on { border-color: rgba(79,131,247,.6); background: var(--blue-soft); color: #fff; }

/* task board */
.col-h { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text); font-weight: 510; padding: 4px 4px 10px; }
.col-h .n { color: var(--faint); font-weight: 400; }
.tk { background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; padding: 11px 12px; margin-bottom: 8px; }
.tk .top { display: flex; justify-content: space-between; align-items: center; font-size: 11.5px; color: var(--faint); margin-bottom: 6px; }
.tk .t { font-size: 13px; color: var(--text); line-height: 1.4; margin-bottom: 10px; }
.tk .meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.tk .meta .lbl { font-size: 11px; padding: 2px 7px; }
.tk .bar { height: 3px; background: rgba(255,255,255,.06); border-radius: 2px; margin-top: 10px; overflow: hidden; }
.tk .bar i { display: block; height: 100%; background: var(--yellow); border-radius: 2px; }

/* code diff */
.diff { font: 400 12.5px/1.75 var(--f-mono); overflow: hidden; }
.diff .file { display: flex; align-items: center; gap: 10px; padding: 8px 16px; background: rgba(255,255,255,.02); border-bottom: 1px solid var(--line); color: var(--text-2); font-size: 12px; }
.diff .file .add { color: var(--green); } .diff .file .del { color: var(--red); }
.diff .ln { display: grid; grid-template-columns: 38px 16px 1fr; padding: 0 16px 0 0; white-space: pre; color: var(--text-2); }
.diff .ln .no { color: var(--faint); text-align: right; padding-right: 10px; user-select: none; }
.diff .ln.a { background: rgba(76,183,130,.09); } .diff .ln.a .sg { color: var(--green); }
.diff .ln.d { background: rgba(235,87,87,.08); } .diff .ln.d .sg { color: var(--red); }
.diff .k { color: #C792EA; } .diff .s { color: #A5D6A7; } .diff .f { color: #82AAFF; } .diff .c { color: var(--faint); }
.review { padding: 16px 18px; display: grid; gap: 12px; }
.check-row { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-2); padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.015); }
.check-row .r { margin-left: auto; font-size: 12px; color: var(--muted); }
.ok-ic { width: 16px; height: 16px; border-radius: 50%; background: rgba(76,183,130,.18); position: relative; flex: none; }
.ok-ic::after { content: ""; position: absolute; left: 6px; top: 3.5px; width: 3px; height: 7px; border: solid var(--green); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.run-ic { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(79,131,247,.25); border-top-color: var(--blue-2); animation: spin 1s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.wait-ic { width: 16px; height: 16px; border-radius: 50%; border: 1.5px dashed var(--faint); flex: none; }

/* deploy timeline */
.deploy { padding: 20px; }
.dep-row { display: grid; grid-template-columns: 110px 1fr 70px; align-items: center; gap: 14px; padding: 8px 0; font-size: 13px; }
.dep-row .nm { color: var(--text-2); }
.dep-row .tr { height: 8px; background: rgba(255,255,255,.04); border-radius: 4px; position: relative; overflow: hidden; }
.dep-row .tr i { position: absolute; top: 0; bottom: 0; border-radius: 4px; background: var(--blue); }
.dep-row .tr i.g { background: var(--green); }
.dep-row .tr i.run { background: linear-gradient(90deg, var(--blue), var(--blue-2)); animation: grow 3s ease-in-out infinite alternate; }
@keyframes grow { from { width: 18%; } to { width: 34%; } }
.dep-row .tm { color: var(--faint); font: 400 12px/1 var(--f-mono); text-align: right; }
.metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
@media (max-width: 520px) { .metrics div { padding: 14px 12px; } .metrics .v { font-size: 16px; } .dep-row { grid-template-columns: 80px 1fr 52px; gap: 10px; } }
.metrics div { padding: 16px 20px; }
.metrics div + div { border-left: 1px solid var(--line); }
.metrics .k { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.metrics .v { font-size: 20px; color: var(--text); font-weight: 510; letter-spacing: -0.01em; }
.metrics .v small { font-size: 12px; color: var(--green); margin-left: 6px; font-weight: 500; }

/* connections table */
.conn { width: 100%; border-collapse: collapse; font-size: 13px; }
.conn th { text-align: left; font-weight: 500; font-size: 12px; color: var(--muted); padding: 10px 16px; border-bottom: 1px solid var(--line); }
.conn td { padding: 12px 16px; border-bottom: 1px solid var(--line); color: var(--text-2); }
.conn tr:last-child td { border-bottom: 0; }
.conn td:first-child { color: var(--text); }
.conn .svc { display: flex; align-items: center; gap: 10px; }
.conn .ico { width: 24px; height: 24px; border-radius: 6px; border: 1px solid var(--line-2); display: inline-flex; align-items: center; justify-content: center; font: 600 10px/1 var(--f-mono); color: var(--text-2); background: rgba(255,255,255,.03); flex: none; }
.conn .sc { font: 400 12px/1 var(--f-mono); color: var(--muted); }
@media (max-width: 640px) { .conn .hide-sm { display: none; } }
.log-lines { font: 400 12px/1.9 var(--f-mono); padding: 16px 18px; color: var(--muted); }
.log-lines div { display: grid; grid-template-columns: 70px 44px 1fr; gap: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.log-lines .t { color: var(--faint); }
.log-lines .ok { color: var(--green); } .log-lines .rv { color: var(--orange); } .log-lines .in { color: var(--blue-2); }
.log-lines span:last-child { overflow: hidden; text-overflow: ellipsis; color: var(--text-2); }

/* ---------- team grid ---------- */
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.member { background: var(--bg); padding: 28px; min-height: 210px; display: flex; flex-direction: column; }
.member .top { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.member .av { width: 30px; height: 30px; font-size: 12px; border-radius: 8px; }
.member h3 { font-size: 16px; }
.member .role { font-size: 13px; color: var(--muted); }
.member p { font-size: 14.5px; color: var(--muted); line-height: 1.55; margin: 0 0 18px; }
.member .now { margin-top: auto; display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-2); padding-top: 14px; border-top: 1px solid var(--line); }
.member .now .live { margin: 0; }
/* people behind the AI team */
.humans {
  margin-top: 16px; padding: 24px 28px; border: 1px solid var(--line-2); border-radius: 14px; background: var(--bg-2);
  display: grid; grid-template-columns: 300px 1fr; gap: 32px; align-items: center;
}
.humans-head { display: flex; align-items: center; gap: 16px; }
.humans-head h3 { font-size: 16px; }
.humans-head .role { font-size: 13px; color: var(--muted); }
.humans .avs { display: flex; }
.humans .avs .av { width: 30px; height: 30px; font-size: 12px; border-radius: 50%; box-shadow: 0 0 0 2px var(--bg-2); }
.humans .avs .av + .av { margin-left: -8px; }
.humans .avs .av:nth-child(2) { background: #475569; }
.humans .avs .av:nth-child(3) { background: #64748B; }
.humans ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 28px; }
.humans li { position: relative; padding-left: 22px; font-size: 14.5px; color: var(--text-2); }
.humans li::before { content: ""; position: absolute; left: 1px; top: 8px; width: 11px; height: 6px; border-left: 1.5px solid var(--green); border-bottom: 1.5px solid var(--green); transform: rotate(-45deg); }
@media (max-width: 860px) { .humans { grid-template-columns: 1fr; gap: 20px; padding: 22px; } }
@media (max-width: 560px) { .humans ul { grid-template-columns: 1fr; } }

@media (max-width: 960px) { .team { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .team { grid-template-columns: 1fr; } }

/* ---------- final CTA ---------- */
.final { padding: 160px 0; text-align: center; border-top: 1px solid var(--line); position: relative; overflow: hidden; }
.final::before { content: ""; position: absolute; left: 50%; top: 0; width: 900px; height: 500px; transform: translate(-50%, -55%); background: radial-gradient(closest-side, rgba(27,103,254,.22), transparent); pointer-events: none; }
.final h2 { font-size: clamp(38px, 5.6vw, 72px); line-height: 1.02; letter-spacing: -0.035em; margin-bottom: 36px; position: relative; }
.final h2 .gray { color: var(--muted); }
.final .ctas { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; position: relative; }
.final .final-note { margin-top: 20px; color: var(--muted); font-size: 15px; position: relative; }

/* ---------- inner pages ---------- */
.page-head { padding: 104px 0 72px; border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.page-head::before { content: ""; position: absolute; right: -200px; top: -300px; width: 800px; height: 600px; background: radial-gradient(closest-side, rgba(27,103,254,.14), transparent); pointer-events: none; }
.page-head .wrap { position: relative; }
.page-head h1 { font-size: clamp(40px, 5.6vw, 68px); line-height: 1.02; letter-spacing: -0.035em; max-width: 900px; margin-bottom: 22px; font-weight: 520; }
/* long Russian words ("конфиденциальности") must not run past a phone screen */
@media (max-width: 620px) { .page-head h1 { overflow-wrap: break-word; hyphens: auto; } }
.page-head p { font-size: 18px; color: var(--muted); max-width: 620px; margin: 0; }
.crumbs { font-size: 13px; color: var(--faint); margin-bottom: 28px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--text); }

.svc { display: grid; grid-template-columns: 300px 1fr; gap: 56px; padding: 56px 0; border-top: 1px solid var(--line); }
.svc:first-child { border-top: 0; padding-top: 0; }
.svc-k { font-size: 13px; color: var(--faint); margin-bottom: 14px; font-family: var(--f-mono); }
.svc h2 { font-size: 28px; letter-spacing: -0.025em; margin-bottom: 12px; }
.svc .role { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.svc-body > p { font-size: 17px; color: var(--muted); max-width: 680px; }
.svc-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; margin-top: 20px; }
.svc-list div { padding: 12px 0 12px 22px; border-top: 1px solid var(--line); position: relative; font-size: 15px; color: var(--text-2); }
.svc-list div::before { content: ""; position: absolute; left: 2px; top: 20px; width: 8px; height: 8px; border-radius: 2px; border: 1.5px solid var(--blue-2); }
@media (max-width: 860px) { .svc { grid-template-columns: 1fr; gap: 16px; } .svc-list { grid-template-columns: 1fr; } }

.grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.grid.c2 { grid-template-columns: repeat(2, 1fr); }
.grid.c3 { grid-template-columns: repeat(3, 1fr); }
.grid.c4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--bg); padding: 30px 28px; display: flex; flex-direction: column; }
.bg-surface .card { background: var(--bg-2); }
.card .code { font: 500 12px/1 var(--f-mono); color: var(--faint); margin-bottom: 18px; }
.card h3, .card h2 { font-size: 18px; letter-spacing: -0.015em; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 15px; margin: 0; line-height: 1.55; }
.card ul { list-style: none; margin: 16px 0 0; padding: 0; }
.card li { font-size: 14px; color: var(--text-2); padding: 8px 0; border-top: 1px solid var(--line); }
@media (max-width: 960px) { .grid.c3, .grid.c4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid.c2, .grid.c3, .grid.c4 { grid-template-columns: 1fr; } }

.engine-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: start; }
@media (max-width: 900px) { .engine-grid { grid-template-columns: 1fr; gap: 40px; } }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.steps li { position: relative; padding: 0 0 26px 44px; counter-increment: s; }
.steps li::after { content: ""; position: absolute; left: 13px; top: 30px; bottom: 2px; width: 1px; background: var(--line-2); }
.steps li:last-child { padding-bottom: 0; }
.steps li:last-child::after { display: none; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: -1px;
  width: 27px; height: 27px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-3); background: var(--panel);
  font: 500 12px/1 var(--f); color: var(--text);
}
.steps h2, .steps h3 { font-size: 16px; margin-bottom: 4px; }
.steps p { margin: 0; color: var(--muted); font-size: 15px; }

.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.compare > div { padding: 30px; border: 1px solid var(--line-2); border-radius: 14px; background: var(--panel); }
.compare h3 { font-size: 15px; margin-bottom: 18px; color: var(--text); }
.compare ul { list-style: none; margin: 0; padding: 0; }
.compare li { padding: 11px 0 11px 28px; border-top: 1px solid var(--line); position: relative; color: var(--text-2); font-size: 15px; }
.compare li:first-child { border-top: 0; }
.compare li::before { content: ""; position: absolute; left: 0; top: 17px; width: 12px; height: 7px; border-left: 1.5px solid var(--blue-2); border-bottom: 1.5px solid var(--blue-2); transform: rotate(-45deg); }
.compare .not li::before { width: 10px; height: 0; border-left: 0; transform: none; top: 22px; border-bottom-color: var(--faint); }
.compare .not li { color: var(--muted); }
@media (max-width: 760px) { .compare { grid-template-columns: 1fr; } }

.checks { list-style: none; margin: 24px 0 0; padding: 0; }
.checks li { padding: 12px 0 12px 30px; border-top: 1px solid var(--line); position: relative; color: var(--muted); font-size: 15px; }
.checks li b { color: var(--text); font-weight: 510; }
.checks li::before { content: ""; position: absolute; left: 1px; top: 19px; width: 12px; height: 7px; border-left: 1.5px solid var(--blue-2); border-bottom: 1.5px solid var(--blue-2); transform: rotate(-45deg); }

.cta-block { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; padding: 48px; border: 1px solid var(--line-2); border-radius: 16px; background: var(--panel); position: relative; overflow: hidden; }
.cta-block::before { content: ""; position: absolute; left: -100px; top: -200px; width: 600px; height: 400px; background: radial-gradient(closest-side, rgba(27,103,254,.16), transparent); pointer-events: none; }
.cta-block > * { position: relative; }
.cta-block h2 { font-size: clamp(26px, 3vw, 36px); line-height: 1.1; letter-spacing: -0.028em; margin-bottom: 10px; }
.cta-block p { margin: 0; color: var(--muted); font-size: 16px; }
.cta-block .ctas { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 820px) { .cta-block { grid-template-columns: 1fr; padding: 32px 24px; } }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.two-col h2 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.1; letter-spacing: -0.028em; }
.two-col p { color: var(--muted); font-size: 17px; }
@media (max-width: 820px) { .two-col { grid-template-columns: 1fr; gap: 24px; } }

/* ---------- forms ---------- */
.form-layout { display: grid; grid-template-columns: 1fr 1.1fr; gap: 72px; align-items: start; }
@media (max-width: 900px) { .form-layout { grid-template-columns: 1fr; gap: 40px; } }
.form-panel { background: var(--panel); border: 1px solid var(--line-2); border-radius: 14px; overflow: hidden; }
.form-panel .fp-h { display: flex; justify-content: space-between; padding: 12px 22px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.form-panel .fp-h span:first-child { color: var(--text); font-weight: 510; }
.form-panel form { padding: 24px 22px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; color: var(--text-2); margin-bottom: 7px; font-weight: 500; }
.field label small { color: var(--faint); font-weight: 400; font-size: 12.5px; }
.field input, .field select, .field textarea {
  width: 100%; height: 40px; padding: 0 12px;
  font: 400 14.5px/1.4 var(--f); color: var(--text);
  background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 8px;
  transition: border-color .15s, box-shadow .15s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.field textarea { height: auto; min-height: 124px; padding: 10px 12px; resize: vertical; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 17px, calc(100% - 13px) 17px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
.field select option { background: var(--panel); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: rgba(79,131,247,.7); box-shadow: 0 0 0 3px rgba(79,131,247,.18); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; gap: 0; } }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--muted); margin: 6px 0 20px; }
.check a { color: var(--text-2); text-decoration: underline; text-decoration-color: var(--line-3); text-underline-offset: 3px; }
.check input { width: 15px; height: 15px; margin: 3px 0 0; accent-color: var(--blue); flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { margin-top: 16px; padding: 11px 14px; font-size: 14px; border-radius: 8px; border: 1px solid; display: none; }
.form-msg.ok { display: block; color: #9BE0BC; border-color: rgba(76,183,130,.35); background: rgba(76,183,130,.08); }
.form-msg.err { display: block; color: #F5A3A3; border-color: rgba(235,87,87,.35); background: rgba(235,87,87,.08); }
.form-msg.info { display: block; color: var(--text-2); border-color: rgba(79,131,247,.35); background: var(--blue-soft); }
.form-note { font-size: 13px; color: var(--muted); margin: 16px 0 0; }
.form-note a, .auth-alt a, .auth .notice a { color: var(--text); }
.auth { max-width: 400px; margin: 0 auto; }
.auth .brand-big { display: flex; justify-content: center; margin-bottom: 28px; }
.auth .brand-big svg { width: 45px; height: 40px; color: var(--logo); }
.auth h1 { text-align: center; font-size: 26px; margin-bottom: 22px; letter-spacing: -0.02em; }
.auth .notice { padding: 12px 14px; border: 1px solid rgba(79,131,247,.3); background: var(--blue-soft); border-radius: 10px; font-size: 13.5px; color: var(--text-2); margin-bottom: 16px; }
.auth .notice b { color: var(--text); font-weight: 510; }
.auth-alt { text-align: center; font-size: 13.5px; color: var(--muted); margin-top: 20px; }

/* ---------- legal ---------- */
.legal { display: grid; grid-template-columns: 220px 1fr; gap: 72px; align-items: start; }
.legal-nav { position: sticky; top: 96px; display: grid; gap: 2px; }
.legal-nav a { display: block; padding: 7px 12px; color: var(--muted); font-size: 14px; border-radius: 6px; }
.legal-nav a:hover { color: var(--text); }
.legal-nav a.on { color: var(--text); background: var(--hover); }
.legal-body { max-width: 720px; overflow-wrap: break-word; }
.legal-body h2 { font-size: 20px; margin: 44px 0 14px; letter-spacing: -0.015em; }
.legal-body h2:first-of-type { margin-top: 0; }
.legal-body p, .legal-body li { color: var(--muted); font-size: 15.5px; line-height: 1.7; }
.legal-body b { color: var(--text-2); font-weight: 510; }
.legal-body a { color: var(--text); text-decoration: underline; text-decoration-color: var(--line-3); text-underline-offset: 3px; }
.legal-body ul { padding-left: 20px; margin: 0 0 1em; }
.legal-body li { margin-bottom: 6px; }
.legal-meta { font-size: 13px; color: var(--faint); margin-bottom: 36px; }
.legal-body h2, .legal-body h3 { scroll-margin-top: 88px; }
.legal-body h3 { font-size: 16px; margin: 26px 0 10px; letter-spacing: -0.01em; }
.legal-toc { margin: 8px 0 0; padding: 18px 20px 8px; border: 1px solid var(--line); border-radius: 10px; }
.legal-toc ul { list-style: none; padding-left: 0; columns: 2; column-gap: 32px; }
.legal-toc li { font-size: 14px; margin-bottom: 4px; break-inside: avoid; }
.legal-body .legal-toc a { color: var(--muted); text-decoration: none; }
.legal-body .legal-toc a:hover { color: var(--text); }
/* Highlighted placeholders (<mark>) in legal drafts: must stand out until they are filled in. */
.legal-body mark { background: #FFE58A; color: #1A1D21; padding: 0 3px; border-radius: 3px; }
@media (max-width: 860px) {
  .legal { grid-template-columns: 1fr; gap: 28px; }
  .legal-nav { position: static; display: flex; flex-wrap: wrap; gap: 4px; }
}
@media (max-width: 600px) {
  .legal-toc ul { columns: 1; }
}

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: 64px 0 40px; font-size: 13.5px; color: var(--muted); }
.foot-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 48px; }
.site-footer .brand { margin-bottom: 14px; }
.site-footer .brand-sub { font: 500 10.5px/1 var(--f-brand); letter-spacing: .28em; text-transform: uppercase; color: var(--faint); }
.site-footer h2 { margin: 0 0 14px; font-size: 13px; color: var(--text); font-weight: 510; letter-spacing: 0; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 10px; overflow-wrap: anywhere; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }
.foot-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 56px; font-size: 12.5px; color: var(--faint); }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > div:first-child { grid-column: 1 / -1; } }

/* ---------- 404 ---------- */
.nf { padding: 160px 0; }
.nf .code { font: 500 13px/1 var(--f-mono); color: var(--faint); margin-bottom: 22px; }
.nf h1 { font-size: clamp(40px, 5.6vw, 68px); letter-spacing: -0.035em; margin-bottom: 16px; }

/* ---------- reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }

@media (max-width: 620px) {
  :root { --gutter: 16px; }
  section, .feature { padding: 80px 0; }
  .final { padding: 110px 0; }
  .section-head { margin-bottom: 40px; }
  .hero h1, .section-head h2, .f-head h2, .final h2, .statement, .pledge h2, .two-col h2, .cta-block h2 { hyphens: auto; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- theme toggle ---------- */
.theme-btn {
  display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0;
  background: transparent; border: 1px solid transparent; border-radius: var(--r-sm);
  color: var(--muted); cursor: pointer; transition: color .15s, border-color .15s, background .15s;
}
.theme-btn:hover { color: var(--text); border-color: var(--line-2); background: var(--hover); }
.theme-btn svg { width: 16px; height: 16px; }
.theme-btn .moon { display: none; }
[data-theme="light"] .theme-btn .sun { display: none; }
[data-theme="light"] .theme-btn .moon { display: block; }

/* ---------- light theme ---------- */
[data-theme="light"] {
  color-scheme: light;
  --bg: #FFFFFF;
  --bg-2: #F6F7F9;
  --panel: #FFFFFF;
  --panel-2: #F4F5F7;
  --panel-3: #ECEEF2;
  --line: rgba(15, 23, 42, 0.08);
  --line-2: rgba(15, 23, 42, 0.12);
  --line-3: rgba(15, 23, 42, 0.22);
  --text: #0F172A;
  --text-2: #334155;
  --muted: #64748B;
  --faint: #7F8A9C;
  --blue-2: #1B67FE;
  --blue-soft: rgba(27, 103, 254, 0.08);
  --green: #1F9D5C;
  --yellow: #D9A21B;
  --orange: #E07B24;
  --red: #D64545;
  --logo: #0F172A;
  --header-bg: rgba(255, 255, 255, 0.82);
  --ui-bg: #FFFFFF;
  --ui-side: #F7F8FA;
  --btn-primary-bg: #0F172A;
  --btn-primary-fg: #FFFFFF;
  --hover: rgba(15, 23, 42, 0.05);
}
[data-theme="light"] a:hover { color: #000; }
[data-theme="light"] ::selection { background: rgba(27, 103, 254, .18); color: #0F172A; }
[data-theme="light"] .btn:hover { color: var(--text); }
[data-theme="light"] .btn.primary:hover { background: #1E293B; color: #fff; }
[data-theme="light"] .btn.blue:hover { background: #1557DB; color: #fff; }
[data-theme="light"] .tag, [data-theme="light"] .chip, [data-theme="light"] .pill,
[data-theme="light"] .lang-btn:hover, [data-theme="light"] .lang.open .lang-btn { background: var(--panel-2); }
[data-theme="light"] .lang-menu { background: #fff; box-shadow: 0 16px 40px -12px rgba(15, 23, 42, .22); }

/* product frame and mockups */
[data-theme="light"] .frame {
  border-color: rgba(15, 23, 42, .12);
  box-shadow: 0 18px 36px -18px rgba(15, 23, 42, .18);
}
[data-theme="light"] .frame-fade::after { background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, var(--bg) 85%); }
[data-theme="light"] .pnl { box-shadow: 0 8px 20px -14px rgba(15, 23, 42, .16); }
[data-theme="light"] .subs-h, [data-theme="light"] .diff .file,
[data-theme="light"] .check-row, [data-theme="light"] .act li.card-row { background: var(--panel-2); }
[data-theme="light"] .app-body code, [data-theme="light"] .ui code { background: var(--panel-2); }
[data-theme="light"] .tk .bar, [data-theme="light"] .dep-row .tr { background: var(--panel-3); }
[data-theme="light"] .opt.on { color: var(--blue); border-color: rgba(27, 103, 254, .45); }
[data-theme="light"] .diff .k { color: #8B3FD9; }
[data-theme="light"] .diff .s { color: #1F7A3D; }
[data-theme="light"] .diff .f { color: #1B5FD6; }
[data-theme="light"] .diff .ln.a { background: rgba(31, 157, 92, .08); }
[data-theme="light"] .diff .ln.d { background: rgba(214, 69, 69, .07); }
[data-theme="light"] .prop .prio i { background: var(--text-2); }
[data-theme="light"] .prop .prio i:nth-child(3) { background: var(--faint); }
[data-theme="light"] .ok-ic { background: rgba(31, 157, 92, .14); }

/* sections */
[data-theme="light"] .bg-surface, [data-theme="light"] .statement-sec { background: var(--bg-2); }
[data-theme="light"] .final::before { background: radial-gradient(closest-side, rgba(27, 103, 254, .12), transparent); }
[data-theme="light"] .page-head::before { background: radial-gradient(closest-side, rgba(27, 103, 254, .08), transparent); }
[data-theme="light"] .cta-block::before { background: radial-gradient(closest-side, rgba(27, 103, 254, .08), transparent); }
[data-theme="light"] .site-footer { background: var(--bg-2); }

/* forms */
[data-theme="light"] .field input, [data-theme="light"] .field select, [data-theme="light"] .field textarea { background: #fff; }
[data-theme="light"] .form-msg.ok { color: #16713F; border-color: rgba(31, 157, 92, .35); background: rgba(31, 157, 92, .07); }
[data-theme="light"] .form-msg.err { color: #B42323; border-color: rgba(214, 69, 69, .35); background: rgba(214, 69, 69, .06); }

/* ---------- v3: engineering team, amplified by AI ---------- */
/* hero: request → engineers' reply */
.hero-shot { display: grid; grid-template-columns: 1.15fr 1fr; gap: 16px; align-items: start; margin-bottom: 96px; }
.hero-shot .pnl { box-shadow: 0 18px 36px -18px rgba(0, 0, 0, .55); }
.hero-shot .composer .body { color: var(--text-2); line-height: 1.6; }
.hero-shot .composer-f .dim { font-size: 12.5px; }
.hero-shot .review { padding-top: 0; }
@media (max-width: 960px) { .hero-shot { grid-template-columns: 1fr; margin-bottom: 64px; } }
.pill.static { cursor: default; }

/* engagement steps: choose → tell → review → proposal → approve → invoice → start (stepper, no scroll) */
.journey { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); counter-reset: f; }
.journey li { position: relative; padding-right: 12px; font-size: 13.5px; line-height: 1.4; color: var(--text-2); counter-increment: f; overflow-wrap: break-word; hyphens: auto; }
.journey li::before {
  content: counter(f); position: relative; z-index: 1; display: block; width: 28px; height: 28px; margin-bottom: 14px;
  border: 1px solid var(--line-2); border-radius: 50%; background: var(--panel); color: var(--muted); font: 500 12px/26px var(--f-mono); text-align: center;
}
.journey li:not(:last-child)::after { content: ""; position: absolute; top: 14px; left: 36px; right: 8px; height: 1px; background: var(--line-2); }
.journey li.you { color: var(--text); }
.journey li.you::before { background: var(--blue-soft); border-color: rgba(79, 131, 247, .55); color: var(--blue-2); }
.flow-cap { font-size: 14px; color: var(--muted); margin: 26px 0 0; max-width: 680px; }
@media (max-width: 900px) {
  .journey { grid-template-columns: 1fr; }
  .journey li { display: flex; align-items: center; gap: 14px; padding: 0 0 14px; }
  .journey li:last-child { padding-bottom: 0; }
  .journey li::before { margin: 0; flex: none; }
  .journey li:not(:last-child)::after { top: 32px; bottom: 4px; left: 14px; right: auto; width: 1px; height: auto; }
}

/* human responsibility */
.pledge { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 56px; border: 1px solid var(--line-2); border-radius: 16px; background: var(--panel); position: relative; overflow: hidden; }
.pledge::before { content: ""; position: absolute; left: -120px; top: -220px; width: 640px; height: 440px; background: radial-gradient(closest-side, rgba(27, 103, 254, .18), transparent); pointer-events: none; }
.pledge > * { position: relative; }
.pledge h2 { font-size: clamp(30px, 3.6vw, 46px); line-height: 1.06; letter-spacing: -0.03em; margin-bottom: 18px; }
.pledge h2 .gray { color: var(--muted); }
.pledge p { color: var(--text-2); font-size: 16.5px; line-height: 1.6; margin: 0 0 14px; }
.pledge p:last-child { margin-bottom: 0; }
.pledge-split { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pledge-split > div { padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, .02); }
.pledge-split h3 { font-size: 13.5px; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.pledge-split h3 .av { width: 20px; height: 20px; font-size: 9px; }
.pledge-split ul { list-style: none; margin: 0; padding: 0; }
.pledge-split li { font-size: 13.5px; color: var(--muted); padding: 5px 0; border-top: 1px solid var(--line); }
.pledge-split li:first-child { border-top: 0; padding-top: 0; }
@media (max-width: 860px) { .pledge { grid-template-columns: 1fr; gap: 28px; padding: 32px 24px; } }
@media (max-width: 480px) { .pledge-split { grid-template-columns: 1fr; } }

/* pricing */
.pricing { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.pricing.tiers { grid-template-columns: repeat(4, 1fr); }
.price-plan { background: var(--panel); border: 1px solid var(--line-2); border-radius: 14px; padding: 28px; display: flex; flex-direction: column; position: relative; }
.price-plan.hl { border-color: rgba(79, 131, 247, .55); box-shadow: 0 0 0 1px rgba(79, 131, 247, .22), 0 22px 40px -28px rgba(27, 103, 254, .55); }
.price-plan .code { display: flex; justify-content: space-between; gap: 10px; text-align: right; align-items: center; font: 500 12px/1 var(--f-mono); color: var(--faint); margin-bottom: 18px; }
.price-plan h3 { font-size: 20px; letter-spacing: -0.02em; margin-bottom: 14px; }
.price-plan .for { color: var(--muted); font-size: 14.5px; line-height: 1.5; margin: 0 0 20px; }
.price-plan .price { color: var(--text); font-size: 34px; font-weight: 520; letter-spacing: -0.03em; line-height: 1; margin-bottom: 20px; }
.price-plan .price small { font-size: 14px; color: var(--muted); font-weight: 400; letter-spacing: 0; }
.price-plan .price .from { display: block; font-size: 13px; color: var(--muted); font-weight: 400; letter-spacing: 0; margin-bottom: 8px; }
.price-plan .note { font-size: 13px; color: var(--muted); margin: 0 0 20px; line-height: 1.5; }
.price-plan .price + .note { margin-top: -12px; }
.price-plan .for + .note { margin-top: -12px; }
.price-plan ul { list-style: none; margin: 0 0 26px; padding: 0; }
.price-plan li { font-size: 14px; color: var(--text-2); padding: 8px 0 8px 22px; border-top: 1px solid var(--line); position: relative; }
.price-plan li::before { content: ""; position: absolute; left: 1px; top: 15px; width: 10px; height: 6px; border-left: 1.5px solid var(--blue-2); border-bottom: 1.5px solid var(--blue-2); transform: rotate(-45deg); }
.price-plan .btn { margin-top: auto; width: 100%; }
.price-plan .fine { font-size: 12.5px; color: var(--faint); margin: 12px 0 0; text-align: center; line-height: 1.5; }
.pricing-sub { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin: 56px 0 20px; }
.pricing-sub h3 { font-size: 22px; letter-spacing: -0.02em; }
.pricing-sub p { margin: 0; color: var(--muted); font-size: 15px; }
.pricing-foot { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--line); }
.pricing-foot h3 { font-size: 18px; margin-bottom: 20px; }
@media (max-width: 1000px) { .pricing.tiers { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .pricing, .pricing.tiers { grid-template-columns: 1fr; } .price-plan { padding: 24px 20px; } }
/* cards in a row share rows (subgrid): headers, prices and buttons line up; description + list flow right under the price */
@supports (grid-template-rows: subgrid) {
  @media (min-width: 621px) {
    .pricing { row-gap: 0; }
    .price-plan { display: grid; grid-template-rows: subgrid; grid-row: span 7; align-content: start; }
    .price-plan > .code { grid-row: 1; }
    .price-plan > h3 { grid-row: 2; }
    .price-plan > .price { grid-row: 3; align-self: end; }
    .price-plan > .note { grid-row: 4; }
    .price-plan > .plan-body { grid-row: 5; }
    .price-plan > .btn { grid-row: 6; align-self: end; }
    .price-plan > .fine { grid-row: 7; }
  }
  @media (min-width: 621px) and (max-width: 1000px) { .pricing.tiers .price-plan:nth-child(-n+2) { margin-bottom: 16px; } }
}

/* audit entry block */
.cta-block .price-tag { display: inline-flex; align-items: baseline; gap: 8px; margin-bottom: 14px; color: var(--text); font-size: 30px; font-weight: 520; letter-spacing: -0.03em; }
.cta-block .price-tag small { font-size: 13px; color: var(--muted); font-weight: 400; letter-spacing: 0; }

/* founders */
.founders { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.founder { padding: 28px; border: 1px solid var(--line-2); border-radius: 14px; background: var(--panel); display: flex; gap: 18px; align-items: flex-start; }
.founder .ph { width: 64px; height: 64px; border-radius: 14px; background: var(--panel-3); border: 1px solid var(--line-2); display: flex; align-items: center; justify-content: center; color: var(--muted); font: 600 18px/1 var(--f); flex: none; overflow: hidden; }
.founder .ph img { width: 100%; height: 100%; object-fit: cover; }
.founder h3 { font-size: 16px; margin-bottom: 2px; }
.founder .role { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.founder p { font-size: 14.5px; color: var(--muted); line-height: 1.55; margin: 0; }
@media (min-width: 961px) { .founder { flex-direction: column; } }
@media (max-width: 960px) { .founders { grid-template-columns: 1fr; } }

/* light theme for v3 blocks */
[data-theme="light"] .hero-shot .pnl { box-shadow: 0 18px 36px -18px rgba(15, 23, 42, .18); }
[data-theme="light"] .pledge::before { background: radial-gradient(closest-side, rgba(27, 103, 254, .09), transparent); }
[data-theme="light"] .pledge-split > div { background: var(--panel-2); }
[data-theme="light"] .price-plan.hl { box-shadow: 0 0 0 1px rgba(27, 103, 254, .18), 0 22px 40px -28px rgba(27, 103, 254, .35); }
[data-theme="light"] .founder, [data-theme="light"] .price-plan { box-shadow: 0 8px 20px -14px rgba(15, 23, 42, .12); }
