/* pages/home.css: hero and live feed */
/* Hero */
.hero {
  background: var(--ink); color: var(--white);
  padding: 88px 0 0; position: relative; overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(to bottom, #000 30%, transparent 95%);
  -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent 95%);
  pointer-events: none;
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 64px; align-items: center; }
.hero-kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 14.5px; color: rgba(255,255,255,.78);
  padding: 6px 14px 6px 8px; border-radius: 999px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  margin-bottom: 28px;
}
.hero-kicker .swatches { display: inline-flex; }
.hero-kicker .swatches i { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--ink); margin-right: -4px; }
.hero-kicker .swatches i:last-child { margin-right: 4px; }
.hero h1 {
  font-size: clamp(44px, 6.2vw, 84px);
  font-weight: 700; letter-spacing: -0.035em; line-height: 0.98;
  max-width: 12ch;
}
.hero .lead { margin-top: 26px; font-size: 19px; color: rgba(255,255,255,.74); max-width: 33em; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 36px; }
.hero-note { margin-top: 18px; font-size: 14.5px; color: rgba(255,255,255,.55); }

/* Live feed */
.feed {
  background: var(--ink-2);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.6);
}
.feed-head { display: flex; align-items: center; justify-content: space-between; padding: 4px 6px 18px; }
.feed-head strong { font: 600 17px/1.2 var(--font-display); }
.feed-head small { display: block; color: rgba(255,255,255,.55); font-size: 13.5px; margin-top: 3px; }
.live { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: #8ff0bb; font-weight: 600; }
.live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #3ee08a; box-shadow: 0 0 0 0 rgba(62,224,138,.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(62,224,138,0); } 100% { box-shadow: 0 0 0 0 rgba(62,224,138,0); } }

.feed-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.metric { background: var(--ink-3); border-radius: 14px; padding: 14px; }
.metric b { display: block; font: 700 26px/1 var(--font-display); letter-spacing: -0.02em; }
.metric span { display: block; font-size: 12.5px; color: rgba(255,255,255,.6); margin-top: 6px; line-height: 1.3; }
.metric .bar { height: 3px; border-radius: 3px; margin-top: 12px; }

.feed-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; height: 304px; overflow: hidden; position: relative; }
.feed-list::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 70px; background: linear-gradient(to bottom, transparent, var(--ink-2)); pointer-events: none; }
.event {
  display: grid; grid-template-columns: 36px 1fr auto; gap: 12px; align-items: center;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.07);
  border-radius: 14px; padding: 12px 14px;
}
.event.is-new { animation: slideIn .55s cubic-bezier(.2,.8,.2,1); }
@keyframes slideIn { from { opacity: 0; transform: translateY(-16px) scale(.98); } to { opacity: 1; transform: none; } }
.event-icon { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--white); box-shadow: inset 0 -3px 0 var(--c); }
.event-icon img { width: 20px; height: 20px; }
.event p { font-size: 14.5px; line-height: 1.35; color: var(--white); }
.event p small { display: block; color: rgba(255,255,255,.55); font-size: 12.5px; }
.event time { font-size: 12px; color: rgba(255,255,255,.45); white-space: nowrap; }

@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .hero h1 { max-width: 14ch; }
}
@media (max-width: 640px) {
  .hero { padding-top: 56px; }
  .feed { padding: 14px; border-radius: 22px; }
  .metric { padding: 10px; }
  .metric b { font-size: 21px; }
  .event { grid-template-columns: 32px 1fr; }
  .event time { display: none; }
}
