/* Landing page — depends on global.css + Bootstrap grid */

.hero {
  min-height: calc(100vh - 4.5rem);
  padding: clamp(1rem, 3vw, 2rem) clamp(1rem, 4vw, 2.5rem) clamp(2.5rem, 6vw, 4rem);
  max-width: 72rem;
  margin-inline: auto;
}

.hero-row {
  min-height: calc(100vh - 6rem);
  --bs-gutter-x: clamp(1.5rem, 4vw, 3rem);
}

.hero-row > [class*="col-"] {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-stage {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: min(52vh, 480px);
  width: 100%;
  max-width: 28rem;
  margin-inline: auto;
  overflow: hidden;
}

.hero-side {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
  max-width: 26rem;
  margin-inline: auto;
  position: relative;
  z-index: 2;
}

.hero-orbits {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-logo {
  width: min(68%, 320px);
  height: auto;
  position: relative;
  z-index: 2;
  animation: float-in 1.1s var(--ease) both;
  background: transparent;
}

.orbit {
  position: absolute;
  border: 1px solid oklch(0.78 0.05 75 / 0.32);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
}

.orbit-1 {
  width: 78%;
  aspect-ratio: 1;
  animation: spin 28s linear infinite;
}

.orbit-2 {
  width: 94%;
  aspect-ratio: 1;
  border-style: dashed;
  border-color: oklch(0.78 0.05 75 / 0.26);
  animation: spin 48s linear infinite reverse;
}

.hero-copy {
  position: relative;
  z-index: 3;
  max-width: none;
}

.hero-copy h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: 0.01em;
  text-wrap: balance;
  animation: rise 0.9s var(--ease) 0.15s both;
}

.hero-copy .tagline {
  margin: 0.85rem 0 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-wrap: balance;
  animation: rise 0.9s var(--ease) 0.24s both;
}

.hero-copy .lede {
  margin: 0.55rem 0 0;
  color: var(--muted);
  font-size: clamp(0.95rem, 1.6vw, 1.1rem);
  letter-spacing: 0.02em;
  max-width: 38ch;
  text-wrap: pretty;
  animation: rise 0.9s var(--ease) 0.32s both;
}

/* Login uses shared .form-shell from global.css */
.login-panel {
  width: 100%;
  max-width: 100%;
  animation: rise 0.95s var(--ease) 0.28s both;
}

.login-panel .form-shell-head .h3 {
  font-size: 1.65rem;
}

.error {
  background: oklch(0.28 0.08 25);
  color: oklch(0.9 0.05 40);
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.75rem;
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

/* Story beats */
.story {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}

.beat {
  background: var(--bg);
  padding: clamp(1.75rem, 4vw, 2.75rem) clamp(1.25rem, 3vw, 2rem);
  animation: rise 0.9s var(--ease) both;
  animation-delay: calc(0.08s * var(--i) + 0.4s);
}

.beat-num {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--fur);
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}

.beat h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.beat p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 36ch;
  text-wrap: pretty;
}

.beat em {
  font-style: normal;
  color: var(--tan);
}

.download-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: clamp(2rem, 5vw, 3.25rem) clamp(1.25rem, 4vw, 3rem);
}

.download-band h2 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: -0.01em;
}

.download-band p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 600;
  background: var(--tan);
  color: var(--bg);
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  transition: transform 0.2s var(--ease), filter 0.2s var(--ease);
}

.download-btn:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.download-btn.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

@keyframes float-in {
  from {
    transform: translateY(18px) scale(0.96);
  }
  to {
    transform: translateY(0) scale(1);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 991.98px) {
  .hero,
  .hero-row {
    min-height: auto;
  }

  .hero-stage {
    min-height: 42vh;
  }

  .hero-logo {
    width: min(62vw, 280px);
  }

  .hero-copy h1 {
    font-size: clamp(2.2rem, 10vw, 3rem);
  }

  .story {
    grid-template-columns: 1fr;
  }
}
