/* SIGLATECH Tool Stack — image-led layout and responsive globe */
.tool-stack-page {
  --stack-navy: #06131f;
  --stack-navy-2: #0a2134;
  --stack-navy-3: #113b58;
  --stack-cyan: #4de4ff;
  --stack-blue: #168bd2;
  --stack-gold: #f6c860;
  --stack-ink: #071525;
  --stack-muted: #5c6d7f;
  --stack-line: #d9e5ed;
  --stack-ice: #f3f8fb;
  --stack-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  color: var(--stack-ink);
  background:
    radial-gradient(circle at 2% 34%, rgba(77, 228, 255, 0.07), transparent 25rem),
    #fff;
  font-family: 'Satoshi', 'Inter', sans-serif;
}

.tool-stack-page h1,
.tool-stack-page h2,
.tool-stack-page h3,
.tool-stack-page .brand strong {
  font-family: 'Cabinet Grotesk', 'Inter', sans-serif;
}

.tool-stack-page nav {
  z-index: 100;
}

.tool-stack-page .links a[aria-current='page'] {
  color: var(--stack-ink);
  font-weight: 800;
}

.tool-stack-page .links a[aria-current='page']::after {
  content: '';
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto 0;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--stack-cyan), var(--stack-blue));
}

.tool-stack-page .hero {
  min-height: 760px;
  isolation: isolate;
  background:
    radial-gradient(circle at 76% 38%, rgba(22, 139, 210, 0.22), transparent 34rem),
    radial-gradient(circle at 14% 10%, rgba(246, 200, 96, 0.1), transparent 22rem),
    linear-gradient(128deg, #05111d 0%, #071a2b 48%, #103e5e 100%) !important;
}

.tool-stack-page .hero::before {
  content: '';
  position: absolute;
  z-index: 0;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.024) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.024) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.8), transparent 82%);
  pointer-events: none;
}

.tool-stack-page .hero::after {
  content: '';
  position: absolute;
  z-index: 0;
  top: -220px;
  right: -180px;
  width: 680px;
  height: 680px;
  border: 1px solid rgba(77, 228, 255, 0.08);
  border-radius: 50%;
  box-shadow:
    0 0 0 90px rgba(77, 228, 255, 0.025),
    0 0 0 180px rgba(77, 228, 255, 0.015);
  pointer-events: none;
}

.tool-stack-page .hero-inner {
  grid-template-columns: minmax(0, 0.98fr) minmax(470px, 1.02fr);
  gap: clamp(46px, 6vw, 88px);
  width: min(1240px, 90%);
  min-height: 680px;
  padding: 82px 0 96px;
}

.tool-stack-page .hero-copy {
  position: relative;
  z-index: 2;
  min-width: 0;
}

.tool-stack-page .hero h1 {
  max-width: 760px;
  margin-top: 22px;
  font-size: clamp(3rem, 5.4vw, 5.1rem);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 0.96;
}

.tool-stack-page .hero h1 span {
  color: var(--stack-cyan);
}

.tool-stack-page .intro {
  max-width: 650px;
  margin-top: 26px;
  color: #bdd0df;
  font-size: clamp(1rem, 1.45vw, 1.12rem);
  line-height: 1.76;
}

.tool-stack-page .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin-top: 28px;
}

.tool-stack-page .hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 49px;
  padding: 12px 20px;
  border: 1px solid rgba(255, 255, 255, 0.19);
  border-radius: 13px;
  color: #fff;
  background: rgba(255, 255, 255, 0.045);
  font-size: 0.86rem;
  font-weight: 800;
  text-decoration: none;
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease, box-shadow 220ms ease;
}

.tool-stack-page .hero-btn.primary {
  border-color: var(--stack-cyan);
  color: var(--stack-navy);
  background: var(--stack-cyan);
  box-shadow: 0 14px 32px rgba(77, 228, 255, 0.18);
}

.tool-stack-page .hero-btn:hover,
.tool-stack-page .hero-btn:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(77, 228, 255, 0.68);
  background: rgba(255, 255, 255, 0.09);
}

.tool-stack-page .hero-btn.primary:hover,
.tool-stack-page .hero-btn.primary:focus-visible {
  color: var(--stack-navy);
  background: #fff;
}

.tool-stack-page .hero-btn span {
  transition: transform 220ms ease;
}

.tool-stack-page .hero-btn:hover span,
.tool-stack-page .hero-btn:focus-visible span {
  transform: translateY(3px);
}

.tool-stack-page .hero-points {
  margin-top: 24px;
}

.tool-stack-page .hero-points span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 11px;
  color: #caddeb;
  background: rgba(255, 255, 255, 0.045);
}

.tool-stack-page .hero-points span::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--stack-cyan);
  box-shadow: 0 0 0 4px rgba(77, 228, 255, 0.08);
}

html.motion-ready .tool-stack-page .hero-copy > * {
  opacity: 0;
  translate: 0 18px;
  animation: stack-copy-enter 680ms var(--stack-ease) both;
}

html.motion-ready .tool-stack-page .hero-copy > :nth-child(1) { animation-delay: 70ms; }
html.motion-ready .tool-stack-page .hero-copy > :nth-child(2) { animation-delay: 140ms; }
html.motion-ready .tool-stack-page .hero-copy > :nth-child(3) { animation-delay: 210ms; }
html.motion-ready .tool-stack-page .hero-copy > :nth-child(4) { animation-delay: 280ms; }
html.motion-ready .tool-stack-page .hero-copy > :nth-child(5) { animation-delay: 350ms; }

@keyframes stack-copy-enter {
  to { opacity: 1; translate: none; }
}

/* ---------- responsive, depth-projected tool globe ---------- */
.tool-stack-page .globe-panel {
  position: relative;
  width: min(100%, 540px);
  min-width: 0;
  padding: 18px;
  overflow: hidden;
  border: 1px solid rgba(139, 218, 244, 0.17);
  border-radius: 30px;
  background:
    radial-gradient(circle at 50% 48%, rgba(77, 228, 255, 0.11), transparent 47%),
    linear-gradient(155deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.018));
  box-shadow:
    0 34px 80px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  opacity: 1;
  transform: none;
}

html.motion-ready .tool-stack-page .globe-panel {
  opacity: 0;
  transform: translateY(24px) scale(0.97);
  animation: stack-globe-enter 900ms var(--stack-ease) 220ms forwards;
}

@keyframes stack-globe-enter {
  to { opacity: 1; transform: none; }
}

.tool-stack-page .globe-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 12% 20%, rgba(255, 255, 255, 0.38) 0 1px, transparent 1.4px),
    radial-gradient(circle at 78% 14%, rgba(77, 228, 255, 0.45) 0 1px, transparent 1.5px),
    radial-gradient(circle at 88% 68%, rgba(255, 255, 255, 0.28) 0 1px, transparent 1.5px),
    radial-gradient(circle at 18% 82%, rgba(246, 200, 96, 0.34) 0 1px, transparent 1.5px);
  pointer-events: none;
}

.tool-stack-page .globe-panel-head {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 4px 4px 0;
}

.tool-stack-page .globe-panel-head span,
.tool-stack-page .globe-panel-head strong {
  display: block;
}

.tool-stack-page .globe-panel-head > div > span {
  color: var(--stack-cyan);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.tool-stack-page .globe-panel-head strong {
  margin-top: 3px;
  color: #fff;
  font-size: 0.92rem;
}

.tool-stack-page .globe-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 92px;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 999px;
  color: #d9ebf7;
  background: rgba(5, 17, 29, 0.62);
  font-family: inherit;
  font-size: 0.7rem;
  font-weight: 800;
  cursor: pointer;
  transition: border-color 200ms ease, background 200ms ease, transform 200ms ease;
}

.tool-stack-page .globe-toggle:hover,
.tool-stack-page .globe-toggle:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(77, 228, 255, 0.58);
  background: rgba(13, 45, 67, 0.86);
}

.tool-stack-page .globe-toggle:disabled {
  cursor: default;
  opacity: 0.72;
}

.tool-stack-page .globe-toggle-icon {
  position: relative;
  width: 13px;
  height: 13px;
}

.tool-stack-page .globe-toggle-icon::before,
.tool-stack-page .globe-toggle-icon::after {
  content: '';
  position: absolute;
  top: 1px;
  bottom: 1px;
  width: 3px;
  border-radius: 2px;
  background: var(--stack-cyan);
}

.tool-stack-page .globe-toggle-icon::before { left: 2px; }
.tool-stack-page .globe-toggle-icon::after { right: 2px; }

.tool-stack-page .globe-toggle[aria-pressed='true'] .globe-toggle-icon::before {
  top: 1px;
  bottom: auto;
  left: 3px;
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 9px solid var(--stack-cyan);
  border-radius: 0;
  background: transparent;
}

.tool-stack-page .globe-toggle[aria-pressed='true'] .globe-toggle-icon::after {
  display: none;
}

.tool-stack-page .globe-wrap {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: auto;
  min-height: 0;
  padding: 4px 0 2px;
  aspect-ratio: 1 / 0.88;
  perspective: none;
}

.tool-stack-page .globe-aura {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 82%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(77, 228, 255, 0.16), rgba(22, 139, 210, 0.04) 50%, transparent 70%);
  filter: blur(10px);
  pointer-events: none;
  transform: translate(-50%, -50%);
  animation: stack-aura-breathe 5.6s ease-in-out infinite;
}

@keyframes stack-aura-breathe {
  0%, 100% { opacity: 0.72; scale: 0.96; }
  50% { opacity: 1; scale: 1.04; }
}

.tool-stack-page .globe {
  position: relative;
  width: clamp(330px, 36vw, 430px);
  max-width: 94%;
  height: auto;
  aspect-ratio: 1;
  isolation: isolate;
  transform-style: flat;
  animation: none;
}

.tool-stack-page .globe-shell {
  position: absolute;
  z-index: 100;
  inset: 7%;
  overflow: hidden;
  border: 1px solid rgba(111, 223, 248, 0.28);
  border-radius: 50%;
  background:
    radial-gradient(circle at 31% 25%, rgba(116, 233, 255, 0.2), transparent 26%),
    radial-gradient(circle at 72% 74%, rgba(19, 100, 158, 0.23), transparent 35%),
    linear-gradient(135deg, rgba(23, 73, 101, 0.42), rgba(5, 22, 37, 0.68));
  box-shadow:
    inset -35px -30px 70px rgba(1, 10, 18, 0.46),
    inset 20px 18px 55px rgba(77, 228, 255, 0.09),
    0 0 65px rgba(29, 143, 240, 0.18);
  pointer-events: none;
}

.tool-stack-page .globe-shell::before {
  content: '';
  position: absolute;
  inset: 8%;
  border: 1px solid rgba(111, 223, 248, 0.16);
  border-radius: 50%;
  box-shadow:
    0 0 0 32px rgba(77, 228, 255, 0.018),
    0 0 0 64px rgba(77, 228, 255, 0.012);
}

.tool-stack-page .globe-shell::after {
  content: '';
  position: absolute;
  inset: -28% 42%;
  width: 16%;
  background: linear-gradient(90deg, transparent, rgba(77, 228, 255, 0.12), transparent);
  transform: rotate(26deg);
  animation: stack-shell-scan 7.5s ease-in-out infinite;
}

@keyframes stack-shell-scan {
  0%, 18% { translate: -280% 0; opacity: 0; }
  34% { opacity: 0.8; }
  72%, 100% { translate: 430% 0; opacity: 0; }
}

.tool-stack-page .globe-ring {
  position: absolute;
  inset: 12%;
  border: 1px solid rgba(109, 221, 246, 0.18);
  border-radius: 50%;
  transform-origin: center;
}

.tool-stack-page .ring-one {
  transform: rotateX(68deg);
  animation: stack-ring-one 13s linear infinite;
}

.tool-stack-page .ring-two {
  transform: rotateY(68deg) rotateZ(18deg);
  animation: stack-ring-two 17s linear infinite reverse;
}

.tool-stack-page .ring-three {
  inset: 27% 9%;
  transform: rotate(9deg);
  animation: stack-ring-three 19s ease-in-out infinite alternate;
}

@keyframes stack-ring-one {
  to { transform: rotateX(68deg) rotateZ(360deg); }
}

@keyframes stack-ring-two {
  to { transform: rotateY(68deg) rotateZ(378deg); }
}

@keyframes stack-ring-three {
  to { transform: rotate(-9deg) scale(1.05); }
}

.tool-stack-page .globe-center {
  position: absolute;
  z-index: 111;
  top: 50%;
  left: 50%;
  display: grid;
  justify-items: center;
  width: 116px;
  padding: 13px 10px;
  border: 1px solid rgba(77, 228, 255, 0.25);
  border-radius: 21px;
  color: #fff;
  background: rgba(4, 18, 30, 0.82);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3), 0 0 32px rgba(77, 228, 255, 0.1);
  backdrop-filter: blur(12px);
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.tool-stack-page .globe-center img {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  object-fit: contain;
  background: var(--stack-navy);
}

.tool-stack-page .globe-center span,
.tool-stack-page .globe-center strong {
  display: block;
  text-align: center;
}

.tool-stack-page .globe-center span {
  margin-top: 8px;
  color: var(--stack-cyan);
  font-size: 0.52rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.tool-stack-page .globe-center strong {
  margin-top: 2px;
  font-size: 0.68rem;
}

.tool-stack-page .globe-tag {
  position: absolute;
  top: 50%;
  left: 50%;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 7px 11px;
  border: 1px solid rgba(134, 226, 248, 0.3);
  border-radius: 999px;
  color: #effaff;
  background: rgba(5, 22, 37, 0.9);
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.27),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  backface-visibility: visible;
  will-change: transform, opacity;
  pointer-events: none;
}

.tool-stack-page .globe-tag img {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  object-fit: contain;
}

.tool-stack-page .globe-tag b {
  font: inherit;
}

.tool-stack-page .globe-panel.is-paused .globe-ring,
.tool-stack-page .globe-panel.is-paused .globe-shell::after,
.tool-stack-page .globe-panel.is-paused .globe-aura {
  animation-play-state: paused;
}

.tool-stack-page .globe-legend {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 5px 3px;
  color: #8fa9bd;
  font-size: 0.62rem;
  font-weight: 700;
}

.tool-stack-page .globe-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.tool-stack-page .globe-legend i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--stack-cyan);
  box-shadow: 0 0 0 4px rgba(77, 228, 255, 0.08);
}

/* ---------- bridge notice ---------- */
.tool-stack-page .notice {
  width: min(1160px, 90%);
  margin-top: -42px;
  padding: 22px 25px;
  border-color: rgba(126, 205, 230, 0.42);
  border-radius: 18px;
  background: rgba(245, 252, 254, 0.97);
  box-shadow: 0 22px 54px rgba(7, 17, 31, 0.12);
}

.tool-stack-page .notice > div:first-child {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  color: #087ca9;
  background: #def6fb;
  font-size: 1.1rem;
}

.tool-stack-page .notice b {
  color: #075985;
  font-size: 0.88rem;
}

.tool-stack-page .notice p {
  margin-top: 3px;
  font-size: 0.78rem;
  line-height: 1.55;
}

/* ---------- content and real-photo workflow ---------- */
.tool-stack-page main {
  width: min(1180px, 90%);
  padding: 94px 0 116px;
}

.tool-stack-page .workflow-section,
.tool-stack-page .stack-section,
.tool-stack-page .principle-note,
.tool-stack-page .hosting-section,
.tool-stack-page .cta-band {
  scroll-margin-top: 105px;
}

.tool-stack-page .workflow-section {
  padding-bottom: 98px;
}

.tool-stack-page .workflow-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 0.68fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: end;
  margin-bottom: 34px;
}

.tool-stack-page .workflow-intro .eyebrow {
  grid-column: 1 / -1;
  width: max-content;
  margin-bottom: -10px;
  color: #08769e;
  border-color: #c5e9f1;
  background: #eaf9fc;
}

.tool-stack-page .workflow-intro h2,
.tool-stack-page .section-head h2 {
  color: var(--stack-ink);
  font-size: clamp(2.2rem, 4.3vw, 3.65rem);
  font-weight: 800;
  letter-spacing: -0.052em;
  line-height: 1.02;
}

.tool-stack-page .workflow-intro p {
  color: var(--stack-muted);
  font-size: 0.94rem;
  line-height: 1.75;
}

.tool-stack-page .workflow-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.tool-stack-page .workflow-photo {
  position: relative;
  min-width: 0;
  aspect-ratio: 4 / 5;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(204, 220, 231, 0.72);
  border-radius: 25px;
  background: var(--stack-navy);
  box-shadow: 0 22px 54px rgba(7, 24, 38, 0.13);
}

.tool-stack-page .workflow-photo::before {
  content: '';
  position: absolute;
  z-index: 2;
  inset: 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 18px;
  pointer-events: none;
}

.tool-stack-page .workflow-photo::after {
  content: '';
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(3, 12, 20, 0.92) 100%);
  pointer-events: none;
}

.tool-stack-page .workflow-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 850ms var(--stack-ease), filter 500ms ease;
}

.tool-stack-page .workflow-photo:nth-child(1) img { object-position: 50% center; }
.tool-stack-page .workflow-photo:nth-child(2) img { object-position: 50% 38%; }
.tool-stack-page .workflow-photo:nth-child(3) img { object-position: 52% center; }

.tool-stack-page .workflow-photo:hover img {
  transform: scale(1.045);
  filter: saturate(1.06);
}

.tool-stack-page .workflow-photo figcaption {
  position: absolute;
  z-index: 3;
  right: 25px;
  bottom: 24px;
  left: 25px;
  color: #fff;
}

.tool-stack-page .workflow-photo figcaption > span,
.tool-stack-page .workflow-photo figcaption > strong,
.tool-stack-page .workflow-photo figcaption > small {
  display: block;
}

.tool-stack-page .workflow-photo figcaption > span {
  width: max-content;
  padding: 6px 9px;
  border: 1px solid rgba(77, 228, 255, 0.32);
  border-radius: 999px;
  color: var(--stack-cyan);
  background: rgba(5, 18, 30, 0.72);
  font-size: 0.61rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.tool-stack-page .workflow-photo figcaption > strong {
  margin-top: 10px;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  line-height: 1.2;
}

.tool-stack-page .workflow-photo figcaption > small {
  margin-top: 7px;
  color: #cadbe7;
  font-size: 0.65rem;
  line-height: 1.5;
}

.tool-stack-page .workflow-photo figcaption a {
  color: #dff9ff;
  text-underline-offset: 3px;
}

.tool-stack-page .workflow-note {
  max-width: 850px;
  margin: 17px 0 0;
  color: #718194;
  font-size: 0.72rem;
  line-height: 1.55;
}

/* ---------- stack cards ---------- */
.tool-stack-page .stack-section {
  padding-top: 12px;
}

.tool-stack-page .section-head {
  max-width: 850px;
  margin-bottom: 38px;
}

.tool-stack-page .section-head .eyebrow {
  color: #08769e;
  border: 1px solid #c5e9f1;
  background: #eaf9fc;
}

.tool-stack-page .section-head p {
  max-width: 750px;
  margin-top: 16px;
  color: var(--stack-muted);
  font-size: 0.95rem;
  line-height: 1.75;
}

.tool-stack-page .stack-grid {
  gap: 17px;
}

.tool-stack-page .stack-card {
  --card-accent: #27bddf;
  position: relative;
  min-height: 255px;
  overflow: hidden;
  padding: 29px;
  border-color: var(--stack-line);
  border-radius: 21px;
  background:
    radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--card-accent) 10%, transparent), transparent 15rem),
    #fff;
  box-shadow: 0 14px 38px rgba(7, 26, 41, 0.065);
  transition: transform 270ms ease, box-shadow 270ms ease, border-color 270ms ease;
}

.tool-stack-page .stack-card:nth-child(4n + 2) { --card-accent: #2f7de1; }
.tool-stack-page .stack-card:nth-child(4n + 3) { --card-accent: #9b72e8; }
.tool-stack-page .stack-card:nth-child(4n + 4) { --card-accent: #efa742; }

.tool-stack-page .stack-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--card-accent), transparent 82%);
  transform: scaleX(0.36);
  transform-origin: left;
  transition: transform 350ms var(--stack-ease);
}

.tool-stack-page .stack-card:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--card-accent) 38%, var(--stack-line));
  box-shadow: 0 25px 55px rgba(7, 26, 41, 0.13);
}

.tool-stack-page .stack-card:hover::before {
  transform: scaleX(1);
}

.tool-stack-page .stack-card .num {
  width: 38px;
  height: 38px;
  margin-bottom: 18px;
  border: 1px solid color-mix(in srgb, var(--card-accent) 27%, transparent);
  border-radius: 12px;
  color: var(--stack-ink);
  background: color-mix(in srgb, var(--card-accent) 13%, #fff);
}

.tool-stack-page .stack-card h3 {
  color: var(--stack-ink);
  font-size: 1.3rem;
  letter-spacing: -0.025em;
}

.tool-stack-page .stack-card .tool-line {
  display: inline-flex;
  width: fit-content;
  margin-top: 9px;
  padding: 6px 9px;
  border-radius: 999px;
  color: color-mix(in srgb, var(--card-accent) 66%, #143047);
  background: color-mix(in srgb, var(--card-accent) 10%, #f7fbfd);
  font-size: 0.69rem;
  letter-spacing: 0.015em;
}

.tool-stack-page .stack-card p {
  margin-top: 15px;
  color: var(--stack-muted);
  font-size: 0.86rem;
  line-height: 1.7;
}

.tool-stack-page .principle-note {
  position: relative;
  margin-top: 68px;
  padding: clamp(34px, 5vw, 58px);
  overflow: hidden;
  border: 1px solid rgba(77, 228, 255, 0.18);
  border-radius: 26px;
  background:
    radial-gradient(circle at 92% 10%, rgba(77, 228, 255, 0.14), transparent 23rem),
    linear-gradient(135deg, #06131f, #10334d);
  box-shadow: 0 28px 66px rgba(7, 26, 41, 0.15);
}

.tool-stack-page .principle-note::after {
  content: 'REPEATABLE';
  position: absolute;
  right: -12px;
  bottom: -28px;
  color: rgba(255, 255, 255, 0.035);
  font-family: 'Cabinet Grotesk', sans-serif;
  font-size: clamp(3.8rem, 10vw, 8rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
  pointer-events: none;
}

.tool-stack-page .principle-note h2 {
  position: relative;
  z-index: 1;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.tool-stack-page .principle-note p {
  position: relative;
  z-index: 1;
  max-width: 810px;
  font-size: 0.91rem;
  line-height: 1.72;
}

.tool-stack-page .principle-note .quote {
  display: inline-block;
  margin-top: 24px;
  padding: 10px 14px;
  border: 1px solid rgba(77, 228, 255, 0.2);
  border-radius: 12px;
  color: var(--stack-cyan);
  background: rgba(77, 228, 255, 0.055);
}

/* ---------- hosting and handoff ---------- */
.tool-stack-page .hosting-section {
  margin-top: 90px;
}

.tool-stack-page .hosting-flow {
  position: relative;
  gap: 15px;
  margin-top: 35px;
}

.tool-stack-page .hosting-flow::before {
  content: '';
  position: absolute;
  top: 43px;
  right: 10%;
  left: 10%;
  height: 2px;
  background: linear-gradient(90deg, var(--stack-cyan), #5a9eec, var(--stack-gold));
  opacity: 0.35;
}

.tool-stack-page .hosting-step {
  z-index: 1;
  min-height: 250px;
  padding: 29px 26px;
  border-radius: 21px;
  box-shadow: 0 15px 38px rgba(7, 26, 41, 0.07);
  transition: transform 250ms ease, box-shadow 250ms ease, border-color 250ms ease;
}

.tool-stack-page .hosting-step:hover {
  transform: translateY(-5px);
  border-color: #afd8e6;
  box-shadow: 0 24px 48px rgba(7, 26, 41, 0.12);
}

.tool-stack-page .hosting-step .step-num {
  width: 42px;
  height: 42px;
  border: 5px solid #fff;
  color: var(--stack-cyan);
  background: var(--stack-navy);
  box-shadow: 0 0 0 1px #cce0ea;
}

.tool-stack-page .hosting-step h3 {
  margin-top: 3px;
  color: var(--stack-ink);
  font-size: 1.16rem;
  line-height: 1.3;
}

.tool-stack-page .hosting-step p {
  margin-top: 13px;
  font-size: 0.85rem;
  line-height: 1.7;
}

.tool-stack-page .cta-band {
  position: relative;
  margin-top: 86px;
  padding: 74px 32px;
  overflow: hidden;
  border: 1px solid rgba(77, 228, 255, 0.16);
  border-radius: 27px;
  background:
    radial-gradient(circle at 50% 0%, rgba(77, 228, 255, 0.17), transparent 25rem),
    linear-gradient(135deg, #06131f, #0e3049);
  box-shadow: 0 28px 66px rgba(7, 26, 41, 0.15);
}

.tool-stack-page .cta-band::before,
.tool-stack-page .cta-band::after {
  content: '';
  position: absolute;
  width: 220px;
  height: 220px;
  border: 1px solid rgba(77, 228, 255, 0.1);
  border-radius: 50%;
  pointer-events: none;
}

.tool-stack-page .cta-band::before { top: -130px; left: -80px; }
.tool-stack-page .cta-band::after { right: -90px; bottom: -140px; }

.tool-stack-page .cta-band h2,
.tool-stack-page .cta-band p,
.tool-stack-page .cta-actions {
  position: relative;
  z-index: 1;
}

.tool-stack-page .cta-band h2 {
  max-width: 760px;
  margin: 0 auto;
  font-size: clamp(2.1rem, 4.5vw, 3.65rem);
  line-height: 1.02;
}

.tool-stack-page .cta-band p {
  max-width: 650px;
  margin-top: 17px;
  line-height: 1.7;
}

.tool-stack-page .btn {
  min-height: 49px;
  align-items: center;
  border-radius: 13px;
  transition: transform 220ms ease, background 220ms ease, border-color 220ms ease;
}

.tool-stack-page .btn:hover,
.tool-stack-page .btn:focus-visible {
  transform: translateY(-3px);
  background: #fff;
}

.tool-stack-page .btn.ghost:hover,
.tool-stack-page .btn.ghost:focus-visible {
  border-color: rgba(77, 228, 255, 0.58);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

/* ---------- progressive reveal ---------- */
.tool-stack-page .stack-reveal,
.tool-stack-page .stack-stagger {
  opacity: 1;
  translate: none;
}

html.motion-ready .tool-stack-page .stack-reveal {
  opacity: 0;
  translate: 0 28px;
  transition: opacity 760ms var(--stack-ease), translate 760ms var(--stack-ease);
}

html.motion-ready .tool-stack-page .stack-reveal.in {
  opacity: 1;
  translate: none;
}

html.motion-ready .tool-stack-page .stack-reveal .stack-stagger {
  opacity: 0;
  translate: 0 20px;
  transition:
    opacity 650ms ease calc(90ms + (var(--stagger-index, 0) * 65ms)),
    translate 650ms var(--stack-ease) calc(90ms + (var(--stagger-index, 0) * 65ms));
}

html.motion-ready .tool-stack-page .stack-reveal.in .stack-stagger {
  opacity: 1;
  translate: none;
}

@media (max-width: 1050px) {
  .tool-stack-page .hero-inner {
    grid-template-columns: 1fr;
    padding-top: 76px;
  }

  .tool-stack-page .hero-copy {
    max-width: 790px;
  }

  .tool-stack-page .globe-panel {
    width: min(100%, 620px);
    margin: 0 auto;
  }

  .tool-stack-page .globe-wrap {
    aspect-ratio: 1 / 0.8;
  }
}

@media (max-width: 820px) {
  .tool-stack-page .workflow-intro {
    grid-template-columns: 1fr;
  }

  .tool-stack-page .workflow-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tool-stack-page .workflow-photo:first-child {
    grid-column: 1 / -1;
    aspect-ratio: 16 / 10;
  }

  .tool-stack-page .workflow-photo:first-child img {
    object-position: center 64%;
  }

  .tool-stack-page .hosting-flow::before {
    display: none;
  }
}

@media (max-width: 640px) {
  .tool-stack-page .hero {
    min-height: 0;
  }

  .tool-stack-page .hero-inner {
    width: min(100% - 38px, 1180px);
    min-height: 0;
    padding: 58px 0 82px;
  }

  .tool-stack-page .hero h1 {
    font-size: clamp(2.6rem, 12vw, 4rem);
  }

  .tool-stack-page .hero-actions {
    display: grid;
  }

  .tool-stack-page .hero-btn {
    width: 100%;
  }

  .tool-stack-page .hero-points span {
    font-size: 0.69rem;
  }

  .tool-stack-page .globe-panel {
    padding: 14px;
    border-radius: 23px;
  }

  .tool-stack-page .globe-panel-head {
    align-items: flex-start;
  }

  .tool-stack-page .globe-panel-head strong {
    font-size: 0.82rem;
  }

  .tool-stack-page .globe-toggle {
    min-width: 86px;
  }

  .tool-stack-page .globe-wrap {
    aspect-ratio: 1;
  }

  .tool-stack-page .globe {
    width: min(310px, 100%);
  }

  .tool-stack-page .globe-tag {
    min-height: 32px;
    padding: 6px 9px;
    font-size: 0.6rem;
  }

  .tool-stack-page .globe-tag img {
    width: 15px;
    height: 15px;
  }

  .tool-stack-page .globe-center {
    width: 102px;
  }

  .tool-stack-page .globe-center img {
    width: 36px;
    height: 36px;
  }

  .tool-stack-page .globe-legend span:last-child {
    display: none;
  }

  .tool-stack-page .notice {
    align-items: start;
    width: min(100% - 38px, 1180px);
    margin-top: -35px;
    padding: 18px;
  }

  .tool-stack-page main {
    width: min(100% - 38px, 1180px);
    padding: 74px 0 92px;
  }

  .tool-stack-page .workflow-section {
    padding-bottom: 76px;
  }

  .tool-stack-page .workflow-gallery {
    grid-template-columns: 1fr;
  }

  .tool-stack-page .workflow-photo,
  .tool-stack-page .workflow-photo:first-child {
    grid-column: auto;
    aspect-ratio: 4 / 5;
  }

  .tool-stack-page .workflow-photo:first-child img {
    object-position: center;
  }

  .tool-stack-page .stack-card {
    min-height: 0;
    padding: 25px;
  }

  .tool-stack-page .principle-note,
  .tool-stack-page .cta-band {
    border-radius: 22px;
  }

  .tool-stack-page .hosting-section,
  .tool-stack-page .cta-band {
    margin-top: 72px;
  }

  .tool-stack-page .cta-band {
    padding: 58px 22px;
  }
}

@media (max-width: 390px) {
  .tool-stack-page .globe-panel-head > div > span {
    font-size: 0.55rem;
  }

  .tool-stack-page .globe-panel-head strong {
    font-size: 0.74rem;
  }

  .tool-stack-page .globe-toggle {
    min-width: 72px;
    padding-inline: 9px;
  }

  .tool-stack-page .globe-toggle-label {
    font-size: 0.62rem;
  }

  .tool-stack-page .globe {
    width: min(280px, 100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }

  .tool-stack-page *,
  .tool-stack-page *::before,
  .tool-stack-page *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .tool-stack-page .globe-ring,
  .tool-stack-page .globe-shell::after,
  .tool-stack-page .globe-aura {
    animation: none !important;
  }

  .tool-stack-page .stack-reveal,
  .tool-stack-page .stack-stagger,
  .tool-stack-page .hero-copy > *,
  .tool-stack-page .globe-panel {
    opacity: 1 !important;
    translate: none !important;
    transform: none;
  }
}
