/* Styles specific to home (index.html). Loaded after the shared CSS, so it can override it. */

/* ── Genio blob decoration ── */
.blob-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.blob {
  position: absolute;
}

.blob-purple {
  top: -15vh;
  right: -5vw;
  width: 55vw;
  height: 55vw;
  background: radial-gradient(ellipse at 40% 40%, rgba(124, 92, 245, 0.38) 0%, transparent 60%);
  border-radius: 50%;
}

.blob-pink {
  bottom: -10vh;
  right: 5vw;
  width: 45vw;
  height: 55vw;
  background: radial-gradient(ellipse at 55% 45%, rgba(236, 30, 140, 0.32) 0%, transparent 65%);
  border-radius: 30% 70% 70% 30% / 40% 40% 60% 60%;
}

.blob-blue {
  top: 25vh;
  right: 20vw;
  width: 35vw;
  height: 35vw;
  background: radial-gradient(ellipse at center, rgba(74, 91, 239, 0.25) 0%, transparent 65%);
  border-radius: 50%;
}

.blob-coral {
  top: 0;
  right: 0;
  width: 18vw;
  height: 28vw;
  background: radial-gradient(ellipse at 70% 30%, rgba(240, 80, 60, 0.20) 0%, transparent 65%);
  border-radius: 40% 60% 60% 40%;
}

header, main, footer {
  position: relative;
  z-index: 1;
}

/* ── Main ── */
main {
  flex: 1;
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 2rem 4rem;
  width: 100%;
}

h1 {
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.tagline {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 55ch;
}

/* ── How it works ── */
h2 {
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

/* ── Rooms preview ── */
.rooms-intro {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  max-width: 55ch;
}

.rooms {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
  margin-bottom: 3rem;
}

.room-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, transform 0.15s, background 0.15s;
}

.room-card:hover {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 8%, var(--surface));
  transform: translateY(-2px);
}

.room-card:focus-visible {
  outline: 3px solid var(--accent-light);
  outline-offset: 3px;
}

.room-card .room-arrow {
  display: inline-block;
  margin-top: 0.6rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-light);
}

.room-card .room-icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  display: block;
}

.room-card strong {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.room-card p {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.room-card .room-sim {
  margin-top: 0.4rem;
  color: var(--text);
}

.room-card .tag {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 20%, transparent);
  color: var(--accent-light);
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
}

/* ── CTA ── */
.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.cta-note {
  font-size: 0.82rem;
  color: var(--text-muted);
  flex-basis: 100%;
}

/* ── Lab disclosure ── */
.lab-disclosure {
  margin-top: 2.5rem;
  margin-bottom: 2rem;
  border: 1px solid var(--border);
  border-left: 4px solid var(--warning);
  border-radius: 0 8px 8px 0;
  background: var(--surface);
}

.lab-disclosure summary {
  padding: 0.85rem 1.25rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--warning);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.lab-disclosure summary::-webkit-details-marker { display: none; }

.lab-disclosure summary::before {
  content: "▶";
  font-size: 0.65rem;
  transition: transform 0.15s;
  display: inline-block;
}

.lab-disclosure[open] summary::before {
  transform: rotate(90deg);
}

.lab-disclosure summary:focus-visible {
  outline: 3px solid var(--warning);
  outline-offset: -3px;
  border-radius: 0 6px 0 0;
}

.lab-disclosure .disclosure-body {
  padding: 0 1.25rem 1rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.lab-disclosure .disclosure-body a {
  color: var(--accent-light);
}

/* ── Footer ── */
footer {
  border-top: 1px solid var(--border);
  padding: 1.25rem 2rem;
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
}

footer a {
  color: var(--text-muted);
}

/* ── Skip link ── */
.skip-link {
  position: absolute;
  top: -3rem;
  left: 1rem;
  background: var(--accent);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 0 0 999px 999px;
  font-weight: 700;
  text-decoration: none;
  transition: top 0.1s;
  z-index: 100;
}

.skip-link:focus {
  top: 0;
}

@media (max-width: 480px) {
  main {
    padding: 2rem 1.25rem 3rem;
  }
  .blob-purple { width: 90vw; height: 90vw; }
  .blob-pink { width: 80vw; height: 90vw; }
  .blob-blue, .blob-coral { display: none; }
}
