:root {
  --bg: #0b0f14;
  --bg-soft: #0e141b;
  --panel: #111722;
  --text: #e6f1ff;
  --muted: #8aa4bf;
  --accent: #00ff9c;
  --accent-2: #7cfcff;
  --danger: #ff6b6b;
  --card: #0f1520;
  --shadow: rgba(0, 0, 0, 0.4);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  color: var(--text);
  background: radial-gradient(1200px 600px at 80% -10%, rgba(0,255,156,0.08), transparent),
              radial-gradient(1000px 500px at 10% -20%, rgba(124,252,255,0.08), transparent),
              var(--bg);
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  backdrop-filter: blur(8px);
  background: color-mix(in oklab, var(--bg) 86%, transparent);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  z-index: 10;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.brand {
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
}
.nav a {
  color: var(--muted);
  text-decoration: none;
  margin-left: 20px;
  transition: color .2s ease;
}
.nav a:hover { color: var(--text); }

.site-main { padding-bottom: 80px; }
.hero { padding: 72px 0 24px; }

.terminal {
  background: linear-gradient(180deg, var(--panel), var(--card));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  box-shadow: 0 10px 30px var(--shadow);
  overflow: hidden;
}
.terminal__traffic-lights {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.terminal__traffic-lights span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #2a3441;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.4);
}
.terminal__traffic-lights span:nth-child(1) { background: color-mix(in srgb, var(--danger) 70%, black); }
.terminal__traffic-lights span:nth-child(2) { background: #ffd166; }
.terminal__traffic-lights span:nth-child(3) { background: #06d6a0; }

.terminal__body { padding: 22px; font-size: 14px; line-height: 1.7; }
.prompt { color: var(--accent-2); }
.line { color: var(--text); }
.caret { color: var(--accent); animation: blink 1s steps(1) infinite; margin-left: 2px; }

@keyframes blink { 50% { opacity: 0; } }

.section { padding: 56px 0; }
.section__title { margin: 0 0 20px; color: var(--accent); font-size: 20px; }
.muted { color: var(--muted); }

.kv { list-style: none; padding: 0; margin: 22px 0 0; }
.kv li { display: grid; grid-template-columns: 180px 1fr; gap: 16px; padding: 10px 0; border-bottom: 1px dashed rgba(255,255,255,0.06); }
.kv li span:first-child { color: var(--muted); }

.grid { display: grid; gap: 16px; }
.projects-grid { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 960px) { .projects-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .projects-grid { grid-template-columns: 1fr; } }

.card {
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 18px;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-2px); border-color: rgba(0,255,156,0.4); box-shadow: 0 10px 24px rgba(0,255,156,0.06); }
.card header { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.card .dot { width: 8px; height: 8px; background: var(--accent); border-radius: 50%; box-shadow: 0 0 12px rgba(0,255,156,0.5); }
.card h3 { margin: 0; font-size: 18px; }
.card p { margin: 8px 0 14px; color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags span { font-size: 12px; padding: 6px 8px; border: 1px solid rgba(255,255,255,0.12); border-radius: 999px; color: var(--text); }

.card--link { cursor: pointer; }

/* Chat demo */
.phone { width: min(360px, 100%); margin: 0 auto; background: linear-gradient(180deg, #0a0f16, #0f1520); border: 1px solid rgba(255,255,255,0.08); border-radius: 28px; padding: 18px 14px 14px; box-shadow: 0 20px 60px rgba(0,0,0,0.45); }
.phone__notch { width: 160px; height: 24px; background: #0a0f16; border-radius: 12px; margin: 0 auto 10px; box-shadow: inset 0 -1px 0 rgba(255,255,255,0.06); }
.phone__screen { background: #0b1119; border: 1px solid rgba(255,255,255,0.06); border-radius: 18px; padding: 12px; }
.chat { height: 440px; overflow: auto; padding: 6px; display: flex; flex-direction: column; gap: 6px; background: #0b1119; font-size: 12px; align-content: flex-start; }
.chat__msg { align-self: flex-start; max-width: 80%; padding: 6px 8px; border-radius: 10px; background: rgba(255,255,255,0.06); box-shadow: 0 4px 10px rgba(0,0,0,0.2); animation: pop .2s ease; }
.chat__msg--user { margin-left: auto; background: rgba(0,255,156,0.12); border: 1px solid rgba(0,255,156,0.25); }
.chat__msg--bot { margin-right: auto; }
.chat__form { display: none; }
.chat__input { flex: 1; border-radius: 8px; border: 1px solid rgba(255,255,255,0.08); background: #0e141b; color: var(--text); padding: 10px 12px; font-family: inherit; }
@keyframes pop { from { transform: scale(0.98); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.phone-actions { display: flex; justify-content: center; margin-top: 12px; }

.btn { display: inline-block; color: #00110a; background: var(--accent); padding: 10px 14px; border-radius: 8px; text-decoration: none; font-weight: 700; box-shadow: 0 6px 18px rgba(0,255,156,0.2); transition: transform .2s ease, box-shadow .2s ease; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(0,255,156,0.3); }

.pricing-grid { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 960px) { .pricing-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .pricing-grid { grid-template-columns: 1fr; } }
.pricing-grid--centered { justify-content: center; }
.pricing-grid--centered { display: grid; }
.pricing-grid--centered > * { margin-left: auto; margin-right: auto; width: 100%; }

.plan { background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01)); border: 1px solid rgba(255,255,255,0.08); border-radius: 12px; padding: 22px; display: flex; flex-direction: column; gap: 14px; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.plan:hover { transform: translateY(-2px); border-color: rgba(0,255,156,0.4); box-shadow: 0 10px 24px rgba(0,255,156,0.06); }
.plan--highlight { border-color: rgba(0,255,156,0.5); box-shadow: 0 12px 28px rgba(0,255,156,0.1); background: linear-gradient(180deg, rgba(0,255,156,0.06), rgba(255,255,255,0.02)); }
.plan__header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.plan__title { margin: 0; font-size: 18px; }
.plan__badge { font-size: 11px; color: #00110a; background: var(--accent); border-radius: 999px; padding: 4px 8px; font-weight: 700; }
.price { margin: 0; font-size: 22px; font-weight: 700; }
.features { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; color: var(--muted); }
.features li { position: relative; padding-left: 18px; }
.features li::before { content: "#"; position: absolute; left: 0; color: var(--accent-2); }

.callout { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px; background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01)); border: 1px solid rgba(255,255,255,0.08); border-radius: 12px; box-shadow: 0 10px 24px var(--shadow); }
.callout__title { margin: 0 0 6px; font-size: 20px; color: var(--text); }
.callout .btn { white-space: nowrap; }
@media (max-width: 640px) { .callout { flex-direction: column; align-items: flex-start; } }

.site-footer { border-top: 1px solid rgba(255,255,255,0.06); padding: 18px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; }
.to-top { color: var(--muted); text-decoration: none; }
.legal { padding: 8px 0 22px; color: var(--muted); font-size: 12px; }
.legal a { color: var(--text); }

/* Inline icons */
.link-icon { display: inline-block; margin-left: 6px; opacity: 0.85; }
.link-icon svg { width: 14px; height: 14px; vertical-align: -2px; fill: currentColor; }

/* T‑Банк payment form dark theme */
.payform-tbank { display: flex; flex-direction: column; gap: 12px; width: min(480px, 100%); margin: 8px 0; }
.payform-tbank-label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--muted); }
.payform-tbank-row { appearance: none; border: 1px solid rgba(255,255,255,0.08); background: #0f1520; color: var(--text); border-radius: 8px; padding: 12px 14px; font-family: inherit; font-size: 14px; transition: border-color .2s ease, background .2s ease, box-shadow .2s ease; }
.payform-tbank-row::placeholder { color: #6f829b; }
.payform-tbank-row:focus { outline: none; border-color: rgba(0,255,156,0.5); box-shadow: 0 0 0 3px rgba(0,255,156,0.12); background: #0e141b; }
.payform-tbank-btn { cursor: pointer; background: var(--accent); border-color: var(--accent); color: #00110a; font-weight: 700; }
.payform-tbank-btn:hover { filter: brightness(1.02); }

/* Appear on scroll */
[data-reveal] { opacity: 0; transform: translateY(8px); transition: opacity .4s ease, transform .4s ease; }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .caret { animation: none; }
  .card, .btn { transition: none; }
}


