@import url('https://fonts.googleapis.com/css2?family=Inter+Tight:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --bg: #FBF9F5;
  --surface: #FFFFFF;
  --surface-alt: #F4EFE6;
  --ink: #141211;
  --ink-soft: #2A2520;
  --muted: #6B6661;
  --muted-soft: #948D85;
  --line: #E7E2D8;
  --line-soft: #F0EBE0;
  --accent: oklch(0.65 0.17 35);
  --accent-deep: oklch(0.55 0.17 35);
  --accent-soft: oklch(0.92 0.05 35);
  --accent-tint: rgba(212, 115, 58, 0.08);
  --shadow-sm: 0 1px 2px rgba(20,18,17,.04);
  --shadow-md: 0 8px 24px -8px rgba(20,18,17,.08);
  --shadow-lg: 0 24px 60px -20px rgba(20,18,17,.12);
  --radius: 14px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
body {
  font-family: 'Inter Tight', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'ss01', 'cv11';
}

a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }

/* === LAYOUT === */
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 28px; }
.section { padding: 96px 0; }
.section-tight { padding: 56px 0; }

@media (max-width: 720px) {
  .section { padding: 56px 0; }
  .wrap { padding: 0 20px; }
}

/* === NAV === */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 249, 245, 0.85);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  max-width: 1180px;
  margin: 0 auto;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.02em;
}
.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: linear-gradient(135deg, oklch(0.72 0.17 35), oklch(0.55 0.17 35));
  display: grid;
  place-items: center;
  color: white;
  font-family: 'JetBrains Mono', monospace;
  font-size: 18px;
  font-weight: 700;
}
.brand small {
  color: var(--muted);
  font-weight: 400;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.04em;
}
.nav-links {
  display: flex;
  gap: 4px;
  list-style: none;
}
.nav-links a {
  padding: 8px 14px;
  border-radius: 9px;
  font-size: 14px;
  color: var(--ink-soft);
  transition: all .15s ease;
}
.nav-links a:hover { background: var(--surface-alt); }
.nav-links a.active {
  background: var(--ink);
  color: white;
}
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: white;
  font-size: 14px;
  font-weight: 500;
  transition: transform .12s ease, background .15s ease;
}
.nav-cta:hover { background: var(--accent-deep); transform: translateY(-1px); }
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--ink);
}
@media (max-width: 880px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: inline-block; }
  .nav.open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: 16px 24px;
    gap: 4px;
  }
  .nav.open .nav-cta {
    display: inline-flex;
    margin: 16px 24px;
    align-self: flex-start;
  }
}

/* === HERO === */
.hero {
  padding: 80px 0 100px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1100px 600px at 80% -10%, var(--accent-tint), transparent 70%),
    radial-gradient(800px 500px at 0% 110%, rgba(212,115,58,.05), transparent 60%);
  pointer-events: none;
}
.hero-inner { position: relative; }
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  border-radius: 999px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-bottom: 28px;
}
.kicker-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(212,115,58,.15);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(212,115,58,.15); }
  50% { box-shadow: 0 0 0 8px rgba(212,115,58,.05); }
}
h1.headline {
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 700;
  max-width: 940px;
  margin-bottom: 28px;
}
h1.headline em { font-style: normal; color: var(--accent); }
.hero-sub {
  font-size: 20px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 640px;
  margin-bottom: 36px;
}
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: transform .12s ease, background .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--ink);
  color: white;
}
.btn-primary:hover { background: var(--accent-deep); transform: translateY(-1px); }
.btn-ghost {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-ghost:hover { border-color: var(--ink); }

/* === STRIP === */
.strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 28px 0;
  background: var(--surface);
}
.strip-inner {
  display: flex;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
  justify-content: center;
  color: var(--muted);
  font-size: 13px;
}
.strip-label {
  font-family: 'JetBrains Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 11px;
  color: var(--muted-soft);
}
.strip-logo {
  font-weight: 600;
  color: var(--ink-soft);
  letter-spacing: -0.01em;
  font-size: 16px;
}

/* === SECTION HEADER === */
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}
.section-head .eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent-deep);
  margin-bottom: 14px;
}
.section-head h2 {
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 700;
  margin-bottom: 16px;
}
.section-head p {
  font-size: 18px;
  color: var(--muted);
}

/* === FEATURE GRID === */
.fgrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.fcard {
  background: var(--surface);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: background .15s ease;
}
.fcard:hover { background: var(--surface-alt); }
.fcard-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-tint);
  display: grid;
  place-items: center;
  color: var(--accent-deep);
}
.fcard h3 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.fcard p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}
.fcard small {
  margin-top: auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--muted-soft);
  letter-spacing: 0.04em;
}
@media (max-width: 880px) { .fgrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .fgrid { grid-template-columns: 1fr; } }

/* === STEPS === */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  position: relative;
}
.step-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--muted-soft);
  margin-bottom: 18px;
  letter-spacing: 0.04em;
}
.step h3 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}
.step p { color: var(--muted); font-size: 15px; line-height: 1.55; }
@media (max-width: 880px) { .steps { grid-template-columns: 1fr; } }

/* === DASHBOARD MOCK === */
.mock {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  margin-top: 24px;
}
.mock-bar {
  display: flex;
  gap: 6px;
  padding: 12px 16px;
  background: var(--surface-alt);
  border-bottom: 1px solid var(--line);
}
.mock-dot {
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--line);
}
.mock-dot:nth-child(1) { background: #ff5f57; }
.mock-dot:nth-child(2) { background: #ffbd2e; }
.mock-dot:nth-child(3) { background: #28c840; }
.mock-url {
  margin-left: 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--muted);
  background: var(--surface);
  padding: 4px 10px;
  border-radius: 6px;
  flex: 1;
  max-width: 320px;
}
.mock-body { padding: 24px; }
.mock-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.mock-stat {
  background: var(--surface-alt);
  padding: 16px;
  border-radius: 10px;
}
.mock-stat .l {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 8px;
}
.mock-stat .v {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.mock-stat .d { font-size: 12px; color: var(--accent-deep); margin-top: 4px; font-weight: 500; }
.mock-chart {
  height: 200px;
  background: linear-gradient(to top, var(--accent-tint), transparent);
  border-radius: 10px;
  position: relative;
  overflow: hidden;
}
.mock-chart svg { width: 100%; height: 100%; display: block; }
@media (max-width: 720px) { .mock-stats { grid-template-columns: repeat(2, 1fr); } }

/* === PRICING === */
.tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.tier {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: border-color .15s ease, transform .15s ease;
}
.tier:hover { transform: translateY(-2px); border-color: var(--ink); }
.tier.featured {
  border: 2px solid var(--accent);
  background: linear-gradient(180deg, var(--surface) 0%, rgba(255,255,255,1) 100%);
  position: relative;
}
.tier.featured::before {
  content: 'Популярный';
  position: absolute;
  top: -13px;
  left: 32px;
  background: var(--accent);
  color: white;
  padding: 4px 12px;
  border-radius: 999px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.04em;
}
.tier-name {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.tier-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.tier-price .num {
  font-size: 56px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}
.tier-price .per { font-size: 14px; color: var(--muted); }
.tier-desc { color: var(--muted); font-size: 14px; line-height: 1.6; }
.tier ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.tier li {
  font-size: 14px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.tier li::before {
  content: '✓';
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
}
@media (max-width: 880px) { .tiers { grid-template-columns: 1fr; } }

/* === FAQ === */
.faq { max-width: 760px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.01em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 24px;
  color: var(--muted);
  transition: transform .2s ease;
  font-weight: 300;
}
.faq-item[open] summary::after { transform: rotate(45deg); color: var(--accent); }
.faq-item .answer {
  padding-bottom: 24px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
  max-width: 640px;
}

/* === CTA BAND === */
.cta-band {
  background: var(--ink);
  color: white;
  border-radius: 24px;
  padding: 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(800px 400px at 50% 0%, rgba(212,115,58,.25), transparent 70%);
  pointer-events: none;
}
.cta-band h2 {
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 16px;
  position: relative;
}
.cta-band p {
  color: rgba(255,255,255,.65);
  font-size: 18px;
  margin-bottom: 28px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}
.cta-band .btn-primary {
  background: var(--accent);
  position: relative;
}
.cta-band .btn-primary:hover { background: oklch(0.72 0.17 35); }
.cta-band .btn-ghost {
  background: transparent;
  color: white;
  border: 1px solid rgba(255,255,255,.2);
  position: relative;
}
.cta-band .btn-ghost:hover { border-color: white; }

/* === CASE === */
.case {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.case-quote {
  font-size: 26px;
  line-height: 1.4;
  letter-spacing: -0.015em;
  font-weight: 500;
}
.case-quote::before { content: '“'; color: var(--accent); font-size: 64px; line-height: 0; vertical-align: -0.18em; margin-right: 4px; }
.case-author {
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.case-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, oklch(0.72 0.17 35), oklch(0.55 0.17 35));
  color: white;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 16px;
}
.case-author .nm { font-weight: 600; font-size: 15px; }
.case-author .rl { font-size: 13px; color: var(--muted); }
.case-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.case-stats .item .num {
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--accent);
}
.case-stats .item .lbl { font-size: 14px; color: var(--muted); margin-top: 4px; }
@media (max-width: 880px) {
  .case { grid-template-columns: 1fr; padding: 36px 28px; gap: 32px; }
}

/* === FOOTER === */
footer {
  border-top: 1px solid var(--line);
  padding: 48px 0 36px;
  color: var(--muted);
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 36px;
}
.footer-grid h4 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted-soft);
  margin-bottom: 14px;
  font-weight: 500;
}
.footer-grid ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-grid a { color: var(--ink-soft); }
.footer-grid a:hover { color: var(--accent-deep); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--muted-soft);
}
@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* === TABLE === */
.table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.table th, .table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.table th {
  background: var(--surface-alt);
  font-weight: 600;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.table tr:last-child td { border-bottom: none; }
.table .yes { color: var(--accent-deep); font-weight: 600; }
.table .no { color: var(--muted-soft); }

/* === REGISTER FORM === */
.form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 40px;
  max-width: 480px;
  margin: 0 auto;
}
.form-card label {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 6px;
  margin-top: 16px;
}
.form-card label:first-child { margin-top: 0; }
.form-card input {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  font-size: 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  color: var(--ink);
  outline: none;
  transition: border-color .15s ease;
}
.form-card input:focus { border-color: var(--accent); }
.form-card .form-note {
  margin-top: 16px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}
.form-card .btn { width: 100%; justify-content: center; margin-top: 24px; }
