/* ============================================================
   Fates Financial — home (platform) page
   ============================================================ */

/* ---------- Hero (home flavour) ---------- */
.hero {
  background:
    radial-gradient(880px 520px at 78% -8%, var(--wash-mint), transparent 62%),
    radial-gradient(760px 520px at 4% 34%, var(--wash-gold), transparent 60%),
    var(--void);
}
.hero__status {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  animation: rise 0.9s 0.62s var(--ease-out) both;
}
.hero__status li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.86rem;
  color: var(--text-mid);
}

/* ---------- The gate ---------- */
.gate {
  position: relative;
  width: 100%;
  max-width: 400px;
  margin-inline: auto;
  aspect-ratio: 340 / 420;
  animation: rise 1s 0.3s var(--ease-out) both;
}
.gate__arch { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.gate__stroke {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: draw 2.2s 0.4s var(--ease-out) forwards;
  filter: drop-shadow(0 0 14px rgba(95, 227, 179, 0.28));
}
.gate__stroke--inner {
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
  animation-delay: 0.7s;
  filter: none;
}
@keyframes draw { to { stroke-dashoffset: 0; } }

.gate__stack {
  position: absolute;
  left: 50%;
  bottom: 21%;
  transform: translateX(-50%);
  width: 66%;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.gate__chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  color: var(--text-mid);
  background: linear-gradient(150deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 16px;
  box-shadow: 0 12px 28px -18px var(--shadow-deep);
  animation: chipIn 0.8s var(--ease-back) both, chipDrift 7s ease-in-out infinite;
}
.gate__chip--1 { animation-delay: 1.05s, 1.85s; }
.gate__chip--2 { animation-delay: 1.20s, 2.30s; }
.gate__chip--3 { animation-delay: 1.35s, 2.75s; }
.gate__chip--4 { animation-delay: 1.50s, 3.20s; }
.gate__chip--5 { animation-delay: 1.65s, 3.65s; }
.gate__chip.is-live {
  color: var(--text);
  border-color: rgba(95, 227, 179, 0.34);
  background: linear-gradient(150deg, rgba(95, 227, 179, 0.14), var(--panel-2));
}
.gate__chip i {
  font-style: normal;
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mint-ink);
}
@keyframes chipIn {
  from { opacity: 0; transform: translateY(22px) scale(0.94); }
  to   { opacity: 1; transform: none; }
}
@keyframes chipDrift {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-5px); }
}

.gate__floor {
  position: absolute;
  left: 6%; right: 6%;
  bottom: 12%;
  border-top: 1px solid var(--line-mid);
  animation: rise 0.9s 1.9s var(--ease-out) both;
}
.gate__floor span {
  position: absolute;
  left: 50%;
  top: 12px;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-dim);
  white-space: nowrap;
}

/* ---------- Thesis ---------- */
.thesis__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.thesis__card { padding: 34px 30px 36px; }
.thesis__card:hover { transform: translateY(-5px); box-shadow: var(--lift); }
.thesis__num {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  color: var(--gold-ink);
  margin-bottom: 46px;
}
.thesis__card h3 { margin-bottom: 12px; }
.thesis__card p { font-size: 0.95rem; color: var(--text-mid); }

/* ---------- Products ---------- */
.products__grid {
  display: grid;
  /* auto-fit rather than a fixed 3, so the strip takes a fourth card without
     orphaning it onto a row of its own. Three items still fill the row. */
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: 20px;
}
/* The accounts strip carries five cards and lands four across, which strands
   the fifth. Squeezing five into the 1092px grid would mean 202px columns —
   too narrow for this copy — so the roadmap card spans the full row instead
   and reads as a coda to the four accounts rather than an orphan. */
.products__grid--accounts > .product--next { grid-column: 1 / -1; }
.products__grid--accounts > .product--next p { max-width: 62ch; }
.product {
  display: flex;
  flex-direction: column;
  padding: 30px 30px 32px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(165deg, var(--panel-2), var(--panel));
  transition: transform 0.35s var(--ease-out), border-color 0.3s ease, box-shadow 0.35s ease;
}
.product__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 40px;
}
.product__index { font-size: 0.76rem; color: var(--text-dim); letter-spacing: 0.14em; }
.product h3 { font-size: 1.34rem; margin-bottom: 12px; }
.product p { font-size: 0.95rem; color: var(--text-mid); margin-bottom: 26px; }
.product__link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}
.product__note {
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  line-height: 1.6;
  letter-spacing: 0.02em;
  color: var(--text-dim);
}
a.product:hover { transform: translateY(-6px); box-shadow: var(--lift); }
a.product:hover .btn__arrow { transform: translateX(4px); }
.product--live:hover { border-color: rgba(95, 227, 179, 0.4); }
.product--live:hover .product__link { color: var(--mint-ink); }
.product--soon:hover { border-color: rgba(233, 161, 59, 0.4); }
.product--soon:hover .product__link { color: var(--gold-ink); }
.product--next {
  border-style: dashed;
  border-color: var(--line);
  background: var(--surface-soft);
}
.product--next h3, .product--next p { color: var(--text-mid); }
.product--next h3 { color: var(--text); opacity: 0.82; }

/* ---------- Platform capabilities ---------- */
.platform__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.capability {
  background: var(--void);
  padding: 34px 30px 38px;
  transition: background 0.35s ease;
}
.capability:hover { background: var(--panel); }
.capability__num {
  display: block;
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  color: var(--mint-ink);
  margin-bottom: 38px;
  transition: transform 0.3s var(--ease-out);
}
.capability:hover .capability__num { transform: translateX(4px); }
.capability h3 { font-size: 1.1rem; margin-bottom: 10px; }
.capability p { font-size: 0.92rem; color: var(--text-mid); }

/* ---------- Roadmap ---------- */
.roadmap__list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.roadmap__step {
  position: relative;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.roadmap__step::before {
  content: "";
  position: absolute;
  top: -4px; left: 0;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--text-dim);
}
.roadmap__step:nth-child(1)::before { background: var(--mint); box-shadow: 0 0 12px var(--mint); }
.roadmap__step:nth-child(2)::before { background: var(--marigold); box-shadow: 0 0 12px rgba(233, 161, 59, 0.7); }
.roadmap__step .pill { margin-bottom: 16px; }
.roadmap__step h3 { font-size: 1.12rem; margin-bottom: 10px; }
.roadmap__step p { font-size: 0.92rem; color: var(--text-mid); }

/* ---------- Trust ---------- */
.trust__inner {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(36px, 6vw, 84px);
  align-items: start;
}
.trust__copy h2 { margin-bottom: 22px; }
.trust__copy .lede { max-width: 460px; }
.trust__list { border-top: 1px solid var(--line); }
.trust__list li {
  display: grid;
  gap: 8px;
  padding: 26px 4px 26px 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left 0.3s var(--ease-out), background 0.3s ease;
}
.trust__list li:hover { padding-left: 14px; background: rgba(95, 227, 179, 0.03); }
.trust__list strong { font-size: 1.02rem; font-weight: 600; letter-spacing: -0.02em; }
.trust__list span { font-size: 0.93rem; color: var(--text-mid); }

/* ---------- Responsive ---------- */
@media (max-width: 1060px) {
  .thesis__grid { grid-template-columns: 1fr; }
  .products__grid { grid-template-columns: 1fr; }
  .platform__grid { grid-template-columns: repeat(2, 1fr); }
  .roadmap__list { grid-template-columns: repeat(2, 1fr); }
  .product__top { margin-bottom: 24px; }
  .thesis__num { margin-bottom: 26px; }
}

@media (max-width: 900px) {
  .gate { max-width: 340px; margin-top: 12px; }
  .trust__inner { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .platform__grid { grid-template-columns: 1fr; }
  .roadmap__list { grid-template-columns: 1fr; }
  .capability__num { margin-bottom: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .gate__stroke { stroke-dashoffset: 0; }
  .hero__line, .hero__sub, .hero__actions, .hero__status,
  .gate, .gate__chip, .gate__floor { opacity: 1; transform: none; }
}
