/* Evil6 – landing page */

/* ---------- Hero ---------- */

.hero { position: relative; padding: clamp(48px, 8vw, 96px) 0 clamp(40px, 6vw, 72px); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto; height: 900px; pointer-events: none; z-index: -1;
  background:
    radial-gradient(700px 380px at 12% 10%, rgba(255, 46, 77, 0.18), transparent 70%),
    radial-gradient(700px 420px at 88% 20%, rgba(143, 77, 255, 0.2), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero h1 { margin-bottom: 20px; }
.hero .lead { max-width: 580px; margin-bottom: 32px; }
.hero-actions { margin-bottom: 24px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; margin: 0; padding: 0; color: var(--text-muted); font-size: 0.92rem; }
.hero-facts li { display: inline-flex; align-items: center; gap: 8px; }
.hero-facts li::before { content: "✓"; color: var(--ok); font-weight: 700; }

.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(255, 46, 77, 0.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(255, 46, 77, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 46, 77, 0); } }

.hero-art { position: relative; display: grid; place-items: center; min-height: 420px; }
.hero-glow {
  position: absolute; width: 360px; height: 360px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 46, 77, 0.45), rgba(143, 77, 255, 0.25) 45%, transparent 70%);
  filter: blur(30px);
}
.hero-avatar {
  position: relative; width: min(300px, 70vw); height: auto; border-radius: 44px;
  border: 1px solid var(--border-strong);
  box-shadow: 0 40px 80px -30px rgba(255, 46, 77, 0.55), 0 0 0 8px rgba(255, 255, 255, 0.03);
}
.float-card {
  position: absolute; display: flex; align-items: center; gap: 12px;
  padding: 12px 16px 12px 12px; border-radius: 14px;
  background: rgba(22, 17, 39, 0.88); border: 1px solid var(--border-strong);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-lg);
  font-size: 0.86rem; line-height: 1.35; white-space: nowrap;
  animation: float 6s ease-in-out infinite;
}
.float-card b { color: #fff; }
.float-card small { color: var(--text-dim); font-size: 0.78rem; }
.fc-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; font-size: 1.05rem; }
.fc-crit { background: var(--crit-soft); }
.fc-warn { background: var(--warn-soft); }
.fc-ok { background: var(--ok-soft); }
.fc-1 { top: 8%; left: -6%; }
.fc-2 { bottom: 14%; right: -8%; animation-delay: -2s; }
.fc-3 { bottom: -2%; left: 4%; animation-delay: -4s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 1px;
  margin: clamp(48px, 7vw, 80px) 0 0;
  background: var(--border); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden;
}
.stats div { background: var(--bg-elev); padding: 22px 24px; }
.stats dt { color: var(--text-dim); font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; }
.stats dd { margin: 4px 0 0; font: 700 clamp(1.6rem, 3vw, 2.1rem)/1.1 var(--font-display); color: #fff; font-variant-numeric: tabular-nums; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { min-height: 360px; order: -1; }
  .fc-1 { left: 0; }
  .fc-2 { right: 0; }
}
@media (max-width: 480px) {
  .hero-art { min-height: 300px; }
  .float-card { font-size: 0.78rem; padding: 8px 12px 8px 8px; }
  .fc-icon { width: 28px; height: 28px; }
  .fc-3 { display: none; }
  .stats div { padding: 16px; }
}

/* ---------- Split sections ---------- */

.split { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.split-reverse .split-copy { order: 2; }
.split-copy .lead { margin-bottom: 24px; }
.split-copy .row { margin-top: 20px; }
@media (max-width: 960px) {
  .split { grid-template-columns: 1fr; }
  .split-reverse .split-copy { order: 0; }
}

.steps { list-style: none; counter-reset: step; margin: 0 0 20px; padding: 0; display: grid; gap: 10px; }
.steps li {
  counter-increment: step; position: relative; display: grid; gap: 2px;
  padding: 14px 16px 14px 58px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
  transition: border-color 0.3s, background 0.3s;
}
.steps li::before {
  content: counter(step); position: absolute; left: 16px; top: 14px;
  display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: var(--surface-3); color: var(--text-muted); font-weight: 700; font-size: 0.85rem;
  transition: background 0.3s, color 0.3s;
}
.steps li b { color: #fff; }
.steps li span { color: var(--text-muted); font-size: 0.93rem; }
.steps li.is-active { border-color: var(--accent-line); background: var(--surface-2); }
.steps li.is-active::before { background: var(--accent); color: #fff; }

/* ---------- Gulag demo ---------- */

.gulag-demo { margin: 0; }
.gulag-demo .dc { grid-template-columns: 190px 1fr; min-height: 430px; }
.dc-unread {
  margin-left: auto; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: #f23f43; color: #fff; font-size: 0.7rem; font-weight: 700; display: grid; place-items: center;
}
.g-spam-avatar { background: #3ba55c; }
.g-spam .dc-body { position: relative; }
.gulag-caption { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 14px; color: var(--text-muted); font-size: 0.92rem; min-height: 36px; }
.gulag-caption b { color: var(--ok); font-size: 1.05rem; }

/* Animation states (only once home.js has taken over) */
.gulag-demo.is-animated .dc-msg { transition: opacity 0.45s, transform 0.45s, background 0.45s; }
.gulag-demo.is-animated[data-step="0"] .dc-unread,
.gulag-demo.is-animated[data-step="0"] [data-g],
.gulag-demo.is-animated[data-step="1"] [data-g="ban"],
.gulag-demo.is-animated[data-step="2"] [data-g="ban"] { opacity: 0; transform: translateY(8px); }
.gulag-demo.is-animated .dc-unread { transition: opacity 0.3s; }
.gulag-demo.is-animated[data-step="2"] [data-g="spam"] { background: rgba(242, 63, 67, 0.12); box-shadow: inset 2px 0 0 #f23f43; border-radius: 4px; }
.gulag-demo.is-animated[data-step="2"] [data-gulag-channel] { animation: gulag-flash 0.6s 2; }
.gulag-demo.is-animated[data-step="3"] [data-g="spam"] .dc-text { text-decoration: line-through; opacity: 0.45; }
.gulag-demo.is-animated[data-step="3"] .dc-unread { opacity: 0; }
@keyframes gulag-flash { 50% { background: rgba(242, 63, 67, 0.35); color: #fff; } }

/* Without JS everything is visible, the spam message shown as removed */
.gulag-demo:not(.is-animated) [data-g="spam"] .dc-text { text-decoration: line-through; opacity: 0.45; }

@media (max-width: 640px) {
  .gulag-demo .dc { grid-template-columns: 1fr; min-height: 0; }
}

/* ---------- Features ---------- */

.feature-grid .card { padding: 22px; }
.feature-grid h3 { font-size: 1.08rem; }
.feature-grid p { font-size: 0.92rem; margin: 0; }
.also-list {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
  list-style: none; margin: 28px 0 32px; padding: 0;
}
.also-list li {
  padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border);
  color: var(--text-muted); font-size: 0.9rem;
}

/* ---------- Logging ---------- */

.log-cats { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0 0 22px; padding: 0; }
.log-cats li { padding: 7px 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border); font-size: 0.9rem; font-weight: 500; }
.dc-single { grid-template-columns: 1fr; }
.log-demo .dc-embed + .dc-embed { margin-top: 10px; }

/* ---------- Why ---------- */

.why-grid .card { padding: 28px; }

.gulag-demo .dc-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gulag-demo .dc-field:last-child { grid-column: 1 / -1; }
@media (min-width: 961px) { #gulag .split { grid-template-columns: 0.9fr 1.1fr; } }

@media (max-width: 640px) {
  .feature-grid { gap: 12px; }
  .feature-grid .card { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 2px 14px; padding: 18px; }
  .feature-grid .card-icon { grid-row: span 2; margin: 0; }
  .feature-grid h3 { margin: 0; align-self: end; }
}
