:root {
  --bg: #111113;
  --bg-soft: #18181b;
  --text: #f5f5f4;
  --muted: #a8a29e;
  --dim: #78716c;
  --glass: rgba(255, 255, 255, 0.06);
  --glass-strong: rgba(255, 255, 255, 0.09);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-border-soft: rgba(255, 255, 255, 0.08);
  --crimson: #C83E3B;
  --crimson-soft: rgba(200, 62, 59, 0.35);
  --sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.5;
  overflow-x: hidden;
}

.bg-glow {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(90px);
  z-index: 0;
}
.bg-glow-a {
  width: 42rem;
  height: 42rem;
  top: -12rem;
  left: -8rem;
  background: radial-gradient(circle, rgba(200, 62, 59, 0.22) 0%, rgba(200, 62, 59, 0) 70%);
}
.bg-glow-b {
  width: 34rem;
  height: 34rem;
  top: 28rem;
  right: -10rem;
  background: radial-gradient(circle, rgba(200, 62, 59, 0.14) 0%, rgba(120, 113, 108, 0.08) 35%, rgba(0,0,0,0) 72%);
}

main {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 72px 24px 80px;
}

a { color: #e7e5e4; text-decoration: none; }
a:hover { color: #fff; }

/* Hero */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 32px 0 56px;
}
.heart-wrap {
  position: relative;
  width: 128px;
  height: 128px;
  display: grid;
  place-items: center;
  margin-bottom: 28px;
}
.hero-heart {
  width: 104px;
  height: 104px;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 0 28px rgba(200, 62, 59, 0.45));
  animation: heartPulse 2.5s ease-in-out infinite;
  transform-origin: center;
}
.heart-halo {
  position: absolute;
  inset: 14px;
  border-radius: 50%;
  background: rgba(200, 62, 59, 0.24);
  animation: haloPulse 2.5s ease-out infinite;
}
.heart-halo-delay { animation-delay: 1.25s; }

@keyframes heartPulse {
  0%, 100% { transform: scale(1); }
  14% { transform: scale(1.08); }
  28% { transform: scale(0.98); }
  42% { transform: scale(1.05); }
  70% { transform: scale(1); }
}
@keyframes haloPulse {
  0% { transform: scale(0.72); opacity: 0.6; }
  70% { transform: scale(1.8); opacity: 0; }
  100% { transform: scale(1.8); opacity: 0; }
}

h1 {
  margin: 0;
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.04em;
}
.intro {
  margin: 18px 0 0;
  font-size: 1.05rem;
  color: var(--muted);
  letter-spacing: 0.01em;
}
.ecg-divider {
  margin-top: 28px;
  width: min(420px, 80vw);
  display: flex;
  align-items: center;
}
.ecg-line {
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.14);
}
.ecg-spike {
  width: 24px;
  height: 24px;
  margin: 0 10px;
  filter: drop-shadow(0 0 8px rgba(200, 62, 59, 0.45));
}

/* Sections */
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}
.section-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}
h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 550;
  letter-spacing: -0.01em;
  color: #e7e5e4;
}
.count-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-family: var(--mono);
  font-size: 11px;
  color: #d6d3d1;
}
.muted-count { color: var(--muted); }

/* Carousel controls */
.carousel-controls { display: flex; gap: 8px; }
.carousel-btn {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: #d6d3d1;
  font: inherit;
  font-size: 1rem;
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.carousel-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.24);
  color: #fff;
}
.carousel-btn:focus-visible, .btn-crimson:focus-visible {
  outline: 2px solid var(--crimson-soft);
  outline-offset: 3px;
}

/* Swiper / Framer feel */
.makers { padding: 8px 0 24px; }
.maker-swiper { overflow: visible; padding: 12px 0 20px; }
.maker-swiper .swiper-wrapper { align-items: stretch; }
.maker-swiper .swiper-slide {
  height: auto;
  transition: transform 0.85s cubic-bezier(0.22, 1, 0.36, 1), filter 0.85s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1);
  filter: blur(4px);
  opacity: 0.42;
  transform: scale(0.92);
}
.maker-swiper .swiper-slide-active {
  filter: blur(0);
  opacity: 1;
  transform: scale(1);
}
.maker-swiper .swiper-slide-prev,
.maker-swiper .swiper-slide-next {
  filter: blur(2px);
  opacity: 0.6;
  transform: scale(0.96);
}

.maker-pagination {
  position: static;
  margin-top: 4px;
  display: flex;
  justify-content: center;
  gap: 8px;
}
.maker-pagination .swiper-pagination-bullet {
  width: 6px; height: 6px;
  background: rgba(255, 255, 255, 0.28);
  opacity: 1;
  transition: all 0.25s ease;
}
.maker-pagination .swiper-pagination-bullet-active {
  width: 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
}

/* Glass cards */
.maker-card, .example-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: 20px;
  padding: 28px;
}
.maker-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255,255,255,0.08);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.maker-swiper .swiper-slide-active .maker-card:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255,255,255,0.1);
}

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}
.project-name {
  margin: 0;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  font-weight: 550;
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.project-name a { color: #fafaf9; }
.project-name a:hover { color: #fff; }

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  white-space: nowrap;
  flex: 0 0 auto;
}
.frozen-pill {
  color: #e7e5e4;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.pulse-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--crimson);
  box-shadow: 0 0 0 0 rgba(200, 62, 59, 0.55);
  animation: dotPulse 2.5s ease-out infinite;
}
@keyframes dotPulse {
  0% { box-shadow: 0 0 0 0 rgba(200, 62, 59, 0.55); }
  70% { box-shadow: 0 0 0 8px rgba(200, 62, 59, 0); }
  100% { box-shadow: 0 0 0 0 rgba(200, 62, 59, 0); }
}

.lines { margin: 0; display: grid; gap: 16px; }
.line {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 14px;
  align-items: start;
}
.line dt {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #a8a29e;
  padding-top: 2px;
}
.line dd {
  margin: 0;
  font-size: 0.98rem;
  color: #d6d3d1;
  line-height: 1.55;
}
.heartbeat {
  margin: 24px 0 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--mono);
  font-size: 12px;
  color: #a8a29e;
}

/* Examples */
.examples-area { padding: 56px 0 0; }
.examples-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}
.example-card {
  padding: 22px;
  background: rgba(255, 255, 255, 0.035);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}
.example-card .card-top { margin-bottom: 14px; gap: 12px; }
.example-card .project-name { font-size: 1.15rem; }
.example-pill {
  color: #a8a29e;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.example-what {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.55;
  color: #a8a29e;
}

/* Claim */
.claim-section {
  padding: 72px 0 0;
  max-width: 560px;
}
.claim-copy {
  margin: 18px 0 20px;
  color: var(--muted);
  font-size: 1rem;
}
.claim-copy code {
  font-family: var(--mono);
  font-size: 0.92em;
  color: #d6d3d1;
  background: rgba(255,255,255,0.06);
  padding: 0.12em 0.38em;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.08);
}
.btn-crimson {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--crimson);
  color: #fff;
  font-weight: 550;
  font-size: 0.94rem;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 10px 30px rgba(200, 62, 59, 0.28);
}
.btn-crimson:hover {
  background: #d74b48;
  color: #fff;
  transform: translateY(-1px);
}

footer {
  padding-top: 64px;
  color: #78716c;
  font-size: 0.92rem;
}
footer a { color: #a8a29e; }
footer a:hover { color: #e7e5e4; }

/* Responsive */
@media (max-width: 980px) {
  .examples-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  main { padding: 56px 20px 64px; }
  .hero { padding: 20px 0 40px; }
  .heart-wrap { width: 108px; height: 108px; }
  .hero-heart { width: 88px; height: 88px; }
  .section-head { align-items: flex-start; }
  .carousel-controls { display: none; }
  .maker-card, .example-card { padding: 22px; border-radius: 18px; }
  .card-top { flex-direction: column; align-items: flex-start; gap: 12px; margin-bottom: 20px; }
  .line { grid-template-columns: 48px 1fr; gap: 12px; }
  .examples-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .maker-swiper .swiper-slide,
  .maker-swiper .swiper-slide-active,
  .maker-swiper .swiper-slide-prev,
  .maker-swiper .swiper-slide-next {
    filter: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
