/* neovault-ai — геометрия эталона (контейнер 780) + тёмная крипто-тема. Vanilla. */
:root {
  color-scheme: dark;
  --bg: #05070d;
  --panel: rgba(16, 24, 40, 0.72);
  --card: rgba(18, 28, 48, 0.66);
  --line: rgba(255, 255, 255, 0.09);
  --line-soft: rgba(255, 255, 255, 0.06);
  --ink: #eef3ff;
  --muted: #8b98b3;
  --dim: #5b6a87;
  --lime: #b6f34a;
  --blue: #4d7cff;
  --gold: #f5b638;
  --green: #3ddc97;
  --mono: ui-monospace, "SF Mono", "Cascadia Code", Consolas, monospace;
  --sans: Inter, "Segoe UI", system-ui, Arial, sans-serif;
  --ease: cubic-bezier(0.2, 0, 0, 1);
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  overflow-x: hidden;
  padding: 24px 0 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#canvas-bg { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 0; }
.bg-grid {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(900px 520px at 50% 0%, #000 30%, transparent 75%);
}
.bg-glow { position: fixed; top: 0; bottom: 0; z-index: 0; pointer-events: none; }
/* бока на всю высоту: слева синий, справа зелёный, к центру гаснут */
.bg-glow--blue {
  left: 0; width: 34vw;
  background: linear-gradient(90deg, rgba(77, 124, 255, 0.14), rgba(77, 124, 255, 0.04) 60%, transparent);
}
.bg-glow--lime {
  right: 0; width: 34vw;
  background: linear-gradient(270deg, rgba(182, 243, 74, 0.12), rgba(182, 243, 74, 0.03) 60%, transparent);
}

/* ширина как у эталона */
.page { position: relative; z-index: 2; width: min(780px, calc(100% - 36px)); margin: 0 auto; }

.pulse-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px rgba(61,220,151,.15); animation: pulse 2s infinite; }
@keyframes pulse { 50% { transform: scale(1.3); } }

/* ===== hero: маркетинг-список ===== */
.hero { text-align: center; margin-bottom: 22px; }
.mkt-list { list-style: none; margin: 22px 0 24px; display: flex; flex-direction: column; gap: 10px; text-align: left; }
.mkt-list li {
  position: relative; padding: 13px 16px 13px 46px;
  background: rgba(6, 10, 20, 0.92); border: 1px solid var(--line);
  border-radius: 14px; font-size: 15px; line-height: 1.5; color: var(--muted);
}
.mkt-list li::before {
  content: "✓"; position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center; font-size: 12px; font-weight: 900;
  color: #0a1200; background: var(--lime);
  box-shadow: 0 0 14px rgba(182, 243, 74, 0.5);
}
.mkt-list b { color: var(--ink); }

/* ===== terminal (блок авторизации) ===== */
.terminal {
  background: rgba(6, 10, 20, 0.9);
  border: 1px solid rgba(182,243,74,.22); border-radius: 24px;
  overflow: hidden; margin-bottom: 22px;
  box-shadow: 0 0 0 1px rgba(0,0,0,.4), var(--shadow), 0 0 60px rgba(182,243,74,.08);
}
.terminal__head {
  display: flex; align-items: center; gap: 7px;
  padding: 10px 18px; border-bottom: 1px solid var(--line-soft);
  background: rgba(255,255,255,.03);
}
.t-dot { width: 11px; height: 11px; border-radius: 50%; }
.t-dot:nth-child(1) { background: #ff5f57; } .t-dot:nth-child(2) { background: #febc2e; } .t-dot:nth-child(3) { background: #28c840; }
.terminal__title { margin-left: 8px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.2em; color: var(--muted); }
.terminal__live { margin-left: auto; display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12px; color: var(--green); }
.terminal__body { padding: 26px 26px 24px; }
.apy { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-bottom: 10px; text-align: center; }
.apy__tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em;
  color: var(--lime);
  border: 1px solid rgba(182, 243, 74, 0.35); background: rgba(182, 243, 74, 0.07);
  border-radius: 999px; padding: 7px 16px;
}
.apy b {
  font-size: clamp(56px, 12vw, 78px); line-height: 1.08; letter-spacing: -0.03em;
  overflow: visible; padding: 0 6px;
  font-family: var(--mono);
  background: linear-gradient(180deg, #eaffb0 10%, var(--lime) 55%, #6faf1f 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 26px rgba(182, 243, 74, 0.35));
}
.apy__sub {
  font-family: var(--mono); font-size: clamp(8px, 2.6vw, 11px); letter-spacing: 0.12em;
  white-space: nowrap;
  color: var(--dim); text-align: center; line-height: 1.7; max-width: 100%;
}
.terminal__label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; color: var(--dim); margin: 16px 0 10px; text-align: center; }
.eps-list {
  display: flex; flex-wrap: nowrap; gap: 8px; justify-content: center;
  padding: 14px 10px; margin-bottom: 6px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line-soft); border-radius: 18px;
  overflow-x: auto; scrollbar-width: none;
}
.eps-list::-webkit-scrollbar { display: none; }
.eps { position: relative; width: 30px; height: 30px; flex: 0 0 auto; display: block; }
.eps svg { width: 30px; height: 30px; display: block; filter: drop-shadow(0 4px 10px rgba(0,0,0,.45)); }
.eps__net {
  position: absolute; right: -3px; bottom: -3px;
  width: 14px; height: 14px; border-radius: 50%;
  background: #f0b90b; color: #0a0a0a;
  font-style: normal; font-family: var(--mono); font-size: 8px; font-weight: 800;
  display: grid; place-items: center;
  border: 2px solid #060a14;
}
.eps__net--red { background: #eb0029; color: #fff; }
/* кнопка How It Work? как LIVE-бейдж, кликабельная */
.live-btn {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: 0.08em;
  color: var(--green);
  background: rgba(61, 220, 151, 0.07);
  border: 1px solid rgba(61, 220, 151, 0.3); border-radius: 999px;
  padding: 8px 16px;
  cursor: pointer;
  transition: 0.2s var(--ease);
}
.live-btn:hover { box-shadow: 0 0 18px rgba(61, 220, 151, 0.35); border-color: var(--green); }
.live-btn[aria-expanded="true"] { background: rgba(61, 220, 151, 0.16); }
/* модалка поверх всего */
.modal[hidden] { display: none; }
.modal {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center; padding: 20px;
}
.modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(3, 5, 10, 0.72);
  backdrop-filter: blur(6px);
  animation: fadeBack 0.25s var(--ease);
}
@keyframes fadeBack { from { opacity: 0; } }
.modal__card {
  position: relative; width: min(520px, 100%);
  background: #0b1222;
  border: 1px solid rgba(182, 243, 74, 0.35); border-radius: 22px;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.7), 0 0 60px rgba(182, 243, 74, 0.1);
  padding: 30px 28px;
  animation: rise 0.3s var(--ease);
  max-height: calc(100vh - 60px); overflow-y: auto;
}
.modal__card h3 { font-size: 22px; letter-spacing: -0.01em; margin-bottom: 12px; padding-right: 36px; }
.modal__card p { color: var(--muted); font-size: 15px; line-height: 1.65; }
.modal__card p + p { margin-top: 12px; }
.modal__card b { color: var(--lime); }
.modal__lead { font-size: 16px !important; color: var(--ink) !important; }
.modal__card h4 {
  margin: 20px 0 10px; font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--lime); font-family: var(--mono); font-weight: 700;
}
.accent-box {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
  margin: 16px 0 4px; padding: 16px;
  background: rgba(182, 243, 74, 0.06);
  border: 1px solid rgba(182, 243, 74, 0.3); border-radius: 16px;
  text-align: center;
}
.accent-box b { display: block; font-size: 24px; font-family: var(--mono); }
.accent-box span { font-size: 12px; color: var(--muted); }
.modal__steps { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 10px; }
.modal__steps li { color: var(--muted); font-size: 14.5px; line-height: 1.6; }
.modal__steps li::marker { color: var(--lime); font-weight: 800; }
.modal__fine { border-top: 1px solid var(--line-soft); padding-top: 14px !important; }
.modal__x {
  position: absolute; top: 12px; right: 12px;
  width: 44px; height: 44px; border-radius: 50%;
  font-size: 24px; line-height: 1;
  color: var(--muted); background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line); cursor: pointer;
  transition: 0.2s var(--ease);
}
.modal__x:hover { color: var(--ink); border-color: var(--lime); }
.addr-row { display: flex; gap: 8px; }
.addr-row input {
  flex: 1; min-width: 0; background: #04070e; border: 1px solid var(--line);
  border-radius: 14px; padding: 15px 16px; color: var(--ink);
  font-family: var(--mono); font-size: 14px; outline: none; text-align: center;
}
.addr-row input:focus { border-color: var(--lime); box-shadow: 0 0 0 3px rgba(182,243,74,.18); }
.btn-invest {
  width: 100%; margin-top: 12px; border: none; cursor: pointer; min-height: 58px;
  border-radius: 16px; font-size: 17px; font-weight: 900; letter-spacing: 0.05em; color: #0a1200;
  background: linear-gradient(180deg, #cdf96b, var(--lime));
  box-shadow: 0 18px 44px rgba(182,243,74,.32);
  transition: 0.22s var(--ease);
}
.btn-invest:hover { transform: translateY(-2px); }
.form-note { margin-top: 10px; font-size: 12px; color: var(--dim); font-family: var(--mono); text-align: center; }

/* ===== ловля хеша: рябь символов + окно ценности ===== */
.mx {
  margin-top: 16px;
  min-height: 88px;
  background: #04070e;
  border: 1px solid rgba(182, 243, 74, 0.2); border-radius: 16px 16px 0 0;
  border-bottom: none;
  overflow: hidden;
  font-family: var(--mono); font-size: 12px; line-height: 1.5;
  user-select: none;
}
/* барабан: трек едет вниз — готовое уходит, новое въезжает сверху */
.mx__track { will-change: transform; }
.mx__grid {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
}
.mx span { color: rgba(139, 152, 179, 0.75); text-align: center; transition: color 0.45s, background 0.2s, box-shadow 0.25s, opacity 0.45s; }
.mx span.flash {
  color: #0a1200; background: #eaffb0; border-radius: 4px; font-weight: 800;
  box-shadow: 0 0 22px rgba(234, 255, 176, 1), 0 0 44px rgba(182, 243, 74, 0.7);
}
.mx span.hit {
  color: #0a1200; background: var(--lime); border-radius: 4px; font-weight: 800;
  box-shadow: 0 0 10px rgba(182, 243, 74, 0.45);
}
.mx.done span:not(.hit) { color: rgba(91, 106, 135, 0.4); }
.hashwin {
  background: rgba(182, 243, 74, 0.05);
  border: 1px solid rgba(182, 243, 74, 0.3); border-radius: 0 0 16px 16px;
  padding: 10px 14px;
}
.hashwin__view { overflow: hidden; }
.hashwin__track { will-change: transform; }
.hashwin__row {
  display: flex; align-items: center; gap: 10px;
  min-height: 24px;
  font-family: var(--mono); font-size: 12px;
}
.hashwin__row > span {
  flex: 0 0 auto; font-size: 10px; letter-spacing: 0.2em; color: var(--dim);
}
.hashwin__row code {
  flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  color: var(--ink); font-size: 13px; letter-spacing: 0.04em;
}
.hashwin__row b { color: var(--lime); font-size: 14px; white-space: nowrap; }
.hashwin__row b i {
  display: inline-block; width: 8px; height: 8px; border-radius: 2px;
  background: var(--dim); margin-right: 5px; vertical-align: baseline;
  animation: sqBlink 1.05s ease-in-out infinite;
}
.hashwin__row b i:nth-child(2) { animation-delay: 0.18s; }
.hashwin__row b i:nth-child(3) { animation-delay: 0.36s; margin-right: 0; }
@keyframes sqBlink { 0%, 100% { opacity: 0.25; } 50% { opacity: 1; background: var(--lime); } }
.hashwin.found { animation: hashGlow 0.8s var(--ease); border-color: var(--lime); }
@keyframes hashGlow {
  0% { box-shadow: 0 0 0 rgba(182, 243, 74, 0); }
  35% { box-shadow: 0 0 34px rgba(182, 243, 74, 0.45); }
  100% { box-shadow: 0 0 0 rgba(182, 243, 74, 0); }
}

/* ===== tx terminal: 4 равные колонки ===== */
.tx-terminal {
  background: rgba(6, 10, 20, 0.92);
  border: 1px solid var(--line); border-radius: 24px; overflow: hidden;
  box-shadow: var(--shadow);
}
.tx-container { padding: 6px 12px 16px; overflow: hidden; }
.tx-head, .tx-item {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: 14px; align-items: center;
}
.tx-head {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em;
  padding: 12px 14px 10px; border-bottom: 1px solid var(--line-soft); margin-bottom: 10px;
}
.tx-head .th { font-weight: 700; color: var(--dim); }
.tx-head .tx-addr.th { text-align: left; background: none; padding: 0; color: var(--dim); }
.tx-head .tx-amount.th { text-align: right; color: var(--dim); }
.tx-head .tx-type.th { text-align: center; border: none; background: none; padding: 0; color: var(--dim); }
.tx-list { display: flex; flex-direction: column; height: 520px; overflow: hidden; }
.tx-item {
  background: rgba(255,255,255,.035); border: 1px solid var(--line-soft);
  border-radius: 14px; padding: 0 14px; height: 58px; max-height: 58px;
  flex-shrink: 0;
  margin-bottom: 8px;
  font-family: var(--mono); font-size: 13px; overflow: hidden;
  font-variant-numeric: tabular-nums;
}
.tx-list .tx-item:last-child { margin-bottom: 0; }
.tx-item.tx-enter { animation: txIn 0.5s var(--ease) backwards; }
@keyframes txIn {
  from { opacity: 0; transform: translateY(-30px); max-height: 0; margin-bottom: 0; border-top-width: 0; border-bottom-width: 0; }
}
.tx-date { color: var(--dim); white-space: nowrap; }
.tx-addr { color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; text-align: left; }
.tx-amount { text-align: right; font-weight: 700; white-space: nowrap; }
.tx-type { justify-self: stretch; text-align: center; font-size: 11px; font-weight: 800; border-radius: 999px; padding: 6px 4px; border: 1px solid var(--line); white-space: nowrap; }
.tx-type.deposit { color: var(--green); border-color: rgba(61,220,151,.4); background: rgba(61,220,151,.08); }
.tx-type.payment { color: var(--gold); border-color: rgba(245,182,56,.4); background: rgba(245,182,56,.08); }
.tx-hint { text-align: center; color: var(--dim); font-size: 12px; font-family: var(--mono); padding: 0 18px 18px; }
.tx-hint code { color: var(--muted); }

.page { padding-bottom: 8px; }

.fade-in { animation: rise 0.65s var(--ease) both; }
.fade-in-d1 { animation-delay: 0.08s; } .fade-in-d2 { animation-delay: 0.16s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }

/* ===== полный адаптив под все экраны ===== */
@media (max-width: 640px) {
  body { padding-top: 18px; }
  .page { width: min(100% - 24px, 480px); }
  .mkt-list li { font-size: 14px; padding: 12px 14px 12px 44px; }
  .hashwin__row { flex-wrap: wrap; row-gap: 6px; }
  .terminal__body { padding: 20px 14px; }
  .terminal__title { font-size: 11px; letter-spacing: 0.12em; }
  .apy__sub { font-size: clamp(7px, 2vw, 11px); letter-spacing: 0.06em; }
  .eps-list { flex-wrap: wrap; overflow: visible; gap: 10px; padding: 16px 12px; }
  .eps, .eps svg { width: 34px; height: 34px; }
  .addr-row { flex-direction: column; }
  .tx-head { display: none; }
  .tx-item { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 10px; }
  .tx-date { display: none; }
}
@media (max-width: 420px) {
  .btn-invest { font-size: 15px; }
  .tx-item { font-size: 12px; padding: 0 10px; }
  .modal__card { padding: 24px 18px; }
  .accent-box { padding: 12px; gap: 8px; }
  .accent-box b { font-size: 19px; }
}
@media (max-width: 360px) {
  .mkt-list li { font-size: 13px; }
  .tx-type { font-size: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  #canvas-bg, .bg-grid { display: none; }
  html { scroll-behavior: auto; }
}
