/* ==========================================================================
   Hokkaido Duty Systems — токены
   ========================================================================== */
:root {
  --ink: #0A0D13;
  --ink-2: #0E121A;
  --panel: #12161F;
  --panel-2: #171C28;
  --line: #262C3A;
  --paper: #E7EAF2;
  --muted: #8890A3;
  --muted-2: #5B6377;
  --amber: #FFB020;
  --amber-dim: #8A611E;
  --signal: #35D07F;

  /* только внутри мокапа State Helper — эхо настоящей палитры приложения */
  --sh-bg: #080A10;
  --sh-panel: #141925;
  --sh-accent: #6C4AFF;
  --sh-text: #F2F3F7;
  --sh-text-2: #858DA0;

  --font-display: 'Big Shoulders Display', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --wrap: 1120px;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    /* сайт задуман тёмным по смыслу (дежурный терминал) — светлая тема не предусмотрена */
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

/* лёгкий зерновой оверлей — не декоративный градиент, а фактура "экрана" */
.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ==========================================================================
   Топ-бар
   ========================================================================== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(10, 13, 19, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.topbar-in {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mark {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.02em;
  color: var(--paper);
}

.mark-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 3px rgba(53, 208, 127, 0.18);
  flex-shrink: 0;
}

.mark-sub {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.topnav {
  display: flex;
  gap: 28px;
}

.topnav a {
  font-size: 14.5px;
  color: var(--muted);
  transition: color 0.15s ease;
}

.topnav a:hover { color: var(--paper); }

/* ==========================================================================
   Кнопки
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 22px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14.5px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.btn:active { transform: translateY(1px); }

.btn-amber {
  background: var(--amber);
  color: #1A1204;
}
.btn-amber:hover { background: #FFC04D; }

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--paper);
}
.btn-ghost:hover { border-color: var(--muted-2); background: rgba(255,255,255,0.03); }

.btn-lg { height: 52px; padding: 0 28px; font-size: 15.5px; }

.fineprint {
  margin: 10px 0 0;
  font-size: 12.5px;
  color: var(--muted-2);
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  padding: 96px 0 104px;
  position: relative;
}

.hero-in { max-width: 760px; }

.boot {
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.9;
  color: var(--signal);
  margin: 0 0 28px;
  min-height: 96px;
  white-space: pre-wrap;
}

.boot .amber { color: var(--amber); }
.boot .dim { color: var(--muted-2); }

.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(40px, 6.4vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.01em;
  margin: 0 0 24px;
  color: var(--paper);
  opacity: 0;
}

.hero-sub {
  max-width: 560px;
  font-size: 17px;
  line-height: 1.65;
  color: var(--muted);
  margin: 0 0 34px;
  opacity: 0;
}

.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  opacity: 0;
}

/* ==========================================================================
   Секции продуктов
   ========================================================================== */
.product { padding: 88px 0; border-top: 1px solid var(--line); }
.product-alt { background: linear-gradient(180deg, rgba(255,255,255,0.012), transparent); }

.product-in {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.product-alt .product-in { grid-template-columns: 1fr 1fr; }
.product-alt .mock { order: 1; }
.product-alt .product-text { order: 2; }

.product-text h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(30px, 3.6vw, 42px);
  margin: 0 0 14px;
  color: var(--paper);
}

.product-lede {
  font-size: 16px;
  color: var(--muted);
  max-width: 480px;
  margin: 0 0 28px;
}

.feature-list {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.feature-list li {
  padding-left: 18px;
  border-left: 2px solid var(--line);
  font-size: 14.5px;
  color: var(--muted);
  max-width: 480px;
}

.feature-list strong {
  display: block;
  color: var(--paper);
  font-weight: 600;
  margin-bottom: 3px;
}

/* ==========================================================================
   Мокап — State Helper (эхо реальной палитры приложения)
   ========================================================================== */
.mock { display: flex; justify-content: center; }

.mock-shwin {
  width: 100%;
  max-width: 400px;
  background: var(--sh-bg);
  border: 1px solid #1E2430;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.6);
}

.mock-shhead {
  padding: 16px 18px;
  border-bottom: 1px solid #1A2130;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.mock-shlogo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.03em;
  color: var(--sh-text-2);
}
.mock-shlogo b { color: var(--sh-accent); font-weight: 700; }

.mock-shserver {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--sh-text-2);
}

.mock-shbody { padding: 18px; }

.mock-shcard {
  background: var(--sh-panel);
  border: 1px solid #1E2430;
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 14px;
}

.mock-shcard-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.mock-shnum {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 13px;
  color: var(--sh-text);
}

.mock-shstars { color: var(--amber); font-size: 12px; letter-spacing: 1px; }

.mock-shtitle {
  font-size: 13.5px;
  color: var(--sh-text);
  margin-bottom: 12px;
  line-height: 1.4;
}

.mock-shrow {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--sh-text-2);
  padding: 5px 0;
  border-top: 1px solid #1A2130;
}
.mock-shrow b { color: var(--sh-text); font-weight: 600; font-family: var(--font-mono); }
.mock-shrow.ok b { color: var(--signal); }

.mock-shsearch {
  background: #191E2A;
  border: 1px solid #232A3A;
  border-radius: 8px;
  padding: 11px 14px;
}

.mock-shcursor {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--sh-text-2);
}
.mock-shcursor i {
  font-style: normal;
  color: var(--sh-accent);
  animation: blink 1s step-end infinite;
}

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

.mock-shfoot {
  padding: 12px 18px;
  border-top: 1px solid #1A2130;
  font-size: 11.5px;
  color: var(--sh-text-2);
  display: flex;
  align-items: center;
  gap: 8px;
}

.mock-shdot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #FF315C;
  box-shadow: 0 0 0 0 rgba(255,49,92,0.5);
  animation: pulse 1.8s ease-out infinite;
}

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255,49,92,0.45); }
  70%  { box-shadow: 0 0 0 7px rgba(255,49,92,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,49,92,0); }
}

/* ==========================================================================
   Мокап — Discord-бот (эхо настоящей палитры Discord)
   ========================================================================== */
.mock-dcwin {
  width: 100%;
  max-width: 420px;
  background: #313338;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.6);
}

.mock-dcside {
  width: 52px;
  background: #1e1f22;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 14px 0;
}

.mock-dcicon {
  width: 32px; height: 32px;
  border-radius: 14px;
  background: #313338;
  color: #dbdee1;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600;
}
.mock-dcicon:first-child { background: #5865F2; color: #fff; border-radius: 12px; }

.mock-dcmain { flex: 1; padding: 14px 16px 18px; min-width: 0; }

.mock-dcchan {
  font-size: 11px;
  color: #949ba4;
  font-weight: 600;
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid #3f4147;
}

.mock-dcembed {
  background: #2b2d31;
  border-left: 3px solid #5865F2;
  border-radius: 4px;
  padding: 10px 12px;
  margin-bottom: 10px;
}

.mock-dcembed-2 { border-left-color: var(--amber); }

.mock-dcembed-title {
  font-size: 13px;
  font-weight: 700;
  color: #f2f3f5;
  margin-bottom: 6px;
}

.mock-dcembed-row {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  color: #b5bac1;
  padding: 2px 0;
}
.mock-dcembed-row b { color: #dbdee1; font-weight: 600; }

/* ==========================================================================
   Тизеры продуктов (главная)
   ========================================================================== */
.teaser-lede { margin-bottom: 20px; }

.teaser-points {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.teaser-points li {
  padding-left: 18px;
  border-left: 2px solid var(--line);
  font-size: 14.5px;
  color: var(--muted);
  max-width: 480px;
}

.teaser-points strong { color: var(--paper); font-weight: 600; }

/* ==========================================================================
   Подстраницы — шапка
   ========================================================================== */
.page-hero { padding: 72px 0 80px; }
.page-hero-in { max-width: 720px; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--signal);
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.eyebrow .mark-dot { width: 7px; height: 7px; }

.page-hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 20px;
  color: var(--paper);
}

.page-hero-sub {
  font-size: 17px;
  line-height: 1.65;
  color: var(--muted);
  max-width: 560px;
  margin: 0 0 32px;
}

.page-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

/* ==========================================================================
   Шаги (установка / подключение)
   ========================================================================== */
.steps { padding: 72px 0; border-top: 1px solid var(--line); }

.steps h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(26px, 3.2vw, 34px);
  margin: 0 0 32px;
}

.steps-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  counter-reset: step;
}

.steps-list li {
  counter-increment: step;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
}

.steps-list li::before {
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--amber);
  color: #1A1204;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 14px;
}

.steps-list strong {
  display: block;
  color: var(--paper);
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 15px;
}

.steps-list p { margin: 0; font-size: 13.5px; color: var(--muted); }

/* ==========================================================================
   Финальный CTA (низ подстраниц)
   ========================================================================== */
.final-cta {
  padding: 80px 0;
  border-top: 1px solid var(--line);
  text-align: center;
}

.final-cta h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(26px, 3.2vw, 34px);
  margin: 0 0 14px;
}

.final-cta p {
  color: var(--muted);
  max-width: 460px;
  margin: 0 auto 28px;
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq { padding: 88px 0 104px; border-top: 1px solid var(--line); }
.faq-in { max-width: 720px; }

.faq h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 3.4vw, 36px);
  margin: 0 0 36px;
}

.qa {
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.qa:last-child { border-bottom: 1px solid var(--line); }

.qa h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--paper);
}

.qa p {
  margin: 0;
  font-size: 14.5px;
  color: var(--muted);
  max-width: 600px;
}

/* ==========================================================================
   Подвал
   ========================================================================== */
.footer { border-top: 1px solid var(--line); padding: 28px 0; }
.footer-in {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--muted-2);
}
.footer-in a { color: var(--muted); }
.footer-in a:hover { color: var(--paper); }

.footer-brand { display: flex; flex-direction: column; gap: 4px; }
.footer-disclaimer { font-size: 11.5px; color: var(--muted-2); opacity: 0.85; }

/* ==========================================================================
   Адаптив
   ========================================================================== */
@media (max-width: 860px) {
  .product-in, .product-alt .product-in { grid-template-columns: 1fr; gap: 40px; }
  .product-alt .mock { order: initial; }
  .product-alt .product-text { order: initial; }
  .hero { padding: 64px 0 72px; }
  .product { padding: 64px 0; }
  .page-hero { padding: 56px 0 64px; }
  .steps { padding: 56px 0; }
  .steps-list { grid-template-columns: 1fr; }
  .final-cta { padding: 64px 0; }
  .topnav { display: none; }
}

/* ==========================================================================
   Уважение к prefers-reduced-motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .mock-shcursor i, .mock-shdot { animation: none; }
  .hero-title, .hero-sub, .hero-cta { opacity: 1 !important; }
}
