/* Transit Scope — tracking UI independent of Appily track patterns */
.tx-page {
  --tx-ink: #10131a;
  --tx-slate: #334052;
  --tx-fog: #e8edf4;
  --tx-snow: #f6f8fb;
  --tx-line: rgba(16, 19, 26, 0.12);
  --tx-volt: #2bb673;
  --tx-volt-deep: #1a8a55;
  --tx-amber: #e09a1b;
  --tx-rose: #d24b4b;
  --tx-night: #0b1018;
  --tx-font: 'Nunito Sans', system-ui, sans-serif;
  --tx-display: 'Chivo', system-ui, sans-serif;
  --tx-mono: 'Space Mono', ui-monospace, monospace;
  --tx-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --tx-spring: cubic-bezier(0.34, 1.45, 0.64, 1);
  --tx-progress: 0;
}

.tx-page .a68-main {
  padding-top: 4.5rem;
}

.tx-scope {
  position: relative;
  isolation: isolate;
  max-width: var(--sc-max, 1180px);
  margin: 0 auto;
  padding: clamp(1.15rem, 3vw, 2.35rem) clamp(1rem, 2.8vw, 1.6rem) 3.5rem;
  font-family: var(--tx-font);
  color: var(--tx-ink);
}

.tx-gridlines {
  position: absolute;
  inset: 0 -8% auto;
  height: min(55vh, 460px);
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(43, 182, 115, 0.05) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(rgba(43, 182, 115, 0.05) 1px, transparent 1px) 0 0 / 48px 48px,
    radial-gradient(ellipse 60% 70% at 70% 20%, rgba(224, 154, 27, 0.14), transparent 65%),
    radial-gradient(ellipse 50% 60% at 10% 40%, rgba(43, 182, 115, 0.12), transparent 70%);
  mask-image: linear-gradient(180deg, #000 35%, transparent);
  animation: tx-grid-drift 18s linear infinite;
}

@keyframes tx-grid-drift {
  from { background-position: 0 0, 0 0, 0 0, 0 0; }
  to { background-position: 48px 48px, 48px 48px, 0 0, 0 0; }
}

.tx-hero {
  max-width: 40rem;
  margin-bottom: 1.65rem;
  animation: tx-rise 0.55s var(--tx-ease) both;
}

.tx-eyebrow {
  margin: 0 0 0.55rem;
  font-family: var(--tx-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tx-volt-deep);
}

.tx-eyebrow-warn {
  color: var(--tx-rose);
}

.tx-hero h1 {
  margin: 0 0 0.65rem;
  font-family: var(--tx-display);
  font-size: clamp(2.6rem, 7vw, 4.2rem);
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 0.95;
  text-transform: lowercase;
  color: var(--tx-ink);
}

.tx-hero h1 span {
  display: block;
  font-size: 0.38em;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--tx-amber);
  margin-bottom: 0.15em;
}

.tx-lede {
  margin: 0;
  color: var(--tx-slate);
  font-size: 1.05rem;
  line-height: 1.55;
}

.tx-dash {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.2fr);
  gap: clamp(1rem, 2.5vw, 1.75rem);
  align-items: stretch;
}

/* Console */
.tx-console {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  padding: 1.35rem 1.3rem 1.4rem;
  background: #fff;
  border: 1px solid var(--tx-line);
  box-shadow: 0 20px 50px rgba(16, 19, 26, 0.08);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%);
  animation: tx-rise 0.6s var(--tx-ease) 0.05s both;
}

.tx-console-head h2 {
  margin: 0 0 0.3rem;
  font-family: var(--tx-display);
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.tx-console-head p {
  margin: 0;
  color: var(--tx-slate);
  font-size: 0.95rem;
}

.tx-form {
  display: grid;
  gap: 0.9rem;
}

.tx-field {
  display: grid;
  gap: 0.4rem;
}

.tx-field label {
  font-family: var(--tx-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tx-slate);
}

.tx-field input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.9rem 1rem;
  border: 1.5px solid var(--tx-line);
  background: var(--tx-snow);
  font: inherit;
  font-size: 1.02rem;
  color: var(--tx-ink);
  border-radius: 0;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.tx-field input:focus {
  outline: none;
  border-color: var(--tx-volt);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(43, 182, 115, 0.15);
}

.tx-field input::placeholder {
  color: #3f4d5f;
}

.tx-submit {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.25rem;
  padding: 1rem 1.15rem;
  border: 0;
  background: linear-gradient(120deg, var(--tx-night) 0%, #153028 100%);
  color: #fff;
  font-family: var(--tx-display);
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
  transition: transform 0.25s var(--tx-spring), filter 0.2s, box-shadow 0.25s;
  box-shadow: 0 14px 32px rgba(11, 16, 24, 0.28);
}

.tx-submit i {
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: var(--tx-volt);
  position: relative;
  transition: transform 0.3s var(--tx-spring);
}

.tx-submit i::before {
  content: '';
  position: absolute;
  inset: 0;
  margin: auto;
  width: 0.45rem;
  height: 0.45rem;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translate(-1px, -1px);
}

.tx-submit:hover {
  filter: brightness(1.05);
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(11, 16, 24, 0.35);
}

.tx-submit:hover i {
  transform: translateX(3px);
}

.tx-submit:active {
  transform: translateY(0) scale(0.98);
}

.tx-support-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
  padding-top: 0.35rem;
  border-top: 1px dashed var(--tx-line);
}

.tx-support-rail a {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--tx-slate);
  text-decoration: none;
  position: relative;
}

.tx-support-rail a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background: var(--tx-volt);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s var(--tx-ease);
}

.tx-support-rail a:hover {
  color: var(--tx-ink);
}

.tx-support-rail a:hover::after {
  transform: scaleX(1);
}

.tx-hours {
  margin: 0;
  font-family: var(--tx-mono);
  font-size: 0.7rem;
  color: #3f4d5f;
}

/* Viewport / orbit */
.tx-viewport {
  position: relative;
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 1rem;
  padding: 1.25rem;
  min-height: 28rem;
  background: linear-gradient(155deg, #0b1018 0%, #13202a 48%, #0f3a32 100%);
  color: #e8eef5;
  box-shadow: 0 24px 60px rgba(11, 16, 24, 0.35);
  clip-path: polygon(18px 0, 100% 0, 100% 100%, 0 100%, 0 18px);
  overflow: hidden;
  animation: tx-rise 0.65s var(--tx-ease) 0.1s both;
}

.tx-viewport::before {
  content: '';
  position: absolute;
  inset: -20%;
  background: radial-gradient(circle at 70% 30%, rgba(43, 182, 115, 0.22), transparent 45%);
  pointer-events: none;
  animation: tx-glow 7s ease-in-out infinite alternate;
}

@keyframes tx-glow {
  from { opacity: 0.55; transform: scale(1); }
  to { opacity: 1; transform: scale(1.08); }
}

.tx-orbit {
  position: relative;
  z-index: 1;
  width: min(100%, 340px);
  aspect-ratio: 1;
  margin: 0.5rem auto;
}

.tx-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.tx-ring-track {
  stroke: rgba(255, 255, 255, 0.12);
  stroke-width: 3;
}

.tx-ring-progress {
  stroke: var(--tx-volt);
  stroke-width: 4;
  stroke-linecap: round;
  transition: stroke-dashoffset 1.1s var(--tx-ease);
  filter: drop-shadow(0 0 8px rgba(43, 182, 115, 0.55));
}

.tx-scope[data-state='miss'] .tx-ring-progress {
  stroke: var(--tx-rose);
  filter: drop-shadow(0 0 8px rgba(210, 75, 75, 0.45));
}

.tx-scope[data-state='idle'] .tx-ring-progress {
  stroke: rgba(224, 154, 27, 0.45);
}

.tx-orbit-core {
  position: absolute;
  inset: 28%;
  display: grid;
  place-content: center;
  text-align: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
}

.tx-core-kicker {
  margin: 0;
  font-family: var(--tx-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8fd4b0;
}

.tx-scope[data-state='miss'] .tx-core-kicker {
  color: #f0a0a0;
}

.tx-core-status {
  margin: 0.35rem 0 0;
  font-family: var(--tx-display);
  font-size: clamp(1.15rem, 3vw, 1.45rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
}

.tx-satellites {
  list-style: none;
  margin: 0;
  padding: 0;
  position: absolute;
  inset: 0;
}

.tx-sat {
  position: absolute;
  left: 50%;
  top: 50%;
  width: max-content;
  max-width: 7.5rem;
  transform:
    translate(-50%, -50%)
    rotate(var(--tx-angle))
    translateY(-9.6rem)
    rotate(calc(var(--tx-angle) * -1));
  display: grid;
  gap: 0.25rem;
  justify-items: center;
  text-align: center;
}

.tx-sat-node {
  width: 2.15rem;
  height: 2.15rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-family: var(--tx-mono);
  font-size: 0.68rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  color: rgba(232, 238, 245, 0.7);
  transition: background 0.35s, border-color 0.35s, color 0.35s, transform 0.4s var(--tx-spring), box-shadow 0.35s;
}

.tx-sat-copy strong {
  display: block;
  font-family: var(--tx-display);
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(232, 238, 245, 0.75);
}

.tx-sat-copy small {
  display: block;
  font-size: 0.62rem;
  color: rgba(232, 238, 245, 0.84);
  line-height: 1.25;
}

.tx-sat.is-done .tx-sat-node {
  background: rgba(43, 182, 115, 0.25);
  border-color: var(--tx-volt);
  color: #fff;
}

.tx-sat.is-live .tx-sat-node {
  background: var(--tx-volt);
  border-color: #fff;
  color: #fff;
  transform: scale(1.12);
  box-shadow: 0 0 0 6px rgba(43, 182, 115, 0.25);
  animation: tx-live-pulse 1.8s ease-in-out infinite;
}

.tx-sat.is-done .tx-sat-copy strong,
.tx-sat.is-live .tx-sat-copy strong {
  color: #fff;
}

@keyframes tx-live-pulse {
  0%, 100% { box-shadow: 0 0 0 6px rgba(43, 182, 115, 0.2); }
  50% { box-shadow: 0 0 0 10px rgba(43, 182, 115, 0.08); }
}

.tx-sweep {
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0deg, rgba(43, 182, 115, 0.28) 40deg, transparent 70deg);
  animation: tx-sweep 4.5s linear infinite;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0.65;
}

.tx-scope[data-state='hit'] .tx-sweep {
  animation-duration: 2.8s;
  opacity: 0.85;
}

.tx-scope[data-state='miss'] .tx-sweep {
  background: conic-gradient(from 0deg, transparent 0deg, rgba(210, 75, 75, 0.3) 40deg, transparent 70deg);
}

@keyframes tx-sweep {
  to { transform: rotate(360deg); }
}

/* Readout */
.tx-readout {
  position: relative;
  z-index: 1;
  padding: 1.1rem 1.15rem 1.2rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  animation: tx-readout-in 0.55s var(--tx-ease) both;
}

.tx-scope[data-state='hit'] .tx-readout {
  border-color: rgba(43, 182, 115, 0.35);
}

.tx-scope[data-state='miss'] .tx-readout {
  border-color: rgba(210, 75, 75, 0.4);
}

@keyframes tx-readout-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.tx-readout h3 {
  margin: 0 0 0.55rem;
  font-family: var(--tx-display);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
}

.tx-order-id {
  font-family: var(--tx-mono) !important;
  font-size: 1.15rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em !important;
  word-break: break-all;
}

.tx-readout-copy {
  margin: 0 0 1rem;
  color: rgba(232, 238, 245, 0.75);
  line-height: 1.5;
  font-size: 0.95rem;
}

.tx-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0 0 1.1rem;
}

.tx-facts div {
  padding: 0.65rem 0.7rem;
  background: rgba(0, 0, 0, 0.2);
  border-left: 3px solid var(--tx-volt);
}

.tx-facts dt {
  font-family: var(--tx-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(232, 238, 245, 0.84);
}

.tx-facts dd {
  margin: 0.25rem 0 0;
  font-family: var(--tx-display);
  font-size: 1.02rem;
  font-weight: 700;
  color: #fff;
}

.tx-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.2rem;
  background: var(--tx-volt);
  color: #fff;
  font-family: var(--tx-display);
  font-weight: 800;
  font-size: 0.95rem;
  text-decoration: none;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
  transition: transform 0.25s var(--tx-spring), filter 0.2s, background 0.2s;
}

.tx-cta:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
}

.tx-cta-ghost {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  clip-path: none;
  border-radius: 0;
}

.tx-cta-ghost:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

@keyframes tx-rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
  .tx-dash {
    grid-template-columns: 1fr;
  }

  .tx-viewport {
    min-height: 0;
    order: -1;
  }

  .tx-sat-copy small {
    display: none;
  }

  .tx-sat {
    max-width: 5.5rem;
  }
}

@media (max-width: 520px) {
  .tx-orbit {
    width: min(100%, 280px);
  }

  .tx-sat {
    transform:
      translate(-50%, -50%)
      rotate(var(--tx-angle))
      translateY(-7.85rem)
      rotate(calc(var(--tx-angle) * -1));
    max-width: 5.2rem;
  }

  .tx-sat-copy strong {
    font-size: 0.68rem;
  }

  .tx-facts {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tx-gridlines,
  .tx-viewport::before,
  .tx-sweep,
  .tx-sat.is-live .tx-sat-node,
  .tx-hero,
  .tx-console,
  .tx-viewport,
  .tx-readout,
  .tx-ring-progress,
  .tx-submit,
  .tx-cta {
    animation: none !important;
    transition: none !important;
  }
}
