@font-face { font-family: "Geist"; src: url("fonts/geist-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("fonts/geist-mono-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #03050a;
  --panel: #080d18;
  --line: rgba(140, 170, 230, .12);
  --line-2: rgba(140, 170, 230, .24);
  --text: #b6c1d6;
  --muted: #6c7a95;
  --head: #f2f6ff;
  --cyan: #48e5ff;
  --cyan-rgb: 72, 229, 255;
  --amber: #ffb03b;
  --green: #3dffa0;
  --max: 1200px;
  --sans: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Consolas, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 17px/1.65 var(--sans); -webkit-font-smoothing: antialiased;
}
img, video, svg, canvas { display: block; max-width: 100%; }
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { color: var(--head); font-weight: 600; margin: 0 0 .5em; }
h2 { font-size: clamp(2.1rem, 4.8vw, 3.7rem); letter-spacing: -.04em; line-height: 1.02; }
h3 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); letter-spacing: -.025em; line-height: 1.2; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.lead { font-size: clamp(1.1rem, 1.5vw, 1.28rem); color: #d0d8e8; max-width: 34em; }
.mono { font-family: var(--mono); }
section { position: relative; padding: clamp(72px, 9vw, 128px) 0; }
.intro { max-width: 760px; margin-bottom: clamp(40px, 6vw, 72px); }
.more { margin: 40px 0 0; color: var(--muted); }

.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 10px;
  background: var(--cyan); color: #01131a; font-weight: 600; font-size: .98rem; letter-spacing: -.01em;
  box-shadow: 0 0 0 1px rgba(var(--cyan-rgb), .6), 0 8px 40px -8px rgba(var(--cyan-rgb), .55);
  transition: transform .2s, box-shadow .2s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(var(--cyan-rgb), .9), 0 10px 50px -6px rgba(var(--cyan-rgb), .7); }
.btn.ghost { background: rgba(255, 255, 255, .03); color: var(--head); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn.ghost:hover { box-shadow: inset 0 0 0 1px rgba(var(--cyan-rgb), .6); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* top bar */
.top { position: fixed; inset: 0 0 auto; z-index: 20; border-bottom: 1px solid transparent; transition: background .3s, border-color .3s; }
.top.scrolled { background: rgba(3, 5, 10, .8); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-color: var(--line); }
.top .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; color: var(--head); font-weight: 600; font-size: 1.08rem; letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.brand img { width: 26px; height: 26px; filter: brightness(0) invert(1); }
.top .pages { display: flex; gap: 28px; }
.top .pages a { color: var(--text); font-size: .93rem; }
.top .pages a:hover { color: var(--head); text-decoration: none; }
.langs { display: flex; gap: 2px; padding: 3px; border: 1px solid var(--line-2); border-radius: 9px; font: 600 11px/1 var(--mono); letter-spacing: .08em; }
.langs a { padding: 7px 8px; border-radius: 6px; color: var(--muted); }
.langs a:hover { color: var(--head); text-decoration: none; }
.langs a[aria-current="page"] { background: rgba(var(--cyan-rgb), .12); color: var(--cyan); }
.top .btn { padding: 9px 16px; font-size: .9rem; }

/* hero: canvas behind, text on the left, live log bottom right */
.hero {
  min-height: 100vh; min-height: 100svh; padding: 0; display: flex; align-items: center; overflow: hidden;
  background: radial-gradient(900px 640px at 68% 52%, rgba(30, 70, 150, .22), transparent 70%), var(--bg);
}
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero::before, .hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.hero::before { background: linear-gradient(90deg, rgba(3, 5, 10, .96) 0%, rgba(3, 5, 10, .78) 32%, rgba(3, 5, 10, 0) 58%); }
.hero::after { background: linear-gradient(180deg, rgba(3, 5, 10, .5) 0%, transparent 18%, transparent 78%, var(--bg) 100%); }
.hero .wrap { position: relative; z-index: 2; width: 100%; padding-top: 120px; padding-bottom: 140px; }
.hero h1 { font-size: clamp(2.6rem, 5vw, 4.7rem); letter-spacing: -.05em; line-height: .98; max-width: 8.6em; margin-bottom: .45em; }
.hero h1 span {
  background: linear-gradient(95deg, #ffffff 0%, var(--cyan) 50%, #7c8cff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lead { max-width: 28em; margin-bottom: 2em; }

.live {
  position: absolute; z-index: 2; right: 28px; bottom: 28px; width: min(470px, 40vw);
  font: 12px/1.55 var(--mono); color: var(--muted);
  background: rgba(5, 9, 18, .74); border: 1px solid var(--line-2); border-radius: 12px;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.live-head { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 12px; border-bottom: 1px solid var(--line); font-size: 10.5px; text-transform: uppercase; letter-spacing: .09em; }
.live-head .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); animation: blink 2.4s ease-in-out infinite; }
.live.paused .dot { background: var(--muted); box-shadow: none; animation: none; }
.live-head button {
  margin-left: auto; padding: 3px 9px; border: 1px solid var(--line-2); border-radius: 6px; background: none;
  color: var(--text); font: inherit; letter-spacing: inherit; text-transform: inherit; cursor: pointer;
}
.live-head button:hover { border-color: rgba(var(--cyan-rgb), .6); color: var(--head); }
.live ol { list-style: none; margin: 0; padding: 8px 12px 10px; height: calc(5 * 1.55em + 18px); overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; }
.live li { display: grid; grid-template-columns: 62px 120px minmax(0, 1fr); gap: 6px; white-space: nowrap; animation: logIn .45s ease both; }
.live li span { overflow: hidden; text-overflow: ellipsis; }
.live li .n { color: var(--cyan); }
.live li .m { color: var(--text); }
.live li.warn .n, .live li.warn .m { color: var(--amber); }
.live li.ok .n, .live li.ok .m { color: var(--green); }
@keyframes logIn { from { opacity: 0; transform: translateY(8px); } }
@keyframes traceIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes blink { 50% { opacity: .35; } }

/* growth */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.chart { margin: 0; padding: 28px 28px 18px; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(180deg, rgba(12, 18, 34, .7), rgba(5, 8, 15, .7)); }
.chart svg { width: 100%; height: auto; overflow: visible; }
.chart text { font-family: var(--mono); font-size: 12px; fill: var(--muted); }
.chart .grid { stroke: var(--line); }
.chart .base { stroke: var(--line-2); }
.chart .l-work, .chart .l-team, .chart .l-wcl { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.chart .l-work { stroke: var(--amber); stroke-width: 2.5; }
.chart .l-team { stroke: #8593ad; stroke-width: 2; }
.chart .l-wcl { stroke: var(--cyan); stroke-width: 3; filter: drop-shadow(0 0 6px rgba(var(--cyan-rgb), .7)); }
.chart .gap { fill: url(#hatch); }
.chart .won { fill: rgba(var(--cyan-rgb), .12); }
.chart figcaption { margin-top: 10px; font: 11px/1.4 var(--mono); color: var(--muted); }
.js .chart .l-work, .js .chart .l-team, .js .chart .l-wcl { stroke-dasharray: 1; stroke-dashoffset: 1; }
.js .chart .gap, .js .chart .tag { opacity: 0; transition: opacity .9s ease 1.3s; }
.js .chart.in .l-work, .js .chart.in .l-team { stroke-dashoffset: 0; transition: stroke-dashoffset 1.6s cubic-bezier(.5, 0, .2, 1) .2s; }
.js .chart.in .l-wcl { stroke-dashoffset: 0; transition: stroke-dashoffset 1.5s cubic-bezier(.5, 0, .2, 1) 2s; }
.js .chart.in .gap, .js .chart.in .tag { opacity: 1; }
.js .chart.in .tag.late { transition-delay: 3.1s; }

/* solutions console */
.console {
  display: grid; grid-template-columns: 290px minmax(0, 1fr); overflow: hidden;
  border: 1px solid var(--line-2); border-radius: 20px;
  background: linear-gradient(180deg, rgba(13, 20, 38, .85), rgba(5, 8, 15, .92));
  box-shadow: 0 40px 120px -40px rgba(20, 80, 200, .35);
}
.tabs { display: flex; flex-direction: column; gap: 4px; padding: 12px; border-right: 1px solid var(--line); }
.tabs button {
  position: relative; display: block; width: 100%; padding: 15px 16px 15px 20px; text-align: left; cursor: pointer;
  background: none; border: 1px solid transparent; border-radius: 12px; color: var(--muted); font: inherit;
}
.tabs button b { display: block; color: var(--text); font-weight: 600; font-size: 1rem; letter-spacing: -.01em; }
.tabs button small { display: block; font: 11.5px/1.5 var(--mono); }
.tabs button:hover b { color: var(--head); }
.tabs button[aria-selected="true"] { background: rgba(var(--cyan-rgb), .07); border-color: rgba(var(--cyan-rgb), .28); }
.tabs button[aria-selected="true"] b { color: var(--head); }
.tabs button[aria-selected="true"]::before { content: ""; position: absolute; left: 8px; top: 16px; bottom: 16px; width: 2px; border-radius: 2px; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.panel { padding: clamp(24px, 3.4vw, 40px); }
.panel:focus-visible { outline-offset: -4px; }
.panel-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.stack { margin: 0; font: 11.5px/1.6 var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }

.flow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(24px, 72px) minmax(0, 1.2fr) minmax(24px, 72px) minmax(0, 1fr); align-items: center; margin: 26px 0 30px; }
.node { padding: 13px 14px; border: 1px solid var(--line-2); border-radius: 12px; background: rgba(3, 5, 10, .7); font: 11px/1.45 var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.node b { display: block; margin-bottom: 2px; color: var(--head); font-size: 12.5px; font-weight: 600; letter-spacing: .04em; }
.node.core { border-color: rgba(var(--cyan-rgb), .7); background: rgba(var(--cyan-rgb), .07); box-shadow: 0 0 0 4px rgba(var(--cyan-rgb), .06), 0 0 40px -6px rgba(var(--cyan-rgb), .45); }
.node.core b { color: var(--cyan); }
.wire { position: relative; height: 1px; background: linear-gradient(90deg, var(--line-2), rgba(var(--cyan-rgb), .45), var(--line-2)); }
.wire i { position: absolute; top: -2px; left: 0; width: 22px; height: 5px; border-radius: 3px; background: linear-gradient(90deg, transparent, var(--cyan)); box-shadow: 0 0 12px var(--cyan); animation: wireX 1.7s linear infinite; }
.wire i + i { animation-delay: .85s; }
@keyframes wireX { from { left: -22px; opacity: 0; } 20%, 80% { opacity: 1; } to { left: 100%; opacity: 0; } }
@keyframes wireY { from { top: -14px; opacity: 0; } 20%, 80% { opacity: 1; } to { top: 100%; opacity: 0; } }

.eg { margin: 0 0 8px; font: 11px/1.4 var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.proof { position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 9; border: 1px solid var(--line-2); border-radius: 12px; background: #000; box-shadow: 0 30px 80px -40px rgba(255, 110, 40, .45); }
.proof video { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.proof:hover video { transform: scale(1.03); }
.proof-links { margin: 12px 0 0; font: 12px/1.6 var(--mono); text-transform: uppercase; letter-spacing: .06em; }
.trace { list-style: none; margin: 0 0 18px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: rgba(2, 4, 9, .65); font: 12px/1.95 var(--mono); color: var(--text); }
.trace li { display: flex; gap: 14px; }
.trace li span { flex: none; color: var(--muted); }
.trace li:last-child { color: var(--green); }
.js .console .trace li { opacity: 0; }
.js .console.in .run .trace li { animation: traceIn .4s ease forwards; animation-delay: calc(var(--i) * .75s + .3s); }



/* contact */
.contact { text-align: center; overflow: hidden; padding: clamp(96px, 13vw, 184px) 0; }
.contact .rain { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.contact::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(rgba(140, 170, 230, .16) 1px, transparent 1.2px) 0 0 / 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 50%, #000 0%, transparent 75%); mask-image: radial-gradient(ellipse 60% 70% at 50% 50%, #000 0%, transparent 75%);
}
.contact::after { content: ""; position: absolute; left: 50%; top: 50%; width: min(900px, 100%); height: min(500px, 100%); transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(var(--cyan-rgb), .12), transparent); pointer-events: none; }
.contact .wrap { position: relative; z-index: 1; }
.contact .lead { margin: 0 auto 2.4em; }
.contact .mail {
  display: inline-block; font-size: clamp(1.7rem, 5.4vw, 4.4rem); font-weight: 600; letter-spacing: -.045em; line-height: 1.1;
  background: linear-gradient(95deg, #fff 0%, var(--cyan) 60%, #7c8cff 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.contact .mail:hover { text-decoration: none; filter: brightness(1.15); }

/* text pages (privacy) */
.doc { max-width: 760px; padding-top: 140px; padding-bottom: 96px; }
.doc h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); letter-spacing: -.04em; line-height: 1.05; margin-bottom: .3em; }
.doc h2 { font-size: 1.3rem; letter-spacing: -.02em; line-height: 1.3; margin: 2.2em 0 .5em; }
.doc p, .doc li { color: #d0d8e8; }
.doc ul { margin: 0 0 1em; padding-left: 1.2em; }
.doc li { margin-bottom: .45em; }
.doc .updated { margin-bottom: 2em; font: 12px/1.6 var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }

footer { border-top: 1px solid var(--line); padding: 28px 0 36px; font-size: .88rem; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
footer a { color: var(--text); }

/* scroll reveal, only when JS runs */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s ease, transform .9s cubic-bezier(.2, .7, .2, 1); }
.js [data-reveal].in { opacity: 1; transform: none; }

@media (max-width: 960px) {
  .split { grid-template-columns: minmax(0, 1fr); }
  /* The console becomes an accordion: every topic is a full-width row and its panel opens right below it.
     The tablist steps out of the layout; --o (set in site.js) interleaves tabs and panels. */
  .console { display: flex; flex-direction: column; }
  .tabs { display: contents; }
  .tabs button { order: var(--o); padding: 16px 52px 16px 22px; border: 0; border-top: 1px solid var(--line); border-radius: 0; }
  .tabs button:first-child { border-top: 0; }
  .tabs button[aria-selected="true"] { border-color: var(--line); }
  .tabs button[aria-selected="true"]::before { left: 0; top: 0; bottom: 0; border-radius: 0; }
  .tabs button::after {
    content: ""; position: absolute; right: 24px; top: 50%; width: 8px; height: 8px;
    border: solid var(--muted); border-width: 0 1.5px 1.5px 0; transform: translateY(-75%) rotate(45deg); transition: transform .25s;
  }
  .tabs button[aria-selected="true"]::after { border-color: var(--cyan); transform: translateY(-25%) rotate(225deg); }
  .panel { order: var(--o); padding-top: 6px; background: rgba(var(--cyan-rgb), .03); }
  .panel-body { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .example { margin-top: 14px; }
}
@media (max-width: 760px) {
  .top .pages { display: none; }
  .top .wrap { gap: 12px; }
  .hero { align-items: flex-end; }
  .hero::before { background: linear-gradient(180deg, rgba(3, 5, 10, 0) 30%, rgba(3, 5, 10, .86) 52%, var(--bg) 78%); }
  .hero .wrap { padding-top: 50vh; padding-top: 50svh; padding-bottom: 56px; }
  .live { left: auto; right: 16px; top: 78px; bottom: auto; width: auto; }
  .live ol { display: none; }
  .live-head { border-bottom: 0; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .flow { grid-template-columns: minmax(0, 1fr); justify-items: stretch; margin: 20px 0 24px; }
  .wire { width: 1px; height: 26px; justify-self: center; background: linear-gradient(180deg, var(--line-2), rgba(var(--cyan-rgb), .45), var(--line-2)); }
  .wire i { top: 0; left: -2px; width: 5px; height: 14px; background: linear-gradient(180deg, transparent, var(--cyan)); animation-name: wireY; }
  .trace { padding: 12px 14px; font-size: 11px; line-height: 1.8; }
  .trace li { gap: 10px; }
  .chart { padding: 18px 14px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, ::before, ::after { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js .chart .l-work, .js .chart .l-team, .js .chart .l-wcl { stroke-dashoffset: 0; }
  .js .chart .gap, .js .chart .tag, .js .console .trace li { opacity: 1; }
  .wire i { display: none; }
}
