/* Page sections: heroes, bento, story chapters, tabs, steps, FAQ, CTA band. */

/* ---------- home hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-h) + var(--s-8));
  padding-bottom: var(--s-9);
}
.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
}
.hero__copy {
  display: grid;
  gap: var(--s-5);
  justify-items: start;
}
.hero__title {
  font-size: var(--fs-hero);
  font-weight: 600;
  max-width: 14ch;
}
.hero__lead {
  font-size: var(--fs-lg);
  color: var(--text-2);
  max-width: 54ch;
}
.hero__lead strong {
  color: var(--text);
  font-weight: 600;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin-top: var(--s-2);
}
.hero__domain {
  width: min(100%, 560px);
  margin-top: var(--s-4);
}
.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin-top: var(--s-2);
}
.hero-chips .icon {
  width: 14px;
  height: 14px;
  color: var(--accent);
}
.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 28px;
  width: 26px;
  height: 42px;
  margin-left: -13px;
  border-radius: 14px;
  border: 1.5px solid var(--line-3);
}
.hero__scroll span {
  position: absolute;
  left: 50%;
  top: 8px;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--lime);
  animation: scroll-cue 2s var(--ease-in-out) infinite;
}
@keyframes scroll-cue {
  0% { transform: translateY(0); opacity: 0; }
  30% { opacity: 1; }
  100% { transform: translateY(16px); opacity: 0; }
}
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: minmax(0, 1fr); }
  .hero { align-items: flex-end; min-height: 100svh; padding-top: 42vh; }
  .hero__scroll { display: none; }
}
@media (max-width: 520px) {
  .hero-actions .btn { width: 100%; }
}

/* ---------- sub-page hero ---------- */
.page-hero {
  position: relative;
  min-height: min(88svh, 860px);
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-h) + var(--s-8));
  padding-bottom: var(--s-8);
}
.page-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
}
.page-hero__copy {
  display: grid;
  gap: var(--s-5);
  justify-items: start;
}
.page-hero h1 {
  font-size: var(--fs-3xl);
  max-width: 18ch;
}
.page-hero__lead {
  font-size: var(--fs-lg);
  color: var(--text-2);
  max-width: 58ch;
}
.page-hero--compact {
  min-height: 0;
  padding-bottom: var(--s-6);
}
@media (max-width: 900px) {
  .page-hero__inner { grid-template-columns: minmax(0, 1fr); }
  .page-hero { min-height: 0; padding-top: calc(var(--header-h) + 30vh); }
  .page-hero--compact { padding-top: calc(var(--header-h) + var(--s-8)); }
}

/* ---------- partner strip ---------- */
.partners-strip {
  padding-block: var(--s-7);
}
.partners-strip__label {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: var(--s-5);
}

/* ---------- bento ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gutter);
}
.bento > * { grid-column: span 4; }
.bento > .span-3 { grid-column: span 3; }
.bento > .span-4 { grid-column: span 4; }
.bento > .span-5 { grid-column: span 5; }
.bento > .span-6 { grid-column: span 6; }
.bento > .span-7 { grid-column: span 7; }
.bento > .span-8 { grid-column: span 8; }
.bento--tall { grid-row: span 2; }
.bento--tall h3 { font-size: var(--fs-2xl); }
.bento--tall p { font-size: var(--fs-base); max-width: 44ch; }
.bento--tall .icon-tile { width: 64px; height: 64px; border-radius: 20px; }
.bento--tall .icon-tile .icon { width: 32px; height: 32px; }
@media (max-width: 1100px) {
  .bento > *,
  .bento > [class*='span-'] { grid-column: span 6; }
  .bento--tall { grid-row: auto; }
}
@media (max-width: 680px) {
  .bento > *,
  .bento > [class*='span-'] { grid-column: 1 / -1; }
}

/* ---------- story chapters (the 3D stage changes station per chapter) ---------- */
.story__chapter {
  min-height: 115vh;
  display: flex;
  align-items: center;
  padding-block: var(--s-9);
}
.story__chapter:nth-child(even) .story__card {
  margin-left: auto;
}
.story__card {
  max-width: 520px;
  display: grid;
  gap: var(--s-4);
  padding: var(--s-7) var(--s-6);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgb(13 15 20 / 0.7), rgb(13 15 20 / 0.5));
}
.story__num {
  font-family: var(--font-display);
  font-size: 4.5rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  background: linear-gradient(180deg, var(--accent), transparent 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0.9;
}
.story__card h2 {
  font-size: var(--fs-2xl);
}
.story__text {
  color: var(--text-2);
}
.story__card .link-arrow {
  color: var(--accent);
  margin-top: var(--s-2);
}
@media (max-width: 900px) {
  /* leave the top of the screen to the 3D object while the card scrolls in */
  .story__chapter { min-height: 150vh; align-items: flex-end; padding-top: 55vh; }
  .story__card { padding: var(--s-6) var(--s-5); }
  .story__num { font-size: 3.25rem; }
  .story__chapter:nth-child(even) .story__card { margin-left: 0; }
}

/* ---------- tabs ---------- */
.tabs__bar {
  display: flex;
  justify-content: flex-start;
  justify-content: safe center;
  margin-bottom: var(--s-7);
  overflow-x: auto;
  padding-bottom: 4px;
}
.js .tabs__panel[hidden] {
  display: none;
}
.tabs__panel + .tabs__panel {
  margin-top: var(--s-7);
}
.js .tabs__panel + .tabs__panel {
  margin-top: 0;
}
.tabs__more {
  margin-top: var(--s-6);
  text-align: center;
}
.plans--two {
  grid-template-columns: repeat(2, minmax(0, 380px));
  justify-content: center;
}
@media (max-width: 680px) {
  .plans--two { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- features ---------- */
.feature {
  display: grid;
  gap: var(--s-4);
  align-content: start;
}
.feature h3 {
  font-size: var(--fs-lg);
}
.feature p {
  color: var(--text-2);
  font-size: var(--fs-sm);
}
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--gutter);
  margin-top: var(--s-8);
}
.stats > div {
  padding: var(--s-5);
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: rgb(13 15 20 / 0.7);
  display: flex;
  flex-direction: column-reverse;
  gap: var(--s-2);
}
.stats dd {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  font-weight: 600;
}
.stats dt {
  color: var(--text-3);
  font-size: var(--fs-sm);
}

.logo-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 900px) {
  .logo-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- steps ---------- */
.steps {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gutter);
  counter-reset: step;
}
.step {
  position: relative;
  display: grid;
  gap: var(--s-3);
  align-content: start;
  padding: var(--s-6);
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: rgb(13 15 20 / 0.78);
}
.step::after {
  content: '';
  position: absolute;
  top: 50px;
  right: calc(var(--gutter) * -1);
  width: var(--gutter);
  height: 1px;
  background: linear-gradient(90deg, var(--line-3), transparent);
}
.step:last-child::after {
  display: none;
}
.step__num {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: var(--fs-sm);
  color: var(--lime-ink);
  background: var(--lime);
  box-shadow: 0 0 0 6px color-mix(in oklab, var(--lime) 14%, transparent);
}
.step h3 {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  margin-top: var(--s-2);
}
.step p {
  color: var(--text-2);
  font-size: var(--fs-sm);
}
@media (max-width: 1000px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step::after { display: none; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- FAQ layout ---------- */
.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--s-8);
  align-items: start;
}
.faq-layout__head {
  position: sticky;
  top: calc(var(--header-h) + var(--s-6));
}
.faq-layout__head .section-head {
  margin-bottom: var(--s-5);
}
@media (max-width: 900px) {
  .faq-layout { grid-template-columns: minmax(0, 1fr); gap: var(--s-6); }
  .faq-layout__head { position: static; }
}

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) auto;
  align-items: center;
  gap: var(--s-6) var(--s-8);
  padding: clamp(32px, 6vw, 72px);
  border-radius: var(--r-lg);
  overflow: hidden;
  isolation: isolate;
  border: 1px solid var(--line-2);
  background: linear-gradient(120deg, rgb(18 21 28 / 0.95), rgb(10 12 17 / 0.9));
}
.cta-band__glow {
  position: absolute;
  inset: -40% -10% auto auto;
  width: 70%;
  aspect-ratio: 1;
  z-index: -1;
  border-radius: 50%;
  background: conic-gradient(from 180deg, var(--lime), var(--cyan), var(--violet), var(--magenta), var(--lime));
  filter: blur(90px);
  opacity: 0.32;
  animation: spin 24s linear infinite;
}
@keyframes spin {
  to { transform: rotate(1turn); }
}
.cta-band__copy {
  display: grid;
  gap: var(--s-4);
}
.cta-band h2 {
  font-size: var(--fs-2xl);
  max-width: 20ch;
}
.cta-band__copy > p:last-child {
  color: var(--text-2);
  max-width: 56ch;
}
.cta-band__actions {
  display: grid;
  gap: var(--s-3);
}
@media (max-width: 900px) {
  .cta-band { grid-template-columns: minmax(0, 1fr); }
  .cta-band__actions { grid-template-columns: minmax(0, 1fr); }
}

/* Hero containers are flex items: let them shrink below the search field's intrinsic width. */
.hero > .container,
.page-hero > .container {
  min-width: 0;
}
.hero__copy,
.page-hero__copy {
  grid-template-columns: minmax(0, 1fr);
}
