/* Общий стиль стартовых страниц idos.fun и aidos.fun. ⚠ Файл ОДИНАКОВЫЙ в обоих сайтах
   (BrandLandings/idos.fun/public/brand.css = BrandLandings/aidos.fun/public/brand.css): правите один, копируете во второй.
   Визуальный язык сайта idosgames.com: токены тёмной темы, бренд #0d66fe / #4a8cff, соты вместо сетки,
   два свечения в шапке, бейдж моноширинным капсом, иконки в градиентных кругах. */
:root {
  --background: #09090b;
  --card: #18181c;
  --card-2: #1f1f24;
  --border: #27272a;
  --foreground: #fafafa;
  --muted: #a1a1aa;
  --muted-2: #71717a;
  --primary: #0d66fe;
  --primary-200: #4a8cff;
  --glow-2: #4a8cff;
  --honeycomb: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100'%3E%3Cpath d='M28 66L0 50L0 16L28 0L56 16L56 50L28 66L28 100' fill='none' stroke='%23000' stroke-width='1.5'/%3E%3C/svg%3E");
  --honeycomb-size: 42px 75px;
  --font-sans: 'Onest', 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', monospace;
  color-scheme: dark;
}
.theme-ai {
  --glow-2: #8b5cf6;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-decoration: none;
}
img,
svg {
  display: block;
}
.wrap {
  margin: 0 auto;
  padding: 0 16px;
  max-width: 1120px;
}

/* --- Шапка --- */
.top {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid color-mix(in oklch, var(--border) 70%, transparent);
  background: color-mix(in oklch, var(--background) 82%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.top .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.brand img {
  width: 32px;
  height: 32px;
}
.brand small {
  color: var(--primary-200);
  font-weight: 700;
  font-size: 1em;
}
.theme-ai .brand small {
  color: #a78bfa;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.lang {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 2px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
}
.lang a,
.lang span {
  border-radius: 999px;
  padding: 4px 10px;
  color: var(--muted);
}
.lang span {
  background: var(--card-2);
  color: var(--foreground);
}
.lang a:hover {
  color: var(--foreground);
}

/* --- Кнопки --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition:
    background 0.2s,
    border-color 0.2s,
    transform 0.2s,
    box-shadow 0.2s;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 12px 22px;
  font-weight: 600;
  font-size: 0.975rem;
  line-height: 1.2;
  white-space: nowrap;
}
.btn svg {
  width: 18px;
  height: 18px;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 12px 40px -16px color-mix(in oklch, var(--primary) 90%, transparent);
}
.btn-primary:hover {
  transform: translateY(-1px);
  background: #2a78ff;
}
.btn-ghost {
  border-color: var(--border);
  background: color-mix(in oklch, var(--card) 70%, transparent);
}
.btn-ghost:hover {
  border-color: color-mix(in oklch, var(--primary) 55%, transparent);
}
.btn-sm {
  padding: 8px 14px;
  font-size: 0.875rem;
}

/* --- Первый экран --- */
.hero {
  position: relative;
  isolation: isolate;
  margin-top: 24px;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: var(--card);
  padding: 44px 22px 40px;
  overflow: hidden;
}
.hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 70% at 12% 0%, color-mix(in oklch, var(--primary) 32%, transparent), transparent 70%),
    radial-gradient(ellipse 55% 65% at 95% 100%, color-mix(in oklch, var(--glow-2) 26%, transparent), transparent 70%);
  content: '';
}
.hero::after,
.band::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  -webkit-mask-image: var(--honeycomb), radial-gradient(ellipse 80% 80% at 30% 20%, #000, transparent);
  mask-image: var(--honeycomb), radial-gradient(ellipse 80% 80% at 30% 20%, #000, transparent);
  -webkit-mask-size:
    var(--honeycomb-size),
    100% 100%;
  mask-size:
    var(--honeycomb-size),
    100% 100%;
  -webkit-mask-repeat: repeat, no-repeat;
  mask-repeat: repeat, no-repeat;
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
  background-color: color-mix(in oklch, var(--foreground) 8%, transparent);
  content: '';
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid color-mix(in oklch, var(--primary) 45%, transparent);
  border-radius: 999px;
  background: color-mix(in oklch, var(--primary) 12%, transparent);
  padding: 4px 14px 4px 4px;
  color: var(--primary-200);
  font-weight: 500;
  font-size: 0.72rem;
  font-family: var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.pill i {
  display: inline-block;
  border-radius: 999px;
  background: var(--primary);
  padding: 3px 9px;
  color: #fff;
  font-style: normal;
  letter-spacing: 0.08em;
}
h1 {
  margin: 22px 0 0;
  max-width: 15em;
  font-weight: 800;
  font-size: clamp(2.3rem, 6.4vw, 4.4rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  text-wrap: balance;
  word-spacing: 0.05em;
}
.accent {
  animation: shimmer 6s linear infinite;
  background-image: linear-gradient(100deg, var(--primary-200) 0%, var(--primary) 35%, #cfe0ff 50%, var(--primary) 65%, var(--primary-200) 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.theme-ai .accent {
  background-image: linear-gradient(100deg, #a78bfa 0%, var(--primary-200) 35%, #e9e2ff 50%, var(--primary-200) 65%, #a78bfa 100%);
  background-size: 250% 100%;
}
@keyframes shimmer {
  from {
    background-position: 120% 0;
  }
  to {
    background-position: -120% 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .accent {
    animation: none;
  }
}
.lead {
  margin: 18px 0 0;
  max-width: 44rem;
  color: var(--muted);
  font-weight: 500;
  font-size: 1.125rem;
  line-height: 1.6;
  text-wrap: pretty;
}
.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  color: var(--muted-2);
  font-size: 0.875rem;
}
.note::before {
  display: inline-block;
  flex: none;
  box-shadow: 0 0 0 4px color-mix(in oklch, #22c55e 22%, transparent);
  border-radius: 999px;
  background: #22c55e;
  width: 8px;
  height: 8px;
  content: '';
}

/* --- Разделы --- */
section {
  margin-top: 72px;
}
.kicker {
  color: var(--primary-200);
  font-weight: 500;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
h2 {
  margin: 10px 0 0;
  max-width: 22em;
  font-weight: 800;
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 28px;
}
.card {
  position: relative;
  transition:
    border-color 0.2s,
    box-shadow 0.2s,
    transform 0.2s;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--card);
  padding: 22px;
}
a.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 50px -24px color-mix(in oklch, var(--primary) 70%, transparent);
  border-color: color-mix(in oklch, var(--primary) 55%, transparent);
}
.icon {
  display: grid;
  place-items: center;
  box-shadow: 0 10px 30px -12px color-mix(in oklch, var(--primary) 80%, transparent);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary-200), var(--primary) 55%, #0a4fd0);
  width: 46px;
  height: 46px;
  color: #fff;
}
.theme-ai .icon {
  background: linear-gradient(135deg, #a78bfa, var(--primary) 60%, #0a4fd0);
}
.icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.card h3 {
  margin: 16px 0 0;
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
}
.card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}
.card .more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  color: var(--primary-200);
  font-weight: 600;
  font-size: 0.9rem;
}
.card .more svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* --- Шаги: карточки с пунктиром до следующей --- */
.steps {
  display: grid;
  gap: 14px;
  margin-top: 28px;
  counter-reset: step;
}
.step {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--card);
  padding: 22px 22px 22px 76px;
}
.step::before {
  display: grid;
  position: absolute;
  top: 20px;
  left: 20px;
  place-items: center;
  border: 1px solid color-mix(in oklch, var(--primary) 55%, transparent);
  border-radius: 999px;
  background: color-mix(in oklch, var(--primary) 16%, transparent);
  width: 40px;
  height: 40px;
  color: var(--primary-200);
  font-weight: 700;
  font-family: var(--font-mono);
  counter-increment: step;
  content: counter(step);
}
.step:not(:last-child)::after {
  position: absolute;
  top: 64px;
  bottom: -15px;
  left: 39px;
  border-left: 2px dashed color-mix(in oklch, var(--primary) 45%, transparent);
  content: '';
}
.step h3 {
  margin: 0;
  font-weight: 700;
  font-size: 1.1rem;
}
.step p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* --- Нижний призыв --- */
.band {
  position: relative;
  isolation: isolate;
  border: 1px solid color-mix(in oklch, var(--primary) 40%, var(--border));
  border-radius: 28px;
  background:
    radial-gradient(ellipse 70% 120% at 0% 0%, color-mix(in oklch, var(--primary) 38%, transparent), transparent 70%),
    radial-gradient(ellipse 60% 100% at 100% 100%, color-mix(in oklch, var(--glow-2) 28%, transparent), transparent 70%),
    var(--card);
  padding: 36px 22px;
  overflow: hidden;
}
.band p {
  margin: 12px 0 0;
  max-width: 40rem;
  color: var(--muted);
  font-size: 1.05rem;
}

/* --- Подвал --- */
footer {
  margin-top: 72px;
  border-top: 1px solid var(--border);
  padding: 28px 0 40px;
  color: var(--muted-2);
  font-size: 0.875rem;
}
footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px 24px;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}
footer a:hover {
  color: var(--foreground);
}
.risk {
  margin-top: 14px;
  width: 100%;
  font-size: 0.8rem;
}

/* --- Страница 404 --- */
.lost {
  display: grid;
  place-items: center;
  padding: 18vh 16px;
  text-align: center;
}
.lost h1 {
  margin-inline: auto;
}

@media (width >= 640px) {
  .hero {
    padding: 64px 56px 56px;
  }
  .band {
    padding: 48px 56px;
  }
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .card {
    padding: 26px;
  }
}
@media (width >= 960px) {
  .grid {
    grid-template-columns: repeat(3, 1fr);
  }
  section {
    margin-top: 96px;
  }
}
@media (width < 480px) {
  .top-actions .btn {
    display: none;
  }
  .cta .btn {
    width: 100%;
  }
}
