/* ==========================================================================
   Vegalabs — home page ("the lab")
   ========================================================================== */

body.page-home {
  background:
    radial-gradient(60% 50% at 15% 0%, rgba(139, 123, 255, 0.16), transparent 60%),
    radial-gradient(50% 40% at 90% 10%, rgba(76, 224, 210, 0.12), transparent 60%),
    var(--bg);
}

#lab-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.page-home main {
  position: relative;
  z-index: 2;
}

/* ---------- hero ---------- */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 140px 0 90px;
}

.hero-inner {
  max-width: 760px;
}

.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  background: linear-gradient(135deg, #ffffff 20%, var(--accent-cyan) 65%, var(--accent-violet) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lede {
  font-size: 1.15rem;
  color: var(--text-dim);
  max-width: 560px;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.hero-stats {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

.hero-stats div {
  min-width: 120px;
}

.hero-stats strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--text);
}

.hero-stats span {
  font-size: 0.84rem;
  color: var(--text-faint);
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 36px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-faint);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: floaty 2.4s ease-in-out infinite;
}

.scroll-cue .line {
  width: 1px;
  height: 30px;
  background: linear-gradient(var(--accent-cyan), transparent);
}

@keyframes floaty {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}

/* ---------- section shell ---------- */

.section {
  padding: 100px 0;
  position: relative;
}

.section-head {
  max-width: 620px;
  margin-bottom: 56px;
}

.section-head h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
}

.section-head p {
  color: var(--text-dim);
  font-size: 1.05rem;
}

/* ---------- product grid ---------- */

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 26px;
}

.product-card {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--surface-border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  padding: 32px;
  overflow: hidden;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
  display: flex;
  flex-direction: column;
  min-height: 320px;
}

.product-card.is-live {
  cursor: pointer;
}

.product-card.is-live:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 24px 50px -20px rgba(76, 224, 210, 0.25);
}

.product-card-glow {
  position: absolute;
  top: -60px;
  right: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.5;
  pointer-events: none;
}

.product-card .tag {
  display: inline-flex;
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.tag-live {
  background: rgba(157, 255, 107, 0.14);
  color: var(--accent-lime);
  border: 1px solid rgba(157, 255, 107, 0.3);
}

.tag-soon {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-faint);
  border: 1px solid var(--surface-border);
}

.product-card-icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  background: rgba(200, 16, 46, 0.12);
  border: 1px solid rgba(200, 16, 46, 0.35);
}

.product-card h3 {
  font-size: 1.35rem;
  margin-bottom: 10px;
}

.product-card p {
  color: var(--text-dim);
  font-size: 0.96rem;
  flex-grow: 1;
}

.product-card .card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-cyan);
  margin-top: 18px;
}

.product-card .card-link svg {
  width: 16px;
  height: 16px;
  transition: transform 0.25s ease;
}

.product-card.is-live:hover .card-link svg {
  transform: translateX(4px);
}

.product-card.is-soon {
  opacity: 0.7;
}

/* ---------- about / method ---------- */

.method-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}

.method-item {
  padding: 26px;
  border-radius: var(--radius-md);
  border: 1px solid var(--surface-border);
  background: var(--surface);
}

.method-item .num {
  font-family: var(--font-display);
  color: var(--accent-cyan);
  font-size: 0.85rem;
  margin-bottom: 12px;
  opacity: 0.8;
}

.method-item h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.method-item p {
  color: var(--text-dim);
  font-size: 0.92rem;
  margin: 0;
}

/* ---------- cta ---------- */

.cta-panel {
  border-radius: 28px;
  border: 1px solid var(--surface-border);
  background: linear-gradient(135deg, rgba(139, 123, 255, 0.14), rgba(76, 224, 210, 0.08));
  padding: 64px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-panel h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
  max-width: 640px;
  margin: 0 auto 14px;
}

.cta-panel p {
  color: var(--text-dim);
  max-width: 520px;
  margin: 0 auto 30px;
}

@media (max-width: 640px) {
  .cta-panel {
    padding: 44px 24px;
  }
}
