/* ============================================================
   netcat.site — страница-анонс Netcat Studio.
   Токены и типографика перенесены из landing.css продуктового сайта
   (netcat.studio), значения — те, что реально отдаёт CMS: paper #F6F7F8,
   ink #131418, марка #0089FA. Файл статический, ничем не компилируется.
   ============================================================ */

:root {
  --ns-paper:      #F6F7F8;
  --ns-paper-2:    #FFFFFF;
  --ns-surface:    #ECEFF0;
  --ns-cream:      #F4EFE5;
  --ns-ink:        #131418;
  --ns-ink-2:      #2B2D33;
  --ns-mute:       #5F636D;
  --ns-faint:      #8E929B;
  --ns-line:        rgba(19, 20, 24, .08);
  --ns-line-strong: rgba(19, 20, 24, .14);

  --ns-brand:      #0089FA;
  --ns-brand-h:    #0069C4;
  --ns-brand-br:   #4FADFF;
  --ns-brand-soft: rgba(0, 137, 250, .08);

  --ns-shadow-sm: 0 1px 2px rgba(19, 20, 24, .04);
  --ns-shadow-md: 0 1px 2px rgba(19, 20, 24, .04), 0 12px 32px rgba(19, 20, 24, .07);
  --ns-shadow-lg: 0 1px 2px rgba(19, 20, 24, .05), 0 24px 60px rgba(19, 20, 24, .12);

  --ns-serif: "Source Serif 4", "Times New Roman", serif;
  --ns-sans:  "Geist", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --ns-mono:  "Geist Mono", "JetBrains Mono", ui-monospace, monospace;

  --ns-ease: cubic-bezier(.2, .7, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ns-paper);
  color: var(--ns-ink);
  font-family: var(--ns-sans);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, p, figure { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; }

:focus-visible {
  outline: 2px solid var(--ns-brand);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── каркас ───────────────────────────────────────────────── */

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 56px; }

.section { padding: 120px 0; }
.section--ink { background: var(--ns-ink); color: #FBF8F2; }

/* ── типографика ──────────────────────────────────────────── */

.display {
  font-family: var(--ns-serif);
  font-weight: 400;
  font-size: clamp(40px, 6.6vw, 84px);
  line-height: 1.0;
  letter-spacing: -.03em;
}
.h2 {
  font-family: var(--ns-serif);
  font-weight: 400;
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.06;
  letter-spacing: -.02em;
}
.h4 {
  font-family: var(--ns-sans);
  font-weight: 500;
  font-size: 20px;
  line-height: 1.3;
  letter-spacing: -.012em;
}
.lead {
  font-size: 18px;
  line-height: 1.55;
  color: var(--ns-mute);
}
.caption { font-size: 13px; line-height: 1.5; color: var(--ns-mute); }

.eyebrow {
  font-family: var(--ns-mono);
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ns-mute);
}

.mono { font-family: var(--ns-mono); font-size: .92em; letter-spacing: 0; }

.accent {
  font-family: var(--ns-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--ns-brand);
}
.section--ink .accent { color: var(--ns-brand-br); }

/* ── шапка ────────────────────────────────────────────────── */

.header {
  padding: 28px 0;
  border-bottom: 1px solid var(--ns-line);
}
.header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
/* flex: none — иначе на узких экранах кнопка отжимает логотип и он сплющивается */
.header__logo { display: inline-flex; align-items: center; flex: none; }
.header__logo img { display: block; height: 26px; width: auto; }

/* ── кнопки ───────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 56px;
  padding: 0 28px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-family: var(--ns-sans);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -.005em;
  white-space: nowrap;
  cursor: pointer;
  transition: transform var(--ns-ease) 200ms, background 200ms, border-color 200ms, color 200ms;
}
.btn:hover { transform: translateY(-2px); }

.btn--dark  { background: var(--ns-ink); color: #FBF8F2; }
.btn--dark:hover { background: #000; }

.btn--ghost { background: transparent; color: var(--ns-ink-2); border-color: var(--ns-line-strong); }
.btn--ghost:hover { background: var(--ns-paper-2); border-color: var(--ns-line-strong); }

.btn--light { background: #FBF8F2; color: var(--ns-ink); }
.btn--light:hover { background: #fff; }

.btn--ghost-light { background: transparent; color: #FBF8F2; border-color: rgba(251, 248, 242, .22); }
.btn--ghost-light:hover { background: rgba(251, 248, 242, .07); }

.btn--sm { height: 40px; padding: 0 18px; font-size: 14px; border-radius: 10px; }

.btn .ic { width: 16px; height: 16px; flex: none; }

/* ── герой ────────────────────────────────────────────────── */

.hero { padding: 112px 0 96px; }
.hero__inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero .display { margin-top: 22px; max-width: 1000px; }
.hero .lead { margin-top: 26px; max-width: 620px; }
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 38px; }
.hero__note { margin-top: 20px; }

/* ── мок адресной строки ──────────────────────────────────── */

.mock { margin-top: 76px; }
.mock__win {
  max-width: 760px;
  margin: 0 auto;
  background: var(--ns-paper-2);
  border: 1px solid var(--ns-line-strong);
  border-radius: 14px;
  box-shadow: var(--ns-shadow-lg);
  overflow: hidden;
}
.mock__bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--ns-line);
  background: var(--ns-paper);
}
.mock__dots { display: flex; gap: 7px; flex: none; }
.mock__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ns-line-strong); }
.mock__url {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  height: 34px;
  padding: 0 14px;
  background: var(--ns-paper-2);
  border: 1px solid var(--ns-line);
  border-radius: 999px;
  font-family: var(--ns-mono);
  font-size: 13px;
  color: var(--ns-mute);
  overflow: hidden;
  white-space: nowrap;
}
/* адрес — один flex-элемент: иначе gap контейнера рассечёт его на части */
.mock__addr { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.mock__lock { flex: none; color: var(--ns-brand); }
.mock__scheme { color: var(--ns-faint); }
.mock__name { color: var(--ns-ink); font-weight: 500; }
.mock__zone { color: var(--ns-brand); font-weight: 500; }
.mock__caret {
  display: inline-block;
  width: 1px;
  height: 15px;
  margin-left: 1px;
  background: var(--ns-ink);
  vertical-align: -3px;
  animation: ns-blink 1.05s steps(1, end) infinite;
}
@keyframes ns-blink { 0%, 50% { opacity: 1; } 50.01%, 100% { opacity: 0; } }

.mock__body { padding: 34px 30px 38px; text-align: center; }
.mock__body .h4 { margin-bottom: 8px; }

/* ── шаги ─────────────────────────────────────────────────── */

.steps { border-top: 1px solid var(--ns-line); }
.step {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  padding: 38px 0;
  border-bottom: 1px solid var(--ns-line);
}
.step__num {
  font-family: var(--ns-mono);
  font-size: 12px;
  line-height: 1.5;
  color: var(--ns-faint);
  letter-spacing: .04em;
}
.step__title { font-family: var(--ns-serif); font-size: 27px; line-height: 1.18; letter-spacing: -.015em; }
.step__text { color: var(--ns-mute); font-size: 15.5px; line-height: 1.6; }

/* ── карточка «ищете свой сайт» ───────────────────────────── */

.helper {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  max-width: 820px;
  margin: 72px auto 0;
  padding: 22px 26px;
  background: var(--ns-paper-2);
  border: 1px solid var(--ns-line);
  border-radius: 14px;
  box-shadow: var(--ns-shadow-sm);
}
.helper__ic {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--ns-brand-soft);
  color: var(--ns-brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.helper__text { font-size: 15px; line-height: 1.6; color: var(--ns-ink-2); }
.helper__text a { color: var(--ns-brand); text-decoration: underline; text-underline-offset: 3px; }
.helper__text a:hover { color: var(--ns-brand-h); }

/* ── финальный блок ───────────────────────────────────────── */

.cta { text-align: center; }
.cta__mark { display: inline-flex; margin-bottom: 30px; }
.cta .display { margin: 0 auto; max-width: 16ch; }
.cta .lead { margin: 24px auto 0; max-width: 520px; color: rgba(251, 248, 242, .62); }
.cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 40px; }

/* ── подвал ───────────────────────────────────────────────── */

.footer { padding: 64px 0; border-top: 1px solid var(--ns-line); }
.footer__row {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
}
.footer__brand { max-width: 320px; }
.footer__brand img { display: block; height: 24px; width: auto; margin-bottom: 14px; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.footer__nav a { font-size: 14.5px; color: var(--ns-ink-2); }
.footer__nav a:hover { color: var(--ns-brand); }
.footer__legal {
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--ns-line);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
}
.footer__legal a { color: var(--ns-mute); }
.footer__legal a:hover { color: var(--ns-brand); }

/* ── адаптив ──────────────────────────────────────────────── */

@media (max-width: 900px) {
  .wrap { padding: 0 24px; }
  .section { padding: 84px 0; }
  .hero { padding: 72px 0 64px; }
  .hero .display { max-width: none; }
  .mock { margin-top: 56px; }
  .step {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 30px 0;
  }
  .helper { margin-top: 52px; padding: 20px; }
}

@media (max-width: 600px) {
  .header { padding: 20px 0; }
  .header__logo img { height: 22px; }
  /* вдвоём с логотипом кнопка не помещается; обе большие CTA — сразу под шапкой */
  .header__cta { display: none; }
  .hero__actions .btn, .cta__actions .btn { width: 100%; }
  .mock__bar { padding: 12px 14px; gap: 10px; }
  .mock__dots { display: none; }
  .mock__url { font-size: 12px; }
  .mock__body { padding: 26px 20px 30px; }
  .helper { flex-direction: column; gap: 12px; }
  .footer__nav { gap: 14px 24px; }
}

/* на очень узких экранах хвост адреса не влезает и обрезается ровно на зоне —
   прячем схему, как это делают мобильные браузеры */
@media (max-width: 380px) {
  .mock__scheme { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .btn:hover { transform: none; }
}
