/* ── Homepage: ZKC "AI Access Coin" sections ─────────
   Builds on the live styles.css (unchanged). Uses its tokens:
   --color-bg #5b8898 · --color-mint #b5ddd7 · --color-white #f8fafb · --color-dark #1a1a1a */

/* Sections */
.home-section {
  padding-top: 120px;
  color: var(--color-dark);
}

.home-wrap {
  max-width: 1440px;
  padding: 0 40px;
  margin: 0 auto;
}

.home-center {
  text-align: center;
}

.home-kicker {
  margin-bottom: 14px;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-bg);
}

.home-h2 {
  font-size: clamp(32px, 3.6vw, 52px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.home-sub {
  max-width: 640px;
  margin: 18px auto 0;
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.45;
  color: rgba(26, 26, 26, 0.6);
}

/* Shared panel treatment: hero colour + mint ellipse glow */
.home-card,
.flow {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: var(--color-white);
  background: var(--color-bg);
  border-radius: 20px;
}

.home-card::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: '';
  background: url('assets/ellipse-bg.svg') center 30% / 170% 170% no-repeat;
  opacity: 0.35;
}

/* What's changing cards */
.home-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  max-width: 1140px;
  margin: 56px auto 0;
  text-align: left;
}

.home-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 460px;
  padding: 32px;
}

.home-card-art {
  position: absolute;
  top: 26px;
  left: 50%;
  width: min(300px, 78%);
  height: 245px;
  object-fit: contain;
  transform: translateX(-50%);
}

.home-card h3 {
  font-size: 26px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.home-card p {
  max-width: 400px;
  margin-top: 12px;
  font-size: 17px;
  line-height: 1.45;
  color: rgba(248, 250, 251, 0.85);
}

/* Flow: ZKC → models */
.flow {
  --src: 28%;
  --dst: 62%;
  height: 540px;
  margin-top: 56px;
}

.flow-ellipse {
  position: absolute;
  bottom: -60%;
  left: 50%;
  z-index: -1;
  width: 140%;
  max-width: none;
  height: 220%;
  pointer-events: none;
  opacity: 0.55;
  transform: translateX(-50%);
}

.flow-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.flow-lines--m {
  display: none;
}

/* home.js redraws the lines at real pixel size and adds travelling dots */
.flow-live {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.flow.is-live .flow-lines {
  display: none !important;
}

.flow-live circle {
  filter: drop-shadow(0 0 4px rgba(248, 250, 251, 0.9));
}

.flow-source {
  position: absolute;
  top: 50%;
  left: var(--src);
  z-index: 1;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
}

.flow-halo {
  position: absolute;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(248, 250, 251, 0.3), rgba(248, 250, 251, 0) 70%);
  border-radius: 50%;
}

.flow-coin {
  position: relative;
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  background: var(--color-white);
  border-radius: 50%;
  box-shadow: 0 0 0 8px rgba(248, 250, 251, 0.18), 0 10px 30px rgba(30, 60, 72, 0.25);
}

.flow-coin img {
  width: 40px;
  filter: brightness(0.75) saturate(1.1);
}

.flow-label {
  position: absolute;
  top: 100%;
  margin-top: 22px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.flow-models {
  padding: 0;
  margin: 0;
  list-style: none;
}

.flow-models li {
  position: absolute;
  top: var(--y);
  left: var(--dst);
  z-index: 1;
  display: flex;
  gap: 18px;
  align-items: center;
  transform: translateY(-50%);
}

.flow-node {
  flex: none;
  width: 14px;
  height: 14px;
  margin-left: -7px;
  background: var(--color-white);
  border: 1.5px solid var(--color-mint);
  border-radius: 50%;
}

.flow-model {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  padding: 9px 18px 9px 12px;
  font-size: 17px;
  color: var(--color-dark);
  white-space: nowrap;
  background: var(--color-white);
  border-radius: 889px;
  box-shadow: 0 4px 18px rgba(30, 60, 72, 0.12);
}

.flow-model img {
  width: 20px;
  height: 20px;
}

.flow-soon {
  position: absolute;
  top: 22px;
  left: 24px;
  z-index: 1;
  padding: 6px 12px;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1.5px solid rgba(248, 250, 251, 0.5);
  border-radius: 889px;
}

.home-fineprint {
  margin-top: 22px;
  font-size: 15px;
  color: rgba(26, 26, 26, 0.55);
}

.home-fineprint a {
  margin-left: 6px;
  color: var(--color-bg);
  text-underline-offset: 3px;
}

/* FAQ */
.home-faq {
  display: grid;
  grid-template-columns: minmax(220px, 0.4fr) 1fr;
  gap: 80px;
  align-items: start;
  max-width: 1140px;
}

.home-faq details {
  border-bottom: 1px solid rgba(26, 26, 26, 0.1);
}

.home-faq summary {
  position: relative;
  padding: 24px 52px 24px 0;
  font-size: clamp(18px, 1.5vw, 21px);
  cursor: pointer;
  list-style: none;
}

.home-faq summary::-webkit-details-marker {
  display: none;
}

.home-faq summary::before,
.home-faq summary::after {
  position: absolute;
  top: 50%;
  right: 6px;
  width: 18px;
  height: 1.5px;
  content: '';
  background: var(--color-dark);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.home-faq summary::after {
  transform: rotate(90deg);
}

.home-faq details[open] > summary::after {
  transform: rotate(0deg);
}

.home-faq details p {
  max-width: 720px;
  padding: 0 52px 24px 0;
  font-size: 17px;
  line-height: 1.6;
  color: rgba(26, 26, 26, 0.65);
}

/* Responsive */
@media (max-width: 900px) {
  .home-cards {
    grid-template-columns: 1fr;
    max-width: 480px;
  }

  .home-faq {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .home-faq .home-h2 br {
    display: none;
  }

  .flow {
    --src: 13%;
    --dst: 36%;
    height: 500px;
  }

  .flow-lines--d { display: none; }
  .flow-lines--m { display: block; }

  .flow-halo { width: 110px; height: 110px; }
  .flow-coin { width: 56px; height: 56px; }
  .flow-coin img { width: 30px; }
  .flow-label { margin-top: 16px; font-size: 16px; }
  .flow-models li { gap: 10px; }
  .flow-model { gap: 7px; padding: 7px 13px 7px 9px; font-size: 14px; }
  .flow-model img { width: 16px; height: 16px; }
}

@media (max-width: 768px) {
  .home-section { padding-top: 84px; }
  .home-wrap { padding: 0 12px; }
  .home-card { min-height: 420px; padding: 26px; }
  .home-faq details p { padding-right: 0; }
}

@media (max-width: 380px) {
  .flow-model { font-size: 12.5px; }
}

