/* Shared platform, solution, and compatibility pages */

.platform-page-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.platform-page-hero::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: 0.45;
  background-image: radial-gradient(rgba(5, 5, 5, 0.14) 0.6px, transparent 0.6px);
  background-size: 18px 18px;
  mask-image: linear-gradient(90deg, transparent 30%, #000 100%);
}

.platform-page-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 760px;
  align-items: center;
  padding-top: clamp(74px, 9vw, 124px);
  padding-bottom: clamp(74px, 9vw, 124px);
  gap: clamp(48px, 7vw, 100px);
  grid-template-columns: minmax(0, 0.95fr) minmax(480px, 1.05fr);
}

.platform-page-hero h1 {
  max-width: 11ch;
  margin: 20px 0 26px;
  font-size: clamp(58px, 7.2vw, 94px);
  font-weight: 630;
  letter-spacing: -0.075em;
  line-height: 0.91;
}

.platform-page-hero p {
  max-width: 56ch;
  color: var(--muted);
  font-size: clamp(18px, 1.65vw, 22px);
  line-height: 1.58;
}

.solution-hero { background: linear-gradient(150deg, #fff 30%, #f4f0ff 100%); }
.compatibility-hero { background: linear-gradient(150deg, #fff 30%, #faf3e1 100%); }

.solution-orbit {
  position: relative;
  min-height: 540px;
  border: 1px solid rgba(5, 5, 5, 0.12);
  background: rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  box-shadow: 0 36px 90px rgba(70, 47, 126, 0.13);
}

.solution-orbit::before,
.solution-orbit::after {
  position: absolute;
  border: 1px solid rgba(5, 5, 5, 0.11);
  border-radius: 50%;
  content: "";
}

.solution-orbit::before { inset: 13%; }
.solution-orbit::after { inset: 29%; }

.orbit-core,
.orbit-node {
  position: absolute;
  z-index: 1;
  display: grid;
  border: 1px solid rgba(5, 5, 5, 0.12);
  background: #fff;
  border-radius: 99px;
  box-shadow: 0 14px 32px rgba(5, 5, 5, 0.09);
  font-size: 12px;
  font-weight: 650;
  place-items: center;
}

.orbit-core {
  top: 50%;
  left: 50%;
  width: 145px;
  height: 145px;
  border: 0;
  background: var(--coral);
  border-radius: 50%;
  font-size: 23px;
  letter-spacing: -0.04em;
  line-height: 1.05;
  text-align: center;
  transform: translate(-50%, -50%);
}

.orbit-node { min-width: 104px; min-height: 46px; padding: 8px 15px; }
.orbit-node.n1 { top: 7%; left: 50%; transform: translateX(-50%); }
.orbit-node.n2 { top: 23%; right: 4%; }
.orbit-node.n3 { right: 5%; bottom: 20%; }
.orbit-node.n4 { bottom: 7%; left: 50%; transform: translateX(-50%); }
.orbit-node.n5 { bottom: 20%; left: 4%; }
.orbit-node.n6 { top: 23%; left: 3%; }

.platform-section-heading {
  display: grid;
  align-items: end;
  margin-bottom: clamp(48px, 7vw, 84px);
  gap: 38px;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.62fr);
}

.platform-section-heading h2 {
  max-width: 13ch;
  margin: 17px 0 0;
  font-size: clamp(48px, 6.4vw, 82px);
  letter-spacing: -0.07em;
  line-height: 0.94;
}

.platform-section-heading > p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(17px, 1.55vw, 21px);
  line-height: 1.6;
}

.solution-stack-list {
  display: grid;
  min-width: 0;
  gap: 20px;
}

.solution-stack {
  display: grid;
  width: 100%;
  min-width: 0;
  min-height: 560px;
  padding: clamp(32px, 6vw, 74px);
  border-radius: var(--radius-lg);
  gap: clamp(40px, 7vw, 100px);
  grid-template-columns: minmax(0, 0.9fr) minmax(380px, 1.1fr);
}

.solution-stack.theme-coral { background: var(--peach); }
.solution-stack.theme-lilac { background: var(--lilac); }
.solution-stack.theme-lime { background: var(--lime); }
.solution-stack.theme-navy { background: var(--navy); color: #fff; }

.solution-stack-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.solution-stack-copy small {
  font-family: "Geist Mono", monospace;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.solution-stack-copy h3 {
  max-width: 14ch;
  margin: 28px 0 22px;
  font-size: clamp(38px, 5vw, 65px);
  letter-spacing: -0.06em;
  line-height: 0.97;
  overflow-wrap: anywhere;
}

.solution-stack-copy p {
  max-width: 51ch;
  color: currentColor;
  font-size: 16px;
  line-height: 1.62;
  opacity: 0.7;
}

.solution-stack-copy > a {
  width: fit-content;
  margin-top: auto;
  padding-top: 28px;
  font-size: 14px;
  font-weight: 680;
  text-decoration: none;
}

.stack-app-list {
  display: grid;
  min-width: 0;
  align-content: center;
  gap: 10px;
  grid-template-columns: repeat(2, 1fr);
}

.stack-app-list a {
  display: flex;
  min-height: 115px;
  padding: 18px;
  border: 1px solid rgba(5, 5, 5, 0.12);
  background: rgba(255, 255, 255, 0.68);
  border-radius: 15px;
  font-size: 14px;
  font-weight: 680;
  text-decoration: none;
  flex-direction: column;
  transition: background-color 180ms ease, transform 180ms var(--ease-out);
}

.stack-app-list a span {
  margin-top: auto;
  color: rgba(5, 5, 5, 0.58);
  font-family: "Geist Mono", monospace;
  font-size: 8px;
  font-weight: 500;
  text-transform: uppercase;
}

.theme-navy .stack-app-list a {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.1);
}

.theme-navy .stack-app-list a span { color: rgba(255, 255, 255, 0.55); }

.outcome-section { background: var(--soft); }
.outcome-grid { display: grid; gap: 1px; border: 1px solid var(--ink); background: var(--ink); grid-template-columns: repeat(3, 1fr); }
.outcome-card { display: flex; min-height: 350px; padding: clamp(26px, 4vw, 43px); background: #fff; text-decoration: none; flex-direction: column; transition: background-color 180ms ease; }
.outcome-card > span { align-self: flex-end; font-family: "Geist Mono", monospace; font-size: 10px; }
.outcome-card h3 { max-width: 12ch; margin: auto 0 16px; font-size: clamp(28px, 3vw, 39px); letter-spacing: -0.05em; line-height: 1.02; }
.outcome-card p { max-width: 38ch; color: var(--muted); font-size: 13px; line-height: 1.55; }
.outcome-card em { margin-top: 20px; font-size: 12px; font-style: normal; font-weight: 680; }
.outcome-all { background: var(--coral); }

.platform-final { padding-top: 30px; }
.platform-final-panel { padding: clamp(48px, 8vw, 100px); background: var(--lime); border-radius: var(--radius-lg); text-align: center; }
.platform-final-panel .eyebrow { justify-content: center; }
.platform-final-panel h2 { max-width: 12ch; margin: 18px auto 20px; font-size: clamp(52px, 7vw, 90px); letter-spacing: -0.07em; line-height: 0.92; }
.platform-final-panel p { max-width: 52ch; margin: 0 auto; font-size: 19px; line-height: 1.55; }
.platform-final-panel .button-row { justify-content: center; }

.compatibility-visual {
  display: grid;
  min-height: 480px;
  align-items: center;
  padding: 44px;
  border: 1px solid rgba(5, 5, 5, 0.12);
  background: rgba(255, 255, 255, 0.75);
  border-radius: 28px;
  box-shadow: 0 32px 85px rgba(84, 67, 38, 0.13);
  gap: 20px;
  grid-template-columns: minmax(0, 0.86fr) auto minmax(0, 1.14fr);
}

.compat-system,
.compat-scale {
  display: flex;
  min-height: 260px;
  padding: 24px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 18px;
  flex-direction: column;
}

.compat-system small,
.compat-scale small {
  font-family: "Geist Mono", monospace;
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.compat-system strong,
.compat-scale strong {
  margin-top: auto;
  font-size: 25px;
}

.compat-system span { margin-top: 7px; color: var(--muted); font-size: 9px; }
.compat-plus { font-size: 29px; font-weight: 500; }
.compat-scale { background: var(--navy); color: #fff; }
.compat-scale > div { display: grid; margin-top: auto; gap: 7px; grid-template-columns: repeat(2, 1fr); }
.compat-scale span { padding: 8px; background: rgba(255, 255, 255, 0.1); border-radius: 8px; font-size: 8px; }

.compat-logo-rail { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.compat-logo-rail .site-wrap { display: flex; min-height: 94px; align-items: center; justify-content: space-between; gap: 20px; }
.compat-logo-rail span { color: #777570; font-family: "Geist Mono", monospace; font-size: 10px; font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase; }

.adoption-steps { display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); }
.adoption-steps article { display: flex; min-height: 390px; padding: clamp(27px, 4vw, 42px); border: 1px solid var(--line); background: #fff; border-radius: 20px; flex-direction: column; }
.adoption-steps article > span { align-self: flex-end; font-family: "Geist Mono", monospace; font-size: 10px; }
.adoption-steps small { margin-top: auto; color: var(--coral-dark); font-family: "Geist Mono", monospace; font-size: 9px; font-weight: 650; letter-spacing: 0.1em; text-transform: uppercase; }
.adoption-steps h3 { max-width: 12ch; margin: 17px 0 16px; font-size: clamp(28px, 3vw, 39px); letter-spacing: -0.05em; line-height: 1.02; }
.adoption-steps p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.58; }

.platform-fit-section { background: var(--cream); }
.platform-fit-grid { display: grid; gap: 18px; grid-template-columns: repeat(2, 1fr); }
.fit-card { display: flex; min-height: 540px; padding: clamp(32px, 5vw, 60px); border-radius: var(--radius-lg); flex-direction: column; }
.fit-addon { background: #fff; }
.fit-platform { background: var(--navy); color: #fff; }
.fit-card > small { font-family: "Geist Mono", monospace; font-size: 9px; font-weight: 650; letter-spacing: 0.09em; text-transform: uppercase; }
.fit-card h3 { max-width: 12ch; margin: 26px 0 34px; font-size: clamp(38px, 4.6vw, 58px); letter-spacing: -0.06em; line-height: 0.98; }
.fit-card ul { padding: 0; margin: 0; list-style: none; }
.fit-card li { padding: 13px 0 13px 27px; border-bottom: 1px solid rgba(5, 5, 5, 0.12); font-size: 14px; }
.fit-card li::before { margin-left: -27px; margin-right: 10px; content: "✓"; color: var(--coral-dark); }
.fit-platform li { border-color: rgba(255, 255, 255, 0.13); }
.fit-platform li::before { color: var(--coral); }
.fit-card > a { width: fit-content; margin-top: auto; padding-top: 28px; font-size: 14px; font-weight: 680; text-decoration: none; }

.named-platform-grid { display: grid; gap: 1px; border: 1px solid var(--ink); background: var(--ink); grid-template-columns: repeat(2, 1fr); }
.named-platform-grid article { display: flex; min-height: 350px; padding: clamp(28px, 4vw, 44px); background: #fff; flex-direction: column; }
.named-platform-grid article > span { display: grid; width: 48px; height: 48px; background: var(--soft); border-radius: 13px; font-family: "Geist Mono", monospace; font-size: 11px; font-weight: 720; place-items: center; }
.named-platform-grid h3 { margin: auto 0 14px; font-size: 35px; }
.named-platform-grid p { max-width: 52ch; color: var(--muted); font-size: 13px; line-height: 1.58; }
.named-platform-grid a { width: fit-content; margin-top: 12px; font-size: 12px; font-weight: 680; text-decoration: none; }

.claim-boundary-section { padding-top: 25px; }
.claim-boundary { padding: clamp(38px, 7vw, 86px); background: var(--peach); border-radius: var(--radius-lg); }
.claim-boundary h2 { max-width: 13ch; margin: 18px 0 25px; font-size: clamp(46px, 6vw, 76px); letter-spacing: -0.065em; line-height: 0.96; }
.claim-boundary p { max-width: 69ch; margin: 0; font-size: 17px; line-height: 1.62; }

@media (hover: hover) {
  .stack-app-list a:hover { background: #fff; transform: translateY(-3px); }
  .theme-navy .stack-app-list a:hover { background: rgba(255, 255, 255, 0.17); }
  .outcome-card:hover { background: var(--lime); }
  .outcome-all:hover { background: var(--coral); }
}

@media (max-width: 980px) {
  .platform-page-hero-grid { min-height: auto; grid-template-columns: 1fr; }
  .platform-page-hero h1 { max-width: 12ch; }
  .solution-orbit,
  .compatibility-visual { width: min(100%, 680px); margin-inline: auto; }
  .platform-section-heading { grid-template-columns: 1fr; gap: 20px; }
  .solution-stack { grid-template-columns: minmax(0, 1fr); }
  .outcome-grid { grid-template-columns: repeat(2, 1fr); }
  .compat-logo-rail .site-wrap { justify-content: center; padding: 22px 0; flex-wrap: wrap; }
  .adoption-steps { grid-template-columns: 1fr; }
  .adoption-steps article { min-height: 300px; }
}

@media (max-width: 720px) {
  .platform-page-hero-grid { padding-top: 58px; padding-bottom: 64px; }
  .platform-page-hero h1 { font-size: clamp(51px, 14vw, 72px); }
  .solution-orbit { min-height: 430px; }
  .orbit-core { width: 115px; height: 115px; font-size: 19px; }
  .orbit-node { min-width: 84px; min-height: 40px; padding: 7px 11px; font-size: 10px; }
  .solution-stack { min-height: auto; padding: 32px 24px; }
  .solution-stack-copy { min-height: 390px; }
  .stack-app-list { grid-template-columns: 1fr; }
  .stack-app-list a { min-height: 90px; }
  .outcome-grid,
  .platform-fit-grid,
  .named-platform-grid { grid-template-columns: 1fr; }
  .outcome-card { min-height: 300px; }
  .compatibility-visual { min-height: auto; padding: 28px; grid-template-columns: 1fr; }
  .compat-plus { text-align: center; }
  .compat-system,
  .compat-scale { min-height: 210px; }
  .fit-card { min-height: 500px; }
}

@media (max-width: 480px) {
  .platform-page-hero-grid { width: min(var(--wrap), calc(100% - 24px)); }
  .platform-page-hero h1 { font-size: clamp(47px, 14.2vw, 62px); }
  .solution-orbit { min-height: 350px; }
  .solution-orbit::before { inset: 16%; }
  .orbit-node { min-width: 74px; min-height: 35px; font-size: 8px; }
  .orbit-node.n2 { right: 0; }
  .orbit-node.n3 { right: 1%; }
  .orbit-node.n5 { left: 0; }
  .orbit-node.n6 { left: 0; }
  .platform-section-heading h2 { font-size: clamp(41px, 12vw, 55px); }
  .solution-stack { border-radius: 20px; }
  .solution-stack-copy h3 { font-size: 40px; }
  .compatibility-visual { padding: 18px; border-radius: 20px; }
  .compat-logo-rail span { font-size: 8px; }
  .platform-final-panel { padding: 48px 24px; border-radius: 20px; }
  .platform-final-panel h2 { font-size: 52px; }
  .platform-final-panel .button { width: 100%; }
  .claim-boundary { padding: 42px 24px; border-radius: 20px; }
  .claim-boundary h2 { font-size: 43px; }
}

@media (prefers-reduced-motion: reduce) {
  .stack-app-list a,
  .outcome-card { transition: none; }
}
