/* ============================================
   HOME PAGE — Specific Styles
   ============================================ */

/* ──────────────────────────────────────────
   HERO
   ────────────────────────────────────────── */
.home-hero {
  position: relative; z-index: 1;
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 110px 0 72px;
}

.home-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

/* Left column */
.home-hero-left { display: flex; flex-direction: column; gap: 0; }

.home-hero-title {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--text-1);
  margin: 20px 0 18px;
}

.home-hero-sub {
  font-size: 1rem;
  color: var(--text-2);
  line-height: 1.75;
  max-width: 460px;
  margin-bottom: 28px;
}

.home-hero-actions {
  display: flex; gap: 12px; flex-wrap: wrap;
  margin-bottom: 28px;
}

/* Social links row */
.home-hero-socials {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 36px;
}
.socials-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-3);
}
.hero-soc-link {
  width: 32px; height: 32px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border);
  background: var(--glass);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem;
  color: var(--text-3);
  transition: var(--ease);
}
.hero-soc-link:hover {
  border-color: var(--accent-border);
  color: var(--accent-light);
  background: var(--accent-soft);
  transform: translateY(-2px);
}

/* Stats row */
.home-hero-stats {
  display: flex; gap: 40px; flex-wrap: wrap;
}
.hs-item { display: flex; flex-direction: column; gap: 4px; }
.hs-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--text-1);
  line-height: 1;
}
.hs-lbl {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-3);
}

/* Right column: video */
.home-hero-right { position: relative; }

.video-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 24px 64px rgba(0,0,0,0.5), 0 0 0 1px rgba(207,12,248,0.08);
  background: #000;
  position: relative;
}

.video-frame::before {
  content: '';
  position: absolute; inset: -1px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(207,12,248,0.2), transparent 50%, rgba(207,12,248,0.05));
  pointer-events: none; z-index: 1;
}

.video-frame-inner {
  position: relative;
  padding-top: 56.25%; /* 16:9 */
}
.video-frame-inner iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  display: block;
}

/* ──────────────────────────────────────────
   FEATURES SLIDER
   ────────────────────────────────────────── */
.features-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 32px;
  gap: 20px;
}

.slider-arrows { display: flex; gap: 8px; flex-shrink: 0; }
.slider-arrow {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--glass);
  color: var(--text-2);
  font-size: 0.8rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: var(--ease);
}
.slider-arrow:hover {
  background: var(--accent-soft);
  border-color: var(--accent-border);
  color: var(--accent-light);
}
.slider-arrow:disabled { opacity: 0.3; cursor: default; }

.feat-slider-wrap {
  overflow: hidden;
  position: relative;
}

.feat-slider {
  display: flex;
  gap: 16px;
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
  will-change: transform;
}

.feat-slide {
  flex: 0 0 calc(25% - 12px);
  min-width: 0;
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: var(--ease);
}
.feat-slide:hover {
  border-color: var(--border-strong);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.feat-slide-bg {
  height: 140px;
  position: relative;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.feat-slide-img {
  font-size: 3.5rem;
  opacity: 0.35;
  position: absolute;
  right: 16px; bottom: 8px;
  transform: rotate(-5deg);
}
/* When a background image is used, show emoji as small overlay in corner */
.feat-slide-img--over {
  font-size: 1.6rem;
  opacity: 0.85;
  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(4px);
  border-radius: 8px;
  padding: 4px 7px;
  transform: rotate(0deg);
}

.feat-slide-tag {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent-light);
  position: absolute;
  top: 12px; left: 14px;
}

.feat-slide-icon {
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  margin: 16px 16px 0;
}

.feat-slide-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-1);
  margin: 10px 16px 6px;
}

.feat-slide-desc {
  font-size: 0.78rem;
  color: var(--text-2);
  line-height: 1.65;
  margin: 0 16px;
  flex: 1;
}

.feat-slide-line {
  height: 2px;
  margin: 16px 16px 0;
  border-radius: 2px;
  opacity: 0.6;
  margin-bottom: 16px;
}

/* Dots */
.slider-dots {
  display: flex; justify-content: flex-end;
  gap: 6px; margin-top: 16px;
}
.slider-dot {
  width: 20px; height: 4px;
  border-radius: 2px;
  background: var(--border-strong);
  cursor: pointer; transition: var(--ease);
  border: none;
}
.slider-dot.active {
  width: 32px;
  background: var(--accent);
}

/* ──────────────────────────────────────────
   STEPS / HOW TO JOIN
   ────────────────────────────────────────── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.step-card {
  position: relative;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-md);
  padding: 28px 22px 22px;
  background: var(--bg-surface);
  overflow: hidden;
  display: flex; flex-direction: column; gap: 0;
  transition: var(--ease);
}

/* Colored glow border on hover */
.step-card::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  background: linear-gradient(var(--bg-surface), var(--bg-surface)) padding-box,
              linear-gradient(135deg, var(--step-color), transparent 60%) border-box;
  opacity: 0;
  transition: var(--ease);
  pointer-events: none;
}
.step-card:hover::before { opacity: 1; }
.step-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.4), 0 0 30px color-mix(in srgb, var(--step-color) 15%, transparent);
}

/* Big background number */
.step-number {
  position: absolute;
  top: 12px; right: 16px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 4.5rem;
  font-weight: 800;
  color: var(--step-color);
  opacity: 0.07;
  line-height: 1;
  pointer-events: none;
  user-select: none;
  letter-spacing: -2px;
}

.step-icon-wrap {
  width: 48px; height: 48px;
  border-radius: var(--radius-sm);
  border: 1px solid;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  flex-shrink: 0;
}

.step-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 12px;
  width: fit-content;
}

.step-title {
  font-size: 0.97rem;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 8px;
  line-height: 1.3;
}

.step-desc {
  font-size: 0.78rem;
  color: var(--text-2);
  line-height: 1.65;
  flex: 1;
}

.step-line {
  height: 2px;
  border-radius: 2px;
  margin-top: 20px;
  opacity: 0.5;
}

/* Light mode adjustments */
[data-theme="light"] .step-card { background: var(--bg-surface); border-color: var(--border); }
[data-theme="light"] .feat-slide { background: var(--bg-surface); }

/* ──────────────────────────────────────────
   RESPONSIVE
   ────────────────────────────────────────── */
@media (max-width: 1024px) {
  .home-hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .home-hero-right { max-width: 560px; margin: 0 auto; width: 100%; }
  .home-hero-sub { max-width: 100%; }
  .feat-slide { flex: 0 0 calc(50% - 8px); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .home-hero { padding: 100px 0 56px; }
  .home-hero-title { font-size: 2.4rem; }
  .home-hero-actions { flex-direction: column; }
  .home-hero-actions .btn { width: 100%; justify-content: center; }
  .home-hero-stats { gap: 24px; }
  .feat-slide { flex: 0 0 calc(100% - 0px); }
  .steps-grid { grid-template-columns: 1fr; }
  .features-header { flex-direction: column; align-items: flex-start; gap: 16px; }
}
