/* Пульс Города — лендинг. Тёмная тема, system-fonts, без зависимостей. */
:root {
  --bg: #0b0d12;
  --bg-elev: #11141b;
  --bg-card: #161a23;
  --border: #20242f;
  --border-strong: #2b313f;
  --text: #e7ebf2;
  --text-muted: #9aa3b2;
  --text-dim: #6b7280;
  --accent: #7c8cff;
  --accent-hot: #ff7a59;
  --accent-cool: #38d6ad;
  --danger: #ff6b81;
  --maxw: 1120px;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 24px 60px -28px rgba(0, 0, 0, 0.6);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue',
    Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ───────────────────────── header ───────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(11, 13, 18, 0.78);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), #5ac8fa);
  color: #0b0d12;
  font-weight: 800;
  font-size: 14px;
}
.brand-text {
  font-size: 15px;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14px;
  color: var(--text-muted);
}
.header-nav a:hover {
  color: var(--text);
}

/* ───────────────────────── buttons ───────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.06s ease, background-color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn:active {
  transform: translateY(1px);
}
.btn-sm {
  padding: 8px 14px;
  font-size: 13px;
  border-radius: 10px;
}
.btn-lg {
  padding: 14px 22px;
  font-size: 15px;
  border-radius: 14px;
}
.btn-primary {
  background: linear-gradient(180deg, #8a98ff 0%, #6776ff 100%);
  color: #0b0d12;
  border-color: #6776ff;
  box-shadow: 0 6px 20px -8px rgba(124, 140, 255, 0.6);
}
.btn-primary:hover {
  background: linear-gradient(180deg, #9aa6ff 0%, #7382ff 100%);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: #3a4253;
}

/* ───────────────────────── hero ───────────────────────── */
.hero {
  position: relative;
  padding: 80px 0 64px;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 60%;
  background:
    radial-gradient(60% 60% at 30% 30%, rgba(124, 140, 255, 0.25), transparent 70%),
    radial-gradient(50% 50% at 80% 20%, rgba(56, 214, 173, 0.18), transparent 70%);
  filter: blur(20px);
  pointer-events: none;
  z-index: 0;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  background: rgba(124, 140, 255, 0.1);
  border: 1px solid rgba(124, 140, 255, 0.25);
  border-radius: 999px;
  padding: 6px 12px;
  margin-bottom: 18px;
}
.hero-text h1 {
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.05;
  margin: 0 0 20px;
  letter-spacing: -0.02em;
  background: linear-gradient(180deg, #ffffff 0%, #c9cfdc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lede {
  font-size: clamp(16px, 1.3vw, 18px);
  color: var(--text-muted);
  margin: 0 0 28px;
  max-width: 540px;
}
.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.cta-row-center {
  justify-content: center;
}
.hint {
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-dim);
}

/* hero card with hex grid */
.hero-card {
  position: relative;
  background: linear-gradient(180deg, var(--bg-card) 0%, #131722 100%);
  border: 1px solid var(--border-strong);
  border-radius: 24px;
  padding: 28px;
  box-shadow: var(--shadow);
  overflow: hidden;
  min-height: 320px;
}
.hex-grid {
  position: relative;
  height: 220px;
  display: block;
}
.hex {
  position: absolute;
  width: 64px;
  height: 56px;
  clip-path: polygon(25% 5%, 75% 5%, 100% 50%, 75% 95%, 25% 95%, 0% 50%);
  background: rgba(124, 140, 255, 0.18);
  border: 1px solid rgba(124, 140, 255, 0.3);
}
.hex.h1 {
  top: 0;
  left: 30%;
  background: rgba(124, 140, 255, 0.35);
}
.hex.h2 {
  top: 30px;
  left: 10%;
  background: rgba(56, 214, 173, 0.25);
}
.hex.h3 {
  top: 30px;
  left: 52%;
  background: rgba(255, 122, 89, 0.3);
}
.hex.h4 {
  top: 90px;
  left: 30%;
  background: rgba(124, 140, 255, 0.55);
  border-color: rgba(124, 140, 255, 0.7);
}
.hex.h5 {
  top: 90px;
  left: 72%;
  background: rgba(124, 140, 255, 0.18);
}
.hex.h6 {
  top: 150px;
  left: 10%;
  background: rgba(255, 122, 89, 0.18);
}
.hex.h7 {
  top: 150px;
  left: 52%;
  background: rgba(56, 214, 173, 0.4);
}

.hero-card-caption {
  margin-top: 20px;
  display: flex;
  gap: 24px;
  border-top: 1px dashed var(--border-strong);
  padding-top: 18px;
}
.metric {
  display: flex;
  flex-direction: column;
}
.metric-value {
  font-size: 26px;
  font-weight: 700;
  color: var(--accent-cool);
  letter-spacing: -0.02em;
}
.metric-value.metric-down {
  color: var(--danger);
}
.metric-label {
  font-size: 12px;
  color: var(--text-muted);
}

/* ───────────────────────── features ───────────────────────── */
.features {
  padding: 80px 0 40px;
}
.features h2,
.login-block h2,
.cta-final h2 {
  font-size: clamp(26px, 3vw, 36px);
  margin: 0 0 14px;
  letter-spacing: -0.01em;
}
.section-lede {
  color: var(--text-muted);
  margin: 0 0 36px;
  max-width: 620px;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 22px;
  transition: border-color 0.15s ease, transform 0.1s ease;
}
.feature-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}
.feature-icon {
  font-size: 26px;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(124, 140, 255, 0.1);
  border: 1px solid rgba(124, 140, 255, 0.2);
  margin-bottom: 14px;
}
.feature-card h3 {
  margin: 0 0 8px;
  font-size: 17px;
  letter-spacing: -0.01em;
}
.feature-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
}

/* ───────────────────────── login block ───────────────────────── */
.login-block {
  padding: 60px 0;
  background:
    radial-gradient(40% 60% at 20% 50%, rgba(124, 140, 255, 0.12), transparent 70%),
    var(--bg-elev);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-top: 40px;
}
.login-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.login-grid p {
  color: var(--text-muted);
  max-width: 460px;
}
.login-card {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: var(--shadow);
}
.login-step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.login-step strong {
  display: block;
  margin-bottom: 4px;
  font-size: 15px;
}
.login-step p {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}
.step-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), #5ac8fa);
  color: #0b0d12;
  font-weight: 700;
  font-size: 13px;
}

/* ───────────────────────── cta final ───────────────────────── */
.cta-final {
  padding: 84px 0 96px;
  text-align: center;
}

/* ───────────────────────── footer ───────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
  background: var(--bg);
}
.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 13px;
}
.footer-meta {
  color: var(--text-dim);
}

/* ───────────────────────── responsive ───────────────────────── */
@media (max-width: 880px) {
  .hero {
    padding: 56px 0 40px;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .login-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .header-nav {
    gap: 14px;
  }
  .header-nav a:not(.btn) {
    display: none;
  }
  .footer-row {
    flex-direction: column;
    gap: 6px;
    text-align: center;
  }
}
