@import url("https://fonts.googleapis.com/css2?family=Oxanium:wght@500;600;700;800&family=Sora:wght@400;500;600;700&display=swap");

/* Витрина AI: свой контур. Не report (Barlow + volt + тёмный hero → светлый лист). */
:root {
  --base: #07070c;
  --surface: #0e0e16;
  --rise: #161622;
  --ink: #f7f7fb;
  --mute: #9494a8;
  --line: #2c2c3d;
  --beam: #5b8cff;
  --flare: #ff2f9f;
  --flare-ink: #1a0010;
  --warn: #ffc14d;
  --max: 1040px;
  --max-wide: 1200px;
  --display: "Oxanium", "Segoe UI", sans-serif;
  --text: "Sora", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--base);
  color-scheme: dark;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--text);
  font-size: 16px;
  line-height: 1.55;
  background:
    radial-gradient(ellipse 55% 35% at 85% -5%, rgba(255, 47, 159, 0.18), transparent 55%),
    radial-gradient(ellipse 40% 30% at 5% 15%, rgba(91, 140, 255, 0.16), transparent 50%),
    var(--base);
  min-height: 100vh;
}

a { color: inherit; text-underline-offset: 3px; }

.wrap {
  width: min(var(--max), calc(100% - clamp(20px, 4vw, 40px)));
  margin: 0 auto;
}

.wrap-wide {
  width: min(var(--max-wide), calc(100% - clamp(20px, 3vw, 48px)));
}

/* —— top: тонкая планка, без «барного» sticky report —— */
header.top {
  position: relative;
  z-index: 30;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 7, 12, 0.88);
}

.top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 64px;
  padding: 12px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.1rem, 2.4vw, 1.45rem);
  letter-spacing: 0.02em;
  text-decoration: none;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1.1;
}

.brand span { color: var(--flare); }

.brand-mark {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  position: relative;
  background: var(--rise);
  border: 1px solid var(--line);
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  inset: 5px;
}

.brand-mark::before {
  border: 2px solid var(--beam);
  border-radius: 50%;
  clip-path: inset(0 0 50% 0);
}

.brand-mark::after {
  width: 6px;
  height: 6px;
  margin: auto;
  inset: 0;
  background: var(--flare);
  box-shadow: 0 0 10px var(--flare);
}

nav {
  display: flex;
  gap: 6px 18px;
  flex-wrap: wrap;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

nav a {
  color: var(--mute);
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

nav a:hover,
nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--flare);
}

/* —— status strip (вместо левого now-box) —— */
.status-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 28px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--mute);
}

.status-strip .live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--flare);
}

.status-strip .live::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--flare);
  animation: blink 1.2s steps(2) infinite;
}

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

.status-strip b { color: var(--ink); font-weight: 600; }

/* —— hero: диагональный срез, не grid-report —— */
.hero {
  position: relative;
  padding: 56px 0 48px;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  right: -8%;
  top: 10%;
  width: min(42vw, 420px);
  height: min(42vw, 420px);
  border: 1px solid rgba(91, 140, 255, 0.35);
  border-radius: 50%;
  pointer-events: none;
  animation: orbit 22s linear infinite;
}

.hero::before {
  content: "";
  position: absolute;
  right: 4%;
  top: 22%;
  width: min(28vw, 280px);
  height: min(28vw, 280px);
  border: 1px dashed rgba(255, 47, 159, 0.4);
  border-radius: 50%;
  pointer-events: none;
  animation: orbit 16s linear infinite reverse;
}

@keyframes orbit {
  to { transform: rotate(360deg); }
}

.hero .wrap { position: relative; z-index: 1; }

.kicker {
  margin: 0 0 16px;
  font-family: var(--display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--beam);
}

.hero h1 {
  margin: 0 0 16px;
  max-width: 16ch;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.6rem, 8vw, 4.8rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  background: linear-gradient(105deg, #fff 0%, #fff 45%, var(--beam) 70%, var(--flare) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: rise-in 0.5s ease both;
}

.lead {
  margin: 0 0 28px;
  max-width: 36rem;
  color: var(--mute);
  font-size: 1.02rem;
  animation: rise-in 0.5s ease 0.06s both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  animation: rise-in 0.5s ease 0.12s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  font-family: var(--display);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.12s ease, background 0.12s ease, box-shadow 0.12s ease;
}

.btn-primary {
  background: var(--flare);
  color: var(--flare-ink);
  box-shadow: 8px 8px 0 var(--beam);
}

.btn-primary:hover {
  transform: translate(-2px, -2px);
  box-shadow: 10px 10px 0 var(--beam);
}

.btn-ghost {
  border-color: var(--line);
  color: var(--ink);
  background: transparent;
}

.btn-ghost:hover {
  border-color: var(--beam);
  color: var(--beam);
}

@keyframes rise-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

/* —— слоты продуктов (свой блок, не meta-строка report) —— */
.slots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 0 0 8px;
  background: var(--line);
  border: 1px solid var(--line);
}

.slot {
  background: var(--surface);
  padding: 18px 20px;
  min-height: 110px;
}

.slot-tag {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--beam);
}

.slot:nth-child(2) .slot-tag { color: var(--flare); }
.slot:nth-child(3) .slot-tag { color: var(--warn); }

.slot h2 {
  margin: 0 0 6px;
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.slot p {
  margin: 0;
  color: var(--mute);
  font-size: 0.88rem;
}

.slot.is-pilot {
  background: linear-gradient(160deg, rgba(255, 47, 159, 0.12), var(--surface) 55%);
  outline: 1px solid var(--flare);
  outline-offset: -1px;
  position: relative;
  z-index: 1;
}

/* —— контент: одна колонка —— */
.sheet {
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding: clamp(36px, 5vw, 56px) 0 72px;
}

.home-main h2 {
  margin: 0 0 12px;
  font-family: var(--display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.about-text,
.section-lead {
  margin: 0 0 14px;
  color: var(--mute);
  max-width: 44rem;
}

.plan-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
  margin: 48px 0 10px;
}

.plan-head .status {
  margin: 0;
  font-family: var(--display);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--flare);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* горизонтальная цепь шагов — не вертикальный timeline report */
.steps {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

.steps li {
  position: relative;
  padding: 16px 16px 16px 18px;
  background: var(--rise);
  border: 1px solid var(--line);
  border-top: 3px solid var(--line);
  min-height: 120px;
}

.steps li.done { border-top-color: var(--beam); }
.steps li.now {
  border-top-color: var(--flare);
  box-shadow: 0 0 0 1px rgba(255, 47, 159, 0.35);
}

.steps strong {
  display: block;
  font-family: var(--display);
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.steps p {
  margin: 0;
  color: var(--mute);
  font-size: 0.86rem;
}

.site-foot {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--mute);
  font-size: 0.85rem;
}

.site-foot p { margin: 0 0 8px; }
.site-foot code { color: var(--beam); font-family: var(--display); }

.repo-link {
  display: inline-flex;
  text-decoration: none;
  color: var(--flare);
  font-weight: 600;
}

.repo-link:hover { color: var(--beam); }

@media (max-width: 760px) {
  .slots { grid-template-columns: 1fr; }
  .hero::before,
  .hero::after { opacity: 0.35; }
}
