

.home-page { font-family: var(--font-mono); color: var(--ink); }

.home-wrap {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  position: relative;
}

.home-main { flex: 1; }

/* ---- grid + aurora backdrop (scoped to the hero section) ---- */

.hero-wrap {
  position: relative;
  overflow: hidden;
}

.hero-wrap > .shell-marketing { position: relative; z-index: 1; }

.home-backdrop {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.home-ambient {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(23, 23, 26, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(23, 23, 26, 0.045) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, black 0%, rgba(0, 0, 0, 0.4) 50%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, black 0%, rgba(0, 0, 0, 0.4) 50%, transparent 85%);
}

.home-aurora {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 45% at 20% 30%, rgba(106, 156, 214, 0.14), transparent 70%),
    radial-gradient(ellipse 50% 40% at 80% 70%, rgba(170, 140, 210, 0.10), transparent 70%),
    radial-gradient(ellipse 45% 45% at 60% 20%, rgba(120, 180, 200, 0.09), transparent 72%);
}

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

.hero {
  padding: 7.5rem 0 4rem;
}

.hero-title {
  font-family: var(--font-sans);
  font-weight: var(--font-semibold);
  font-size: clamp(2rem, 6vw, 5rem);
  letter-spacing: -0.04em;
  line-height: 1.02;
  margin: 0 0 1.25rem;
  max-width: 18ch;
}

.hero-sub {
  font-family: var(--font-sans);
  font-size: 1.25rem;
  color: var(--ink);
  line-height: 1.35;
  margin: 0 0 1.375rem;
  font-weight: var(--font-semibold);
  letter-spacing: -0.015em;
}

.hero-sub .accent-phrase {
  color: var(--accent);
  font-weight: var(--font-bold);
}

/* one-time sky shimmer through the accent phrase on load — bright white
   highlight at the peak for a more pronounced sweep than sky→sky-deep */
.home-shimmer {
  display: inline-block;
  background: linear-gradient(
    90deg,
    var(--sky) 0%,
    var(--sky) 40%,
    #bfd7ef 50%,
    var(--sky) 60%,
    var(--sky) 100%
  );
  background-size: 260% 100%;
  background-position: 100% 50%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: home-shimmer 700ms ease-in-out 0ms forwards;
}

@keyframes home-shimmer {
  from { background-position: 100% 50%; }
  to   { background-position:   0% 50%; }
}

.hero-sub-two {
  color: var(--ink-soft);
  font-size: 0.875rem;
  line-height: 1.6;
  margin: 0 0 2rem;
  max-width: 34rem;
}

.cta-row {
  display: flex;
  gap: 0.625rem;
  flex-wrap: wrap;
}

.cta-row .duration {
  color: var(--ink-dim);
  font-weight: var(--font-regular);
  margin-left: 0.25rem;
}

/* ---- feed ---- */

.feed-wrap {
  border-top: 1px solid var(--rule);
  width: 100%;
}

.feed-section {
  padding: 3rem 0 5rem;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1rem;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.65625rem;
  text-transform: uppercase;
  letter-spacing: var(--tracking-widest);
  color: var(--ink-dim);
  font-weight: var(--font-medium);
}

/* ---- mobile ---- */

@media (max-width: 700px) {
  .hero { padding: 2rem 0 2.5rem; }

  /* Let the viewport drive wrapping on phones — the 18ch cap is desktop
     territory and forces awkward breaks ("The devkit / for building / web apps")
     at the clamp-floor font size. Dropping it gives us the intended
     two-line wrap: "The devkit for / building web apps." */
  .hero-title { max-width: none; }

  /* Tighten the ratio between h1 (32px) and the subtitle. 20px sub was
     too close to the heading — drop to 18px. */
  .hero-sub { font-size: 1.125rem; }

  .hero-sub-two { margin-bottom: 1.5rem; }

  .cta-row {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }

  .cta-row .btn { width: 100%; }
}

/* ---- reduced motion ---- */

@media (prefers-reduced-motion: reduce) {
  .home-shimmer {
    animation: none !important;
  }
  .home-shimmer {
    background: var(--sky);
    -webkit-background-clip: initial;
    background-clip: initial;
    color: var(--sky);
    -webkit-text-fill-color: currentColor;
  }
}
