/* KMOTUS — night-purple, bone text, safety orange; a pixel-art world (pixel.js) and
   pixel details (notched corners, pixel icons, a pixel font for labels). */
:root {
  --bg: #100d1b;
  --bg-1: #171328;
  --bg-2: #201b36;
  --line: #2a2442;
  --line-2: #3a3358;
  --ink: #ecebe6;
  --soft: #c4c3bd;
  --muted: #8f8e88;
  --dim: #5c5b57;
  --orange: #ff5b1f;
  --orange-2: #ff7a45;
  --green: #3ddc84;
  --amber: #ffc23d;
  --red: #ff4d5e;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --sans: "Space Grotesk", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --px: "Silkscreen", "JetBrains Mono", monospace;
  --notch: polygon(6px 0, calc(100% - 6px) 0, 100% 6px, 100% calc(100% - 6px), calc(100% - 6px) 100%, 6px 100%, 0 calc(100% - 6px), 0 6px);
  --notch-s: polygon(4px 0, calc(100% - 4px) 0, 100% 4px, 100% calc(100% - 4px), calc(100% - 4px) 100%, 4px 100%, 0 calc(100% - 4px), 0 4px);
  --r: 12px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: var(--orange); text-decoration: none; }
a:hover { color: var(--orange-2); }
::selection { background: var(--orange); color: #000; }
img { display: block; max-width: 100%; height: auto; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 50; background: rgba(16,13,27,.78); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 28px; height: 66px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--ink); font: 700 16px/1 var(--mono); letter-spacing: .16em; }
.logo:hover { color: var(--ink); }
.nav { display: flex; gap: 26px; margin-left: auto; align-items: center; font-size: 15px; }
.nav a { color: var(--muted); }
.nav a:hover { color: var(--ink); }
@media (max-width: 820px) { .nav .hide-sm { display: none; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 20px; font: 600 15px/1 var(--sans); border: 0;
  color: var(--ink); background: var(--bg-2); cursor: pointer; clip-path: var(--notch-s);
  transition: background .15s, color .15s, transform .08s;
}
.btn:hover { background: var(--line-2); color: var(--ink); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--orange); border-color: var(--orange); color: #0b0b0c; }
.btn-primary:hover { background: var(--orange-2); border-color: var(--orange-2); color: #0b0b0c; }
.nav .btn { padding: 9px 16px; font-size: 14px; }
.nav .btn-primary, .nav .btn-primary:hover { color: #0b0b0c; }
.btn .arr { transition: transform .15s; }
.btn:hover .arr { transform: translateX(3px); }
.btn[disabled] { opacity: .55; cursor: progress; }

/* ---------- hero ---------- */
.hero { position: relative; height: min(700px, calc(100vh - 66px)); min-height: 600px; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; display: block; }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(16,13,27,.9) 0%, rgba(16,13,27,.7) 32%, rgba(16,13,27,0) 48%); }
.hero .wrap { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: center; }
.hero-copy { max-width: 500px; padding-bottom: 40px; }
@media (max-width: 900px) {
  .hero { height: auto; min-height: 0; overflow: hidden; display: flex; flex-direction: column; }
  .hero .wrap { order: -1; }
  .hero canvas { position: relative; height: 380px; }
  .hero::after { display: none; }
  .hero .wrap { padding-top: 48px; }
  .hero-copy { padding-bottom: 28px; }
}
.hero-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 32px; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } .cube-box { display: none; } }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 400 12px/1 var(--px); color: var(--soft); background: rgba(32,27,54,.8); padding: 9px 14px; margin-bottom: 24px; clip-path: var(--notch-s); letter-spacing: .02em; }
.eyebrow b { color: var(--orange); font-weight: 600; }
h1 { font: 700 clamp(38px, 4.6vw, 62px)/1.03 var(--sans); letter-spacing: -.04em; margin: 0 0 24px; }
h1 .o { color: var(--orange); }
.lead { font-size: 18px; color: var(--soft); max-width: 580px; margin: 0 0 32px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.fine { font-size: 14px; color: var(--muted); margin-top: 16px; }
.fine b { color: var(--ink); font-weight: 500; font-family: var(--mono); font-size: 13px; }

.cube-box { position: relative; aspect-ratio: 1; width: 100%; max-width: 360px; justify-self: end; cursor: grab; user-select: none; touch-action: none; }
.cube-box:active { cursor: grabbing; }
#cube { position: absolute; inset: 0; margin: 0; font: 700 9px/1 var(--mono); color: var(--soft); white-space: pre; overflow: hidden; display: block; }
#cube .t { color: var(--orange); }
.cube-cap { position: absolute; bottom: -4px; left: 0; right: 0; text-align: center; font: 12px/1.4 var(--mono); color: var(--dim); }
.cube-cap b { color: var(--soft); font-weight: 500; }

/* product shot in a window frame */
.shot { position: relative; margin-top: 64px; background: var(--line-2); padding: 8px; clip-path: var(--notch); }
.shot-bar { display: flex; align-items: center; gap: 8px; padding: 4px 6px 12px; }
.shot-bar i { width: 8px; height: 8px; background: var(--bg-1); }
.shot-bar i:first-child { background: var(--orange); }
.shot-bar span { margin: 0 auto; font: 11px/1 var(--px); color: var(--soft); background: var(--bg-1); padding: 7px 14px; }
.shot img { width: 100%; }
.hero .shot { margin-bottom: -1px; border-bottom-left-radius: 0; border-bottom-right-radius: 0; border-bottom: 0; }
.hero .shot img { border-bottom-left-radius: 0; border-bottom-right-radius: 0; max-height: 640px; object-fit: cover; object-position: top; }

/* ---------- channel strip ---------- */
.channels { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-1); }
.channels .wrap { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px 40px; padding-top: 26px; padding-bottom: 26px; }
.channels .k { font: 400 12px/1 var(--px); color: var(--orange); }
.channels span { font: 400 13px/1 var(--px); color: var(--muted); }

/* ---------- sections ---------- */
section { padding: 110px 0; }
.label { font: 400 13px/1 var(--px); color: var(--orange); margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.label::before { content: ""; width: 8px; height: 8px; background: var(--orange); }
h2 { font: 700 clamp(32px, 4vw, 50px)/1.05 var(--sans); letter-spacing: -.03em; margin: 0 0 18px; max-width: 760px; }
h2 .o { color: var(--orange); }
.sub { font-size: 18px; color: var(--soft); max-width: 640px; margin: 0 0 56px; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 960px) { .grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .grid { grid-template-columns: 1fr; } }
.card { background: var(--bg-1); padding: 28px; clip-path: var(--notch); transition: background .2s, transform .2s; }
.card:hover { background: var(--bg-2); transform: translateY(-3px); }
.pxi { display: block; width: 48px; height: 48px; margin-bottom: 20px; }
.pxi svg { width: 100%; height: 100%; display: block; }
.card h3 { font: 600 19px/1.25 var(--sans); letter-spacing: -.01em; margin: 0 0 8px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

.split { display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: center; }
.split.rev { grid-template-columns: 1.15fr .85fr; }
.split.rev > :first-child { order: 2; }
@media (max-width: 960px) { .split, .split.rev { grid-template-columns: 1fr; } .split.rev > :first-child { order: 0; } }
.split + .split { margin-top: 110px; }
.split > * { min-width: 0; }
.points { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; }
.points li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; }
.points li::before { content: ""; width: 18px; height: 18px; margin-top: 4px; border-radius: 5px; background: rgba(255,91,31,.14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff5b1f' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/12px no-repeat; }
.points b { display: block; font-size: 17px; margin-bottom: 2px; }
.points span { color: var(--muted); }
.split .shot { margin-top: 0; }

/* activity feed */
.term { background: #0b0915; overflow: hidden; clip-path: var(--notch); border: 0; box-shadow: inset 0 0 0 2px var(--line-2); }
.term-bar { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); font: 12px/1 var(--mono); color: var(--muted); }
.term-bar .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }
.term-bar .r { margin-left: auto; color: var(--dim); }
.term-body { height: 340px; overflow: hidden; padding: 14px 16px; font: 13px/1.8 var(--mono); position: relative; }
.term-body::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 70px; background: linear-gradient(#0b0915, transparent); pointer-events: none; }
.ev { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; animation: in .4s ease-out; }
@keyframes in { from { opacity: 0; transform: translateY(6px); } }
.ev .ts { color: var(--dim); } .ev .k { display: inline-block; width: 6ch; font-weight: 700; }
.ev .in { color: var(--green); } .ev .out { color: var(--orange); } .ev .ret { color: var(--amber); } .ev .pay { color: #7aa2ff; } .ev .cnt { color: #c792ea; }
.ev .q { color: var(--ink); } .ev .d { color: var(--muted); }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.step { padding: 28px 26px; background: var(--bg-1); clip-path: var(--notch); }
.step .n { font: 400 12px/1 var(--px); color: var(--orange); margin-bottom: 16px; }
.step .pxi { width: 40px; height: 40px; margin-bottom: 16px; }
.step h3 { margin: 0 0 6px; font-size: 19px; letter-spacing: -.01em; }
.step p { margin: 0; color: var(--muted); }
.step code { font: 13px var(--mono); color: var(--ink); background: var(--bg-2); padding: 2px 6px; border-radius: 4px; }
.roles { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; align-items: center; }
.roles .k { font-size: 14px; color: var(--muted); margin-right: 6px; }
.roles span:not(.k) { font-size: 14px; background: var(--bg-1); padding: 7px 14px; color: var(--soft); clip-path: var(--notch-s); }

/* faq */
.faq { max-width: 820px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; padding: 22px 0; font-size: 18px; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 22px/1 var(--mono); color: var(--muted); }
.faq details[open] summary::after { content: "−"; color: var(--orange); }
.faq p { margin: 0 0 22px; color: var(--muted); max-width: 680px; }

/* final */
.final { text-align: center; border-top: 1px solid var(--line); background: radial-gradient(ellipse at 50% 120%, rgba(255,91,31,.16), transparent 60%); }
.bigk { width: 96px; height: 96px; margin: 0 auto 32px; }
.bigk svg { width: 100%; height: 100%; }
.final h2, .final .sub { margin-left: auto; margin-right: auto; }
.final .cta-row { justify-content: center; }
.bigascii { font: 700 clamp(4px, .9vw, 10px)/1.05 var(--mono); color: var(--orange); white-space: pre; margin: 0 auto 40px; display: inline-block; text-align: left; opacity: .9; }

footer { border-top: 1px solid var(--line); padding: 30px 0 44px; font-size: 14px; color: var(--muted); }
footer .wrap { display: flex; gap: 18px; flex-wrap: wrap; justify-content: space-between; align-items: center; }
footer a { color: var(--muted); } footer a:hover { color: var(--ink); }

.banner { position: relative; z-index: 60; background: var(--orange); color: #0b0b0c; text-align: center; padding: 10px 16px; font: 600 14px/1.4 var(--sans); }

/* ---------- forms (sign-up, sign-in) ---------- */
.form-page { min-height: calc(100vh - 66px); display: grid; grid-template-columns: 1fr 1fr; }
@media (max-width: 900px) { .form-page { grid-template-columns: 1fr; } .form-side { display: none; } }
.form-side { border-right: 1px solid var(--line); background: var(--bg-1) radial-gradient(ellipse at 0% 100%, rgba(255,91,31,.12), transparent 60%); display: flex; flex-direction: column; justify-content: center; padding: 56px; }
.form-side h2 { font-size: clamp(30px, 3vw, 42px); }
.form-side ul { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 12px; color: var(--soft); }
.form-side li { display: flex; gap: 10px; }
.form-side li::before { content: "✓"; color: var(--orange); font-weight: 700; }
.form-side img { margin-top: 36px; clip-path: var(--notch); opacity: .95; }
.form-main { display: grid; place-items: center; padding: 48px 20px; }
.form-card { width: 100%; max-width: 420px; }
.form-card h1 { font-size: clamp(32px, 3.6vw, 42px); margin-bottom: 8px; }
.form-card .sub { font-size: 16px; margin: 0 0 30px; }
label { display: block; font-size: 14px; font-weight: 600; color: var(--soft); margin: 0 0 8px; }
.field { margin-bottom: 18px; }
input[type=text], input[type=email], input[type=password] {
  width: 100%; padding: 12px 14px; font: 15px var(--sans); color: var(--ink);
  background: var(--bg-1); border: 1px solid var(--line-2); border-radius: 0; outline: none; transition: border-color .15s, box-shadow .15s;
}
input:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255,91,31,.18); }
.addr { display: flex; border: 1px solid var(--line-2); background: var(--bg-1); overflow: hidden; }
.addr:focus-within { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255,91,31,.18); }
.addr input { border: 0 !important; background: transparent; min-width: 0; box-shadow: none !important; font-family: var(--mono); }
.addr span { display: flex; align-items: center; padding: 0 14px; color: var(--muted); font: 14px var(--mono); border-left: 1px solid var(--line-2); white-space: nowrap; background: var(--bg-2); }
.hint { font-size: 13px; color: var(--dim); margin-top: 7px; min-height: 18px; }
.hint.good { color: var(--green); } .hint.bad { color: var(--red); }
.alert { padding: 12px 14px; font-size: 14px; margin-bottom: 20px; border: 1px solid rgba(255,77,94,.5); border-radius: 8px; color: #ffb3bb; background: rgba(255,77,94,.08); }
.form-card .btn { width: 100%; padding: 14px; }
.below { font-size: 14px; color: var(--muted); margin-top: 22px; text-align: center; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
