:root {
  --bg0: #0b0e13;
  --bg1: #121821;
  --bg2: #1a2230;
  --graphite: #2a3342;
  --line: rgba(180, 198, 220, 0.14);
  --text: #e8eef7;
  --muted: #9aabbf;
  --ok: #3dde8e;
  --ok-dim: rgba(61, 222, 142, 0.16);
  --ok-strong: #22c576;
  --danger-soft: #7f8ea3;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  --radius: 18px;
  --font: "Manrope", sans-serif;
  --display: "Unbounded", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(1200px 700px at 80% -10%, rgba(61, 222, 142, 0.10), transparent 55%),
    radial-gradient(900px 500px at 10% 20%, rgba(90, 120, 160, 0.16), transparent 50%),
    linear-gradient(180deg, var(--bg0), #0e131b 40%, var(--bg0));
  min-height: 100%;
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
button, input, textarea {
  font: inherit;
  color: inherit;
}

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  z-index: 0;
}

.top, main, .footer { position: relative; z-index: 1; }

.top {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 18px 28px;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.logo-mark {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: linear-gradient(135deg, var(--ok), #1f9f63);
  box-shadow: 0 0 0 4px var(--ok-dim);
}

.nav {
  display: flex;
  gap: 18px;
  margin-left: auto;
  color: var(--muted);
  font-size: 0.95rem;
}
.nav a:hover { color: var(--text); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 12px 18px;
  font-weight: 700;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
  cursor: pointer;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: 9px 14px; font-size: 0.92rem; }
.btn-primary {
  background: linear-gradient(180deg, var(--ok), var(--ok-strong));
  color: #04140c;
  box-shadow: 0 10px 30px rgba(34, 197, 118, 0.25);
}
.btn-primary:hover { box-shadow: 0 14px 36px rgba(34, 197, 118, 0.35); }
.btn-ghost {
  border-color: var(--line);
  background: rgba(255,255,255,0.02);
  color: var(--text);
}
.btn.full { width: 100%; }

.hero {
  min-height: calc(100vh - 76px);
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 36px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 28px 64px;
  position: relative;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  right: -8%;
  top: 10%;
  width: 55%;
  height: 70%;
  background: radial-gradient(circle, rgba(61,222,142,0.16), transparent 68%);
  filter: blur(10px);
  animation: pulse 5.5s ease-in-out infinite;
}

.hero-grid {
  position: absolute;
  inset: 8% 0 0 42%;
  background-image:
    linear-gradient(rgba(154,171,191,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(154,171,191,0.08) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(circle at 40% 40%, #000 20%, transparent 75%);
  animation: drift 18s linear infinite;
}

.brand-line {
  margin: 0 0 14px;
  font-family: var(--display);
  font-size: clamp(2.6rem, 5vw, 4.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  background: linear-gradient(180deg, #f4f8ff 20%, #a9bccf 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero h1 {
  margin: 0 0 16px;
  max-width: 14ch;
  font-size: clamp(1.55rem, 2.5vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.lead {
  margin: 0 0 26px;
  max-width: 36rem;
  color: var(--muted);
  font-size: 1.06rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.trust-line {
  margin: 0;
  color: var(--danger-soft);
  font-size: 0.88rem;
}

.hero-stage { position: relative; }

.stage-frame {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(26,34,48,0.95), rgba(12,16,22,0.96));
  box-shadow: var(--shadow);
  overflow: hidden;
  transform: translateY(8px);
  animation: rise 900ms ease both;
}

.stage-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,0.02);
}
.stage-bar span {
  width: 9px; height: 9px; border-radius: 50%;
  background: #3a4658;
}
.stage-bar span:nth-child(1) { background: #ef6b6b; }
.stage-bar span:nth-child(2) { background: #e0b34d; }
.stage-bar span:nth-child(3) { background: var(--ok); }
.stage-bar em {
  margin-left: 8px;
  font-style: normal;
  color: var(--muted);
  font-size: 0.82rem;
}

.stage-body {
  display: grid;
  grid-template-columns: 110px 1fr;
  grid-template-rows: 1fr auto;
  gap: 12px;
  padding: 14px;
  min-height: 340px;
}

.stage-side {
  grid-row: 1 / span 2;
  border-right: 1px solid var(--line);
  padding-right: 10px;
}
.chip.ok {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--ok-dim);
  color: var(--ok);
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 14px;
}
.side-line, .side-line.short, .side-line.mid {
  height: 8px;
  border-radius: 99px;
  background: rgba(154,171,191,0.16);
  margin-bottom: 10px;
}
.side-line.short { width: 60%; }
.side-line.mid { width: 80%; }

.stage-table {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(0,0,0,0.18);
}
.t-head, .t-row {
  display: grid;
  grid-template-columns: 40px 1.4fr 1fr 0.8fr;
  gap: 8px;
  padding: 10px 12px;
  font-size: 0.82rem;
}
.t-head {
  background: rgba(61,222,142,0.08);
  color: #cfe7d9;
  font-weight: 700;
}
.t-row {
  border-top: 1px solid rgba(154,171,191,0.08);
  color: #d5deea;
}
.t-row i { font-style: normal; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-row.active {
  background: rgba(61,222,142,0.07);
  box-shadow: inset 3px 0 0 var(--ok);
}
.ok-text { color: var(--ok); font-weight: 700; }
.wait { color: #d7b35a; font-weight: 700; }
.dim { color: var(--muted); }

.stage-chat {
  grid-column: 2;
  border: 1px solid rgba(61,222,142,0.22);
  border-radius: 14px;
  padding: 12px 14px;
  background: linear-gradient(180deg, rgba(61,222,142,0.08), rgba(255,255,255,0.02));
}
.chat-label {
  font-size: 0.75rem;
  color: var(--ok);
  font-weight: 700;
  margin-bottom: 6px;
}
.chat-bubble { color: #dce7f4; font-size: 0.9rem; }
.chat-cursor {
  margin-top: 8px;
  width: 8px;
  height: 14px;
  background: var(--ok);
  animation: blink 1s steps(1) infinite;
}

.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 72px 28px;
}

.section-head {
  max-width: 40rem;
  margin-bottom: 28px;
}
.section-head h2 {
  margin: 0 0 10px;
  font-family: var(--display);
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  letter-spacing: -0.02em;
}
.section-head p {
  margin: 0;
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.split-block {
  padding: 22px 22px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.02);
}
.split-block.accent {
  border-color: rgba(61,222,142,0.28);
  background: linear-gradient(180deg, rgba(61,222,142,0.08), rgba(255,255,255,0.02));
}
.split-block h3 { margin: 0 0 10px; }
.split-block ul {
  margin: 0;
  padding: 0 0 8px 18px;
  color: var(--muted);
}
.split-block li { margin-bottom: 8px; }

.feature-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}
.feature-list article {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 8px 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.f-num {
  grid-row: span 2;
  font-family: var(--display);
  color: var(--ok);
  font-size: 1.2rem;
  padding-top: 4px;
}
.feature-list h3 { margin: 0; }
.feature-list p { margin: 0; color: var(--muted); max-width: 48rem; }

.access-panel {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  padding: 28px;
  border-radius: 24px;
  border: 1px solid rgba(61,222,142,0.22);
  background:
    radial-gradient(500px 240px at 0% 0%, rgba(61,222,142,0.10), transparent 60%),
    linear-gradient(180deg, rgba(22,28,38,0.95), rgba(11,14,19,0.98));
}
.access-panel h2 {
  margin: 0 0 12px;
  font-family: var(--display);
  font-size: 1.8rem;
}
.access-panel > div > p { color: var(--muted); }
.access-points {
  margin: 18px 0 0;
  padding-left: 18px;
  color: #c7d5e6;
}
.access-points li { margin-bottom: 8px; }

.access-form {
  display: grid;
  gap: 12px;
}
.access-form label {
  display: grid;
  gap: 6px;
  font-size: 0.86rem;
  color: var(--muted);
}
.access-form input,
.access-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 12px;
  background: rgba(0,0,0,0.25);
  outline: none;
}
.access-form input:focus,
.access-form textarea:focus {
  border-color: rgba(61,222,142,0.55);
  box-shadow: 0 0 0 3px var(--ok-dim);
}
.form-note {
  margin: 0;
  font-size: 0.82rem;
  color: var(--danger-soft);
}
.form-note.ok { color: var(--ok); }

.reviews {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.reviews figure {
  margin: 0;
  padding: 22px;
  border-top: 2px solid rgba(61,222,142,0.45);
  background: rgba(255,255,255,0.02);
}
.reviews blockquote {
  margin: 0 0 14px;
  font-size: 1.05rem;
}
.reviews figcaption { color: var(--muted); font-size: 0.9rem; }

.admin-preview {
  border-top: 1px dashed rgba(154,171,191,0.25);
}
.admin-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.stat {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,0.02);
}
.stat span {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 8px;
}
.stat strong {
  font-family: var(--display);
  font-size: 1.8rem;
}
.stat.highlight {
  border-color: rgba(61,222,142,0.4);
  background: rgba(61,222,142,0.08);
}
.stat.highlight strong { color: var(--ok); }

.footer {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
}

@keyframes pulse {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.04); }
}
@keyframes drift {
  from { transform: translateY(0); }
  to { transform: translateY(28px); }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(8px); }
}
@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

@media (max-width: 960px) {
  .nav { display: none; }
  .hero, .split, .access-panel, .reviews, .admin-grid {
    grid-template-columns: 1fr;
  }
  .hero { min-height: auto; padding-top: 18px; }
  .brand-line { font-size: 2.6rem; }
  .stage-body { grid-template-columns: 1fr; }
  .stage-side { display: none; }
  .stage-chat { grid-column: 1; }
  .footer { flex-direction: column; align-items: flex-start; }
}
