/* ==========================================================================
   ZULTAN — components
   ========================================================================== */

/* Section heading -----------------------------------------------------------*/
.section-head { max-width: 760px; margin-bottom: 72px; }

/* Illustration + text split layouts -----------------------------------------*/
.split-feature { display: grid; gap: 40px; align-items: center; margin-bottom: 80px; }
@media (min-width: 900px) { .split-feature { grid-template-columns: 1.05fr 0.95fr; gap: 72px; }
  .split-feature.flip .sf-media { order: -1; } }
/* On mobile, text first then illustration, regardless of desktop order */
@media (max-width: 899px) { .split-feature .sf-media { order: 2; } .split-feature .section-head { order: 1; } }
.split-feature .section-head { margin-bottom: 0; max-width: 520px; }
.sf-media { position: relative; border: 1px solid var(--ink-line); border-radius: 16px; background: linear-gradient(155deg, var(--ink-panel), var(--ink)); padding: 24px; overflow: hidden; }
.sf-media::before { content: ""; position: absolute; inset: 0; background: radial-gradient(130% 90% at 50% 0%, rgba(255,255,255,.05), transparent 68%); pointer-events: none; }
.tsx-page .sf-media::before { background: radial-gradient(130% 90% at 50% 0%, rgba(226,137,90,.09), transparent 68%); }
.sf-media svg { width: 100%; height: auto; display: block; position: relative; }
.ill-inline { border: 1px solid var(--ink-line); border-radius: 16px; background: linear-gradient(155deg, var(--ink-panel), var(--ink)); padding: 32px 28px; margin: 0 auto; max-width: 620px; overflow: hidden; position: relative; }
.ill-inline::before { content: ""; position: absolute; inset: 0; background: radial-gradient(130% 90% at 50% 0%, rgba(255,255,255,.045), transparent 68%); pointer-events: none; }
.tsx-page .ill-inline::before { background: radial-gradient(130% 90% at 50% 0%, rgba(226,137,90,.08), transparent 68%); }
.ill-inline svg { width: 100%; height: auto; display: block; position: relative; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head h2 { font-size: clamp(32px, 5vw, 60px); margin-bottom: 22px; letter-spacing: -.03em; }
.section-index { font-family: var(--font-mono); font-size: 12px; color: var(--grey-dim); letter-spacing: .2em; }

/* Counter stat strip --------------------------------------------------------*/
.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink-line); border-bottom: 1px solid var(--ink-line); }
.stat { padding: 46px 32px; border-right: 1px solid var(--ink-line); position: relative; transition: background .45s var(--ease); overflow: hidden; }
.stat::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: linear-gradient(90deg, var(--white), transparent); transform: scaleX(0); transform-origin: left; transition: transform .55s var(--ease); }
.tsx-page .stat::after { background: linear-gradient(90deg, var(--terra), transparent); }
.stat:hover { background: var(--ink-raise); }
.stat:hover::after { transform: scaleX(1); }
.stat:last-child { border-right: 0; }
.stat .num { font-family: var(--font-display); font-size: clamp(34px, 4.4vw, 52px); font-weight: 700; color: var(--white); letter-spacing: -.02em; line-height: 1; transition: transform .5s var(--ease-spring); transform-origin: left; }
.stat:hover .num { transform: scale(1.06); }
.stat .num .unit { color: var(--grey-dim); }
.stat .lab { font-family: var(--font-mono); font-size: 12px; color: var(--grey-dim); letter-spacing: .06em; margin-top: 14px; text-transform: uppercase; }

/* Marquee -------------------------------------------------------------------*/
.marquee { overflow: hidden; border-block: 1px solid var(--ink-line); padding: 26px 0; --gap: 60px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: var(--gap); width: max-content; animation: marquee 32s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item { font-family: var(--font-display); font-size: clamp(20px, 2.6vw, 32px); font-weight: 700; color: var(--ink-line-2); letter-spacing: -.02em; display: flex; align-items: center; gap: var(--gap); white-space: nowrap; }
.marquee-item::after { content: "/"; font-size: 18px; color: var(--ink-line-2); }
@keyframes marquee { to { transform: translateX(calc(-50% - var(--gap) / 2)); } }

/* Feature rows --------------------------------------------------------------*/
.feature-row { display: grid; gap: 56px; align-items: start; }
@media (min-width: 880px) { .feature-row { grid-template-columns: .92fr 1.08fr; gap: 90px; } }
.feature-list { display: grid; gap: 1px; background: var(--ink-line); border-block: 1px solid var(--ink-line); }
.feature-item { background: var(--ink); padding: 30px 6px; display: grid; grid-template-columns: 46px 1fr; gap: 22px; transition: background .4s var(--ease), padding-left .4s var(--ease); }
.feature-item:hover { background: var(--ink-raise); padding-left: 14px; }
.feature-item .fi-idx { font-family: var(--font-mono); color: var(--grey-dim); font-size: 13px; padding-top: 4px; }
.feature-item h4 { font-size: 19px; margin-bottom: 9px; }
.feature-item p { font-size: 15px; color: var(--grey); margin: 0; }

/* Bento grid ----------------------------------------------------------------*/
.bento { display: grid; gap: 16px; grid-template-columns: repeat(6, 1fr); grid-auto-rows: minmax(180px, auto); }
.bento-cell { background: linear-gradient(168deg, var(--ink-raise), var(--ink)); border: 1px solid var(--ink-line); border-radius: 10px; padding: 34px; position: relative; overflow: hidden; transition: border-color .45s var(--ease), transform .5s var(--ease-spring), box-shadow .5s var(--ease); grid-column: span 3; }
.bento-cell::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: linear-gradient(150deg, rgba(255,255,255,.16), transparent 42%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .5s var(--ease); pointer-events: none; }
.tsx-page .bento-cell::before { background: linear-gradient(150deg, rgba(255,154,99,.28), transparent 42%); }
.bento-cell:hover { border-color: var(--ink-line-2); transform: translateY(-6px); box-shadow: 0 30px 60px -26px rgba(0,0,0,.85); }
.bento-cell:hover::before { opacity: 1; }
.bento-cell.wide { grid-column: span 4; }
.bento-cell.narrow { grid-column: span 2; }
.bento-cell.tall { grid-row: span 2; }
.bento-cell .b-glow { position: absolute; width: 340px; height: 340px; border-radius: 50%; filter: blur(60px); opacity: 0; transition: opacity .6s var(--ease); pointer-events: none; }
.bento-cell:hover .b-glow { opacity: .55; }
.bento-cell .b-idx { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-mono); font-size: 11px; color: var(--grey-dim); letter-spacing: .18em; margin-bottom: 22px; transition: color .4s var(--ease); }
.bento-cell .b-idx::before { content: ""; width: 16px; height: 1px; background: var(--grey-dim); transition: width .5s var(--ease), background .4s var(--ease); }
.bento-cell:hover .b-idx { color: var(--silver); }
.bento-cell:hover .b-idx::before { width: 30px; background: var(--white); }
.tsx-page .bento-cell:hover .b-idx { color: var(--terra-soft); }
.tsx-page .bento-cell:hover .b-idx::before { background: var(--terra); }
.bento-cell h3 { font-size: 23px; margin-bottom: 12px; position: relative; }
.bento-cell h4 { font-size: 20px; margin-bottom: 10px; position: relative; }
.bento-cell p { font-size: 15px; color: var(--grey); margin: 0; position: relative; }
@media (max-width: 820px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento-cell, .bento-cell.wide, .bento-cell.narrow { grid-column: span 2; }
  .bento-cell.tall { grid-row: auto; }
}

/* Doctrine ------------------------------------------------------------------*/
.doctrine { text-align: center; padding: clamp(100px, 15vw, 210px) 0; border-block: 1px solid var(--ink-line); overflow: hidden; position: relative; }
.doctrine-bg { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 800; font-size: 32vw; color: #060608; letter-spacing: -.05em; z-index: 0; user-select: none; white-space: nowrap; will-change: transform; }
.doctrine .wrap { position: relative; z-index: 1; }
.doctrine .eyebrow { justify-content: center; }
.doctrine blockquote { font-family: var(--font-display); font-weight: 700; color: var(--white); font-size: clamp(32px, 6.5vw, 84px); letter-spacing: -.035em; line-height: 1; margin: 0 auto; max-width: 1000px; }
.doctrine cite { display: block; font-style: normal; font-family: var(--font-mono); color: var(--grey-dim); font-size: 12px; letter-spacing: .22em; text-transform: uppercase; margin-top: 36px; }

/* Product / TechSphereX scoped (terra) --------------------------------------*/
.tsx-scope { position: relative; }
.tsx-badge { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--terra-soft); margin-bottom: 26px; }
.tsx-badge .dot { width: 20px; height: 1px; background: var(--terra); border-radius: 0; box-shadow: none; animation: none; }
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .5; transform: scale(.8); } }
.tsx-section { background: var(--ink-raise); border-block: 1px solid var(--ink-line); overflow: hidden; }
.tsx-section .eyebrow { color: var(--terra-soft); }
.tsx-glow { position: absolute; width: 680px; height: 680px; background: radial-gradient(circle, rgba(197,106,63,.07), transparent 70%); pointer-events: none; will-change: transform; }
.accent { color: var(--terra-soft); }

/* Engine split --------------------------------------------------------------*/
.engine-split { display: grid; gap: 1px; background: var(--ink-line); border: 1px solid var(--ink-line); border-radius: 6px; overflow: hidden; }
@media (min-width: 820px) { .engine-split { grid-template-columns: 1fr 1fr; } }
.engine-half { background: var(--ink-card); padding: 48px 44px; position: relative; overflow: hidden; transition: background .45s var(--ease); }
.engine-half:hover { background: var(--ink-panel); }
.engine-half .eh-kicker { font-family: var(--font-mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--terra-soft); margin-bottom: 22px; }
.engine-half h3 { font-size: 28px; margin-bottom: 15px; }
.engine-half p { color: var(--grey); font-size: 15px; margin: 0; }

/* Pricing -------------------------------------------------------------------*/
.price-toggle { display: inline-flex; background: var(--ink-raise); border: 1px solid var(--ink-line-2); border-radius: 100px; padding: 5px; margin: 0 auto 56px; position: relative; }
.price-toggle button { font-family: var(--font-display); font-size: 14px; font-weight: 600; color: var(--grey); background: none; border: 0; padding: 11px 26px; border-radius: 100px; cursor: pointer; position: relative; z-index: 1; transition: color .35s var(--ease); }
.price-toggle button.active { color: var(--ink); }
.price-toggle .slider { position: absolute; top: 5px; bottom: 5px; border-radius: 100px; background: var(--white); transition: transform .45s var(--ease-spring), width .45s var(--ease-spring); z-index: 0; }
.price-grid { display: grid; gap: 18px; }
@media (min-width: 720px) { .price-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .price-grid { grid-template-columns: repeat(4, 1fr); } }
.price-card { background: var(--ink-raise); border: 1px solid var(--ink-line); border-radius: 8px; padding: 34px 30px; display: flex; flex-direction: column; position: relative; overflow: hidden; transition: border-color .45s var(--ease), transform .45s var(--ease); }
.price-card:hover { border-color: var(--ink-line-2); transform: translateY(-5px); }
.price-card.featured { border-color: var(--terra-deep); }
.price-card .p-name { font-family: var(--font-display); font-size: 16px; color: var(--white); font-weight: 600; letter-spacing: .01em; }
.price-card .p-desc { font-size: 13px; color: var(--grey-dim); margin: 6px 0 22px; min-height: 34px; }
.price-card .p-amount { font-family: var(--font-display); font-size: 42px; font-weight: 700; color: var(--white); letter-spacing: -.02em; line-height: 1; }
.price-card.featured .p-amount { color: var(--terra-soft); }
.price-card .p-unit { font-size: 13px; color: var(--grey-dim); margin-top: 8px; padding-bottom: 22px; border-bottom: 1px solid var(--ink-line); }
.price-card .p-feat-group { margin-top: 20px; }
.price-card .p-feat-label { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--grey); margin-bottom: 12px; }
.price-card.featured .p-feat-label { color: var(--terra-soft); }
.price-card .p-feats { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
.price-card .p-feats li { font-size: 13.5px; line-height: 1.5; color: var(--grey-soft); padding-left: 24px; position: relative; }
.price-card .p-feats li strong { color: var(--white); font-weight: 600; }
.price-card .p-feats li::before { content: ""; position: absolute; left: 0; top: 7px; width: 12px; height: 7px; border-left: 1.5px solid var(--grey); border-bottom: 1.5px solid var(--grey); transform: rotate(-45deg); }
.price-card.featured .p-feats li::before { border-color: var(--terra-soft); }
.price-card .p-btn { width: 100%; justify-content: center; margin-top: auto; padding-top: 28px; }
.price-card .p-feat-note { font-size: 12px; line-height: 1.5; color: var(--grey-dim); margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--ink-line); font-style: italic; }
.price-plane { display: none; }
.price-plane.active { display: block; animation: planeIn .5s var(--ease); }
@keyframes planeIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* Value grid ----------------------------------------------------------------*/
.value-grid { display: grid; gap: 1px; background: var(--ink-line); border: 1px solid var(--ink-line); border-radius: 6px; overflow: hidden; perspective: 1200px; }
@media (min-width: 700px) { .value-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .value-grid { grid-template-columns: repeat(4, 1fr); } }

/* Access matrix table -------------------------------------------------------*/
.matrix-wrap { overflow-x: auto; border: 1px solid var(--ink-line); border-radius: 8px; background: var(--ink-raise); -webkit-overflow-scrolling: touch; }
.matrix { width: 100%; border-collapse: collapse; min-width: 640px; font-size: 13.5px; }
.matrix th, .matrix td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--ink-line); }
.matrix thead th { font-family: var(--font-display); font-size: 14px; color: var(--white); font-weight: 600; background: var(--ink-panel); position: sticky; top: 0; }
.matrix thead th:first-child { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--grey); font-weight: 400; }
.matrix tbody td { color: var(--grey-soft); }
.matrix tbody td:first-child { color: var(--grey-soft); }
.matrix tbody td:not(:first-child) { text-align: center; color: var(--grey); font-variant-numeric: tabular-nums; }
.matrix .feat-col { background: rgba(197,106,63,.06); color: var(--terra-soft) !important; }
.matrix thead .feat-col { color: var(--terra-soft); }
.matrix tbody tr:last-child td { border-bottom: 0; }
.matrix .matrix-highlight td { background: rgba(197,106,63,.05); }
.matrix .matrix-highlight td:first-child { color: var(--white); font-weight: 500; }
.value-cell {
  background: linear-gradient(168deg, var(--ink-raise), var(--ink));
  padding: 38px 32px 34px; min-height: 236px; position: relative;
  transition: background .45s var(--ease), transform .55s var(--ease-spring), box-shadow .55s var(--ease);
  overflow: hidden; transform-style: preserve-3d;
}
/* animated top accent line */
.value-cell::after { content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 100%; background: linear-gradient(90deg, var(--white), transparent); transform: scaleX(0); transform-origin: left; transition: transform .55s var(--ease); z-index: 4; }
.tsx-page .value-cell::after { background: linear-gradient(90deg, var(--terra), transparent); }
/* soft corner glow that blooms on hover */
.value-cell::before { content: ""; position: absolute; top: -40%; right: -30%; width: 70%; height: 80%; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.10), transparent 66%); opacity: 0; transition: opacity .5s var(--ease); pointer-events: none; z-index: 0; }
.tsx-page .value-cell::before { background: radial-gradient(circle, rgba(255,154,99,.16), transparent 66%); }
.value-cell:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -24px rgba(0,0,0,.8), inset 0 1px 0 rgba(255,255,255,.06); }
.value-cell:hover::after { transform: scaleX(1); }
.value-cell:hover::before { opacity: 1; }
.value-cell > * { position: relative; z-index: 2; }

/* header row: glyph tile + index */
.value-cell .v-num { font-family: var(--font-mono); color: var(--grey-dim); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; position: absolute; top: 4px; right: 0; margin: 0; transition: color .4s var(--ease); }
.value-cell:hover .v-num { color: var(--silver); }
.tsx-page .value-cell:hover .v-num { color: var(--terra-soft); }

/* glyph rendered as a layered "tile" with depth */
.value-cell .v-glyph, .feature-item .fi-glyph {
  width: 24px; height: 24px; color: var(--grey-soft); display: block;
  box-sizing: content-box; padding: 13px; margin-bottom: 24px; border-radius: 14px;
  background: linear-gradient(160deg, var(--ink-card), var(--ink-panel));
  border: 1px solid var(--ink-line-2);
  box-shadow: 0 8px 20px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.05);
  transition: transform .5s var(--ease-spring), color .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease);
  transform: translateZ(0);
}
.value-cell:hover .v-glyph {
  color: var(--white); border-color: var(--silver-dim); transform: translateY(-3px) scale(1.05) translateZ(30px);
  box-shadow: 0 16px 34px rgba(0,0,0,.55), 0 0 26px rgba(255,255,255,.14), inset 0 1px 0 rgba(255,255,255,.08);
}
.tsx-page .value-cell:hover .v-glyph { color: var(--terra-soft); border-color: var(--terra); box-shadow: 0 16px 34px rgba(0,0,0,.55), 0 0 26px rgba(255,154,99,.28), inset 0 1px 0 rgba(255,255,255,.06); }
.glyph { width: 24px; height: 24px; display: block; }
.value-cell h4 { font-size: 20px; margin-bottom: 11px; letter-spacing: -.01em; transition: transform .5s var(--ease-spring); }
.value-cell:hover h4 { transform: translateZ(18px); }
.value-cell p { font-size: 14px; color: var(--grey); margin: 0; line-height: 1.6; transition: color .4s var(--ease); }
.value-cell:hover p { color: var(--grey-soft); }

/* Timeline ------------------------------------------------------------------*/
.timeline { position: relative; display: grid; gap: 2px; }
.tl-row { display: grid; grid-template-columns: 130px 1fr; gap: 40px; padding: 34px 0; border-top: 1px solid var(--ink-line); align-items: start; transition: background .4s var(--ease); }
.tl-row:last-child { border-bottom: 1px solid var(--ink-line); }
.tl-row:hover { background: var(--ink-raise); }
.tl-year { font-family: var(--font-display); font-size: 26px; font-weight: 700; color: var(--white); letter-spacing: -.02em; }
.tl-body h4 { font-size: 19px; margin-bottom: 8px; }
.tl-body p { font-size: 15px; color: var(--grey); margin: 0; max-width: 620px; }
@media (max-width: 640px) { .tl-row { grid-template-columns: 1fr; gap: 12px; } }

/* CTA band ------------------------------------------------------------------*/
.cta-band { text-align: center; padding: clamp(100px, 14vw, 180px) 0; position: relative; overflow: hidden; }
.cta-band .cta-aurora { position: absolute; top: 50%; left: 50%; width: 900px; height: 500px; transform: translate(-50%,-50%); background: radial-gradient(ellipse at center, rgba(255,255,255,.05), transparent 65%); pointer-events: none; }
.cta-band h2 { font-size: clamp(34px, 6vw, 76px); margin-bottom: 24px; letter-spacing: -.035em; position: relative; }
.cta-band p { max-width: 540px; margin: 0 auto 40px; color: var(--grey); position: relative; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; position: relative; }

/* Footer --------------------------------------------------------------------*/
.site-footer { border-top: 1px solid var(--ink-line); padding: 84px 0 42px; }
.footer-top { display: grid; gap: 52px; grid-template-columns: 1fr; }
@media (min-width: 820px) { .footer-top { grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr; } }
.footer-brand .zmark { width: 36px; height: 36px; color: #fff; margin-bottom: 22px; }
.footer-brand p { font-size: 14px; color: var(--grey-dim); max-width: 320px; }
.footer-col h5 { font-family: var(--font-mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--grey); margin: 0 0 20px; }
.footer-col a { display: block; font-size: 14px; color: var(--grey-dim); padding: 8px 0; transition: color .3s var(--ease), transform .3s var(--ease); width: fit-content; }
.footer-col a:hover { color: var(--white); transform: translateX(4px); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; margin-top: 68px; padding-top: 30px; border-top: 1px solid var(--ink-line); font-size: 13px; color: var(--grey-dim); font-family: var(--font-mono); letter-spacing: .04em; }
.footer-bottom .legal-links { display: flex; gap: 26px; }
.footer-bottom .legal-links a:hover { color: var(--white); }

/* Page hero (interior) ------------------------------------------------------*/
.page-hero { padding: calc(var(--nav-h) + clamp(70px, 11vw, 130px)) 0 clamp(50px, 7vw, 84px); position: relative; overflow: hidden; }
.page-hero .hero-grid { opacity: .38; }
.page-hero h1 { font-size: clamp(42px, 7.5vw, 96px); letter-spacing: -.035em; margin-bottom: 22px; position: relative; }
.page-hero .lede { max-width: 640px; position: relative; }
.breadcrumb { position: relative; font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; color: var(--grey-dim); margin-bottom: 30px; text-transform: uppercase; }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb .sep { margin: 0 10px; color: var(--ink-line-2); }

/* Prose ---------------------------------------------------------------------*/
.prose { max-width: 760px; }
.prose p { margin: 0 0 24px; color: var(--grey-soft); }
.prose p strong { color: #fff; font-weight: 600; }
.prose h3 { font-size: 25px; margin: 52px 0 18px; }
/* Legal documents */
.legal-body { max-width: 800px; }
.legal-body .updated { font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; color: var(--grey-dim); text-transform: uppercase; margin-bottom: 40px; padding-bottom: 24px; border-bottom: 1px solid var(--ink-line); }
.legal-body h2 { font-size: clamp(22px, 3vw, 30px); margin: 56px 0 16px; letter-spacing: -.02em; }
.legal-body h2:first-of-type { margin-top: 0; }
.legal-body h3 { font-size: 18px; margin: 32px 0 12px; color: var(--grey-soft); }
.legal-body p { margin: 0 0 18px; color: var(--grey); font-size: 15.5px; line-height: 1.7; }
.legal-body p strong { color: var(--white); font-weight: 600; }
.legal-body ul { margin: 0 0 22px; padding-left: 0; list-style: none; }
.legal-body ul li { position: relative; padding-left: 26px; margin-bottom: 12px; color: var(--grey); font-size: 15.5px; line-height: 1.65; }
.legal-body ul li::before { content: ""; position: absolute; left: 4px; top: 11px; width: 6px; height: 6px; border-radius: 50%; background: var(--grey-dim); }
.legal-body a { color: var(--white); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--ink-line-2); transition: text-decoration-color .3s var(--ease); }
.legal-body a:hover { text-decoration-color: var(--white); }
.legal-toc { background: var(--ink-raise); border: 1px solid var(--ink-line); border-radius: 8px; padding: 28px 30px; margin-bottom: 56px; }
.legal-toc h4 { font-family: var(--font-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--grey-dim); margin: 0 0 16px; }
.legal-toc ol { margin: 0; padding-left: 20px; color: var(--grey); columns: 2; column-gap: 40px; }
.legal-toc ol li { margin-bottom: 8px; font-size: 14px; }
.legal-toc ol li a { color: var(--grey); text-decoration: none; }
.legal-toc ol li a:hover { color: var(--white); }
@media (max-width: 640px) { .legal-toc ol { columns: 1; } }
/* Careers */
.open-roles { max-width: 820px; margin: 0 auto; }
.roles-head { text-align: center; }
.roles-head .eyebrow { font-family: var(--font-mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--grey); margin: 0 0 16px; }
.roles-head .section-index { color: var(--grey-dim); margin-left: 6px; }
.roles-head h2 { font-size: clamp(26px, 4vw, 42px); letter-spacing: -.02em; margin: 0 0 40px; }
.roles-empty { border: 1px solid var(--ink-line); border-radius: 12px; background: var(--ink-raise); padding: clamp(36px, 6vw, 64px); text-align: center; }
.roles-empty .re-mark { width: 52px; height: 52px; margin: 0 auto 28px; color: var(--grey); opacity: .55; }
.roles-empty .re-mark .zmark { display: block; width: 100%; height: 100%; }
.roles-empty p { color: var(--grey); font-size: 16px; line-height: 1.7; max-width: 560px; margin: 0 auto 18px; }
.roles-empty .roles-sub { color: var(--grey-dim); font-size: 15px; margin-bottom: 30px; }
.roles-empty .btn { margin: 6px auto 0; }

/* Contact -------------------------------------------------------------------*/
.contact-grid { display: grid; gap: 60px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1.05fr .95fr; gap: 90px; } }
.field { margin-bottom: 24px; position: relative; }
.field label { display: block; font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; color: var(--grey-soft); margin-bottom: 10px; text-transform: uppercase; }
.field input, .field textarea, .field select { width: 100%; background: var(--ink-raise); border: 1px solid var(--ink-line-2); color: var(--white); font-family: var(--font-body); font-size: 15px; padding: 15px 17px; border-radius: 4px; transition: border-color .3s var(--ease), background .3s var(--ease); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--grey); background: var(--ink-card); }
.field input::placeholder, .field textarea::placeholder { color: var(--grey-dim); }
.field select { -webkit-appearance: none; -moz-appearance: none; appearance: none; cursor: pointer; padding-right: 44px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%2397979f' stroke-width='1.6' d='M1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 17px center; }
.tsx-page .field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%23c56a3f' stroke-width='1.6' d='M1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E"); }
.field select option { background: var(--ink-panel); color: var(--white); }
.field textarea { resize: vertical; min-height: 140px; }
.contact-detail { padding: 28px 0; border-bottom: 1px solid var(--ink-line); }
.contact-detail:first-child { border-top: 1px solid var(--ink-line); }
.contact-detail .cd-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--grey-dim); margin-bottom: 10px; }
.contact-detail .cd-value { font-size: 17px; color: var(--white); line-height: 1.5; }
.contact-detail .cd-value a:hover { color: var(--grey-soft); }
.form-note { font-size: 13px; color: var(--grey-dim); margin-top: 10px; }
.map-embed { margin-top: 30px; border: 1px solid var(--ink-line); border-radius: 8px; overflow: hidden; aspect-ratio: 16 / 10; filter: grayscale(1) invert(.92) contrast(.9); }
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Mobile nav ----------------------------------------------------------------*/
@media (max-width: 900px) {
  .nav-links { position: fixed; inset: 0 0 0 auto; width: min(84vw, 360px); flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0; background: #060608; border-left: 1px solid var(--ink-line-2); box-shadow: -30px 0 60px rgba(0,0,0,.6); padding: calc(var(--nav-h) + 24px) var(--gutter) 40px; transform: translateX(101%); transition: transform .5s var(--ease); z-index: 340; overflow-y: auto; isolation: isolate; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .nav-links.open { transform: translateX(0); }
  .nav-links > a { display: block; padding: 20px 4px; font-size: 21px; color: var(--white); border-bottom: 1px solid var(--ink-line); font-family: var(--font-display); font-weight: 600; letter-spacing: .01em; }
  .nav-links > a.active { color: var(--white); }
  .nav-links > a::after { display: none; }
  /* CTA rendered as a solid button inside the drawer — force visible white-on-dark */
  .nav-links > a.nav-cta { color: var(--ink) !important; background: var(--white); text-align: center; justify-content: center; margin-top: 24px; padding: 18px !important; border-radius: 3px; border-bottom: 0; font-size: 16px; }
  .nav-links > a.nav-cta span { color: var(--ink) !important; }
  .nav-links > a.nav-cta::before { display: none; }
  .nav-toggle { display: block; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2n) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--ink-line); }
  .nav-menu-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.72); opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility .4s var(--ease); z-index: 305; }
  .nav-menu-backdrop.open { opacity: 1; visibility: visible; }
  /* Give the hero comfortable top room under the fixed header and stop it forcing full-viewport height */
  .hero { min-height: auto; padding: calc(var(--nav-h) + 40px) 0 60px; align-items: flex-start; }
  .hero-inner { padding-top: 0; }
}

/* ==========================================================================
   ILLUSTRATION A — MERGE: five separate tools stack, then become one platform.
   ========================================================================== */
.ill-merge { position: relative; width: 100%; max-width: 540px; margin: 0 auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px; }
.mg-stack { display: grid; gap: 8px; }
.mg-row { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 10px; padding: 11px 13px; border-radius: 10px;
  background: linear-gradient(150deg, var(--ink-card), var(--ink-panel)); border: 1px solid var(--ink-line); position: relative;
  transform: translateX(calc(var(--r) * -3px)); transition: border-color .4s var(--ease), transform .5s var(--ease); }
.ill-merge[data-lit] .mg-row { border-color: var(--ink-line-2); }
.mg-row .mg-ico { width: 15px; height: 15px; color: var(--grey-soft); grid-row: span 2; }
.mg-row .mg-name { font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--grey); }
.mg-row .mg-bar { display: block; height: 4px; border-radius: 4px; background: var(--ink-line-2); overflow: hidden; }
.mg-row .mg-bar i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--silver-dim), var(--silver)); }
.tsx-page .mg-row .mg-bar i { background: linear-gradient(90deg, var(--terra-deep), var(--terra-soft)); }
.mg-arrow { color: var(--grey-dim); display: grid; place-items: center; }
.mg-arrow svg { width: 34px; height: 22px; }
.mg-unified { border-radius: 14px; padding: 16px; border: 1px solid var(--ink-line-2);
  background: radial-gradient(120% 120% at 30% 10%, var(--ink-card), var(--ink)); box-shadow: 0 26px 60px -28px rgba(0,0,0,.85); position: relative; overflow: hidden; }
.mg-unified::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: linear-gradient(150deg, rgba(255,255,255,.18), transparent 46%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.tsx-page .mg-unified::before { background: linear-gradient(150deg, rgba(255,154,99,.3), transparent 46%); }
.mg-u-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.mg-u-mark { font-family: var(--font-display); font-weight: 700; font-size: 15px; color: #fff; }
.mg-u-mark span { color: var(--terra-soft); }
.mg-u-tag { font-family: var(--font-mono); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; color: var(--grey-dim); border: 1px solid var(--ink-line-2); border-radius: 100px; padding: 3px 8px; }
.mg-u-body { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-bottom: 14px; }
.mg-chip { aspect-ratio: 1; display: grid; place-items: center; border-radius: 9px; background: var(--ink-panel); border: 1px solid var(--ink-line); }
.mg-chip svg { width: 15px; height: 15px; color: var(--grey-soft); }
.tsx-page .mg-chip svg { color: var(--terra-soft); }
.mg-u-foot { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 10px; letter-spacing: .04em; color: var(--grey); }
.mg-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--silver); box-shadow: 0 0 8px rgba(255,255,255,.6); animation: mgBlink 2s ease-in-out infinite; }
.tsx-page .mg-dot { background: var(--terra-soft); box-shadow: 0 0 8px var(--terra-glow); }
@keyframes mgBlink { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
@media (max-width: 620px) { .ill-merge { grid-template-columns: 1fr; gap: 14px; } .mg-arrow svg { transform: rotate(90deg); } .mg-row { transform: none; } }

/* ==========================================================================
   ILLUSTRATION B — SCAN: SphereAI reads a field of records, then decides.
   ========================================================================== */
.ill-scan { position: relative; width: 100%; max-width: 540px; margin: 0 auto; border-radius: 16px; overflow: hidden;
  background: linear-gradient(160deg, var(--ink-raise), var(--ink)); border: 1px solid var(--ink-line-2); padding: 20px; box-shadow: 0 30px 66px -30px rgba(0,0,0,.85); }
.sc-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.sc-title { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-display); font-weight: 700; font-size: 15px; color: #fff; }
.sc-eye { width: 18px; height: 18px; color: var(--silver); }
.tsx-page .sc-eye { color: var(--terra-soft); }
.sc-live { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--grey-dim); }
.sc-live-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--silver); animation: mgBlink 1.6s ease-in-out infinite; }
.tsx-page .sc-live-dot { background: var(--terra-soft); }
.sc-grid { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; padding: 6px 0 16px; }
.sc-col { display: grid; gap: 6px; }
.sc-col .sc-h { font-family: var(--font-mono); font-size: 8.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--grey-dim); margin-bottom: 3px; text-align: center; }
.sc-col i { display: block; height: 20px; border-radius: 5px; background: var(--ink-card); border: 1px solid var(--ink-line);
  position: relative; overflow: hidden; }
.sc-col i::after { content: ""; position: absolute; left: 3px; right: 3px; bottom: 3px; height: calc((100% - 6px) * var(--d)); border-radius: 3px;
  background: var(--ink-line-2); transition: background .4s var(--ease); }
/* sweeping scan-line reveals the records as it passes */
.sc-sweep { position: absolute; top: 18px; bottom: 16px; width: 40%; left: -40%; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.12) 60%, rgba(255,255,255,.22));
  border-right: 1px solid var(--silver); animation: scSweep 3.4s cubic-bezier(.5,0,.3,1) infinite; }
.tsx-page .sc-sweep { background: linear-gradient(90deg, transparent, rgba(255,154,99,.16) 60%, rgba(255,154,99,.3)); border-right-color: var(--terra-soft); }
@keyframes scSweep { 0% { left: -40%; } 70% { left: 100%; } 100% { left: 100%; } }
.sc-out { display: grid; gap: 8px; padding: 14px; border-radius: 12px; background: var(--ink-panel); border: 1px solid var(--ink-line-2); }
.sc-out-lab { font-family: var(--font-mono); font-size: 9px; letter-spacing: .14em; text-transform: uppercase; color: var(--grey-dim); }
.sc-out-row { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: var(--grey-soft); line-height: 1.5; }
.sc-out-row b { color: #fff; font-weight: 600; }
.sc-flag { flex: none; width: 8px; height: 8px; border-radius: 2px; margin-top: 5px; background: var(--silver); box-shadow: 0 0 10px rgba(255,255,255,.5); animation: mgBlink 2.4s ease-in-out infinite; }
.tsx-page .sc-flag { background: var(--terra-glow); box-shadow: 0 0 10px var(--terra-glow); }
@media (max-width: 620px) { .sc-grid { grid-template-columns: repeat(3, 1fr); } .sc-col:nth-child(n+4) { display: none; } }
@media (prefers-reduced-motion: reduce) { .sc-sweep { animation: none; left: 30%; opacity: .3; } .mg-dot, .sc-live-dot, .sc-flag { animation: none; } }

/* ==========================================================================
   CLERK-STYLE SPOTLIGHT CARDS — soft radial that follows the cursor
   ========================================================================== */
.spot { position: relative; }
.spot::after { content: ""; position: absolute; inset: 0; border-radius: inherit; opacity: 0;
  transition: opacity .4s var(--ease); pointer-events: none;
  background: radial-gradient(240px circle at var(--mx,50%) var(--my,50%), rgba(255,255,255,.07), transparent 60%); }
.tsx-page .spot::after { background: radial-gradient(240px circle at var(--mx,50%) var(--my,50%), rgba(226,137,90,.12), transparent 60%); }
.spot:hover::after { opacity: 1; }

/* ==========================================================================
   FEATURE ICON RAIL — the custom glyph family shown as capability cards
   ========================================================================== */
.glyph-grid { display: grid; gap: 1px; background: var(--ink-line); border: 1px solid var(--ink-line); border-radius: 8px; overflow: hidden; }
@media (min-width: 640px) { .glyph-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .glyph-grid.five { grid-template-columns: repeat(5, 1fr); } }
.glyph-cell { background: var(--ink-raise); padding: 34px 26px; transition: background .4s var(--ease); position: relative; }
.glyph-cell:hover { background: var(--ink-card); }
.glyph-cell .gc-ico { width: 30px; height: 30px; color: var(--grey-soft); margin-bottom: 22px; transition: color .4s var(--ease), transform .5s var(--ease-spring); }
.glyph-cell:hover .gc-ico { color: var(--white); transform: translateY(-3px); }
.tsx-page .glyph-cell:hover .gc-ico { color: var(--terra-soft); }
.glyph-cell .gc-name { font-family: var(--font-display); font-size: 17px; font-weight: 600; color: var(--white); margin-bottom: 8px; }
.glyph-cell .gc-desc { font-size: 13.5px; color: var(--grey); margin: 0; line-height: 1.55; }
.glyph-cell .gc-num { position: absolute; top: 26px; right: 26px; font-family: var(--font-mono); font-size: 11px; color: var(--ink-line-2); letter-spacing: .1em; }

/* Node glyph inside the CSS 3D diagram pills */
.node .nd-glyph { width: 14px; height: 14px; color: var(--silver); flex: none; }
.tsx-page .node .nd-glyph { color: var(--terra-soft); }

/* Glyph sizing inside feature index cells + engine kickers */
.feature-item .fi-idx .glyph { width: 22px; height: 22px; }
.feature-item .fi-idx { display: flex; align-items: flex-start; }
.engine-half .eh-ico { width: 28px; height: 28px; color: var(--terra-soft); margin-bottom: 18px; }

/* ==========================================================================
   ILL-RUN — premium interactive "live workflow" (TechSphereX page).
   Compact horizontal run: Trigger → Decide → Act → Done. A progress line
   fills, steps light in sequence, each is hoverable. Terra-scoped.
   ========================================================================== */
.ill-run { max-width: 720px; margin: 0 auto; border: 1px solid var(--ink-line-2); border-radius: 16px;
  background: linear-gradient(160deg, var(--ink-card), var(--ink)); padding: 22px 24px 26px; position: relative; overflow: hidden; box-shadow: 0 30px 66px -32px rgba(0,0,0,.85); }
.ill-run::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: linear-gradient(150deg, rgba(255,154,99,.28), transparent 48%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.run-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.run-title { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--grey-soft); }
.run-live { width: 8px; height: 8px; border-radius: 50%; background: var(--terra-glow); box-shadow: 0 0 10px var(--terra-glow); animation: runBlink 1.6s ease-in-out infinite; }
@keyframes runBlink { 0%,100% { opacity: 1; } 50% { opacity: .3; } }
.run-meta { font-family: var(--font-mono); font-size: 10px; letter-spacing: .04em; color: var(--grey-dim); }
@media (max-width: 560px) { .run-meta { display: none; } }

.run-track { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
/* progress line behind the steps */
.run-line { position: absolute; left: 12%; right: 12%; top: 27px; height: 2px; background: var(--ink-line-2); border-radius: 2px; overflow: hidden; }
.run-line-fill { position: absolute; inset: 0; width: 0; background: linear-gradient(90deg, var(--terra-deep), var(--terra-soft), var(--terra-glow)); border-radius: 2px; animation: runFill 5s var(--ease) infinite; }
@keyframes runFill { 0% { width: 0; } 18% { width: 8%; } 40% { width: 37%; } 62% { width: 63%; } 84%,100% { width: 100%; } }

.run-step { position: relative; z-index: 2; display: grid; justify-items: center; gap: 8px; padding: 0; border: 0; background: none; cursor: pointer; font: inherit; text-align: center; -webkit-tap-highlight-color: transparent; }
.run-ico { width: 24px; height: 24px; display: grid; place-items: center; box-sizing: content-box; padding: 14px; border-radius: 14px;
  background: radial-gradient(120% 120% at 30% 20%, var(--ink-card), var(--ink-panel)); border: 1px solid var(--ink-line-2); color: var(--grey);
  box-shadow: 0 8px 20px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.05);
  transition: color .4s var(--ease), border-color .4s var(--ease), transform .5s var(--ease-spring), box-shadow .45s var(--ease); }
.run-ico svg { width: 24px; height: 24px; }
.run-name { font-family: var(--font-display); font-weight: 600; font-size: 15px; color: var(--white); transition: color .35s var(--ease); }
.run-sub { font-family: var(--font-mono); font-size: 10px; letter-spacing: .03em; color: var(--grey-dim); transition: color .35s var(--ease); }

/* sequential activation driven by the same 5s cycle */
.run-step .run-ico { animation: runStep 5s var(--ease) infinite; }
.run-step[data-s="1"] .run-ico { animation-delay: .9s; }
.run-step[data-s="2"] .run-ico { animation-delay: 1.9s; }
.run-step[data-s="3"] .run-ico { animation-delay: 2.9s; }
@keyframes runStep {
  0%, 12% { color: var(--grey); border-color: var(--ink-line-2); transform: translateY(0) scale(1); box-shadow: 0 8px 20px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.05); }
  16%, 30% { color: var(--terra-soft); border-color: var(--terra); transform: translateY(-4px) scale(1.05); box-shadow: 0 16px 34px rgba(0,0,0,.55), 0 0 26px rgba(197,106,63,.4), inset 0 1px 0 rgba(255,255,255,.08); }
  46%, 100% { color: var(--terra-soft); border-color: var(--terra-deep); transform: translateY(0) scale(1); box-shadow: 0 10px 24px rgba(0,0,0,.5), 0 0 14px rgba(197,106,63,.22), inset 0 1px 0 rgba(255,255,255,.06); }
}
.run-step.is-done .run-ico { color: var(--terra-glow); }
/* hover overrides the loop: lift + brighten this step */
.run-step:hover .run-ico, .run-step:focus-visible .run-ico { animation-play-state: paused; color: var(--terra-glow); border-color: var(--terra); transform: translateY(-5px) scale(1.08); box-shadow: 0 18px 40px rgba(0,0,0,.6), 0 0 32px rgba(255,154,99,.5), inset 0 1px 0 rgba(255,255,255,.1); }
.run-step:hover .run-name, .run-step:focus-visible .run-name { color: var(--terra-soft); }
.run-step:hover .run-sub, .run-step:focus-visible .run-sub { color: var(--grey-soft); }
.run-step:focus-visible { outline: none; }
.run-step:focus-visible .run-ico { outline: 2px solid var(--terra); outline-offset: 3px; }

@media (max-width: 560px) {
  .run-track { grid-template-columns: 1fr; gap: 14px; justify-items: start; }
  .run-track .run-step { grid-template-columns: auto 1fr; justify-items: start; align-items: center; gap: 4px 14px; width: 100%; }
  .run-step .run-ico { grid-row: span 2; }
  .run-line { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .run-line-fill { animation: none; width: 100%; }
  .run-step .run-ico { animation: none; color: var(--terra-soft); border-color: var(--terra-deep); }
  .run-live { animation: none; }
}
