/* TermixOS — Black & Gold Theme */

:root {
  --bg: #050505;
  --bg-elevated: #0c0c0c;
  --surface: #111111;
  --surface-hover: #1a1a1a;
  --border: rgba(201, 162, 39, 0.15);
  --border-strong: rgba(201, 162, 39, 0.35);
  --gold: #C9A227;
  --gold-light: #E8C547;
  --gold-dim: rgba(201, 162, 39, 0.12);
  --text: #f0f0f0;
  --text-muted: #888888;
  --text-dim: #555555;
  --terminal-green: #4ade80;
  --terminal-amber: #fbbf24;
  --terminal-red: #f87171;
  --radius: 12px;
  --radius-sm: 8px;
  --font: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-display: 'Space Grotesk', 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-brand: 'Space Grotesk', 'Plus Jakarta Sans', system-ui, sans-serif;
  --mono: 'JetBrains Mono', 'Consolas', monospace;
  --nav-h: 60px;
  --shadow-gold: 0 0 60px rgba(201, 162, 39, 0.08);
  --transition: 0.2s ease;
  /* CodePen YPqGgxa — soft glass preset */
  --lg-depth: 60;
  --lg-splay: 2;
  --lg-feather: 24;
  --lg-curve: 2;
  --lg-blur: 14px;
  --lg-glint: 0.25;
  --lg-tint: rgba(255, 255, 255, 0.06);
  --lg-border: rgba(255, 255, 255, 0.16);
  --lg-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  scrollbar-width: none;
  -ms-overflow-style: none;
  overscroll-behavior: none;
  touch-action: manipulation;
}

html, body {
  overscroll-behavior: none;
  -webkit-overflow-scrolling: touch;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar,
*::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

* {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  overscroll-behavior: none;
  letter-spacing: -0.01em;
  touch-action: manipulation;
}

h1, h2, h3, .tmx-page-hero h1, .tmx-section-header h2 {
  font-family: var(--font-display);
  letter-spacing: -0.03em;
}

/* ── Background scene ── */
.tmx-bg-scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: var(--bg) var(--tmx-bg-desktop, url('/x/i/background.jpg')) center / cover no-repeat;
  background-attachment: fixed;
}

.tmx-bg-scene::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 5, 5, 0.12) 0%, rgba(5, 5, 5, 0.5) 55%, rgba(5, 5, 5, 0.75) 100%),
    radial-gradient(ellipse 90% 60% at 50% -10%, rgba(201, 162, 39, 0.1), transparent 55%);
  pointer-events: none;
}

.tmx-svg-filters {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

/* ── Liquid glass (CodePen mr-tipton/YPqGgxa layer stack) ── */
.tmx-glass,
.tmx-hero-content,
.tmx-terminal,
.tmx-feature-card,
.tmx-price-card,
.tmx-pipeline-step,
.tmx-stat,
.tmx-cta-box,
.tmx-dash-panel,
.tmx-risk-banner,
.tmx-footer-disclaimer {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid var(--lg-border);
  box-shadow: var(--lg-shadow);
}

.tmx-lg-blur,
.tmx-lg-refract,
.tmx-lg-tint,
.tmx-lg-glint {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
}

.tmx-lg-blur {
  z-index: 0;
  backdrop-filter: blur(var(--lg-blur)) saturate(200%) brightness(1.04);
  -webkit-backdrop-filter: blur(var(--lg-blur)) saturate(200%) brightness(1.04);
}

.tmx-lg-refract {
  z-index: 1;
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  will-change: filter;
}

.tmx-lg-tint {
  z-index: 2;
  background: var(--lg-tint);
  mix-blend-mode: multiply;
}

.tmx-lg-glint {
  z-index: 3;
  opacity: var(--lg-glint);
  box-shadow:
    inset 1.5px 1.5px 4px rgba(255, 255, 255, 0.7),
    inset -2px -2px 5px rgba(0, 0, 0, 0.28);
}

.tmx-lg-content {
  position: relative;
  z-index: 4;
}

.tmx-lg-ready > .tmx-terminal-bar,
.tmx-lg-ready > .tmx-terminal-body {
  position: relative;
  z-index: 4;
}

.tmx-glass-strong {
  --lg-blur: 18px;
  --lg-glint: 0.35;
}

/* Legacy fallback before JS layers mount */
.tmx-glass:not(.tmx-lg-ready),
.tmx-hero-content:not(.tmx-lg-ready),
.tmx-terminal:not(.tmx-lg-ready),
.tmx-feature-card:not(.tmx-lg-ready),
.tmx-price-card:not(.tmx-lg-ready),
.tmx-pipeline-step:not(.tmx-lg-ready),
.tmx-stat:not(.tmx-lg-ready),
.tmx-cta-box:not(.tmx-lg-ready),
.tmx-dash-panel:not(.tmx-lg-ready),
.tmx-risk-banner:not(.tmx-lg-ready),
.tmx-footer-disclaimer:not(.tmx-lg-ready) {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(var(--lg-blur)) saturate(200%);
  -webkit-backdrop-filter: blur(var(--lg-blur)) saturate(200%);
}

.tmx-glass:not(.tmx-lg-ready)::after,
.tmx-hero-content:not(.tmx-lg-ready)::after,
.tmx-feature-card:not(.tmx-lg-ready)::after,
.tmx-price-card:not(.tmx-lg-ready)::after,
.tmx-pipeline-step:not(.tmx-lg-ready)::after,
.tmx-stat:not(.tmx-lg-ready)::after,
.tmx-cta-box:not(.tmx-lg-ready)::after,
.tmx-dash-panel:not(.tmx-lg-ready)::after,
.tmx-risk-banner:not(.tmx-lg-ready)::after,
.tmx-footer-disclaimer:not(.tmx-lg-ready)::after,
.tmx-terminal:not(.tmx-lg-ready)::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 2;
  opacity: var(--lg-glint);
  box-shadow:
    inset 1.5px 1.5px 4px rgba(255, 255, 255, 0.7),
    inset -2px -2px 5px rgba(0, 0, 0, 0.28);
}

body::before {
  display: none;
}

@media (max-width: 768px) {
  .tmx-bg-scene {
    background-image: var(--tmx-bg-mobile, url('/x/i/background2.jpg'));
    background-attachment: scroll;
  }
}

#tmx-root { position: relative; z-index: 1; min-height: 100vh; display: flex; flex-direction: column; }
#tmx-main { flex: 1; }

.tmx-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.tmx-gold { color: var(--gold); }

.tmx-brand-font {
  font-family: var(--font-brand);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ── Brand showcase (landing top — no background) ── */
.tmx-brand-showcase {
  margin: calc(var(--nav-h) + 20px) auto 8px;
  max-width: 560px;
  padding: 0 24px;
  background: none;
  border: none;
  box-shadow: none;
}

.tmx-brand-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 12px 0 4px;
  text-align: center;
}

.tmx-brand-logo-wrap {
  width: 152px;
  height: 152px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tmx-brand-logo {
  width: 136px;
  height: 136px;
  object-fit: contain;
  opacity: 0;
  transform: scale(0.55);
  filter: drop-shadow(0 12px 32px rgba(201, 162, 39, 0.35));
}

.tmx-brand-logo.tmx-logo-live {
  animation:
    tmxLogoPopIn 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) forwards,
    tmxLogoFloat 8s ease-in-out 0.9s infinite;
}

@keyframes tmxLogoPopIn {
  0% { opacity: 0; transform: scale(0.55) rotate(0deg); }
  65% { opacity: 1; transform: scale(1.08) rotate(0deg); }
  100% { opacity: 1; transform: scale(1) rotate(0deg); }
}

@keyframes tmxLogoFloat {
  0%, 100% { transform: translateY(0) scale(1) rotate(-2.5deg); }
  25% { transform: translateY(-8px) scale(1.04) rotate(2deg); }
  50% { transform: translateY(-14px) scale(1.06) rotate(-1.5deg); }
  75% { transform: translateY(-6px) scale(1.03) rotate(1.8deg); }
}

.tmx-brand-title {
  font-size: clamp(34px, 8vw, 52px);
  line-height: 1;
  background: linear-gradient(135deg, #fff 0%, var(--gold-light) 45%, var(--gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.tmx-brand-title span {
  background: linear-gradient(135deg, var(--gold-light) 0%, #fff6cc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.tmx-brand-sub {
  font-size: 14px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.tmx-brand-sub i { color: var(--gold); }

.tmx-hscroll {
  scrollbar-width: none;
  -ms-overflow-style: none;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.tmx-scroll-wrap {
  position: relative;
}

.tmx-scroll-bar {
  position: relative;
  height: 3px;
  width: min(140px, 42%);
  margin: 12px auto 0;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 100px;
  overflow: hidden;
}

.tmx-scroll-bar[hidden] {
  display: none;
}

.tmx-scroll-thumb {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  min-width: 18%;
  background: linear-gradient(90deg, rgba(201, 162, 39, 0.45), var(--gold));
  border-radius: 100px;
  transition: left 0.12s ease, width 0.12s ease;
  box-shadow: 0 0 10px rgba(201, 162, 39, 0.35);
}

.tmx-hscroll.tmx-scroll-centered {
  justify-content: center;
}

.tmx-scroll-wrap .tmx-stat.tmx-reveal,
.tmx-scroll-wrap .tmx-pipeline-step.tmx-reveal {
  flex-shrink: 0;
}

.tmx-hscroll::-webkit-scrollbar {
  display: none;
  height: 0;
}

/* ── Navigation (transparent → liquid glass on scroll) ── */
.tmx-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  z-index: 100;
  --nav-glass: 0;
  background: transparent;
  border-bottom: 1px solid transparent;
  box-shadow: none;
}

.tmx-nav::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: var(--nav-glass);
  background: rgba(10, 10, 14, 0.52);
  backdrop-filter: blur(22px) saturate(200%) brightness(1.05);
  -webkit-backdrop-filter: blur(22px) saturate(200%) brightness(1.05);
  z-index: 0;
  pointer-events: none;
  will-change: opacity;
}

.tmx-nav::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: var(--nav-glass);
  pointer-events: none;
  z-index: 1;
  border-bottom: 1px solid rgba(201, 162, 39, 0.2);
  will-change: opacity;
}

.tmx-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding-top: 2px;
  padding-bottom: 2px;
  position: relative;
  z-index: 2;
}

.tmx-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--text);
}

.tmx-logo-img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
  border: none;
  box-shadow: none;
}

.tmx-logo-text {
  display: none;
}

.tmx-x-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border-radius: 100px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}

.tmx-x-link i {
  font-size: 13px;
  color: var(--text);
}

.tmx-x-link:hover {
  color: var(--gold-light);
  border-color: rgba(201, 162, 39, 0.35);
  background: rgba(201, 162, 39, 0.08);
}

.tmx-x-link:hover i { color: var(--gold-light); }

/* Mobile menu — liquid glass dropdown */
.tmx-mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 120;
  pointer-events: none;
  visibility: hidden;
}

.tmx-mobile-menu.open {
  pointer-events: auto;
  visibility: visible;
}

.tmx-mobile-menu-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  transition: opacity 0.28s ease;
}

.tmx-mobile-menu.open .tmx-mobile-menu-backdrop {
  opacity: 1;
}

.tmx-mobile-menu-panel {
  position: fixed;
  top: var(--menu-y, 70px);
  right: calc(100vw - var(--menu-x, calc(100vw - 16px)));
  left: auto;
  width: min(280px, calc(100vw - 24px));
  border-radius: calc(var(--radius) + 4px);
  padding: 10px;
  transform: scale(0.55);
  opacity: 0;
  visibility: hidden;
  transform-origin: var(--menu-origin-x, 100%) 0;
  transition:
    transform 0.34s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.26s ease,
    visibility 0.34s;
  z-index: 125;
}

.tmx-mobile-menu.open .tmx-mobile-menu-panel {
  transform: scale(1);
  opacity: 1;
  visibility: visible;
}

.tmx-mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
  z-index: 5;
}

.tmx-mobile-nav-links a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 500;
  transition: background var(--transition), color var(--transition);
}

.tmx-mobile-nav-links a:hover,
.tmx-mobile-nav-links a.active {
  color: var(--gold-light);
  background: rgba(201, 162, 39, 0.1);
}

.tmx-mobile-nav-links a i {
  width: 18px;
  text-align: center;
  color: var(--gold);
}

.tmx-mobile-nav-links .tmx-x-link {
  margin-top: 6px;
  justify-content: center;
}

body.tmx-menu-open {
  overflow: hidden;
}

.tmx-logo-mark {
  width: 36px;
  height: 36px;
  display: none;
}

.tmx-logo-text {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.tmx-nav-links {
  display: flex;
  gap: 32px;
}

.tmx-nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.tmx-nav-links a:hover,
.tmx-nav-links a.active { color: var(--gold); }

.tmx-nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tmx-mobile-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  width: 40px;
  height: 40px;
  position: relative;
  z-index: 130;
}

.tmx-mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.22s ease, background 0.2s ease;
  transform-origin: center;
}

.tmx-mobile-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.tmx-mobile-toggle.is-open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.tmx-mobile-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── Buttons ── */
.tmx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  text-decoration: none;
  white-space: nowrap;
}

.tmx-btn-sm { padding: 8px 16px; font-size: 13px; }
.tmx-btn-full { width: 100%; }

.tmx-btn-primary {
  background: linear-gradient(135deg, rgba(201, 162, 39, 0.95) 0%, rgba(168, 134, 32, 0.95) 100%);
  color: #050505;
  box-shadow: 0 4px 20px rgba(201, 162, 39, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(8px);
}

.tmx-btn-primary:hover {
  background: linear-gradient(135deg, rgba(232, 197, 71, 0.98) 0%, rgba(201, 162, 39, 0.98) 100%);
  box-shadow: 0 6px 28px rgba(201, 162, 39, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  transform: translateY(-1px);
}

.tmx-btn-outline {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border: 1px solid rgba(201, 162, 39, 0.28);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.tmx-btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold-light);
  background: rgba(201, 162, 39, 0.12);
}

.tmx-btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid transparent;
}

.tmx-btn-ghost:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
}

/* ── Hero ── */
.tmx-btn i { font-size: 0.9em; }

.tmx-hero {
  padding: 32px 0 100px;
  position: relative;
}

.tmx-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: stretch;
}

.tmx-hero-terminal-wrap,
.tmx-hero-terminal-wrap .tmx-terminal {
  height: 100%;
  min-height: 0;
}

.tmx-hero-terminal,
.tmx-hero-terminal-wrap .tmx-terminal {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.tmx-hero-terminal .tmx-lg-content,
.tmx-hero-terminal-wrap .tmx-lg-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

@media (min-width: 769px) {
  .tmx-hero-terminal .tmx-terminal-body,
  .tmx-hero-terminal-wrap .tmx-terminal-body {
    flex: 1;
    min-height: 0;
    max-height: none;
    height: auto;
  }
}

.tmx-hero-content {
  padding: 36px;
  border-radius: calc(var(--radius) + 4px);
}

.tmx-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
  color: var(--gold-light);
  margin-bottom: 24px;
  backdrop-filter: blur(8px);
  position: relative;
  z-index: 1;
}

.tmx-hero-badge i {
  color: var(--terminal-green);
  font-size: 10px;
}

.tmx-chain-pill i {
  color: var(--gold-light);
  font-size: 10px;
  margin-right: 4px;
}

.tmx-hero h1 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.tmx-hero-sub {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 32px;
  line-height: 1.7;
}

.tmx-hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.tmx-hero-chains {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tmx-chain-pill {
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  backdrop-filter: blur(8px);
  position: relative;
  z-index: 1;
}

.tmx-chain-pill span { color: var(--gold-light); margin-right: 4px; }

.tmx-hero-chains {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ── Terminal Widget ── */
.tmx-terminal {
  border-radius: calc(var(--radius) + 4px);
}

.tmx-terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.tmx-terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.tmx-terminal-dot.red { background: #ff5f57; }
.tmx-terminal-dot.yellow { background: #febc2e; }
.tmx-terminal-dot.green { background: #28c840; }

.tmx-terminal-title {
  flex: 1;
  text-align: center;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-dim);
}

.tmx-terminal-body {
  padding: 20px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.8;
  min-height: 320px;
  max-height: 380px;
  overflow-x: hidden;
  overflow-y: auto;
  background: rgba(0, 0, 0, 0.15);
  word-break: break-word;
  white-space: pre-wrap;
  overscroll-behavior-x: none;
}

.tmx-t-line {
  display: block;
  overflow-wrap: anywhere;
  max-width: 100%;
}

.tmx-t-prompt i { font-size: 10px; color: var(--gold); }

.tmx-t-prompt { color: var(--gold); }
.tmx-t-cmd { color: var(--text); }
.tmx-t-out { color: var(--text-muted); }
.tmx-t-ok { color: var(--terminal-green); }
.tmx-t-warn { color: var(--terminal-amber); }
.tmx-t-info { color: #60a5fa; }
.tmx-t-dim { color: var(--text-dim); }
.tmx-t-cursor {
  display: inline-block;
  width: 8px;
  height: 14px;
  background: var(--gold);
  animation: blink 1s step-end infinite;
  vertical-align: text-bottom;
  margin-left: 2px;
}

@keyframes blink { 50% { opacity: 0; } }

/* ── Stats Row ── */
.tmx-stats {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  margin: 0;
  background: transparent;
  border: none;
}

.tmx-stat {
  flex: 0 0 auto;
  min-width: 148px;
  padding: 18px 16px;
  text-align: center;
  border-radius: var(--radius);
}

.tmx-stat-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--gold);
  font-family: var(--mono);
  margin-bottom: 4px;
}

.tmx-stat-label {
  font-size: 13px;
  color: var(--text-muted);
}

/* ── Section ── */
.tmx-section {
  padding: 56px 0;
}

.tmx-section-compact {
  padding: 32px 0 40px;
}

.tmx-bleed {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding-left: max(12px, env(safe-area-inset-left, 0px));
  padding-right: max(12px, env(safe-area-inset-right, 0px));
  overflow: hidden;
}

.tmx-section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 36px;
}

.tmx-section-header-tight {
  margin-bottom: 24px;
}

.tmx-section-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin-bottom: 12px;
}

.tmx-section-header h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.tmx-section-header p {
  color: var(--text-muted);
  font-size: 16px;
}

/* ── Feature Cards ── */
.tmx-features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  align-items: stretch;
}

.tmx-features-grid .tmx-feature-card.tmx-reveal {
  height: 100%;
}

.tmx-hscroll.tmx-features-grid,
.tmx-hscroll.tmx-pricing-grid {
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  grid-template-columns: unset;
}

.tmx-hscroll.tmx-pricing-grid > .tmx-price-card {
  flex: 0 0 auto;
  min-width: 220px;
  max-width: 260px;
}

.tmx-bleed .tmx-hscroll {
  padding: 2px 12px;
}

.tmx-feature-card {
  border-radius: calc(var(--radius) + 2px);
  padding: 24px 22px;
  transition: transform var(--transition), box-shadow var(--transition);
}

.tmx-feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--lg-shadow), 0 0 48px rgba(201, 162, 39, 0.12);
}

.tmx-feature-icon {
  display: block;
  width: auto;
  height: auto;
  background: none;
  border: none;
  border-radius: 0;
  font-size: clamp(28px, 5vw, 36px);
  color: var(--gold-light);
  margin-bottom: 14px;
  line-height: 1;
  filter: drop-shadow(0 0 16px rgba(201, 162, 39, 0.35));
}

.tmx-pipeline-num {
  font-size: 28px;
  color: var(--gold);
  margin-bottom: 12px;
}

.tmx-pipeline-num i { filter: drop-shadow(0 0 12px rgba(201, 162, 39, 0.4)); }

.tmx-stat-value i {
  font-size: 18px;
  margin-right: 4px;
  color: var(--gold);
}


.tmx-dash-locked-icon i {
  font-size: 28px;
  color: var(--gold);
}

.tmx-feature-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}

.tmx-feature-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ── Pipeline ── */
.tmx-pipeline {
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  position: relative;
}

.tmx-pipeline-step {
  flex: 0 0 auto;
  min-width: 210px;
  max-width: 240px;
  text-align: center;
  padding: 20px 16px;
  border-radius: calc(var(--radius) + 2px);
}

.tmx-pipeline-step h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--gold);
}

.tmx-pipeline-step p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ── Pricing ── */
.tmx-pricing-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  align-items: start;
}

.tmx-price-card {
  border-radius: calc(var(--radius) + 2px);
  padding: 28px 20px;
  transition: transform var(--transition), box-shadow var(--transition);
}

.tmx-price-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--lg-shadow), 0 0 40px rgba(201, 162, 39, 0.1);
}

.tmx-price-card.featured {
  border-color: rgba(201, 162, 39, 0.45);
  box-shadow: var(--lg-shadow), 0 0 56px rgba(201, 162, 39, 0.18);
}

.tmx-price-card.featured::before {
  content: 'Popular';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: #050505;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tmx-price-tier {
  font-size: 13px;
  font-weight: 600;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.tmx-price-amount {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.tmx-price-amount small {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
}

.tmx-price-tagline {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 24px;
  min-height: 36px;
  line-height: 1.5;
}

.tmx-price-features {
  list-style: none;
  margin-bottom: 24px;
}

.tmx-price-features li {
  font-size: 12px;
  color: var(--text-muted);
  padding: 6px 0;
  padding-left: 18px;
  position: relative;
  border-bottom: 1px solid rgba(255,255,255,0.03);
}

.tmx-price-features li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
}

.tmx-price-features li.disabled {
  opacity: 0.35;
  text-decoration: line-through;
}

.tmx-price-features li.disabled::before { content: '×'; color: var(--text-dim); }

/* ── Risk Banner ── */
.tmx-risk-banner {
  border-radius: calc(var(--radius) + 2px);
  padding: 24px 32px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-top: 48px;
}

.tmx-risk-icon {
  flex-shrink: 0;
  font-size: 28px;
  line-height: 1;
  color: var(--terminal-amber);
  filter: drop-shadow(0 0 10px rgba(251, 191, 36, 0.35));
}

.tmx-risk-banner p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ── CTA ── */
.tmx-cta {
  padding: 80px 0;
}

.tmx-cta-box {
  border-radius: calc(var(--radius) + 4px);
  padding: 64px;
  text-align: center;
  position: relative;
}

.tmx-cta-box h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 12px;
  position: relative;
}

.tmx-cta-box p {
  color: var(--text-muted);
  margin-bottom: 32px;
  position: relative;
}

.tmx-cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  position: relative;
}

/* ── Dashboard Placeholder ── */
.tmx-dashboard {
  padding: calc(var(--nav-h) + 40px) 0 80px;
}

.tmx-dash-header {
  margin-bottom: 32px;
}

.tmx-dash-header h1 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
}

.tmx-dash-header p { color: var(--text-muted); font-size: 14px; }

.tmx-dash-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
}

.tmx-dash-panel {
  border-radius: calc(var(--radius) + 2px);
  padding: 24px;
}

.tmx-dash-panel h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

.tmx-dash-panel.tmx-reveal + .tmx-dash-panel.tmx-reveal {
  margin-top: 20px;
}

.tmx-dash-locked.tmx-reveal {
  text-align: center;
  padding: 80px 24px;
}

.tmx-dash-locked-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 24px;
  background: var(--gold-dim);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.tmx-dash-locked h2 {
  font-size: 24px;
  margin-bottom: 12px;
}

.tmx-dash-locked p {
  color: var(--text-muted);
  max-width: 400px;
  margin: 0 auto 24px;
  font-size: 14px;
}

.tmx-user-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: var(--gold-dim);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 12px;
  font-family: var(--mono);
  color: var(--gold);
}

/* ── Page Hero (subpages) ── */
.tmx-page-hero {
  padding: calc(var(--nav-h) + 60px) 0 40px;
  text-align: center;
}

.tmx-page-hero h1 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.tmx-page-hero p {
  color: var(--text-muted);
  font-size: 17px;
  max-width: 560px;
  margin: 0 auto;
}

/* ── Footer ── */
.tmx-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 60px 0 32px;
  margin-top: auto;
  background: rgba(5, 5, 5, 0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.tmx-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.tmx-footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.tmx-footer-tagline {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 0;
  max-width: 280px;
}

.tmx-footer-col h4 {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text);
  margin-bottom: 16px;
}

.tmx-footer-col a,
.tmx-footer-col span {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  padding: 4px 0;
  transition: color var(--transition);
}

.tmx-footer-col a:hover { color: var(--gold); }

.tmx-footer-disclaimer {
  padding: 20px 24px;
  border-radius: var(--radius-sm);
  margin-bottom: 24px;
}

.tmx-footer-disclaimer p {
  font-size: 11px;
  color: var(--text-dim);
  line-height: 1.7;
}

.tmx-footer-bottom {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-dim);
}

.tmx-footer-domain { color: var(--gold); font-family: var(--mono); }

/* ── Modal ── */
.tmx-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.tmx-modal-overlay[hidden] { display: none; }

.tmx-modal {
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  width: 100%;
  max-width: 420px;
  padding: 32px;
  position: relative;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6);
}

.tmx-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
}

.tmx-modal-close:hover { color: var(--text); }

.tmx-modal-header {
  text-align: center;
  margin-bottom: 28px;
}

.tmx-modal-logo { margin: 0 auto 16px; }

.tmx-modal-header h2 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 6px;
}

.tmx-modal-header p {
  font-size: 13px;
  color: var(--text-muted);
}

.tmx-modal-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 20px 0;
  color: var(--text-dim);
  font-size: 12px;
}

.tmx-modal-divider::before,
.tmx-modal-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.tmx-input-group { display: flex; flex-direction: column; gap: 12px; }

.tmx-input-group input,
#tmx-otp-input {
  width: 100%;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  outline: none;
  transition: border-color var(--transition);
}

.tmx-input-group input:focus,
#tmx-otp-input:focus { border-color: var(--gold); }

.tmx-modal-note {
  font-size: 11px;
  color: var(--text-dim);
  text-align: center;
  margin-top: 20px;
  line-height: 1.6;
}

.tmx-modal-loading {
  text-align: center;
  padding: 40px 0;
}

.tmx-modal-loading[hidden] { display: none; }

.tmx-spinner {
  width: 32px;
  height: 32px;
  border: 2px solid var(--border);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 16px;
}

@keyframes spin { to { transform: rotate(360deg); } }

.tmx-modal-error {
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.3);
  color: var(--terminal-red);
  font-size: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
}

/* ── Animations ── */
.tmx-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--rv-delay, 0ms);
}

.tmx-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.tmx-brand-title.tmx-reveal.is-visible,
.tmx-brand-title.tmx-reveal.is-visible span {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .tmx-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .tmx-pricing-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .tmx-nav-links { display: none; }

  .tmx-nav-actions .tmx-x-link { display: none; }

  .tmx-mobile-toggle { display: flex; }

  .tmx-hero-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .tmx-hero {
    padding: 20px 0 56px;
  }

  .tmx-hero-content {
    order: 1;
    padding: 24px 18px;
  }

  .tmx-hero-terminal {
    order: 2;
  }

  .tmx-section {
    padding: 40px 0;
  }

  .tmx-section-compact {
    padding: 24px 0 28px;
  }

  .tmx-hscroll.tmx-stats,
  .tmx-hscroll.tmx-pipeline,
  .tmx-hscroll.tmx-pricing-grid,
  .tmx-hscroll.tmx-features-grid,
  .tmx-hscroll.tmx-hero-chains {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 10px;
    grid-template-columns: unset !important;
    padding: 2px 12px;
    margin: 0;
  }

  .tmx-hscroll.tmx-hero-chains {
    flex-wrap: nowrap;
    margin-top: 4px;
    padding: 0;
  }

  .tmx-hscroll > .tmx-stat {
    min-width: 132px;
    max-width: 140px;
    flex: 0 0 auto;
    padding: 14px 12px;
  }

  .tmx-hscroll > .tmx-pipeline-step {
    min-width: 188px;
    max-width: 210px;
    flex: 0 0 auto;
    padding: 16px 14px;
  }

  .tmx-hscroll > .tmx-price-card {
    min-width: 240px;
    max-width: 260px;
    flex: 0 0 auto;
    scroll-snap-align: start;
  }

  .tmx-hscroll > .tmx-feature-card {
    min-width: 240px;
    max-width: 268px;
    flex: 0 0 auto;
    padding: 20px 18px;
  }

  .tmx-hscroll > .tmx-chain-pill {
    flex: 0 0 auto;
  }

  .tmx-stat-value {
    font-size: 22px;
  }

  .tmx-brand-showcase {
    min-height: calc(100dvh - var(--nav-h));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: calc(var(--nav-h) + 32px) 20px 40px;
    max-width: none;
  }

  .tmx-brand-stage {
    gap: 18px;
    padding: 0;
  }

  .tmx-brand-logo {
    width: 128px;
    height: 128px;
  }

  .tmx-features-grid:not(.tmx-hscroll) { grid-template-columns: 1fr; }
  .tmx-pricing-grid:not(.tmx-hscroll) { grid-template-columns: 1fr; }
  .tmx-pipeline:not(.tmx-hscroll) { grid-template-columns: 1fr; }
  .tmx-footer-grid { grid-template-columns: 1fr 1fr; }
  .tmx-dash-grid { grid-template-columns: 1fr; }
  .tmx-cta-box { padding: 32px 20px; }
  .tmx-cta-actions { flex-direction: column; }
}

@media (max-width: 480px) {
  .tmx-nav-actions .tmx-btn-ghost { display: none; }
  .tmx-footer-grid { grid-template-columns: 1fr; }
  .tmx-footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}
