/* SlopHunters — стиль по мотивам ollama.com: белый фон, крупная типографика,
   чёрные pill-кнопки, серые рамки, моноширинные терминальные блоки. */

:root {
  --bg: #ffffff;
  --fg: #171717;
  --muted: #6b7280;
  --border: #e5e7eb;
  --surface: #f9fafb;
  --terminal-bg: #171717;
  --terminal-fg: #e5e7eb;
  --accent: #f5c518;
  --good: #4ade80;
  --bad: #f87171;
  --btn-bg: #171717;
  --btn-fg: #ffffff;
}

:root[data-theme="dark"] {
  --bg: #161616;
  --fg: #f5f5f5;
  --muted: #a3a3a3;
  --border: #2e2e2e;
  --surface: #1f1f1f;
  --terminal-bg: #0d0d0d;
  --terminal-fg: #d4d4d4;
  --btn-bg: #f5f5f5;
  --btn-fg: #161616;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

code, pre {
  font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

a { color: inherit; }

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.5em; }
h2 { font-size: 34px; }
h3 { font-size: 19px; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

/* --- Навигация --- */

.nav {
  position: sticky;
  top: 0;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 10;
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 18px;
  text-decoration: none;
}

.logo-mark { width: 22px; height: 22px; color: var(--accent); }

.nav-links {
  display: flex;
  gap: 22px;
  margin-left: auto;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 15px;
}

.nav-links a:hover { color: var(--fg); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  min-width: 36px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: none;
  color: var(--fg);
  cursor: pointer;
  font: inherit;
}

.icon-btn:hover { background: var(--surface); }

.icon-btn svg { width: 17px; height: 17px; }

.lang-btn {
  padding: 0 13px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
}

.icon-sun { display: none; }
:root[data-theme="dark"] .icon-sun { display: block; }
:root[data-theme="dark"] .icon-moon { display: none; }

/* --- Кнопки --- */

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: opacity 0.15s, background 0.15s;
}

.btn-sm { padding: 8px 18px; font-size: 14px; }

.btn-primary {
  background: var(--btn-bg);
  color: var(--btn-fg);
}

.btn-primary:hover { opacity: 0.85; }

.btn-ghost {
  border-color: var(--border);
  color: var(--fg);
}

.btn-ghost:hover { background: var(--surface); }

/* --- Хиро --- */

.hero {
  padding: 96px 24px 72px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(38px, 6vw, 64px);
  font-weight: 800;
  max-width: 16ch;
  margin: 0 auto 24px;
}

.hl {
  background: linear-gradient(transparent 62%, var(--accent) 62%, var(--accent) 94%, transparent 94%);
}

.lead {
  font-size: 20px;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 32px;
}

.cta-row {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
}

/* --- Терминал --- */

.terminal {
  background: var(--terminal-bg);
  color: var(--terminal-fg);
  border-radius: 14px;
  max-width: 620px;
  margin: 56px auto 0;
  text-align: left;
  overflow-x: auto;
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.4);
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}

.terminal-title {
  margin-left: 8px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
}

.terminal pre {
  margin: 0;
  padding: 20px 24px;
  font-size: 14px;
  line-height: 1.7;
}

.t-prompt { color: var(--accent); }
.t-add { color: var(--good); }
.t-del { color: var(--bad); }
.t-ctx { color: rgba(255, 255, 255, 0.45); }

.terminal-inline {
  margin: 20px 0;
  max-width: none;
  box-shadow: none;
}

/* --- Секции --- */

.section { padding: 72px 24px; }

.section-sub {
  color: var(--muted);
  margin-top: -12px;
  margin-bottom: 32px;
}

.note {
  color: var(--muted);
  max-width: 620px;
  margin-top: 32px;
}

.grid-3, .grid-2 {
  display: grid;
  gap: 20px;
  margin-top: 32px;
}

.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  background: var(--surface);
}

.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 15.5px; }

/* --- Шаги --- */

.steps {
  list-style: none;
  counter-reset: step;
  margin: 32px 0 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding: 0 0 36px 64px;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
}

.steps li::after {
  content: "";
  position: absolute;
  left: 20px;
  top: 44px;
  bottom: 4px;
  width: 1px;
  background: var(--border);
}

.steps li:last-child { padding-bottom: 0; }
.steps li:last-child::after { display: none; }

.steps p { color: var(--muted); max-width: 560px; }

/* --- Цена --- */

.price-card {
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  margin-top: 32px;
}

.price-head {
  padding: 36px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.price-amount {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.price-sub { color: var(--muted); }

.price-body { padding: 36px; }

.fineprint {
  font-size: 14px;
  color: var(--muted);
}

/* --- Команда --- */

.person { text-align: center; }

.person img {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 18px;
  border: 1px solid var(--border);
  background: var(--border);
}

.person-role {
  color: var(--muted);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: -6px 0 12px;
}

.person-links {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
}

.person-link {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 14px;
  color: var(--muted);
}

.person-link:hover { color: var(--fg); }

/* --- Контакт --- */

.contact-card {
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--surface);
  padding: 64px 40px;
  text-align: center;
}

.contact-card p {
  color: var(--muted);
  max-width: 480px;
  margin: 0 auto 28px;
}

.cta-center { justify-content: center; }

/* --- Футер --- */

.footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  margin-top: 40px;
  text-align: center;
  color: var(--muted);
  font-size: 15px;
}

.footer-copy { font-size: 13px; }

/* --- Адаптив --- */

@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-actions { margin-left: auto; }
  .nav-actions .btn { display: none; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .hero { padding: 64px 24px 48px; }
  .section { padding: 48px 24px; }
  .price-head, .price-body { padding: 24px; }
  .terminal pre { padding: 16px; font-size: 13px; }
  .contact-card { padding: 40px 24px; }
}
