/* POWW — минималистичный лендинг. Светлая + тёмная тема (по системной). */

:root {
  color-scheme: light dark;
  /* Светлая (по умолчанию) */
  --bg: #fafaf9;
  --bg-card: #ffffff;
  --ink: #18181b;
  --ink-2: #3f3f46;
  --ink-3: #71717a;
  --line: #e4e4e7;
  --line-2: #f4f4f5;
  --accent: #18181b;       /* фон тёмной кнопки */
  --accent-2: #27272a;     /* hover */
  --accent-ink: #ffffff;   /* текст на кнопке */
  --hl: #fde68a;           /* жёлтый маркер */
  --good: #15803d;
  --bad: #b91c1c;
  --warn: #b45309;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.06);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0a0a;
    --bg-card: #141416;
    --ink: #f4f4f5;
    --ink-2: #d4d4d8;
    --ink-3: #a1a1aa;
    --line: #27272a;
    --line-2: #1c1c1f;
    --accent: #f4f4f5;       /* светлая кнопка на тёмном фоне */
    --accent-2: #e4e4e7;
    --accent-ink: #18181b;   /* тёмный текст на светлой кнопке */
    --hl: #ca8a04;           /* приглушённый жёлтый */
    --good: #4ade80;
    --bad: #f87171;
    --warn: #fbbf24;
    --shadow: 0 1px 3px rgba(0,0,0,0.4), 0 1px 2px rgba(0,0,0,0.5);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

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

/* ── Nav ── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -0.02em; }
.brand__logo { color: var(--accent); font-size: 18px; transform: translateY(-1px); }
.brand__name { font-size: 18px; }
.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__links > a { color: var(--ink-2); font-weight: 500; font-size: 14px; }
.nav__links > a:hover { color: var(--ink); }

/* Переключатель языков */
.lang { display: flex; align-items: center; gap: 4px;
  background: var(--line-2); padding: 4px; border-radius: 999px;
}
.lang__link {
  display: inline-block; padding: 4px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.02em;
  color: var(--ink-3); transition: background .15s, color .15s;
}
.lang__link:hover { color: var(--ink); }
.lang__link.is-active { background: var(--bg-card); color: var(--ink); box-shadow: var(--shadow); }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 22px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 14px; letter-spacing: -0.01em;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .05s, background .15s, border-color .15s, color .15s;
}
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: var(--accent-2); }
.btn--primary:active { transform: scale(0.98); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { background: var(--line-2); border-color: var(--ink-3); }
.btn--small { padding: 8px 16px; background: var(--accent); color: var(--accent-ink); }
.btn--small:hover { background: var(--accent-2); }

/* ── Hero ── */
.hero { padding: 80px 0 60px; border-bottom: 1px solid var(--line); }
.hero__eyebrow {
  display: inline-block; font-size: 13px; font-weight: 500;
  letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--ink-3); margin: 0 0 16px;
}
.hero__title {
  font-size: clamp(36px, 5vw, 56px); font-weight: 800; line-height: 1.1;
  letter-spacing: -0.03em; margin: 0 0 24px;
}
.hl {
  background: linear-gradient(180deg, transparent 60%, var(--hl) 60%);
  padding: 0 4px;
}
.hero__lead {
  font-size: 18px; color: var(--ink-2); max-width: 640px;
  margin: 0 0 36px;
}
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 56px; }
.hero__metrics {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 16px; padding: 24px; border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--bg-card);
}
.metric { font-size: 13px; color: var(--ink-3); }
.metric b {
  display: block; font-size: 22px; font-weight: 700; color: var(--ink);
  margin-bottom: 2px; letter-spacing: -0.02em;
}

/* ── Section common ── */
section { padding: 80px 0; }
.section__title {
  font-size: clamp(28px, 3.5vw, 40px); font-weight: 800; letter-spacing: -0.02em;
  margin: 0 0 12px;
}
.section__lead { font-size: 17px; color: var(--ink-2); margin: 0 0 48px; max-width: 580px; }

/* ── Features ── */
.grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.card {
  background: var(--bg-card); padding: 24px; border-radius: var(--radius);
  border: 1px solid var(--line); transition: border-color .15s, transform .15s;
}
.card:hover { border-color: var(--ink-3); transform: translateY(-2px); }
.card__ico { font-size: 28px; margin-bottom: 12px; }
.card h3 { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; margin: 0 0 8px; }
.card p { margin: 0; font-size: 14.5px; color: var(--ink-2); }

/* ── Screens ── */
.screens { background: var(--bg-card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.screens__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}
.screen { margin: 0; }
.screen__shot {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.screen figcaption {
  text-align: center; font-size: 13.5px; color: var(--ink-3); margin-top: 12px;
}

.mock {
  width: 100%; background: var(--bg-card); border: 1px solid var(--line);
  border-radius: 10px; padding: 14px; font-size: 13px;
  box-shadow: var(--shadow);
}
.mock__head {
  font-weight: 600; color: var(--ink-2); padding-bottom: 10px;
  border-bottom: 1px solid var(--line-2); margin-bottom: 10px; font-size: 12px;
}
.mock__row {
  display: flex; justify-content: space-between; padding: 6px 0;
  border-bottom: 1px solid var(--line-2); font-size: 13px;
}
.mock__row:last-child { border-bottom: none; }
.mock__row b { font-weight: 700; letter-spacing: -0.01em; }
.mock__row b.bad { color: var(--bad); }
.mock__row b.good { color: var(--good); }

.mock--products .mock__bar {
  display: grid; grid-template-columns: 28px 1fr 40px;
  align-items: center; gap: 8px; padding: 5px 0;
  font-size: 12.5px;
}
.mock__bar i {
  display: block; height: 8px; background: var(--accent); border-radius: 4px;
  min-width: 4px;
}
.mock__bar b { text-align: right; font-weight: 600; color: var(--ink-2); }

.mock--supply .mock__hub {
  display: flex; justify-content: space-between; padding: 5px 0;
  border-bottom: 1px solid var(--line-2); font-size: 12.5px;
}
.mock--supply .mock__hub:last-child { border-bottom: none; }
.mock--supply .mock__hub b { font-weight: 700; }

/* ── How ── */
.how__list {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.how__list li {
  background: var(--bg-card); padding: 24px; border-radius: var(--radius);
  border: 1px solid var(--line);
}
.how__num {
  display: inline-block; font-size: 11px; font-weight: 700;
  letter-spacing: 0.06em; color: var(--ink-3);
  background: var(--line-2); padding: 4px 10px; border-radius: 20px;
  margin-bottom: 16px;
}
.how__list h3 { font-size: 18px; font-weight: 700; margin: 0 0 8px; letter-spacing: -0.01em; }
.how__list p { margin: 0; color: var(--ink-2); font-size: 14.5px; }

/* ── Invite ── */
.invite { background: var(--bg-card); border-top: 1px solid var(--line); }
.invite__inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px;
  align-items: start;
}
.invite__facts { list-style: none; padding: 0; margin: 24px 0 0; }
.invite__facts li {
  padding: 8px 0; color: var(--ink-2); font-size: 15px;
}

.form { display: grid; gap: 16px; }
.form__row { display: grid; gap: 6px; }
.form__row span {
  font-size: 13px; font-weight: 500; color: var(--ink-2);
}
.form__row em { color: var(--bad); font-style: normal; }
.form__row input, .form__row textarea {
  width: 100%; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-family: inherit; font-size: 14.5px; color: var(--ink);
  background: var(--bg-card); transition: border-color .15s, box-shadow .15s;
}
.form__row input:focus, .form__row textarea:focus {
  outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(0,0,0,0.06);
}
.form__row textarea { resize: vertical; min-height: 80px; }
.form__submit { margin-top: 8px; justify-content: center; }
.form__submit:disabled { opacity: 0.6; cursor: not-allowed; }
.form__status {
  padding: 12px 14px; border-radius: var(--radius-sm); font-size: 14px;
}
.form__status.ok {
  background: color-mix(in srgb, var(--good) 12%, var(--bg-card));
  color: var(--good);
  border: 1px solid color-mix(in srgb, var(--good) 30%, var(--bg-card));
}
.form__status.err {
  background: color-mix(in srgb, var(--bad) 12%, var(--bg-card));
  color: var(--bad);
  border: 1px solid color-mix(in srgb, var(--bad) 30%, var(--bg-card));
}

/* ── Footer ── */
.foot {
  border-top: 1px solid var(--line); padding: 32px 0; background: var(--bg);
  font-size: 13px; color: var(--ink-3);
}
.foot__inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

/* ── Mobile ── */
@media (max-width: 760px) {
  .nav__links > a:not(.btn) { display: none; }
  .lang { display: none; }
  .hero { padding: 56px 0 40px; }
  .invite__inner { grid-template-columns: 1fr; gap: 40px; }
}
