/* ==========================================================================
   Stellereum — hero, metrics, features, performance,
                quickstart, ecosystem, roadmap, cta
   ========================================================================== */

/* --- hero ---------------------------------------------------------------- */
.hero {
  position: relative;
  padding-block: var(--sp-10) var(--sp-13);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -240px;
  left: -180px;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(63, 169, 255, .18), transparent 65%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--sp-9);
  align-items: center;
}

.hero-copy { min-width: 0; }

.hero h1 {
  margin-top: var(--sp-5);
  font-size: clamp(34px, 5.4vw, 64px);
  line-height: 1.05;
  letter-spacing: -.028em;
  color: var(--text-1);
}

.hero-sub {
  margin-top: var(--sp-6);
  max-width: 54ch;
  color: var(--text-2);
  font-size: clamp(15.5px, 1.5vw, 18px);
  line-height: 1.68;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-top: var(--sp-7);
}

.hero-chips { margin-top: var(--sp-8); }

.hero-visual {
  position: relative;
  width: 100%;
  max-width: 460px;
  margin-inline: auto;
  aspect-ratio: 1 / 1;
  transform: translate3d(0, var(--par, 0px), 0);
}

.hero-visual canvas {
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: -6%;
  border-radius: 50%;
  background: radial-gradient(circle, transparent 55%, var(--bg-0) 78%);
  pointer-events: none;
}

/* --- metrics ------------------------------------------------------------- */
.metrics { overflow: hidden; }

.metrics-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--sp-3);
}

.metric {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  min-width: 0;
  min-height: 132px;
  padding: var(--sp-5) var(--sp-6);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .015)), var(--bg-2);
  transition: border-color var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease);
}

.metric:hover {
  border-color: rgba(63, 169, 255, .35);
  box-shadow: var(--glow);
}

.metric-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  min-width: 0;
}

.metric-label {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-2);
  min-width: 0;
  overflow-wrap: anywhere;
}

.metric-value {
  display: block;
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -.03em;
  color: var(--text-1);
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.metric-value--mono {
  font-family: var(--font-mono);
  font-size: clamp(13px, 2.4vw, 15px);
  letter-spacing: 0;
  line-height: 1.5;
  color: var(--accent-3);
  font-weight: 500;
}

.metric-note {
  margin-top: auto;
  font-size: 12.5px;
  color: var(--text-2);
  overflow-wrap: anywhere;
}

.metric-action { flex: 0 0 auto; }

.metrics-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-3);
  width: fit-content;
  max-width: 100%;
  margin-top: var(--sp-6);
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  background: var(--surface);
  font-size: 14px;
  color: var(--text-2);
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent-3);
  box-shadow: 0 0 0 0 rgba(94, 240, 200, .55);
  animation: pulse 2.4s var(--ease) infinite;
  flex: 0 0 auto;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(94, 240, 200, .5); }
  70% { box-shadow: 0 0 0 12px rgba(94, 240, 200, 0); }
  100% { box-shadow: 0 0 0 0 rgba(94, 240, 200, 0); }
}

.metrics-status strong { color: var(--text-1); font-weight: 600; }

.metrics-status.is-offline .status-dot {
  background: var(--danger);
  animation: none;
  box-shadow: none;
}

.metrics-status .status-host {
  font-family: var(--font-mono);
  font-size: 13px;
  overflow-wrap: anywhere;
}

/* --- features ------------------------------------------------------------ */
.features-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--sp-4);
}

/* --- performance --------------------------------------------------------- */
.perf-band {
  border: 1px solid var(--border-strong);
  border-radius: var(--r-lg);
  background:
    radial-gradient(120% 130% at 50% -10%, rgba(63, 169, 255, .14), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .012)),
    var(--bg-2);
  box-shadow: var(--shadow-1);
  padding: var(--sp-8) var(--sp-6);
}

.perf-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-7) var(--sp-5);
}

.perf-item {
  min-width: 0;
  text-align: center;
}

.perf-value {
  display: block;
  font-size: clamp(30px, 5.6vw, 54px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -.035em;
  color: var(--accent);
  background-image: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.perf-label {
  display: block;
  margin-top: var(--sp-3);
  font-size: 14px;
  color: var(--text-2);
}

.perf-note {
  margin-top: var(--sp-8);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-2);
}

/* --- quickstart ---------------------------------------------------------- */
.quickstart-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--sp-9);
  align-items: start;
}

.steps {
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
  counter-reset: step;
}

.step {
  position: relative;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: var(--sp-4);
  align-items: start;
  counter-increment: step;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text-1);
  font-size: 15px;
  font-weight: 600;
}

.step-num::before {
  content: counter(step);
}

.step h3 {
  font-size: 18px;
  margin-bottom: 6px;
}

.step p {
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.step p .mono {
  color: var(--accent);
  font-size: 14px;
}

.quickstart-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-top: var(--sp-7);
}

.quickstart-side { min-width: 0; }

/* --- ecosystem ------------------------------------------------------------ */
.eco-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--sp-4);
}

.eco-card .card-icon {
  background: linear-gradient(160deg, rgba(139, 108, 255, .18), rgba(63, 169, 255, .1));
  color: var(--accent-2);
}

.eco-card:hover { box-shadow: var(--glow-violet); border-color: rgba(139, 108, 255, .4); }

.integrations {
  margin-top: var(--sp-9);
  padding-top: var(--sp-7);
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-3) var(--sp-4);
}

.integrations h3 {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-right: var(--sp-2);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  background: var(--surface);
  color: var(--text-1);
  font-size: 14.5px;
  font-weight: 500;
}

.tag .dot { background: var(--accent); }

/* --- roadmap -------------------------------------------------------------- */
.timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--sp-7);
  padding-left: 40px;
  max-width: 860px;
  margin-inline: auto;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--accent-3) 0%, var(--accent) 42%, rgba(255, 255, 255, .12) 78%, transparent 100%);
}

.timeline-item {
  position: relative;
  min-width: 0;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -40px;
  top: 4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--border-strong);
  background: var(--bg-1);
  box-sizing: border-box;
}

.timeline-item::after {
  content: "";
  position: absolute;
  left: -33px;
  top: 11px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--text-3);
}

.timeline-item--done::before { border-color: rgba(94, 240, 200, .6); background: rgba(94, 240, 200, .14); }
.timeline-item--done::after { background: var(--accent-3); box-shadow: 0 0 12px rgba(94, 240, 200, .8); }

.timeline-item--active::before { border-color: rgba(63, 169, 255, .7); background: rgba(63, 169, 255, .16); }
.timeline-item--active::after { background: var(--accent); box-shadow: 0 0 12px rgba(63, 169, 255, .9); animation: pulse 2.4s var(--ease) infinite; }

.timeline-body {
  padding: var(--sp-5) var(--sp-6);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
  transition: border-color var(--t-base) var(--ease), background var(--t-base) var(--ease);
}

.timeline-item:hover .timeline-body {
  border-color: var(--border-strong);
  background: var(--surface-2);
}

.timeline-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  margin-bottom: var(--sp-3);
}

.timeline-step {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-2);
}

.timeline-body h3 { font-size: 19px; }

.timeline-body p {
  margin-top: var(--sp-2);
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

/* --- cta ------------------------------------------------------------------ */
.cta-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-lg);
  background:
    radial-gradient(110% 150% at 50% -20%, rgba(63, 169, 255, .28), transparent 58%),
    radial-gradient(90% 120% at 85% 120%, rgba(139, 108, 255, .26), transparent 60%),
    var(--bg-2);
  padding: var(--sp-11) var(--sp-6);
  text-align: center;
  box-shadow: var(--shadow-1);
}

.cta-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .05) 0 1px, transparent 1px 88px);
  opacity: .35;
  pointer-events: none;
}

.cta-inner {
  position: relative;
  max-width: 720px;
  margin-inline: auto;
}

.cta-panel h2 {
  font-size: clamp(26px, 4.2vw, 44px);
  line-height: 1.1;
  margin-top: var(--sp-4);
}

.cta-panel p {
  margin-top: var(--sp-5);
  color: var(--text-2);
  font-size: clamp(15px, 1.5vw, 17px);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-3);
  margin-top: var(--sp-7);
}

/* --- hero mark (brand centerpiece) --------------------------------------- */
/* Ключевой знак проекта: медленное вращение + пульс свечения. Свойства
   разделены между двумя keyframes (transform / filter), поэтому анимации не
   перетирают друг друга. При prefers-reduced-motion отключается полностью. */
.hero-mark {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 46%;
  height: auto;
  aspect-ratio: 1 / 1;
  transform: translate(-50%, -50%);
  pointer-events: none;
  user-select: none;
  filter: drop-shadow(0 0 30px rgba(63, 169, 255, .34)) drop-shadow(0 0 80px rgba(139, 108, 255, .22));
  animation: hero-mark-spin 44s linear infinite, hero-mark-glow 6s ease-in-out infinite;
}

@keyframes hero-mark-spin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes hero-mark-glow {
  0%, 100% { filter: drop-shadow(0 0 22px rgba(63, 169, 255, .24)) drop-shadow(0 0 60px rgba(139, 108, 255, .14)); }
  50%      { filter: drop-shadow(0 0 48px rgba(63, 169, 255, .54)) drop-shadow(0 0 116px rgba(139, 108, 255, .32)); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-mark { animation: none; }
}
