/* ============================================================
   Index (marketing) landing — hero, canvas placeholder, bento
============================================================ */

/* Match global .header: solid white bar and same bottom border as rest of site */
.index-page .header.index-header {
  background-color: #fff;
  border-bottom: 2px solid var(--border);
}

.index-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: #fff;
}

.index-landing-content {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 20px 20px 36px;
  overflow-x: hidden;
  overflow-y: auto;
  box-sizing: border-box;
}

.index-landing {
  max-width: 1120px;
  width: 100%;
  color: #475569;
}

.index-landing__hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 28px 36px;
  align-items: stretch;
  min-height: min(52vh, 420px);
}

@media (max-width: 900px) {
  .index-landing__hero {
    grid-template-columns: 1fr;
    gap: 22px;
    min-height: 0;
  }
}

.index-landing__intro {
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: center;
  animation: index-hero-rise 0.7s ease both;
}

.index-landing__brand {
  margin: 0 0 12px;
  font-size: clamp(2rem, 4.2vw + 0.6rem, 3rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--accent);
  animation: index-hero-rise 0.75s ease 0.05s both;
}

.index-landing__title {
  margin: 0 0 14px;
  font-size: clamp(1.35rem, 2.2vw + 0.5rem, 1.85rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: #0f172a;
  animation: index-hero-rise 0.75s ease 0.12s both;
}

.index-landing__lede {
  margin: 0 0 12px;
  font-size: 16px;
  line-height: 1.65;
  color: #475569;
  max-width: 36rem;
  animation: index-hero-rise 0.75s ease 0.18s both;
}

.index-landing__public-line {
  margin: 0 0 22px;
  max-width: 36rem;
  font-size: 14px;
  line-height: 1.55;
  font-weight: 600;
  color: #1e40af;
  border-left: 3px solid rgba(37, 99, 235, 0.45);
  padding: 2px 0 2px 12px;
  animation: index-hero-rise 0.75s ease 0.2s both;
}

.index-landing__cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  margin-bottom: 0;
  animation: index-hero-rise 0.75s ease 0.24s both;
}

.index-landing__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 20px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.2s ease, background 0.18s ease, border-color 0.18s ease;
}

.index-landing__btn--primary {
  background: linear-gradient(165deg, #2563eb 0%, var(--accent) 100%);
  color: #fff;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.22) inset,
    0 10px 28px rgba(37, 99, 235, 0.28);
}

.index-landing__btn--primary:hover {
  transform: translateY(-1px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.25) inset,
    0 14px 36px rgba(37, 99, 235, 0.34);
}

.index-landing__btn--secondary {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(148, 163, 184, 0.45);
  color: #1e293b;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

.index-landing__btn--secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

.index-landing__btn--ghost {
  background: transparent;
  border-color: transparent;
  color: var(--accent);
  padding-left: 14px;
  padding-right: 14px;
}

.index-landing__btn--ghost:hover {
  background: rgba(42, 77, 143, 0.06);
}

@media (prefers-reduced-motion: reduce) {
  .index-landing__btn--primary:hover,
  .index-landing__btn--secondary:hover {
    transform: none;
  }

  .index-landing__intro,
  .index-landing__brand,
  .index-landing__title,
  .index-landing__lede,
  .index-landing__public-line,
  .index-landing__cta-row,
  .index-landing__canvas {
    animation: none;
  }
}

.index-landing__inline-link {
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
}

.index-landing__inline-link:hover {
  text-decoration: underline;
}

/* --- Hero canvas visual --- */

.index-landing__canvas {
  min-width: 0;
  min-height: 280px;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  overflow: hidden;
  background: #dce5f2;
  border: none;
  animation: index-canvas-fade 0.9s ease 0.2s both;
}

.index-landing__canvas-img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  object-position: center;
}

@media (max-width: 900px) {
  .index-landing__canvas,
  .index-landing__canvas-img {
    min-height: 200px;
  }
}

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

@keyframes index-canvas-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* --- Forums strip --- */

.index-landing__strip {
  margin-top: 40px;
  padding: 22px 24px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(241, 245, 249, 0.95));
  border: 1px solid rgba(148, 163, 184, 0.28);
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.06);
}

.index-landing__strip-heading {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
}

.index-landing__strip-text {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: #475569;
}

.index-landing__strip-text strong {
  color: #0f172a;
}

/* --- Capability bento --- */

.index-landing__bento {
  margin-top: 40px;
}

.index-landing__bento-heading {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
  text-align: left;
}

.index-landing__bento-lede {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.5;
  color: #64748b;
  max-width: 42rem;
}

.index-landing__bento-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

@media (max-width: 720px) {
  .index-landing__bento-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 400px) {
  .index-landing__bento-grid {
    grid-template-columns: 1fr;
  }
}

.index-landing__bento-card {
  --bento-accent: var(--accent);
  position: relative;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 14px;
  padding: 16px 16px 17px;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.96));
  text-align: left;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.88) inset,
    0 10px 28px rgba(15, 23, 42, 0.06);
  transition: transform 0.2s ease, box-shadow 0.22s ease, border-color 0.2s ease;
  overflow: hidden;
}

.index-landing__bento-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--bento-accent), color-mix(in srgb, var(--bento-accent) 40%, #fff));
  opacity: 0.9;
}

.index-landing__bento-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--bento-accent) 35%, #e2e8f0);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 18px 40px color-mix(in srgb, var(--bento-accent) 14%, rgba(15, 23, 42, 0.1));
}

@media (prefers-reduced-motion: reduce) {
  .index-landing__bento-card:hover {
    transform: none;
  }
}

.index-landing__bento-card[data-accent="dash"] {
  --bento-accent: #ca8a04;
}

.index-landing__bento-card[data-accent="archive"] {
  --bento-accent: #6366f1;
}

.index-landing__bento-card[data-accent="group"] {
  --bento-accent: #e11d48;
}

.index-landing__bento-card[data-accent="research"] {
  --bento-accent: #2563eb;
}

.index-landing__bento-card[data-accent="photoalbum"] {
  --bento-accent: #ea580c;
}

.index-landing__bento-card[data-accent="privateforums"] {
  --bento-accent: #9333ea;
}

.index-landing__bento-card[data-accent="budget"] {
  --bento-accent: #059669;
}

.index-landing__bento-card[data-accent="composer"] {
  --bento-accent: #7c3aed;
}

.index-landing__bento-name {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.index-landing__bento-desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: #64748b;
}

.index-landing__hint-block {
  margin-top: 32px;
  text-align: center;
}

.index-landing__hint-block .index-landing-hint {
  margin-left: auto;
  margin-right: auto;
}

.index-landing-hint--welcome {
  background: linear-gradient(180deg, #eff6ff, #f8fafc);
  border-color: rgba(59, 130, 246, 0.25);
}

/* --- Footer (index) --- */

.index-footer {
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 20px;
  padding: 12px 20px;
  background-color: #fff;
  border-top: 2px solid var(--border);
  font-weight: 600;
}

.index-footer__copy {
  color: #475569;
  font-size: 13px;
  text-decoration: none;
}

a.index-footer__copy:hover {
  color: var(--accent);
  text-decoration: underline;
}

.index-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.index-footer__nav a {
  color: var(--accent);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}

.index-footer__nav a:hover {
  text-decoration: underline;
}

.index-landing-hint {
  margin: 14px auto 0;
  max-width: 640px;
  padding: 12px 16px;
  font-size: 13px;
  line-height: 1.55;
  color: #475569;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 12px;
  text-align: left;
}

.index-landing-hint strong {
  color: #0f172a;
}

/* Founding Member Alpha — home page announcement */
.index-alpha-announce {
  flex-shrink: 0;
  border-bottom: 1px solid #fcd34d;
  background: linear-gradient(180deg, #fffbeb 0%, #fff 72%);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
}

.index-alpha-announce__inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 20px 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 12px 16px;
  box-sizing: border-box;
}

.index-alpha-announce__badge {
  margin: 2px 0 0;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #92400e;
  background: linear-gradient(180deg, #fffbeb 0%, #fef3c7 100%);
  border: 1px solid #fcd34d;
  box-shadow: 0 1px 2px rgba(146, 64, 14, 0.1);
}

.index-alpha-announce__copy {
  flex: 1 1 280px;
  min-width: 0;
}

.index-alpha-announce__title {
  margin: 0 0 6px;
  font-size: clamp(1rem, 1.5vw + 0.5rem, 1.2rem);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.index-alpha-announce__title-short {
  display: none;
}

.index-alpha-announce__star {
  color: #d97706;
}

.index-alpha-announce__lede {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: #475569;
  max-width: 52em;
}

.index-alpha-announce__actions {
  flex: 0 0 auto;
  align-self: center;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.index-alpha-announce__cta {
  flex: 0 0 auto;
  white-space: nowrap;
  text-decoration: none;
}

/* Mobile: one compact strip — free vertical space for the hero */
@media (max-width: 640px) {
  .index-alpha-announce__inner {
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px 10px;
    padding: 6px 12px;
  }

  .index-alpha-announce__badge {
    margin: 0;
    padding: 2px 7px;
    font-size: 10px;
    letter-spacing: 0.06em;
  }

  .index-alpha-announce__copy {
    flex: 1 1 auto;
    min-width: 0;
  }

  .index-alpha-announce__title {
    margin: 0;
    font-size: 0.8125rem;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .index-alpha-announce__title-full {
    display: none;
  }

  .index-alpha-announce__title-short {
    display: inline;
  }

  .index-alpha-announce__lede {
    display: none;
  }

  .index-alpha-announce__actions {
    align-self: center;
    flex-shrink: 0;
    gap: 0;
  }

  .index-alpha-announce__cta {
    min-height: 0;
    padding: 4px 10px;
    font-size: 12px;
    line-height: 1.2;
  }

  /* Detail lives in the modal; Feedback is in the footer on small screens */
  .index-alpha-announce__cta#btnAlphaFeedback {
    display: none;
  }
}
