:root {
  --ink: #050d13;
  --ink-2: #081721;
  --panel: #0c2029;
  --panel-bright: #112c36;
  --line: rgba(172, 224, 229, 0.2);
  --line-strong: rgba(172, 224, 229, 0.36);
  --text: #eef8f6;
  --muted: #a8bcbe;
  --cyan: #70edf0;
  --cyan-deep: #12939c;
  --amber: #f5bd55;
  --amber-soft: #ffe1a7;
  --max: 1240px;
  color-scheme: dark;
  font-family: "Exo", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 78% 34%, rgba(42, 164, 176, 0.12), transparent 30rem),
    linear-gradient(180deg, #07131b 0%, var(--ink) 60%, #081720 100%);
  line-height: 1.6;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  content: "";
  pointer-events: none;
  opacity: 0.28;
  background-image:
    linear-gradient(rgba(116, 199, 204, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(116, 199, 204, 0.035) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
input {
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 4px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 1rem;
  left: 1rem;
  padding: 0.75rem 1rem;
  color: var(--ink);
  background: var(--cyan);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: none;
}

.hero {
  position: relative;
  min-height: min(900px, 100svh);
  display: grid;
  align-items: center;
  isolation: isolate;
  overflow: hidden;
  background: #0a1720;
}

.hero::before,
.hero::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  content: "";
  pointer-events: none;
}

.hero::before {
  background:
    linear-gradient(90deg, rgba(3, 11, 16, 0.98) 0%, rgba(4, 13, 19, 0.92) 31%, rgba(5, 15, 21, 0.66) 52%, rgba(5, 15, 21, 0.14) 79%),
    linear-gradient(0deg, rgba(4, 12, 17, 0.92) 0%, transparent 35%, rgba(4, 12, 17, 0.2) 100%);
}

.hero::after {
  background: radial-gradient(circle at 29% 52%, rgba(38, 180, 190, 0.16), transparent 31rem);
  mix-blend-mode: screen;
}

.hero-media {
  position: absolute;
  z-index: 0;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 56% center;
  animation: hero-breathe 18s ease-in-out infinite alternate;
}

@keyframes hero-breathe {
  from { transform: scale(1.01); }
  to { transform: scale(1.045); }
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(calc(100% - 2rem), var(--max));
  margin: 0 auto;
  padding: 9rem 0 6rem;
}

.hero-copy {
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 1.1rem;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.73rem;
  font-weight: 780;
}

.eyebrow span {
  display: inline-block;
  width: 2.5rem;
  height: 1px;
  margin: 0 0.7rem 0.25rem 0;
  background: currentColor;
}

h1,
h2,
h3,
p {
  text-wrap: pretty;
}

h1,
h2 {
  margin: 0;
  line-height: 0.98;
  letter-spacing: -0.045em;
}

h1 {
  max-width: 11ch;
  font-size: clamp(4rem, 7.6vw, 7.6rem);
  font-weight: 830;
  text-shadow: 0 6px 30px rgba(0, 0, 0, 0.32);
}

h1 em {
  color: var(--amber);
  font-style: normal;
  font-weight: 590;
}

.hero-lede {
  max-width: 58ch;
  margin: 2rem 0;
  color: #c3d2d2;
  font-size: 1.05rem;
}

.hero-search {
  max-width: 690px;
}

.hero-search > label {
  display: block;
  margin-bottom: 0.55rem;
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 680;
}

.search-shell {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0.45rem;
  border: 1px solid rgba(112, 237, 240, 0.48);
  background: rgba(4, 17, 24, 0.88);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(16px);
}

.search-shell svg {
  position: absolute;
  left: 1.1rem;
  width: 1.2rem;
  fill: none;
  stroke: var(--cyan);
  stroke-width: 1.8;
}

.search-shell input {
  min-width: 0;
  height: 3.35rem;
  flex: 1;
  padding: 0 1rem 0 2.8rem;
  color: var(--text);
  background: transparent;
  border: 0;
  outline: 0;
}

.search-shell input::placeholder {
  color: #7c969a;
}

.search-shell:focus-within {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(98, 231, 237, 0.13), 0 24px 70px rgba(0, 0, 0, 0.42);
}

.search-shell button,
.button-primary {
  min-height: 44px;
  border: 0;
  padding: 1rem 1.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1.4rem;
  color: #071018;
  background: var(--cyan);
  font-weight: 820;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease;
}

.search-shell button:hover,
.button-primary:hover {
  background: #a5f8f6;
  transform: translateY(-2px);
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1rem;
  font-size: 0.78rem;
}

.quick-links span {
  color: #779196;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.quick-links a {
  min-height: 24px;
  color: #c5d3d4;
  border-bottom: 1px solid #5a767a;
}

.quick-links a:hover {
  color: var(--cyan);
}

.hero-status {
  margin-top: 2.3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.hero-status span {
  padding: 0.58rem 0.75rem;
  color: #adc2c3;
  border: 1px solid rgba(204, 235, 237, 0.2);
  background: rgba(5, 17, 23, 0.58);
  backdrop-filter: blur(12px);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.hero-status strong {
  margin-right: 0.28rem;
  color: var(--amber-soft);
  font-size: 0.76rem;
}

.scroll-cue {
  position: absolute;
  z-index: 2;
  right: max(1rem, calc((100% - var(--max)) / 2));
  bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: rgba(228, 244, 243, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.62rem;
}

.scroll-cue i {
  width: 3.5rem;
  height: 1px;
  display: block;
  overflow: hidden;
  background: rgba(230, 246, 246, 0.25);
}

.scroll-cue i::after {
  width: 48%;
  height: 100%;
  display: block;
  content: "";
  background: var(--cyan);
  animation: scroll-line 2.4s ease-in-out infinite;
}

@keyframes scroll-line {
  0%, 100% { transform: translateX(-110%); }
  50% { transform: translateX(220%); }
}

.proof-strip {
  padding: 1.55rem max(1rem, calc((100% - var(--max)) / 2));
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2rem;
  color: var(--ink);
  background: var(--amber);
}

.proof-strip div {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  white-space: nowrap;
}

.proof-strip strong {
  font-size: 2rem;
  line-height: 1;
}

.proof-strip span {
  font-size: 0.74rem;
  font-weight: 820;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.proof-strip p {
  max-width: 58ch;
  margin: 0;
  font-size: 0.85rem;
  font-weight: 620;
}

.proof-strip a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 820;
  text-decoration: underline;
  text-underline-offset: 0.2rem;
}

.section-wrap {
  width: min(calc(100% - 2rem), var(--max));
  margin: 0 auto;
  padding: 8rem 0;
}

h2 {
  max-width: 14ch;
  font-size: clamp(2.7rem, 5vw, 5rem);
  font-weight: 770;
}

.story-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
  align-items: center;
  gap: clamp(3rem, 8vw, 8rem);
}

.story-copy > p:not(.eyebrow),
.feature-copy > p:not(.eyebrow),
.defense-copy > p:not(.eyebrow) {
  max-width: 58ch;
  margin: 1.6rem 0;
  color: var(--muted);
}

.signal-list {
  margin: 2rem 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
  list-style: none;
}

.signal-list li {
  position: relative;
  padding-left: 1.5rem;
  color: #c6d5d5;
  font-size: 0.86rem;
}

.signal-list li::before {
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 0.55rem;
  height: 1px;
  content: "";
  background: var(--amber);
  box-shadow: 0 0 12px var(--amber);
}

.text-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  color: var(--cyan);
  font-size: 0.82rem;
  font-weight: 780;
}

.text-link:hover {
  color: #b7fbf9;
}

.media-card {
  --rx: 0deg;
  --ry: 0deg;
  position: relative;
  margin: 0;
  overflow: hidden;
  color: var(--text);
  border: 1px solid var(--line-strong);
  background: #07151c;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.32);
  transform: perspective(1000px) rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.media-card::before {
  position: absolute;
  z-index: 2;
  inset: 0;
  content: "";
  pointer-events: none;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.16), transparent 24%, transparent 72%, rgba(98, 231, 237, 0.08));
}

.media-card img {
  width: 100%;
  height: auto;
  transition: transform 500ms cubic-bezier(0.22, 1, 0.36, 1), filter 300ms ease;
}

.media-card figcaption {
  min-height: 58px;
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--muted);
  background: rgba(5, 17, 23, 0.96);
  border-top: 1px solid var(--line);
  font-size: 0.72rem;
}

.media-card figcaption span {
  color: var(--amber);
  text-transform: uppercase;
  letter-spacing: 0.11em;
  font-size: 0.62rem;
  font-weight: 800;
}

.pals-story {
  position: relative;
  width: min(100%, 580px);
  justify-self: end;
  isolation: isolate;
}

.pals-story-chrome {
  position: relative;
  z-index: 3;
  width: min(100%, 458px);
  margin: 0 0 1rem auto;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}

.pals-story-chrome > p {
  max-width: 19ch;
  margin: 0;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.35;
}

.pals-story-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.3rem;
}

.pals-story-tabs button {
  min-height: 34px;
  padding: 0.35rem 0.48rem;
  color: #aabfc1;
  border: 1px solid transparent;
  background: transparent;
  font: inherit;
  font-size: 0.64rem;
  font-weight: 790;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

.pals-story-tabs button[aria-selected="true"] {
  color: var(--cyan);
  border-color: rgba(112, 237, 240, 0.32);
  background: rgba(112, 237, 240, 0.08);
}

.pals-story-panels {
  position: relative;
  z-index: 2;
  display: grid;
  justify-content: end;
  gap: 1rem;
}

.pals-story-panel {
  width: min(100%, var(--media-width));
  margin-left: auto;
}

.pals-story.is-enhanced .pals-story-panels {
  position: relative;
  min-height: 342px;
  display: block;
}

.pals-story.is-enhanced .pals-story-panel {
  position: absolute;
  right: 0;
  bottom: 0;
  margin: 0;
}

.pals-story-ambient {
  display: none;
}

.pals-story.is-enhanced .pals-story-ambient {
  position: absolute;
  z-index: 1;
  top: 4.5rem;
  right: 0;
  bottom: 0;
  left: 0;
  display: block;
  pointer-events: none;
}

.pals-story-secondary {
  position: absolute;
  overflow: hidden;
  opacity: 0.82;
  filter: saturate(0.84) brightness(0.86);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.26);
}

.pals-story-secondary-work {
  top: 1.5rem;
  left: 0;
  width: min(100%, 248px);
  transform: rotate(-4deg);
}

.pals-story-secondary-base {
  bottom: 0.5rem;
  left: 6.4rem;
  width: min(100%, 220px);
  transform: rotate(3deg);
}

.pals-story-secondary::before {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), transparent 25%, rgba(5, 17, 23, 0.22));
}

.pals-story::after {
  position: absolute;
  z-index: -1;
  top: 2rem;
  right: -2.5rem;
  width: 9rem;
  aspect-ratio: 1;
  content: "";
  border: 1px solid rgba(98, 231, 237, 0.22);
  border-radius: 50%;
}

.media-glow {
  position: absolute;
  z-index: -1;
  inset: -3rem;
  background: radial-gradient(circle, rgba(98, 231, 237, 0.25), transparent 65%);
  filter: blur(20px);
}

.section-heading {
  margin-bottom: 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  gap: 2rem;
}

.section-heading .eyebrow {
  grid-column: 1 / -1;
  margin-bottom: -1rem;
}

.section-heading > p:last-child {
  max-width: 54ch;
  margin: 0 0 0.35rem;
  color: var(--muted);
}

.path-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.path-card {
  position: relative;
  min-height: 330px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(9, 27, 36, 0.35);
  transition: background 200ms ease, transform 200ms ease, border-color 200ms ease;
}

.path-card-map {
  background: linear-gradient(150deg, rgba(19, 72, 79, 0.36), rgba(9, 27, 36, 0.45));
}

.path-index {
  color: #617e82;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
}

.path-icon {
  width: 3.3rem;
  aspect-ratio: 1;
  margin: 2.1rem 0 2rem;
  display: grid;
  place-items: center;
  color: var(--cyan);
  border: 1px solid rgba(98, 231, 237, 0.35);
  border-radius: 50%;
  font-size: 1.5rem;
}

.path-card h3 {
  margin: 0 0 0.7rem;
  font-size: 1.2rem;
}

.path-card p {
  margin: 0 0 2rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.path-card strong {
  margin-top: auto;
  color: var(--cyan);
  font-size: 0.78rem;
}

.feature-stage {
  position: relative;
  width: min(calc(100% - 2rem), 1380px);
  margin: 1rem auto 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 48%, rgba(39, 166, 176, 0.18), transparent 24rem),
    #0c2029;
  border-block: 1px solid var(--line);
}

.feature-stage-inner {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 2.5rem), var(--max));
  margin: 0 auto;
  padding: 7rem 0;
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(480px, 1.15fr);
  align-items: center;
  gap: clamp(3rem, 7vw, 7rem);
}

.feature-stage::after {
  position: absolute;
  right: 3%;
  bottom: -10rem;
  width: 27rem;
  aspect-ratio: 1;
  content: "";
  border: 1px solid rgba(98, 231, 237, 0.13);
  border-radius: 50%;
  box-shadow: 0 0 0 3rem rgba(98, 231, 237, 0.025), 0 0 0 7rem rgba(98, 231, 237, 0.018);
  pointer-events: none;
}

.feature-copy {
  position: relative;
  z-index: 2;
}

.feature-copy h2 {
  margin-bottom: 1.5rem;
}

.feature-list {
  margin: 2rem 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.feature-list li {
  padding: 1.15rem 0;
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
}

.feature-list li > span {
  color: var(--amber);
  font-size: 0.7rem;
}

.feature-list strong {
  font-size: 0.92rem;
}

.feature-list p {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.visual-stack {
  position: relative;
  z-index: 2;
  min-height: 510px;
}

.media-card-automation {
  position: absolute;
  top: 1.5rem;
  left: 0;
  width: min(100%, 387px);
}

.media-card-farming {
  position: absolute;
  right: 0;
  bottom: 1.5rem;
  width: min(82%, 370px);
}

.visual-rail {
  position: absolute;
  z-index: -1;
  top: 7%;
  right: 12%;
  bottom: 8%;
  left: 13%;
  border: 1px solid rgba(98, 231, 237, 0.18);
  transform: skewY(-6deg);
}

.visual-rail span {
  position: absolute;
  width: 0.45rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 18px var(--amber);
}

.visual-rail span:nth-child(1) { top: -0.25rem; left: 20%; }
.visual-rail span:nth-child(2) { top: 48%; right: -0.25rem; background: var(--cyan); box-shadow: 0 0 18px var(--cyan); }
.visual-rail span:nth-child(3) { bottom: -0.25rem; left: 34%; }

.defense-stage {
  display: grid;
  grid-template-columns: minmax(480px, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: clamp(3rem, 7vw, 7rem);
}

.defense-visuals {
  position: relative;
  min-height: 520px;
}

.media-card-defense {
  position: absolute;
  top: 0;
  left: 0;
  width: min(100%, 380px);
}

.media-card-squad {
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(82%, 385px);
}

.defense-visuals::before {
  position: absolute;
  top: 8%;
  right: 8%;
  bottom: 12%;
  left: 8%;
  content: "";
  border: 1px solid rgba(242, 184, 75, 0.2);
  background:
    linear-gradient(rgba(242, 184, 75, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(242, 184, 75, 0.035) 1px, transparent 1px);
  background-size: 26px 26px;
  transform: rotate(2deg);
}

.defense-actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.4rem;
}

.coverage {
  padding-top: 3rem;
  padding-bottom: 5rem;
}

.coverage > div:first-child {
  margin-bottom: 3rem;
  display: flex;
  align-items: end;
  justify-content: space-between;
}

.coverage-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.coverage article {
  min-height: 250px;
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  background: rgba(11, 30, 39, 0.58);
}

.coverage h3 {
  margin: 3rem 0 0.6rem;
}

.coverage article p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.coverage article a {
  min-height: 44px;
  margin-top: auto;
  display: inline-flex;
  align-items: end;
  color: var(--cyan);
  font-size: 0.76rem;
  font-weight: 760;
}

.coverage-state {
  align-self: flex-start;
  padding: 0.3rem 0.5rem;
  font-size: 0.64rem;
  font-weight: 820;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.coverage-state.available {
  color: #092127;
  background: var(--cyan);
}

.coverage-state.next {
  color: var(--amber-soft);
  border: 1px solid rgba(242, 184, 75, 0.42);
}

.coverage-note {
  margin: 1rem 0 0;
  padding: 1rem 1.2rem;
  color: #b8c9ca;
  background: rgba(242, 184, 75, 0.08);
  border-left: 2px solid var(--amber);
  font-size: 0.8rem;
}

.final-cta {
  margin-bottom: 5rem;
  padding: 4rem;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: end;
  gap: 3rem;
  color: var(--ink);
  background:
    radial-gradient(circle at 85% 10%, rgba(255, 255, 255, 0.34), transparent 18rem),
    var(--amber);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.24);
}

.final-cta .eyebrow {
  color: #564010;
}

.final-cta p:not(.eyebrow) {
  max-width: 45ch;
  margin: 0 0 1.6rem;
  font-weight: 640;
}

.final-cta .button-primary {
  color: var(--text);
  background: var(--ink);
}

.tools-section {
  padding-top: 3.5rem;
  padding-bottom: 4.5rem;
}

.tools-heading {
  max-width: 42rem;
  margin-bottom: 2.4rem;
}

.tools-heading h2 {
  max-width: none;
  margin: 0.7rem 0 0;
}

.tools-heading > p:last-child {
  max-width: 60ch;
  margin: 1rem 0 0;
  color: var(--muted);
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.tool-card {
  min-width: 0;
  overflow: hidden;
  color: inherit;
  background: linear-gradient(150deg, rgba(17, 48, 58, 0.92), rgba(6, 18, 26, 0.98));
  border: 1px solid var(--line);
  border-top: 2px solid var(--line-strong);
  box-shadow: 0 16px 42px rgba(0, 6, 10, 0.2);
  text-decoration: none;
}

.tool-card-visual {
  position: relative;
  display: block;
  height: clamp(7.75rem, 10vw, 9rem);
  overflow: hidden;
  isolation: isolate;
  background: #0a1b22;
}

.tool-card-visual::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(3, 11, 16, 0.03), rgba(3, 11, 16, 0.8));
}

.tool-scene {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.84) contrast(1.05);
  transform: scale(1.03);
}

.tool-card-copy {
  display: grid;
  min-height: 8.75rem;
  padding: 1rem 1rem 1.05rem;
  align-content: start;
}

.tool-card-copy > strong {
  font-size: clamp(1.28rem, 1.7vw, 1.55rem);
  letter-spacing: -0.045em;
  line-height: 1;
}

.tool-card-copy > span {
  margin-top: 0.6rem;
  color: var(--muted);
  font-size: 0.83rem;
  line-height: 1.42;
}

.tool-card-copy > b {
  margin-top: auto;
  padding-top: 0.8rem;
  color: var(--cyan);
  font-size: 0.72rem;
  font-weight: 780;
  letter-spacing: 0.02em;
}

.tool-card-copy > b i {
  display: inline-block;
  margin-left: 0.35rem;
  font-style: normal;
  transition: transform 180ms ease;
}

.tool-card-visual--breeding::before,
.tool-card-visual--tier::before,
.tool-card-visual--items::before,
.tool-card-visual--capture::before,
.tool-card-visual--technology::before {
  position: absolute;
  z-index: 0;
  inset: 0;
  content: "";
}

.tool-card-visual--breeding::before {
  background: linear-gradient(90deg, rgba(3, 13, 16, 0.1), rgba(3, 13, 16, 0.62));
}

.tool-accent,
.tool-item,
.tool-capture-sphere,
.tool-tech-book,
.tool-pal,
.tool-ranks {
  position: absolute;
  z-index: 2;
  pointer-events: none;
}

.tool-accent--egg {
  right: 0.85rem;
  bottom: 0.45rem;
  width: 3.7rem;
  filter: drop-shadow(0 12px 10px rgba(0, 0, 0, 0.45));
  transform: rotate(8deg);
}

.tool-card-visual--tier {
  background: radial-gradient(circle at 45% 42%, rgba(81, 184, 188, 0.3), transparent 35%), #091a22;
}

.tool-pal {
  bottom: -1.35rem;
  width: 7.2rem;
  filter: drop-shadow(0 12px 10px rgba(0, 0, 0, 0.45));
}

.tool-pal--anubis { left: 8%; transform: rotate(-6deg); }
.tool-pal--jetragon { left: 35%; z-index: 3; width: 8rem; }
.tool-pal--grizzbolt { right: 5%; transform: rotate(6deg); }

.tool-ranks {
  right: 0.8rem;
  top: 0.7rem;
  display: flex;
  align-items: flex-start;
  gap: 0.24rem;
}

.tool-ranks b {
  display: grid;
  width: 1.65rem;
  height: 1.65rem;
  place-items: center;
  color: var(--ink);
  background: var(--amber);
  border-radius: 0.2rem;
  box-shadow: 0 7px 14px rgba(0, 0, 0, 0.28);
  font-size: 0.65rem;
}

.tool-ranks b:nth-child(2) { height: 1.4rem; background: #bed5d6; }
.tool-ranks b:nth-child(3) { height: 1.15rem; background: #c98d5d; }

.tool-card-visual--items {
  background:
    radial-gradient(circle at 22% 76%, rgba(242, 184, 75, 0.22), transparent 24%),
    radial-gradient(circle at 75% 28%, rgba(98, 231, 237, 0.2), transparent 32%),
    linear-gradient(135deg, #122b32, #07141d);
}

.tool-card-visual--items::before {
  background-image: linear-gradient(rgba(132, 220, 224, 0.09) 1px, transparent 1px), linear-gradient(90deg, rgba(132, 220, 224, 0.09) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.55;
}

.tool-item {
  width: 3.45rem;
  filter: drop-shadow(0 12px 9px rgba(0, 0, 0, 0.42));
}

.tool-item--sphere { right: 10%; bottom: 0.35rem; width: 4.1rem; transform: rotate(9deg); }
.tool-item--ingot { left: 14%; bottom: 0.75rem; transform: rotate(-12deg); }
.tool-item--cake { left: 39%; top: 0.5rem; width: 3.1rem; transform: rotate(-7deg); }
.tool-item--book { right: 34%; top: 0.25rem; width: 3.35rem; transform: rotate(12deg); }

.tool-card-visual--capture {
  background: radial-gradient(circle at 52% 45%, rgba(98, 231, 237, 0.22), transparent 29%), linear-gradient(135deg, #102c34, #07151f);
}

.tool-card-visual--capture::before {
  background-image: radial-gradient(rgba(112, 237, 240, 0.38) 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0.5;
}

.tool-capture-sphere {
  left: 50%;
  bottom: -1.2rem;
  width: 8.1rem;
  filter: drop-shadow(0 14px 14px rgba(0, 0, 0, 0.5));
  transform: translateX(-50%) rotate(-8deg);
}

.tool-card-visual--technology {
  background: radial-gradient(circle at 46% 46%, rgba(98, 231, 237, 0.16), transparent 36%), #0a1a24;
}

.tool-card-visual--technology::before {
  background: linear-gradient(120deg, transparent 20%, rgba(98, 231, 237, 0.16) 20.5%, transparent 21%), linear-gradient(60deg, transparent 52%, rgba(242, 184, 75, 0.16) 52.5%, transparent 53%);
}

.tool-tech-grid {
  position: absolute;
  z-index: 1;
  inset: 0;
  background-image: radial-gradient(circle, rgba(112, 237, 240, 0.7) 2px, transparent 2.5px);
  background-size: 28px 28px;
  mask-image: linear-gradient(90deg, transparent, #000 26%, #000 74%, transparent);
  opacity: 0.52;
}

.tool-tech-book {
  left: 50%;
  bottom: -0.65rem;
  width: 6.2rem;
  filter: drop-shadow(0 14px 12px rgba(0, 0, 0, 0.5));
  transform: translateX(-50%) rotate(-5deg);
}

@media (prefers-reduced-motion: no-preference) {
  .tool-card {
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
  }

  .tool-card:hover {
    border-color: rgba(112, 237, 240, 0.6);
    box-shadow: 0 22px 52px rgba(0, 5, 8, 0.38);
    transform: translateY(-3px);
  }

  .tool-card:hover .tool-card-copy > b i,
  .tool-card:focus-visible .tool-card-copy > b i {
    transform: translateX(4px);
  }
}

/* ── Hub: 9-card section grid ── */

.hub {
  padding-top: 4.5rem;
  padding-bottom: 6rem;
}

.hub-heading {
  max-width: 46rem;
  margin-bottom: 2.8rem;
}

.hub-heading h2 {
  max-width: none;
  margin: 0.7rem 0 0;
}

.hub-heading > p:last-child {
  max-width: 58ch;
  margin: 0.9rem 0 0;
  color: var(--muted);
}

.hub-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
}

.hub-card {
  min-width: 0;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  background: linear-gradient(155deg, rgba(17, 48, 58, 0.92), rgba(6, 18, 26, 0.98));
  border: 1px solid var(--line);
  border-top: 2px solid var(--line-strong);
  box-shadow: 0 16px 42px rgba(0, 6, 10, 0.2);
}

.hub-card__visual {
  position: relative;
  display: block;
  height: clamp(8.5rem, 11vw, 10rem);
  overflow: hidden;
  isolation: isolate;
  background: #0a1b22;
}

.hub-card__visual::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(3, 11, 16, 0.03), rgba(3, 11, 16, 0.78));
  pointer-events: none;
}

.hub-scene {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.82) contrast(1.06);
  transform: scale(1.04);
}

.hub-card__body {
  display: grid;
  min-height: 8.5rem;
  padding: 1.05rem 1.1rem 1.1rem;
  align-content: start;
}

.hub-card__body > strong {
  font-size: clamp(1.22rem, 1.6vw, 1.48rem);
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.hub-card__body > p {
  margin: 0.55rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.44;
}

.hub-card__body > b {
  margin-top: auto;
  padding-top: 0.85rem;
  color: var(--cyan);
  font-size: 0.71rem;
  font-weight: 780;
  letter-spacing: 0.02em;
}

.hub-card__body > b i {
  display: inline-block;
  margin-left: 0.35rem;
  font-style: normal;
  transition: transform 180ms ease;
}

/* ── Visual: Pal Explorer ── */

.hub-card__visual--pals {
  background:
    radial-gradient(circle at 34% 48%, rgba(98, 231, 237, 0.22), transparent 42%),
    radial-gradient(circle at 74% 38%, rgba(242, 184, 75, 0.14), transparent 34%),
    linear-gradient(135deg, #0b1f29, #07141d);
}

.hub-accent {
  position: absolute;
  z-index: 2;
  pointer-events: none;
  filter: drop-shadow(0 14px 12px rgba(0, 0, 0, 0.48));
}

.hub-accent--anubis {
  left: 50%;
  bottom: -1rem;
  width: 7.4rem;
  transform: translateX(-56%);
  z-index: 3;
}

.hub-accent--jetragon {
  left: 8%;
  bottom: -1.1rem;
  width: 5.2rem;
  transform: rotate(-9deg);
}

.hub-accent--lamball {
  right: 8%;
  bottom: -0.9rem;
  width: 4rem;
  transform: rotate(8deg);
}

/* ── Visual: TCG ── */

.hub-card__visual--tcg {
  background:
    radial-gradient(circle at 48% 44%, rgba(98, 231, 237, 0.16), transparent 40%),
    linear-gradient(145deg, #0f2630, #07141d);
  display: grid;
  place-items: center;
}

.hub-tcg-card {
  position: relative;
  z-index: 2;
  width: 5.2rem;
  aspect-ratio: 2.5 / 3.5;
  border-radius: 0.3rem;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.52);
  transform: rotate(-4deg);
}

.hub-tcg-card__inner {
  width: 100%;
  height: 100%;
  background:
    linear-gradient(135deg, rgba(98, 231, 237, 0.6), rgba(98, 231, 237, 0.08)),
    repeating-linear-gradient(45deg, transparent, transparent 8px, rgba(255, 255, 255, 0.04) 8px, rgba(255, 255, 255, 0.04) 9px);
  border: 2px solid rgba(112, 237, 240, 0.5);
  border-radius: 0.3rem;
}

.hub-tcg-card__back {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
  mix-blend-mode: overlay;
}

/* ── Visual: Items ── */

.hub-card__visual--items {
  background:
    radial-gradient(circle at 22% 76%, rgba(242, 184, 75, 0.22), transparent 26%),
    radial-gradient(circle at 76% 28%, rgba(98, 231, 237, 0.2), transparent 34%),
    linear-gradient(135deg, #122b32, #07141d);
}

.hub-card__visual--items::before {
  position: absolute;
  z-index: 0;
  inset: 0;
  content: "";
  background-image:
    linear-gradient(rgba(132, 220, 224, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(132, 220, 224, 0.09) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.5;
}

.hub-item {
  position: absolute;
  z-index: 2;
  width: 3.45rem;
  pointer-events: none;
  filter: drop-shadow(0 12px 9px rgba(0, 0, 0, 0.42));
}

.hub-item--sphere { right: 8%; bottom: 0.35rem; width: 4.1rem; transform: rotate(9deg); }
.hub-item--ingot { left: 12%; bottom: 0.65rem; transform: rotate(-12deg); }
.hub-item--cake { left: 38%; top: 0.5rem; width: 3.1rem; transform: rotate(-7deg); }
.hub-item--book { right: 32%; top: 0.2rem; width: 3.35rem; transform: rotate(12deg); }

/* ── Visual: Structures ── */

.hub-card__visual--structures {
  background: #0d1f28;
}

/* ── Visual: Breeding ── */

.hub-card__visual--breeding {
  background: #0a1a20;
}

.hub-card__visual--breeding::before {
  position: absolute;
  z-index: 0;
  inset: 0;
  content: "";
  background: linear-gradient(85deg, rgba(3, 11, 14, 0.05), rgba(3, 11, 14, 0.55));
}

.hub-accent--egg {
  right: 0.75rem;
  bottom: 0.3rem;
  width: 3.8rem;
  transform: rotate(10deg);
}

/* ── Visual: Technology Tree ── */

.hub-card__visual--tech {
  background:
    radial-gradient(circle at 46% 44%, rgba(98, 231, 237, 0.18), transparent 40%),
    #0a1a24;
}

.hub-card__visual--tech::before {
  position: absolute;
  z-index: 0;
  inset: 0;
  content: "";
  background:
    linear-gradient(120deg, transparent 20%, rgba(98, 231, 237, 0.14) 20.5%, transparent 21%),
    linear-gradient(60deg, transparent 52%, rgba(242, 184, 75, 0.14) 52.5%, transparent 53%);
}

.hub-tech-grid {
  position: absolute;
  z-index: 1;
  inset: 0;
  background-image: radial-gradient(circle, rgba(112, 237, 240, 0.65) 2px, transparent 2.5px);
  background-size: 28px 28px;
  mask-image: linear-gradient(90deg, transparent, #000 22%, #000 78%, transparent);
  opacity: 0.48;
}

.hub-accent--techbook {
  left: 50%;
  bottom: -0.5rem;
  width: 5.6rem;
  transform: translateX(-50%) rotate(-5deg);
}

/* ── Visual: Map ── */

.hub-card__visual--map {
  background: #0c1b24;
}

/* ── Visual: Capture Lab ── */

.hub-card__visual--capture {
  background:
    radial-gradient(circle at 52% 44%, rgba(98, 231, 237, 0.24), transparent 32%),
    linear-gradient(135deg, #102c34, #07151f);
}

.hub-card__visual--capture::before {
  position: absolute;
  z-index: 0;
  inset: 0;
  content: "";
  background-image: radial-gradient(rgba(112, 237, 240, 0.35) 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0.5;
}

.hub-capture-rings {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  width: 10rem;
  aspect-ratio: 1;
  border: 1px solid rgba(112, 237, 240, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 1.6rem rgba(112, 237, 240, 0.04), 0 0 0 3.5rem rgba(112, 237, 240, 0.02);
}

.hub-accent--sphere {
  left: 50%;
  bottom: -1.1rem;
  width: 8rem;
  z-index: 2;
  transform: translateX(-50%) rotate(-8deg);
}

/* ── Visual: Team Builder ── */

.hub-card__visual--squad {
  background: #0b1b26;
}

.hub-squad-ranks {
  position: absolute;
  z-index: 2;
  right: 0.7rem;
  top: 0.6rem;
  display: flex;
  align-items: flex-start;
  gap: 0.22rem;
  pointer-events: none;
}

.hub-squad-ranks b {
  display: grid;
  width: 1.55rem;
  height: 1.55rem;
  place-items: center;
  color: var(--ink);
  background: var(--amber);
  border-radius: 0.18rem;
  box-shadow: 0 7px 14px rgba(0, 0, 0, 0.28);
  font-size: 0.62rem;
}

.hub-squad-ranks b:nth-child(2) { height: 1.3rem; background: #bed5d6; }
.hub-squad-ranks b:nth-child(3) { height: 1.05rem; background: #c98d5d; }

/* ── Hub card hover ── */

@media (prefers-reduced-motion: no-preference) {
  .hub-card {
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 200ms ease;
  }

  .hub-card:hover {
    border-color: rgba(112, 237, 240, 0.58);
    border-top-color: var(--cyan);
    box-shadow: 0 22px 54px rgba(0, 5, 8, 0.42);
    transform: translateY(-3px);
  }

  .hub-card:hover .hub-card__body > b i,
  .hub-card:focus-visible .hub-card__body > b i {
    transform: translateX(4px);
  }

  .hub-card:hover .hub-card__body > strong {
    color: var(--cyan);
  }
}

/* ── Hub responsive ── */

@media (max-width: 900px) {
  .hub-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hub-card__visual {
    height: 9.5rem;
  }
}

@media (max-width: 560px) {
  .hub {
    padding-top: 3rem;
    padding-bottom: 4rem;
  }

  .hub-grid {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }

  .hub-card__visual {
    height: 10rem;
  }

  .hub-card__body {
    min-height: 0;
  }
}

.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
}

.reveal-ready [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

@media (hover: hover) and (pointer: fine) {
  .path-card:hover {
    z-index: 2;
    background: #102a34;
    border-color: rgba(98, 231, 237, 0.38);
    transform: translateY(-5px);
  }

  .media-card:hover {
    border-color: rgba(112, 237, 240, 0.56);
    box-shadow: 0 34px 80px rgba(0, 0, 0, 0.42);
  }

  .media-card:hover img {
    filter: saturate(1.06) contrast(1.03);
  }
}

@media (min-width: 821px) and (max-width: 1319px) {
  .pals-story::after {
    right: 0;
  }
}

@media (min-width: 561px) and (max-width: 635px) {
  .pals-story::after {
    right: 0;
  }
}

@media (max-width: 1100px) {
  .path-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-stage-inner,
  .defense-stage {
    grid-template-columns: 1fr;
  }

  .feature-stage-inner {
    width: min(calc(100% - 6rem), var(--max));
  }

  .visual-stack,
  .defense-visuals {
    width: min(100%, 720px);
    min-height: 500px;
  }

  .defense-copy {
    grid-row: 1;
  }
}

@media (max-width: 820px) {
  .hero {
    min-height: 820px;
    align-items: end;
  }

  .hero::before {
    background:
      linear-gradient(90deg, rgba(3, 11, 16, 0.82), rgba(3, 11, 16, 0.32)),
      linear-gradient(0deg, rgba(3, 11, 16, 0.98) 0%, rgba(3, 11, 16, 0.88) 46%, rgba(3, 11, 16, 0.12) 84%);
  }

  .hero-media img {
    object-position: center;
  }

  .hero-inner {
    padding-top: 10rem;
    padding-bottom: 4.5rem;
  }

  h1 {
    font-size: clamp(3.6rem, 14vw, 6rem);
  }

  .scroll-cue {
    display: none;
  }

  .proof-strip {
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }

  .proof-strip p {
    display: none;
  }

  .story-section {
    grid-template-columns: 1fr;
  }

  .pals-story {
    justify-self: start;
  }

  .pals-story-chrome,
  .pals-story-panel {
    margin-left: 0;
  }

  .pals-story-panels {
    justify-content: start;
  }

  .pals-story.is-enhanced .pals-story-panel {
    right: auto;
    left: 0;
  }

  .pals-story.is-enhanced .pals-story-ambient {
    right: 0;
    left: 6.5rem;
  }

  .pals-story-secondary-work {
    right: 0;
    left: auto;
  }

  .pals-story-secondary-base {
    right: 2.7rem;
    left: auto;
  }

  .section-wrap {
    padding: 5.5rem 0;
  }

  .section-heading {
    grid-template-columns: 1fr;
  }

  .section-heading .eyebrow {
    margin-bottom: -0.5rem;
  }

  .feature-stage-inner {
    width: min(calc(100% - 2.4rem), var(--max));
    padding: 5.5rem 0;
    gap: 3rem;
  }

  .coverage {
    padding-top: 2rem;
  }

  .coverage-grid {
    grid-template-columns: 1fr;
  }

  .tools-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .coverage article {
    min-height: 220px;
  }

  .final-cta {
    padding: 2.5rem;
    grid-template-columns: 1fr;
  }

}

@media (max-width: 560px) {
  .hero-inner,
  .section-wrap {
    width: min(calc(100% - 1.25rem), var(--max));
  }

  .hero {
    min-height: 760px;
  }

  .hero-inner {
    padding-bottom: 3rem;
  }

  .hero-lede {
    margin: 1.4rem 0;
    font-size: 0.94rem;
  }

  .search-shell {
    align-items: stretch;
    flex-direction: column;
  }

  .search-shell svg {
    top: 1.5rem;
  }

  .search-shell input {
    width: 100%;
    flex: none;
  }

  .search-shell button {
    width: 100%;
  }

  .hero-status {
    margin-top: 1.3rem;
  }

  .hero-status span {
    width: 100%;
  }

  .path-grid {
    grid-template-columns: 1fr;
  }

  .tools-section {
    padding-top: 2rem;
    padding-bottom: 3rem;
  }

  .tools-grid {
    grid-template-columns: 1fr;
  }

  .tool-card-visual {
    height: 9rem;
  }

  .tool-card-copy {
    min-height: 0;
  }

  .path-card {
    min-height: 280px;
  }

  .visual-stack,
  .defense-visuals {
    min-height: auto;
    display: grid;
    gap: 1rem;
  }

  .pals-story,
  .pals-story-chrome,
  .pals-story-panels {
    width: 100%;
    max-width: 100%;
  }

  .pals-story-chrome {
    align-items: start;
    flex-direction: column;
  }

  .pals-story-tabs {
    justify-content: start;
  }

  .pals-story.is-enhanced .pals-story-panels {
    min-height: 274px;
    overflow: hidden;
  }

  .pals-story.is-enhanced .pals-story-panel {
    left: 0;
    right: auto;
    width: 100%;
    max-width: 100%;
  }

  .pals-story.is-enhanced .pals-story-panel .media-card {
    width: 100%;
    max-width: 100%;
  }

  .media-card-automation,
  .media-card-farming,
  .media-card-defense,
  .media-card-squad {
    position: relative;
    inset: auto;
  }

  .media-card-farming,
  .media-card-squad {
    justify-self: end;
  }

  .pals-story.is-enhanced {
    min-height: auto;
  }

  .pals-story.is-enhanced .pals-story-panels {
    min-height: 274px;
  }

  .pals-story.is-enhanced .pals-story-ambient {
    display: none;
  }

  .pals-story::after {
    display: none;
  }

  .visual-rail,
  .defense-visuals::before {
    display: none;
  }

  .coverage > div:first-child {
    display: block;
  }

  .final-cta {
    width: calc(100% - 1.25rem);
    padding: 2rem;
  }

}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal-ready [data-reveal],
  .reveal-ready [data-reveal].is-visible,
  .media-card {
    opacity: 1;
    transform: none;
  }
}

/* Focused launcher */
body.app-chrome-page {
  background-color: #07131c;
  background-image:
    linear-gradient(rgba(4, 14, 20, 0.84), rgba(4, 14, 20, 0.94)),
    url("../../../Image/Landing/home-cards/home-background.webp?v=20260804p1");
  background-position: center, center;
  background-size: cover, cover;
  background-attachment: fixed;
}

.hub {
  width: min(calc(100% - 2rem), 1100px);
  margin-inline: auto;
  padding-top: clamp(1rem, 3vw, 2.5rem);
  padding-bottom: clamp(4rem, 8vw, 7rem);
}

.hub-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.1rem, 2.5vw, 2rem);
}

.hub-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  color: var(--text);
  background: linear-gradient(155deg, rgba(17, 48, 58, 0.96), rgba(6, 18, 26, 0.98));
  border: 1px solid var(--line);
  border-top: 2px solid var(--line-strong);
  border-radius: 0.35rem;
  box-shadow: 0 16px 42px rgba(0, 6, 10, 0.32);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.hub-card__visual {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  height: auto;
  overflow: hidden;
  isolation: isolate;
  background: #0a1b22;
}

.hub-card__visual::after {
  background: linear-gradient(180deg, rgba(3, 11, 16, 0.02), rgba(3, 11, 16, 0.58));
}

.hub-card__visual > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.04);
  transition: filter 180ms ease, transform 180ms ease;
}

.hub-card__label {
  display: flex;
  min-height: 3.8rem;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  color: var(--text);
  background: rgb(5 20 29 / 65%);
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  font-weight: 760;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.hub-card__label::after {
  margin-left: auto;
  color: var(--cyan);
  content: "↗";
  font-size: 1.05em;
  font-weight: 500;
  transition: transform 180ms ease;
}

.hub-card:hover,
.hub-card:focus-visible {
  border-color: rgba(112, 237, 240, 0.72);
  border-top-color: var(--cyan);
  box-shadow: 0 22px 54px rgba(0, 5, 8, 0.48);
}

.hub-card:hover {
  transform: translateY(-3px);
}

.hub-card:hover .hub-card__visual > img {
  filter: saturate(1.04) contrast(1.06);
  transform: scale(1.035);
}

.hub-card:hover .hub-card__label,
.hub-card:focus-visible .hub-card__label {
  color: var(--cyan);
}

.hub-card:hover .hub-card__label::after,
.hub-card:focus-visible .hub-card__label::after {
  transform: translate(0.2rem, -0.2rem);
}

.hub-card:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 5px;
}

/* Landing cards use a roomier corner frame than compact application controls. */
body.app-chrome-page main#main .hub-grid .hub-card.app-interactive-corners > .app-interaction-frame {
  inset: -0.65rem;
}

body.app-chrome-page main#main .hub-grid .hub-card.app-interactive-corners > .app-interaction-frame i {
  width: 1.05rem;
  height: 1.05rem;
}

body.app-chrome-page main#main .hub-grid .hub-card.app-interactive-corners > .app-interaction-frame i:nth-child(1),
body.app-chrome-page main#main .hub-grid .hub-card.app-interactive-corners > .app-interaction-frame i:nth-child(2),
body.app-chrome-page main#main .hub-grid .hub-card.app-interactive-corners > .app-interaction-frame i:nth-child(3),
body.app-chrome-page main#main .hub-grid .hub-card.app-interactive-corners > .app-interaction-frame i:nth-child(4) {
  border-width: 3px;
}

.hub-intro {
  display: block;
  max-width: 48rem;
  margin: 0 auto clamp(1.2rem, 2.5vw, 2rem);
  text-align: center;
}

.hub-intro__eyebrow {
  margin: 0 0 0.2rem;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
}

.hub-intro h1 {
  max-width: none;
  margin: 0;
  color: var(--text);
  font-size: clamp(1.35rem, 2.8vw, 2.3rem);
  line-height: 1.04;
}

.hub-intro__copy {
  max-width: 58ch;
  margin: 0.2rem auto 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.landing-reference {
  width: min(calc(100% - 2rem), 1600px);
  margin: clamp(1.5rem, 3vw, 2.5rem) auto 1rem;
  padding: 0;
}

.landing-reference__intro {
  display: block;
  max-width: 68rem;
  margin-inline: auto;
  text-align: center;
}

.landing-reference__intro > .eyebrow {
  margin: 0 0 .8rem;
  font-size: .64rem;
  line-height: 1.5;
}

.landing-reference__intro h2 {
  max-width: 24ch;
  margin: 0 auto;
  color: var(--text);
  font-size: clamp(1.9rem, 3.7vw, 3.1rem);
  font-weight: 780;
  letter-spacing: -.055em;
  line-height: 1.02;
  text-wrap: balance;
}

.landing-reference__intro p:last-child {
  max-width: 68ch;
  margin: 1rem auto 0;
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.7;
  text-align: center;
  text-wrap: pretty;
}

.landing-reference__grid {
  display: flex;
  gap: clamp(1.2rem, 2.2vw, 2.2rem);
  padding: .5rem 0 1rem;
  margin-top: clamp(2.5rem, 5vw, 4.5rem);
  overflow-x: auto;
  counter-reset: reference-card;
  scroll-padding-inline: .25rem;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

.landing-reference__grid::-webkit-scrollbar {
  display: none;
}

.landing-reference__grid a {
  position: relative;
  display: grid;
  flex: 0 0 clamp(18rem, 25vw, 24rem);
  min-height: 12rem;
  align-self: start;
  align-content: start;
  gap: .65rem;
  padding: 1.2rem .75rem 1.45rem;
  border: 0;
  color: var(--text);
  justify-items: center;
  text-align: center;
  text-decoration: none;
  counter-increment: reference-card;
  scroll-snap-align: start;
  transition: color 180ms ease;
}

.landing-reference__grid a::before {
  color: var(--cyan);
  content: counter(reference-card, decimal-leading-zero);
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -.08em;
  line-height: 1;
  opacity: .92;
}

.landing-reference__grid a::after {
  position: absolute;
  top: 1.25rem;
  right: auto;
  left: calc(50% + 1.7rem);
  color: var(--cyan);
  content: "↗";
  font-size: 1rem;
  opacity: .72;
}

.landing-reference__grid a:hover,
.landing-reference__grid a:focus-visible {
  color: var(--cyan);
}

.landing-reference__grid a:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: .45rem;
}

.landing-reference__grid strong {
  max-width: 20ch;
  color: inherit;
  font-size: 1.05rem;
  line-height: 1.2;
  text-wrap: balance;
}

.landing-reference__grid a:nth-child(2) { min-height: 13rem; }
.landing-reference__grid a:nth-child(3) { min-height: 12.4rem; }
.landing-reference__grid a:nth-child(4) { min-height: 13.6rem; }
.landing-reference__grid a:nth-child(5) { min-height: 12.8rem; }

.landing-reference__grid span {
  color: var(--muted);
  font-size: .83rem;
  line-height: 1.5;
}

.landing-reference__trust {
  max-width: 62ch;
  margin: 2rem auto 0;
  padding-top: 0;
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.65;
  text-align: center;
}

.landing-reference__trust a {
  color: var(--cyan);
}

/* Interactive hub previews reuse the same compact chrome language as the app header. */
.hub-preview {
  position: absolute;
  z-index: 2;
  inset: .55rem;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: #dceeed;
  background: linear-gradient(145deg, rgba(6, 22, 29, .96), rgba(4, 14, 20, .98));
  border: 1px solid rgba(144, 190, 195, .28);
  box-shadow: inset 0 1px rgba(224, 253, 255, .06), 0 12px 26px rgba(0, 4, 8, .28);
  transform: translateZ(0);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 220ms ease;
}

.hub-preview::before {
  position: absolute;
  z-index: 5;
  inset: 0;
  content: "";
  pointer-events: none;
  background: linear-gradient(108deg, transparent 18%, rgba(112, 237, 240, .08) 48%, transparent 68%);
  transform: translateX(-120%);
}

.hub-preview__header {
  position: relative;
  z-index: 2;
  min-height: 1.35rem;
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid rgba(144, 190, 195, .18);
  background: rgba(4, 15, 21, .78);
}

.hub-preview__brand {
  display: inline-flex;
  align-items: center;
  padding: 0 .42rem;
  color: #effffe;
  font-size: .38rem;
  letter-spacing: .1em;
  white-space: nowrap;
}

.hub-preview__brand::before {
  width: .45rem;
  height: .45rem;
  margin-right: .22rem;
  content: "";
  border: 1px solid var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 7px rgba(112, 237, 240, .42);
}

.hub-preview__tabs {
  min-width: 0;
  flex: 1;
  display: flex;
}

.hub-preview__tabs i {
  position: relative;
  min-width: 0;
  flex: 1;
  display: grid;
  place-items: center;
  padding: 0 .12rem;
  color: #718d91;
  border-left: 1px solid rgba(95, 147, 153, .1);
  font-size: .34rem;
  font-style: normal;
  white-space: nowrap;
}

.hub-preview__tabs i.is-active {
  color: #efffff;
  background: linear-gradient(180deg, rgba(50, 150, 161, .16), rgba(35, 98, 108, .04));
  text-shadow: 0 0 8px rgba(120, 239, 246, .24);
}

.hub-preview__tabs i.is-active::after {
  position: absolute;
  right: 12%;
  bottom: 0;
  left: 12%;
  height: 1px;
  content: "";
  background: var(--cyan);
  box-shadow: 0 -1px 6px rgba(81, 232, 242, .58);
}

.hub-preview__toolbar {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: .28rem;
  min-height: 1.05rem;
  padding: .18rem .4rem;
  border-bottom: 1px solid rgba(144, 190, 195, .12);
}

.hub-preview__toolbar i {
  width: .22rem;
  height: .22rem;
  display: block;
  border: 1px solid rgba(112, 237, 240, .52);
  background: rgba(112, 237, 240, .11);
}

.hub-preview__toolbar b {
  margin-left: auto;
  color: #8aa9ad;
  font-size: .35rem;
  font-weight: 650;
  letter-spacing: .04em;
}

.hub-preview__title {
  position: relative;
  z-index: 1;
  padding: .35rem .45rem .18rem;
  color: var(--cyan);
  font-size: .43rem;
  font-weight: 800;
  letter-spacing: .14em;
}

.hub-preview__filters {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .2rem;
  padding: .16rem .42rem .3rem;
}

.hub-preview__filters i {
  min-width: 0;
  padding: .2rem .22rem;
  overflow: hidden;
  color: #78979a;
  border: 1px solid rgba(144, 190, 195, .16);
  background: rgba(112, 237, 240, .035);
  font-size: .32rem;
  font-style: normal;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hub-preview__pal-grid,
.hub-preview__item-grid,
.hub-preview__structure-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: .25rem;
  padding: .12rem .42rem .4rem;
}

.hub-preview__pal-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  flex: 1;
  align-items: end;
}

.hub-preview__pal-grid img {
  width: 100%;
  height: 100%;
  max-height: 4.4rem;
  object-fit: contain;
  filter: drop-shadow(0 .4rem .34rem rgba(0, 0, 0, .48));
  transform: translateY(.12rem);
  transition: transform 220ms ease, filter 220ms ease;
}

.hub-preview__item-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  flex: 1;
  align-items: end;
}

.hub-preview__item-grid span,
.hub-preview__structure-grid span {
  display: grid;
  place-items: center;
  min-height: 3.9rem;
  border: 1px solid rgba(98, 231, 237, .22);
  background: linear-gradient(145deg, rgba(30, 83, 103, .78), rgba(9, 27, 38, .86));
}

.hub-preview__item-grid img,
.hub-preview__structure-grid img {
  width: 78%;
  height: 78%;
  object-fit: contain;
  filter: drop-shadow(0 .35rem .28rem rgba(0, 0, 0, .48));
}

.hub-preview__structure-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.4rem 1fr;
  flex: 1;
  gap: .35rem;
  padding: .12rem .42rem .4rem;
}

.hub-preview__levels {
  position: relative;
  display: grid;
  align-content: space-around;
  justify-items: center;
  color: #7cabb0;
  font-size: .36rem;
}

.hub-preview__levels::before {
  position: absolute;
  top: 12%;
  bottom: 12%;
  left: 50%;
  width: 1px;
  content: "";
  background: linear-gradient(var(--cyan), rgba(112, 237, 240, .08));
}

.hub-preview__levels i {
  position: relative;
  z-index: 1;
  display: grid;
  width: .95rem;
  height: .95rem;
  place-items: center;
  color: #6f999d;
  background: #0b2934;
  border: 1px solid rgba(112, 237, 240, .34);
  font-style: normal;
}

.hub-preview__levels i.is-active {
  color: var(--cyan);
  border-color: var(--cyan);
  box-shadow: 0 0 8px rgba(112, 237, 240, .28);
}

.hub-preview__structure-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  padding: .12rem 0 .18rem;
}

.hub-preview__breeding-stage {
  position: relative;
  z-index: 1;
  flex: 1;
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: .12rem;
  padding: .15rem .5rem .35rem;
}

.hub-preview__breeding-stage > span {
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: .05rem;
  color: #90afb2;
  font-size: .32rem;
}

.hub-preview__breeding-stage img {
  width: 100%;
  height: 3.3rem;
  object-fit: contain;
  filter: drop-shadow(0 .35rem .28rem rgba(0, 0, 0, .48));
  transition: transform 220ms ease;
}

.hub-preview__breeding-plus,
.hub-preview__breeding-arrow {
  color: var(--amber);
  font-size: .8rem;
  font-style: normal;
}

.hub-preview__breeding-arrow {
  color: var(--cyan);
}

.hub-preview__breeding-result {
  padding: .12rem;
  border: 1px solid rgba(245, 189, 85, .36);
  background: rgba(245, 189, 85, .06);
}

.hub-card:is(:hover, :focus-visible) .hub-preview {
  border-color: rgba(112, 237, 240, .58);
  box-shadow: inset 0 1px rgba(224, 253, 255, .1), 0 15px 32px rgba(0, 4, 8, .38), 0 0 18px rgba(112, 237, 240, .08);
  transform: translateY(-1px) scale(1.012);
}

.hub-card:is(:hover, :focus-visible) .hub-preview::before {
  animation: hub-preview-sweep 900ms cubic-bezier(.22, .7, .24, 1) both;
}

.hub-card:is(:hover, :focus-visible) .hub-preview__pal-grid img:nth-child(1) { transform: translateY(-.16rem) rotate(-2deg); }
.hub-card:is(:hover, :focus-visible) .hub-preview__pal-grid img:nth-child(2) { transform: translateY(-.3rem) scale(1.04); }
.hub-card:is(:hover, :focus-visible) .hub-preview__pal-grid img:nth-child(3) { transform: translateY(-.12rem) rotate(2deg); }
.hub-card:is(:hover, :focus-visible) .hub-preview__breeding-stage > span:nth-child(1) img { transform: translateY(-.18rem) rotate(-2deg); }
.hub-card:is(:hover, :focus-visible) .hub-preview__breeding-stage > span:nth-child(3) img { transform: translateY(-.18rem) rotate(2deg); }

@keyframes hub-preview-sweep {
  0% { opacity: 0; transform: translateX(-120%); }
  18% { opacity: 1; }
  100% { opacity: 0; transform: translateX(120%); }
}

@media (max-width: 760px) {
  .landing-reference__intro {
    display: block;
  }

  .landing-reference__intro > .eyebrow {
    margin-bottom: .8rem;
  }

  .landing-reference__intro p:last-child {
    margin-top: .9rem;
  }
}

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

@media (max-width: 560px) {
  .hub {
    width: min(calc(100% - 1.25rem), 30rem);
    padding-top: 1rem;
  }

  .hub-intro {
    margin-bottom: 1rem;
  }

  .hub-grid {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }

  .landing-reference__grid {
    gap: .75rem;
  }

  .landing-reference__grid a:nth-child(n) {
    min-height: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hub-card,
  .hub-card__visual > img,
  .hub-card__label::after,
  .hub-preview,
  .hub-preview::before,
  .hub-preview__pal-grid img,
  .hub-preview__breeding-stage img {
    transition: none;
    animation: none;
  }

  .hub-card:hover {
    transform: none;
  }
}
