/* ==========================================================================
   Solutions page — extends shared patterns in home.css
   ========================================================================== */

/* Hero variant (deep-blue, breadcrumb, numbered stats) */
.hero--deepblue { background-color: var(--color-deep-blue); }
.hero--deepblue .hero__title,
.hero--deepblue .hero__text { color: var(--color-almost-white); }
.hero__breadcrumb {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 16px;
  line-height: 20px;
  color: var(--color-almost-white);
}
.hero__breadcrumb .muted { color: var(--color-gray-40); }
.hero--deepblue .hero__stat h3,
.hero--deepblue .hero__stat p { color: var(--color-almost-white); }

/* Generic dark maze card reused (matches .cap-card) */
.sol-section { padding: 120px 0; }
.sol-section--light { background-color: var(--color-almost-white); }
.sol-section--blue5 { background-color: var(--color-blue-5); }
.sol-section--forest { background-color: var(--color-forest); }

.sol-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 40px; margin-bottom: 80px; }
.sol-head .label {
  flex-shrink: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 22px;
  color: var(--color-blue-50);
}
.sol-head h2 {
  width: 939px;
  max-width: 100%;
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 62px;
  line-height: 0.9;
  letter-spacing: -0.93px;
  color: var(--color-night);
}

@media (max-width: 1024px) {
  .sol-head { flex-direction: column; gap: 24px; }
  .sol-head h2 { width: 100%; font-size: 44px; }
}
@media (max-width: 768px) {
  .sol-head h2 { font-size: 32px; }
}

/* Section 2 — 2x2 capability cards */
.sol-grid-head { display: grid; grid-template-columns: 4fr 8fr; align-items: start; margin-bottom: 80px; }
.sol-grid-head .label { max-width: 338px; font-family: var(--font-body); font-size: 16px; line-height: 22px; color: var(--color-night); opacity: 0.5; }
.sol-grid-head h2 { width: 100%; font-family: var(--font-heading); font-weight: 400; font-size: 62px; line-height: 0.9; letter-spacing: -0.93px; color: var(--color-night); }
.sol-grid-head h2 .muted { color: var(--color-blue-50); }
.sol-cards { display: grid; grid-template-columns: 1fr 1fr; gap: var(--grid-gap); width: 66.6667%; margin-left: auto; }
.sol-card { position: relative; overflow: hidden; height: 316px; background: var(--color-blue-5); padding-top: 16px; display: flex; flex-direction: column; justify-content: flex-start; }
.sol-card__graphic { position: absolute; left: 120px; top: 117px; width: 708px; height: 708px; opacity: 0.5; pointer-events: none; }
.sol-card__body { position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column; gap: 8px; justify-content: flex-start; padding: 16px 16px 0; }
.sol-card__body h3 { font-family: var(--font-heading); font-weight: 400; font-size: 32px; line-height: 1; letter-spacing: -0.32px; color: var(--color-night); }
.sol-card__body p { width: 293px; max-width: 100%; font-family: var(--font-body); font-size: 14px; line-height: 22px; color: var(--color-blue-50); }
.sol-card__num { position: relative; z-index: 1; border-top: 1px solid var(--color-blue-10); padding: 4px 8px; font-family: var(--font-body); font-size: 14px; line-height: 22px; color: var(--color-night); opacity: 0.5; }
.sol-allrow { display: flex; justify-content: flex-end; margin-top: var(--sp-80); }
.sol-allrow a { width: 66.6667%; max-width: 100%; padding: 4px 32px 4px 0; border-bottom: 1px solid var(--color-night); font-family: var(--font-body); font-size: 16px; line-height: 22px; color: var(--color-night); }

@media (max-width: 992px) {
  .sol-grid-head { grid-template-columns: 1fr; row-gap: 24px; }
  .sol-grid-head h2 { font-size: 44px; }
  .sol-cards { width: 100%; }
  .sol-allrow a, .onchain__more a { width: 100%; }
}

/* Mobile: cards become a horizontal slider that runs past both screen edges */
@media (max-width: 768px) {
  .sol-cards {
    display: flex;
    width: auto;
    margin-left: calc(-1 * var(--container-pad));
    margin-right: calc(-1 * var(--container-pad));
    padding: 0 var(--container-pad);
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scroll-padding-left: var(--container-pad); /* snap first card to the container, not the screen edge */
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .sol-cards::-webkit-scrollbar { display: none; }
  .sol-card { flex: 0 0 78%; scroll-snap-align: start; }
  .sol-allrow { margin-top: 40px; }
}

/* Section 3 — Risk managed */
/* overflow clips the maze; the padding stops it clipping the ascenders and
   descenders, which sit outside the 0.9 line box */
.risk-top { position: relative; overflow: hidden; padding: 8px 0 10px; }
.risk-title { font-family: var(--font-heading); font-weight: 400; font-size: 62px; line-height: 0.9; letter-spacing: -0.93px; color: var(--color-night); }
.risk-maze { position: absolute; right: 0; top: -10px; width: 660px; height: 190px; object-fit: cover; object-position: top; opacity: 0.35; pointer-events: none; }
.risk-sub { border-top: 1px solid var(--color-blue-10); padding-top: 16px; margin-top: 24px; font-family: var(--font-body); font-size: 16px; line-height: 22px; color: var(--color-blue-50); }
.risk-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 80px; }
.risk-col__tag { font-family: var(--font-heading); font-style: italic; font-size: 16px; line-height: 20px; color: var(--color-blue-50); }
.risk-col h3 { font-family: var(--font-heading); font-weight: 400; font-size: 40px; line-height: 1; letter-spacing: -0.4px; color: var(--color-night); margin: 4px 0 16px; }
.risk-col p { max-width: 320px; font-family: var(--font-body); font-size: 14px; line-height: 22px; color: var(--color-blue-50); }
@media (max-width: 768px) {
  .risk-title { font-size: 40px; }
  .risk-maze { display: none; }
  .risk-cols { grid-template-columns: 1fr; gap: 40px; }
  .risk-col h3 { font-size: 32px; }
}

/* Section 4 — Institutional access (forest feature) */
.access { position: relative; overflow: hidden; background: var(--color-forest); min-height: 800px; padding: 32px 0; display: flex; align-items: center; }
.access__bg { position: absolute; right: -120px; top: 50%; transform: translateY(-50%); height: 140%; pointer-events: none; }
.access__inner { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: space-between; align-self: stretch; width: 711px; max-width: 100%; min-height: 736px; }
.access__tag { font-family: var(--font-heading); font-style: italic; font-size: 16px; line-height: 20px; color: var(--color-almost-white); }
.access__title { width: 746px; max-width: 100%; font-family: var(--font-heading); font-weight: 400; font-size: 84px; line-height: 0.9; letter-spacing: -1.26px; color: var(--color-almost-white); }
.access .btn--light { color: var(--color-deep-blue); align-self: flex-start; }
@media (max-width: 768px) {
  .access { min-height: 0; padding: 56px 0; }
  .access__inner { min-height: 0; gap: 40px; width: 100%; }
  .access__title { font-size: 44px; letter-spacing: -1px; }
  .access__bg { opacity: 0.4; }
}

/* Section 5 — Liquidity & execution (reuses .capabilities/.cap-card) */
/* Each row is a link; the dark panel, its graphic and the feature grid are
   the hover state. The panel bleeds 16px left of the text column. */
.liq-list { display: flex; flex-direction: column; gap: 4px; }
.liq-item { display: block; color: inherit; text-decoration: none; }
.liq-item .cap-label { padding-left: 0; }
.liq-card { position: relative; border-top: 1px solid var(--color-blue-10); min-height: 344px; padding: 16px 32px 32px 0; display: flex; flex-direction: column; gap: 8px; }
.liq-card__panel { position: absolute; inset: -1px 0 0 -16px; overflow: hidden; background: var(--color-night); opacity: 0; transition: opacity 0.25s ease; }
.liq-card__panel img { position: absolute; right: -128px; top: 50%; width: 617px; height: 617px; max-width: none; transform: translateY(-50%) rotate(-90deg); pointer-events: none; }
.liq-item:hover .liq-card__panel { opacity: 1; }
.liq-card__title { position: relative; font-family: var(--font-heading); font-weight: 400; font-size: 40px; line-height: 1; letter-spacing: -0.4px; color: var(--color-night); white-space: nowrap; transition: color 0.25s ease; }
.liq-item:hover .liq-card__title { color: var(--color-almost-white); }
.liq-card__features {
  position: relative; margin-top: auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 43px; row-gap: 28px; width: 426px; max-width: 100%;
  font-family: var(--font-heading); font-size: 20px; line-height: 22px; letter-spacing: -0.2px;
  color: var(--color-almost-white); opacity: 0; transition: opacity 0.25s ease;
}
.liq-item:hover .liq-card__features { opacity: 1; }
.liq-more { display: block; border-bottom: 1px solid var(--color-night); padding: 4px 32px 4px 0; font-family: var(--font-body); font-size: 16px; line-height: 22px; color: var(--color-night); }
.cap-label--dark { color: var(--color-night); opacity: 0.5; }
@media (max-width: 768px) {
  /* no hover on touch: the panel and features are always on, edge to edge */
  .liq-card {
    min-height: 0; padding: 16px var(--container-pad) 32px;
    margin-left: calc(-1 * var(--container-pad)); margin-right: calc(-1 * var(--container-pad));
  }
  .liq-card__panel { inset: -1px 0 0 0; opacity: 1; }
  .liq-card__panel img { right: -180px; width: 460px; height: 460px; }
  .liq-card__title { color: var(--color-almost-white); font-size: 24px; white-space: normal; }
  .liq-card__features { opacity: 1; width: 100%; column-gap: 16px; row-gap: 16px; font-size: 16px; letter-spacing: -0.16px; }
  .liq-more { font-size: 14px; }
}

/* Section 6 — Systematic investing, brought on-chain */
.onchain { background: var(--color-light-blue); padding: 120px 0 80px; }
.onchain .container { display: flex; flex-direction: column; gap: 80px; }
.onchain__head { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.onchain__head .tag { font-family: var(--font-heading); font-style: italic; font-size: 16px; line-height: 20px; color: var(--color-night); opacity: 0.5; }
.onchain__head h2 { font-family: var(--font-heading); font-weight: 400; font-size: 64px; line-height: 0.9; letter-spacing: -0.96px; color: var(--color-night); }
.onchain__cols { display: grid; grid-template-columns: 1fr 437px 1fr; gap: 32px; }
.onchain-col { position: relative; height: 400px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 32px; background: var(--color-blue-10); overflow: hidden; padding: 0 24px; }
.onchain-col__label { position: absolute; top: 0; left: 0; width: 100%; border-bottom: 1px solid var(--color-blue-10); padding: 4px 8px; font-family: var(--font-body); font-size: 16px; line-height: 22px; color: var(--color-night); opacity: 0.5; }
.onchain-col img { height: 84px; width: auto; }
.onchain-col h3 { font-family: var(--font-heading); font-weight: 400; font-size: 40px; line-height: 1; letter-spacing: -0.4px; color: var(--color-night); text-align: center; max-width: 339px; }
.onchain-col--dark { background: var(--color-night); }
.onchain-col--dark h3 { color: var(--color-almost-white); }
.onchain-col__caption { position: absolute; bottom: 0; left: 0; width: 100%; border-top: 1px solid var(--color-gray-10); padding: 4px 8px; font-family: var(--font-heading); font-style: italic; font-size: 16px; line-height: 20px; color: var(--color-almost-white); opacity: 0.5; }
.onchain__products { display: flex; flex-direction: column; gap: 40px; }
.onchain-prow { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 32px; }
.onchain-prod { border-bottom: 1px solid var(--color-blue-10); padding: 16px 32px 16px 0; min-height: 180px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.onchain-prod h4 { font-family: var(--font-heading); font-weight: 400; font-size: 28px; line-height: 1; letter-spacing: -0.28px; color: var(--color-night); }
.onchain-prod__label { font-family: var(--font-body); font-size: 16px; line-height: 22px; color: var(--color-night); opacity: 0.5; }
.onchain__more { display: flex; justify-content: flex-end; }
.onchain__more a { width: 66.6667%; border-bottom: 1px solid var(--color-night); padding: 4px 32px 4px 0; font-family: var(--font-body); font-size: 16px; color: var(--color-night); }
@media (max-width: 1024px) {
  .onchain__head h2 { font-size: 44px; }
  .onchain__cols { grid-template-columns: 1fr; }
  .onchain-col { height: 320px; }
  .onchain-prow { grid-template-columns: 1fr; }
  .onchain-prod:first-child { display: none; }
  .onchain__more a { width: 100%; }
}

/* Section 7 — Syntetika partner platform */
.syntetika { background: var(--color-light-blue); padding: 80px 0; }
.syntetika__inner { display: grid; grid-template-columns: 4fr 8fr; align-items: start; }
.syntetika__label { width: auto; font-family: var(--font-body); font-size: 16px; line-height: 22px; color: var(--color-blue-50); }
.syntetika__main { width: 100%; display: flex; flex-direction: column; gap: 64px; }
.syntetika__head h2, .syntetika__head p { font-family: var(--font-heading); font-weight: 400; font-size: 32px; line-height: 1.1; letter-spacing: -0.32px; }
.syntetika__head h2 { color: var(--color-night); }
.syntetika__head p { color: var(--color-blue-50); }
.syntetika__cta { display: block; border-bottom: 1px solid var(--color-night); padding: 4px 0; font-family: var(--font-body); font-size: 16px; color: var(--color-night); }
@media (max-width: 1024px) {
  .syntetika__inner { grid-template-columns: 1fr; row-gap: 32px; }
  .syntetika__label, .syntetika__main { width: 100%; }
}
.home-cta--deepblue { background: var(--color-night); }

/* Mobile type scale — verified against Figma 375 frames */
@media (max-width: 768px) {
  .sol-grid-head h2 { font-size: 32px; }
  .sol-card__body h3 { font-size: 28px; }
  .risk-top { padding: 4px 0 6px; }
  .risk-title { font-size: 28px; }
  .risk-col h3 { font-size: 24px; }
  .access__title { font-size: 40px; letter-spacing: -0.4px; }
  .onchain__head h2 { font-size: 28px; }
  .onchain-col h3 { font-size: 28px; }
  /* Figma 375: the three columns become an edge-to-edge horizontal slider */
  .onchain__cols {
    display: flex; grid-template-columns: none;
    margin-left: calc(-1 * var(--container-pad)); margin-right: calc(-1 * var(--container-pad));
    padding: 0 var(--container-pad); gap: 32px; overflow-x: auto;
    scroll-snap-type: x proximity; scroll-padding-left: var(--container-pad); scrollbar-width: none;
  }
  .onchain__cols::-webkit-scrollbar { display: none; }
  .onchain-col { flex: 0 0 332px; height: 398px; scroll-snap-align: start; }
  .syntetika__head h2, .syntetika__head p { font-size: 24px; }
  /* Solutions liquidity cap-cards are 24 in the mobile design (Home's are 28) */
  .page-solutions .cap-card__title { font-size: 24px; }
}
