:root {
  --bg: #070d24;
  --bg-2: #0a1330;
  --card: rgba(255, 255, 255, .04);
  --line: rgba(255, 255, 255, .1);
  --text: #e8ecf8;
  --muted: #9aa7c8;
  --blue: #3b7bff;
  --blue-2: #1f5bd8;
  --teal: #19d3b5;
  --max: 1360px;
  --radius: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px); }
.muted { color: var(--muted); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 26px; border-radius: 999px; border: 1px solid transparent;
  background: linear-gradient(135deg, var(--blue), var(--blue-2)); color: #fff;
  font: 600 .98rem Inter, sans-serif; text-decoration: none; cursor: pointer;
  box-shadow: 0 8px 30px -8px rgba(59, 123, 255, .6);
  transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 12px 34px -8px rgba(59, 123, 255, .8); }
.btn.ghost { background: transparent; border-color: var(--line); box-shadow: none; }
.btn.ghost:hover { background: rgba(255, 255, 255, .06); }
.btn.sm { padding: 9px 18px; font-size: .9rem; }
.btn[disabled] { opacity: .6; cursor: wait; }

/* header */
header.site {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .25s, border-color .25s, backdrop-filter .25s;
  border-bottom: 1px solid transparent;
}
header.site.solid {
  background: rgba(7, 13, 36, .82); backdrop-filter: blur(12px); border-color: var(--line);
}
.bar { display: flex; align-items: center; justify-content: space-between; height: 80px; }
.brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; }
.brand img { height: 48px; width: auto; }
.word { font-weight: 800; font-size: 1.6rem; letter-spacing: -.02em; }
.word b { color: var(--blue); font-weight: 800; }
.word .co { font-weight: 500; color: var(--muted); letter-spacing: 0; }
@media (max-width: 480px) { .word { font-size: 1.05rem; } .brand { gap: 10px; } }
nav { display: flex; align-items: center; gap: 28px; }
nav a:not(.btn) { text-decoration: none; color: var(--muted); font-weight: 500; font-size: .94rem; transition: color .15s; }
nav a:not(.btn):hover { color: #fff; }
.burger { display: none; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 9px; right: 9px; height: 2px; background: #fff; transition: transform .2s; }
.burger span:first-child { top: 15px; } .burger span:last-child { top: 23px; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* glow blobs */
.glow { position: absolute; border-radius: 50%; filter: blur(110px); pointer-events: none; opacity: .5; }
.g1 { width: 520px; height: 520px; background: var(--blue-2); top: -160px; right: -120px; }
.g2 { width: 420px; height: 420px; background: #0e9c8a; bottom: -200px; left: -120px; opacity: .3; }
.g3 { width: 480px; height: 480px; background: var(--blue-2); top: -200px; right: -160px; opacity: .35; }

/* hero */
.hero { position: relative; overflow: hidden; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: 120px 0 60px; }
.hero > .wrap { width: 100%; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--card); color: var(--teal);
  font-size: .8rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
}
.pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 10px var(--teal); }
.hero h1 { font-size: clamp(2.3rem, 4.6vw, 4.6rem); line-height: 1.07; letter-spacing: -.03em; margin: 22px 0 20px; font-weight: 800; }
.hero h1 em {
  font-style: normal;
  background: linear-gradient(90deg, #6aa0ff, var(--teal)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { font-size: 1.15rem; color: var(--muted); max-width: 54ch; margin: 0; }
.cta { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 38px 0 0; }
.chips li { font-size: .82rem; color: var(--muted); padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; }

/* orbit */
.orbit { --w: clamp(400px, min(40vw, 72vh), 640px); position: relative; width: var(--w); aspect-ratio: 1; justify-self: center; --R: calc(var(--w) * .4); }
.orbit .ring, .orbit .spin { position: absolute; inset: 0; }
.ring { border-radius: 50%; border: 1px dashed rgba(255, 255, 255, .18); }
.ring.r2 { inset: 22%; border-style: solid; border-color: rgba(59, 123, 255, .25); }
.spin { animation: spin 48s linear infinite; }
.node {
  position: absolute; top: 50%; left: 50%; width: 0; height: 0;
  transform: rotate(var(--a)) translateY(calc(var(--R) * -1)) rotate(calc(var(--a) * -1));
}
.node span {
  position: absolute; translate: -50% -50%; white-space: nowrap;
  padding: 8px 16px; border-radius: 999px; font-size: .82rem; font-weight: 600;
  background: var(--bg-2); border: 1px solid rgba(59, 123, 255, .5); color: #fff;
  box-shadow: 0 0 24px -4px rgba(59, 123, 255, .5);
  animation: spin 48s linear infinite reverse;
}
.node.human span { border-color: var(--teal); box-shadow: 0 0 24px -4px rgba(25, 211, 181, .6); color: var(--teal); }
.core { position: absolute; top: 50%; left: 50%; width: 26%; transform: translate(-50%, -50%); filter: drop-shadow(0 16px 40px rgba(59, 123, 255, .55)); }
@keyframes spin { to { transform: rotate(360deg); } }

/* sections */
section { padding: 100px 0; position: relative; }
section.alt { background: var(--bg-2); }
.head { max-width: 720px; margin-bottom: 48px; }
.head.left { margin-bottom: 28px; }
.kicker { color: var(--teal); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; font-size: .78rem; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.15; letter-spacing: -.02em; margin: 10px 0 12px; font-weight: 800; }
.sub { color: var(--muted); font-size: 1.05rem; margin: 0; }

.grid { display: grid; gap: 20px; }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; transition: border-color .2s, transform .2s, background .2s;
}
.card:hover { border-color: rgba(59, 123, 255, .5); transform: translateY(-3px); background: rgba(255, 255, 255, .06); }
.card h3 { margin: 18px 0 8px; font-size: 1.15rem; }
.card p { margin: 0; color: var(--muted); }
.card.sm { padding: 24px; }
.card.sm h3 { margin-top: 0; font-size: 1.02rem; }
.ico {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(59, 123, 255, .25), rgba(25, 211, 181, .2)); border: 1px solid var(--line);
}
.ico svg { width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* tabs */
.tabs { display: inline-flex; gap: 6px; padding: 5px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); margin-bottom: 28px; flex-wrap: wrap; }
.tabs button {
  border: 0; background: transparent; color: var(--muted); font: 600 .92rem Inter, sans-serif;
  padding: 10px 20px; border-radius: 999px; cursor: pointer; transition: all .15s;
}
.tabs button:hover { color: #fff; }
.tabs button[aria-selected="true"] { background: linear-gradient(135deg, var(--blue), var(--blue-2)); color: #fff; }
.panel { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.panel[hidden] { display: none; }
.uc { padding: 24px 26px; border: 1px solid var(--line); border-left: 3px solid var(--teal); border-radius: 12px; background: var(--card); }
.uc h4 { margin: 0 0 6px; font-size: 1.02rem; }
.uc p { margin: 0; color: var(--muted); font-size: .96rem; }

/* how */
.how-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; gap: 18px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 44px 1fr; column-gap: 16px; }
.steps li::before {
  content: counter(s); grid-row: span 2; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700; color: var(--teal); border: 1px solid rgba(25, 211, 181, .5); background: rgba(25, 211, 181, .08);
}
.steps b { font-size: 1.05rem; }
.steps span { color: var(--muted); }

.term { border: 1px solid var(--line); border-radius: var(--radius); background: #050a1c; overflow: hidden; box-shadow: 0 30px 80px -30px rgba(31, 91, 216, .5); }
.term-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .03); }
.term-bar i { width: 11px; height: 11px; border-radius: 50%; background: #2b3558; }
.term-bar span { margin-left: 10px; font: 400 .8rem "JetBrains Mono", monospace; color: var(--muted); }
.term-body { padding: 20px; min-height: 330px; font: 400 .84rem/1.75 "JetBrains Mono", ui-monospace, monospace; }
.term-body p { margin: 0; color: #c7d0ea; opacity: 0; transform: translateY(4px); transition: opacity .35s, transform .35s; }
.term-body p.show { opacity: 1; transform: none; }
.term-body .t { display: inline-block; min-width: 64px; margin-right: 10px; color: var(--blue); }
.term-body .ok .t { color: var(--teal); }
.term-body .bad .t { color: #ff8b8b; }
.term-body .hl { color: #fff; }
.term-body .hl .t { color: var(--teal); }

/* stack */
.stack { display: grid; gap: 10px; margin-bottom: 28px; }
.layer {
  display: grid; grid-template-columns: 48px 200px 1fr; align-items: center; gap: 10px;
  padding: 18px 24px; border: 1px solid var(--line); border-radius: 12px; background: var(--card);
}
.layer em { font-style: normal; color: var(--teal); font-weight: 700; font-family: "JetBrains Mono", monospace; }
.layer b { font-size: 1.02rem; }
.layer span { color: var(--muted); }

/* contact */
.contact { overflow: hidden; background: var(--bg); }
.contact-grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.ticks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.ticks li { padding-left: 30px; position: relative; color: var(--text); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 6px; width: 16px; height: 16px; border-radius: 50%;
  background: rgba(25, 211, 181, .15); border: 1px solid var(--teal);
}
.ticks li::after { content: ""; position: absolute; left: 5px; top: 10px; width: 6px; height: 3px; border-left: 2px solid var(--teal); border-bottom: 2px solid var(--teal); transform: rotate(-45deg); }
form { display: grid; gap: 14px; padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255, 255, 255, .04); backdrop-filter: blur(8px); }
form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
label { font-size: .82rem; color: var(--muted); display: grid; gap: 6px; font-weight: 500; }
input, textarea {
  font: inherit; font-size: .98rem; padding: 12px 14px; border-radius: 10px; color: #fff;
  border: 1px solid var(--line); background: rgba(5, 10, 28, .7);
}
input:-webkit-autofill, textarea:-webkit-autofill {
  -webkit-text-fill-color: #fff; caret-color: #fff;
  box-shadow: 0 0 0 1000px #050a1c inset; transition: background-color 9999s;
}
input:focus, textarea:focus { outline: 2px solid var(--blue); outline-offset: 0; border-color: transparent; }
textarea { min-height: 130px; resize: vertical; }
.hp { position: absolute; left: -9999px; }
#form-status { min-height: 1.4em; font-size: .93rem; }
#form-status.ok { color: var(--teal); }
#form-status.err { color: #ff9b9b; }

footer { border-top: 1px solid var(--line); padding: 32px 0; font-size: .9rem; background: #050a1c; }
.foot { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.foot .brand img { height: 28px; } .foot .word { font-size: 1.1rem; }

/* reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .hero { padding: 110px 0 60px; min-height: 0; }
  .hero-grid, .how-grid, .contact-grid { grid-template-columns: 1fr; }
  .orbit { --w: min(380px, 88vw); margin-top: 20px; --R: calc(var(--w) * .38); }
  .brand img { height: 40px; } .word { font-size: 1.4rem; } .bar { height: 68px; }
  .grid.three, .panel { grid-template-columns: 1fr; }
  .layer { grid-template-columns: 36px 1fr; }
  .layer span { grid-column: 2; }
  section { padding: 70px 0; }
  .burger { display: block; }
  nav {
    position: fixed; inset: 68px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; padding: 12px 24px 24px;
    background: rgba(7, 13, 36, .97); border-bottom: 1px solid var(--line); display: none;
  }
  nav.open { display: flex; }
  nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
  nav .btn { margin-top: 16px; }
  form .row { grid-template-columns: 1fr; }
}
@media (max-width: 480px) { .orbit { --w: min(330px, 86vw); } .node span { font-size: .72rem; padding: 6px 11px; } }

@media (prefers-reduced-motion: reduce) {
  .spin, .node span { animation: none; }
  .reveal, .term-body p { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
