/*!
 * Frontend1 Market — marketing design system
 * Matched to example.com: Geist + Geist Mono, weight 450 display type,
 * cream light theme, forest-green brand. Class prefix: tm-
 */

/* Self-hosted Geist (variable) — same family Frontend1 ships */
@font-face {
  font-family: "Geist";
  src: url("/fonts/geist/sans/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("/fonts/geist/sans/Geist-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("/fonts/geist/sans/Geist-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("/fonts/geist/sans/Geist-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("/fonts/geist/mono/GeistMono-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("/fonts/geist/mono/GeistMono-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("/fonts/geist/mono/GeistMono-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* ==========================================================================
   1. Design tokens
   ========================================================================== */

html.light,
:root {
  --background: #fdfdfb;
  --foreground: #0e1512;
  --muted-foreground: #67746d;

  --brand: #00c48c;
  --brand-50: #f0fdf4;
  --brand-100: #dcfce7;
  --brand-200: #bbf7d0;
  --brand-300: #86efac;
  --brand-400: #2ecc97;
  --brand-500: #00c48c;
  --brand-600: #2d7a5a;
  --brand-700: #1e5c44;
  --brand-800: #163d2e;
  --brand-900: #081c15;
  --brand-rgb: 0, 196, 140;
  --brand-ring: #00c48c29;
  --brand-glow: #00c48c4d;

  --border: #e8ebe5;
  --rail: #eef0ea;
  --cream: #f9f6f3;
  --input: #e8ebe5;

  --card: #ffffff;
  --muted: #f4f6f2;
  --secondary: #f4f6f2;
  --secondary-foreground: #223029;
  --accent: #eef6ef;
  --accent-foreground: #163d2e;
  --primary: #163d2e;
  --primary-foreground: #ffffff;

  --glass-bg: #ffffffbd;
  --glass-border: #0e151214;
  --grid-line: #0e15120d;

  --shadow-soft: 0 1px 2px #0000000a, 0 1px 3px #0000000f;
  --shadow-card: 0 4px 8px #0000000a, 0 2px 12px #0000000f;
  --shadow-color: 14, 21, 18;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;

  --font-sans: "Geist", "Geist Fallback: BlinkMacSystemFont", "Geist Fallback: Segoe UI", "Geist Fallback: Helvetica Neue", "Geist Fallback: Arial", "Geist Fallback: Noto Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "Geist Mono", "Geist Mono Fallback: Courier New", "Geist Mono Fallback: Roboto Mono", "Geist Mono Fallback: Noto Sans Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --font-display-weight: 450;
  --font-ui-weight: 500;
  --tracking-tight: -0.02em;
  --tracking-tighter: -0.035em;

  --tm-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

html.dark {
  --background: #08090a;
  --foreground: #ededf0;
  --muted-foreground: #8b8f97;

  --brand: #2ecc97;
  --brand-400: #2ecc97;
  --brand-500: #00c48c;
  --brand-600: #2d7a5a;
  --brand-700: #86efac;
  --brand-rgb: 46, 204, 151;
  --brand-ring: #2ecc973d;
  --brand-glow: #00c48c6b;

  --border: #ffffff14;
  --rail: #ffffff12;
  --cream: #0f1013;
  --input: #ffffff1f;

  --card: #101114;
  --muted: #141518;
  --secondary: #17181c;
  --secondary-foreground: #ededf0;
  --accent: #10231a;
  --accent-foreground: #d6f5e7;
  --primary: #00c48c;
  --primary-foreground: #04140e;

  --glass-bg: #ffffff0a;
  --glass-border: #ffffff14;
  --grid-line: #ffffff0a;

  --shadow-soft: 0 1px 2px #00000040, 0 1px 3px #00000050;
  --shadow-card: 0 4px 16px #00000066;
  --shadow-color: 0, 0, 0;
}

/* ==========================================================================
   2. Base / reset (scoped, but applied globally on Frontend1 pages)
   ========================================================================== */

.tm-shell {
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  position: relative;
  min-height: 100vh;
  overflow-x: clip;
  transition: background-color 0.3s var(--tm-ease), color 0.3s var(--tm-ease);
}

.tm-shell * {
  box-sizing: border-box;
}

.tm-shell a {
  color: inherit;
  text-decoration: none;
}

.tm-shell img {
  max-width: 100%;
  display: block;
}

.tm-shell ::selection {
  background: rgba(var(--brand-rgb), 0.25);
  color: var(--foreground);
}

.tm-mono {
  font-family: var(--font-mono);
  letter-spacing: -0.01em;
}

/* ==========================================================================
   3. Layout primitives
   ========================================================================== */

.tm-container {
  max-width: 72rem; /* ~ max-w-6xl */
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

@media (min-width: 640px) {
  .tm-container { padding-left: 2rem; padding-right: 2rem; }
}

.tm-container--wide {
  max-width: 80rem;
}

.tm-section {
  position: relative;
  padding-top: clamp(3.5rem, 6vw, 6.5rem);
  padding-bottom: clamp(3.5rem, 6vw, 6.5rem);
}

.tm-section--tight {
  padding-top: clamp(2.5rem, 4vw, 4rem);
  padding-bottom: clamp(2.5rem, 4vw, 4rem);
}

.tm-section--bordered {
  border-top: 1px solid var(--border);
}

/* Sticky glass nav */
.tm-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  height: 4rem;
  border-bottom: 1px solid var(--rail);
  background: color-mix(in oklab, var(--background) 90%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: box-shadow 0.2s ease;
}

.tm-nav.is-scrolled {
  box-shadow: 0 8px 24px rgba(var(--shadow-color), 0.04);
}

.tm-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
  gap: 1.5rem;
}

.tm-nav__logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: var(--foreground);
  white-space: nowrap;
}

.tm-nav__logo img {
  height: 1.4rem;
  width: auto;
}

.tm-nav__logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 8px;
  background: var(--primary);
  color: var(--primary-foreground, #fff);
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.tm-nav__links {
  display: none;
  align-items: center;
  gap: 0.25rem;
}

@media (min-width: 900px) {
  .tm-nav__links { display: flex; }
}

.tm-nav__link {
  position: relative;
  padding: 0.5rem 0.75rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
  transition: color 0.15s, background-color 0.15s;
}

.tm-nav__link:hover {
  color: var(--foreground);
  background: var(--muted);
}

.tm-nav__actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.tm-nav__cta-short {
  display: none;
}

.tm-nav__cta-full {
  display: inline;
}

.tm-nav__hamburger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--foreground);
  cursor: pointer;
}

@media (min-width: 900px) {
  .tm-nav__hamburger { display: none; }
}

.tm-nav__hamburger span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: currentColor;
  position: relative;
}

.tm-nav__hamburger span::before,
.tm-nav__hamburger span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 16px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.25s var(--tm-ease), opacity 0.25s var(--tm-ease);
}

.tm-nav__hamburger span::before { top: -5px; }
.tm-nav__hamburger span::after { top: 5px; }

/* Mobile drawer */
.tm-drawer {
  position: fixed;
  inset: 0;
  z-index: 100;
  visibility: hidden;
  pointer-events: none;
}

.tm-drawer.is-open {
  visibility: visible;
  pointer-events: auto;
}

.tm-drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 10, 9, 0.4);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 0.3s var(--tm-ease);
}

.tm-drawer.is-open .tm-drawer__backdrop {
  opacity: 1;
}

.tm-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(20rem, 86vw);
  background: var(--card);
  border-left: 1px solid var(--border);
  padding: 1.5rem 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  transform: translateX(100%);
  transition: transform 0.35s var(--tm-ease);
  box-shadow: -20px 0 50px -20px rgba(var(--shadow-color), 0.3);
}

.tm-drawer.is-open .tm-drawer__panel {
  transform: translateX(0);
}

.tm-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.tm-drawer__close {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--foreground);
}

.tm-drawer__link {
  padding: 0.85rem 0.25rem;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--foreground);
  border-bottom: 1px solid var(--border);
}

.tm-drawer__cta {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

/* Scroll progress bar */
.tm-progress {
  position: fixed;
  inset: 0 auto auto 0;
  z-index: 60;
  height: 2px;
  width: 100%;
  transform-origin: left;
  pointer-events: none;
  background: transparent;
}

.tm-progress__bar {
  height: 100%;
  width: 100%;
  transform-origin: left;
  transform: scaleX(0);
  background: linear-gradient(to right, var(--brand-400), var(--brand), var(--brand-600));
}

/* ==========================================================================
   4. Buttons
   ========================================================================== */

.tm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.35rem;
  border-radius: 999px;
  font-size: 0.875rem; /* Frontend1: 14px */
  font-weight: 500;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.2s var(--tm-ease), box-shadow 0.2s var(--tm-ease), background-color 0.2s var(--tm-ease), border-color 0.2s var(--tm-ease), color 0.2s var(--tm-ease);
}

.tm-btn:active {
  transform: scale(0.97);
}

.tm-btn--sm {
  padding: 0.5rem 1rem;
  font-size: 0.82rem;
}

.tm-btn--lg {
  padding: 0.9rem 1.75rem;
  font-size: 0.98rem;
}

/* Primary CTA — Frontend1 uses deep forest primary (not neon brand).
   Use .tm-shell a.tm-btn--* so link color:inherit cannot wash out text. */
.tm-shell a.tm-btn--primary,
.tm-shell button.tm-btn--primary,
.tm-btn--primary {
  background: var(--primary);
  color: var(--primary-foreground);
  box-shadow: var(--shadow-soft);
}

.tm-shell a.tm-btn--primary:hover,
.tm-shell button.tm-btn--primary:hover,
.tm-btn--primary:hover {
  filter: brightness(1.08);
  box-shadow: var(--shadow-card);
  color: var(--primary-foreground);
}

.tm-btn--primary .tm-btn__arrow {
  opacity: 0.55;
  transition: opacity 0.15s, transform 0.15s;
}
.tm-btn--primary:hover .tm-btn__arrow {
  opacity: 1;
  transform: translateX(2px);
}

/* Ghost — outline card */
.tm-shell a.tm-btn--ghost,
.tm-shell button.tm-btn--ghost,
.tm-btn--ghost {
  background: var(--card);
  border-color: var(--border);
  color: var(--foreground);
}

.tm-shell a.tm-btn--ghost:hover,
.tm-shell button.tm-btn--ghost:hover,
.tm-btn--ghost:hover {
  background: var(--muted);
  border-color: var(--border);
  color: var(--foreground);
}

/* Brand solid (secondary accent) */
.tm-shell a.tm-btn--brand,
.tm-shell button.tm-btn--brand,
.tm-btn--brand {
  background: var(--brand-500);
  color: #04140e;
  box-shadow: var(--shadow-soft);
}

.tm-shell a.tm-btn--brand:hover,
.tm-shell button.tm-btn--brand:hover,
.tm-btn--brand:hover {
  filter: brightness(1.05);
  color: #04140e;
}

/* Dark — deep primary green, used on dark/photo surfaces */
.tm-shell a.tm-btn--dark,
.tm-shell button.tm-btn--dark,
.tm-btn--dark {
  background: var(--primary);
  color: var(--primary-foreground);
  box-shadow: 0 8px 20px -10px rgba(var(--shadow-color), 0.55);
}

.tm-shell a.tm-btn--dark:hover,
.tm-shell button.tm-btn--dark:hover,
.tm-btn--dark:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px -10px rgba(var(--shadow-color), 0.6);
  color: var(--primary-foreground);
}

.tm-btn--full { width: 100%; }

.tm-btn svg {
  width: 1rem;
  height: 1rem;
}

/* Theme switcher (Frontend1 nav) */
.tm-theme-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.5rem;
  border: 0;
  background: transparent;
  color: var(--muted-foreground);
  cursor: pointer;
  overflow: hidden;
  transition: background-color 0.15s, color 0.15s;
}
.tm-theme-toggle:hover {
  background: var(--muted);
  color: var(--foreground);
}
.tm-theme-toggle svg {
  width: 1.05rem;
  height: 1.05rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.tm-theme-toggle .tm-theme-toggle__moon { display: none; }
html.dark .tm-theme-toggle .tm-theme-toggle__sun { display: none; }
html.dark .tm-theme-toggle .tm-theme-toggle__moon { display: block; }

/* Utility used by language menus */
.hidden { display: none !important; }

/* Language switcher (same Google Translate stack as auth) */
.tm-lang {
  position: relative;
}

.tm-lang__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  height: 2.25rem;
  padding: 0 0.55rem 0 0.45rem;
  border-radius: 0.5rem;
  border: 0;
  background: transparent;
  color: var(--muted-foreground);
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s;
}

.tm-lang__btn:hover {
  background: var(--muted);
  color: var(--foreground);
}

.tm-lang__btn .lang-flag {
  width: 20px;
  height: 15px;
  border-radius: 2px;
  object-fit: cover;
  display: block;
}

.tm-lang__code {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
}

.tm-lang__chev {
  width: 0.85rem;
  height: 0.85rem;
  opacity: 0.65;
}

.tm-lang__menu {
  position: absolute;
  right: 0;
  top: calc(100% + 0.45rem);
  z-index: 80;
  min-width: 12.5rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.14);
  padding: 6px;
  overflow: hidden;
}

.tm-lang__option {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  background: transparent;
  border-radius: 8px;
  padding: 8px 10px;
  text-align: left;
  color: var(--foreground);
  cursor: pointer;
}

.tm-lang__option:hover {
  background: var(--muted);
}

.tm-lang__meta {
  flex: 1;
  min-width: 0;
}

.tm-lang__native {
  display: block;
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1.2;
}

.tm-lang__label {
  display: block;
  font-size: 0.62rem;
  color: var(--muted-foreground);
  margin-top: 2px;
}

.tm-lang__check {
  width: 1rem;
  height: 1rem;
  color: var(--brand);
  opacity: 0;
  flex-shrink: 0;
}

.tm-lang__option.is-active .tm-lang__check {
  opacity: 1;
}

.tm-drawer-lang {
  margin: 1rem 0 0.25rem;
  padding: 1rem 0 0;
  border-top: 1px solid var(--border);
}

.tm-drawer-lang__title {
  margin: 0 0 0.65rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.tm-drawer-lang__list {
  display: grid;
  gap: 0.35rem;
}

.tm-drawer-lang__option {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--foreground);
  cursor: pointer;
  text-align: left;
}

.tm-drawer-lang__option.is-active,
.tm-drawer-lang__option[aria-selected="true"] {
  border-color: color-mix(in srgb, var(--brand) 45%, var(--border));
  background: color-mix(in srgb, var(--brand) 8%, var(--card));
}

.tm-drawer-lang__meta {
  flex: 1;
  min-width: 0;
}

.tm-drawer-lang__native {
  display: block;
  font-size: 0.9rem;
  font-weight: 650;
  line-height: 1.2;
}

.tm-drawer-lang__label {
  display: block;
  font-size: 0.68rem;
  color: var(--muted-foreground);
  margin-top: 2px;
}

.tm-drawer-lang__code {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--muted-foreground);
}

.tm-drawer-lang__check {
  width: 1rem;
  height: 1rem;
  color: var(--brand);
  opacity: 0;
  flex-shrink: 0;
}

.tm-drawer-lang__option.is-active .tm-drawer-lang__check,
.tm-drawer-lang__option[aria-selected="true"] .tm-drawer-lang__check {
  opacity: 1;
}

/* Google Translate — hide banner & default widget */
.gt-hidden-host,
#google_translate_element {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.goog-te-banner-frame,
.goog-te-banner-frame.skiptranslate,
iframe.goog-te-banner-frame,
iframe.skiptranslate,
.skiptranslate,
body > .skiptranslate,
body > .skiptranslate > iframe,
#goog-gt-tt,
.goog-te-balloon-frame,
.goog-logo-link,
.goog-te-gadget-icon {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  width: 0 !important;
  max-height: 0 !important;
  overflow: hidden !important;
  border: 0 !important;
}

body {
  top: 0 !important;
  position: static !important;
}

html.translated-ltr,
html.translated-rtl {
  margin-top: 0 !important;
}

.goog-te-gadget {
  font-size: 0 !important;
  color: transparent !important;
}

.goog-te-gadget .goog-te-combo {
  opacity: 0 !important;
  position: absolute !important;
  left: -9999px !important;
  pointer-events: none !important;
  height: 0 !important;
  width: 0 !important;
}

/* ==========================================================================
   5. Typography helpers
   ========================================================================== */

.tm-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand-600);
}

html.dark .tm-kicker {
  color: var(--brand-500);
}

.tm-kicker::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 4px rgba(var(--brand-rgb), 0.15);
}

.tm-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted-foreground);
  background: var(--muted);
  border: 1px solid var(--border);
}

.tm-pill--brand {
  color: var(--brand-600);
  background: var(--accent);
  border-color: transparent;
}

html.dark .tm-pill--brand { color: var(--brand-500); }

.tm-h1 {
  font-size: clamp(2.25rem, 4.5vw, 3rem); /* Frontend1 hero: 48px */
  line-height: 1.06;
  letter-spacing: var(--tracking-tight);
  font-weight: var(--font-display-weight);
  color: var(--foreground);
}

.tm-h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem); /* Frontend1 section: 36px */
  line-height: 1.22;
  letter-spacing: var(--tracking-tight);
  font-weight: var(--font-display-weight);
  color: var(--foreground);
}

.tm-h3 {
  font-size: clamp(1.15rem, 1.6vw, 1.35rem);
  line-height: 1.3;
  letter-spacing: -0.015em;
  font-weight: 500;
  color: var(--foreground);
}

.tm-lead {
  font-size: 1.125rem; /* Frontend1 lead: 18px */
  line-height: 1.625;
  color: var(--muted-foreground);
  font-weight: 400;
  letter-spacing: normal;
}

.tm-body {
  font-size: 1rem;
  line-height: 1.5;
  color: var(--muted-foreground);
}

.tm-section-head {
  max-width: 40rem;
  margin-bottom: clamp(2.25rem, 4vw, 3.5rem);
}

.tm-section-head--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* Frontend1 left rule + two-tone headline */
.tm-rule-head {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  max-width: 42rem;
  margin-bottom: clamp(2.25rem, 4vw, 3.25rem);
}

.tm-rule-head__bar {
  flex-shrink: 0;
  width: 3px;
  height: 2.75rem;
  margin-top: 0.35rem;
  border-radius: 999px;
  background: var(--brand-500);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--brand-500) 14%, transparent);
}

.tm-rule-head__copy {
  min-width: 0;
}

.tm-rule-head__title {
  margin: 0;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  line-height: 1.22;
  letter-spacing: var(--tracking-tight);
  font-weight: var(--font-display-weight);
}

.tm-rule-head__strong {
  display: block;
  color: var(--foreground);
}

.tm-rule-head__muted {
  display: block;
  color: var(--muted-foreground);
  font-weight: 550;
}

.tm-rule-head__lead {
  margin: 0.9rem 0 0;
  font-size: 1.02rem;
  line-height: 1.55;
  color: var(--muted-foreground);
  max-width: 34rem;
}

/* Problem section */
.tm-problem {
  border-top: 1px solid var(--border);
  padding: clamp(3.5rem, 6vw, 5.5rem) 0;
  background: var(--background);
}

.tm-problem__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 640px) {
  .tm-problem__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .tm-problem__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.15rem;
  }
}

.tm-issue {
  background: var(--card);
  border: 1px solid var(--rail);
  border-radius: 1rem;
  padding: 1.35rem 1.25rem 1.45rem;
  transition: border-color 0.2s var(--tm-ease), box-shadow 0.2s var(--tm-ease), transform 0.2s var(--tm-ease);
}

.tm-issue:hover {
  border-color: var(--border);
  box-shadow: var(--shadow-soft);
  transform: translateY(-2px);
}

.tm-issue__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.7rem;
  background: color-mix(in oklab, var(--brand-500) 12%, transparent);
  color: var(--brand-700, #1e5c44);
  margin-bottom: 1.05rem;
}
html.dark .tm-issue__icon {
  color: var(--brand-400);
  background: color-mix(in oklab, var(--brand-500) 16%, transparent);
}
.tm-issue__icon svg {
  width: 1.2rem;
  height: 1.2rem;
}

.tm-issue__title {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 650;
  letter-spacing: -0.015em;
  color: var(--foreground);
  line-height: 1.3;
}

.tm-issue__desc {
  margin: 0.55rem 0 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--muted-foreground);
}

/* Brand-colored inline word / rotating typed word */
.tm-accent {
  color: var(--brand-600);
}

html.dark .tm-accent { color: var(--brand-500); }

.tm-typed {
  color: var(--brand-600);
  display: inline-block;
  position: relative;
}

html.dark .tm-typed { color: var(--brand-500); }

.tm-caret {
  display: inline-block;
  width: 3px;
  margin-left: 2px;
  background: var(--brand);
  animation: caret 0.9s step-end infinite;
  border-radius: 2px;
  transform: translateY(0.08em);
}

@keyframes caret {
  0%, 45% { opacity: 1; }
  46%, 100% { opacity: 0; }
}

/* ==========================================================================
   6. Cards / stats / features
   ========================================================================== */

.tm-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: transform 0.3s var(--tm-ease), box-shadow 0.3s var(--tm-ease), border-color 0.3s var(--tm-ease);
}

.tm-card:hover {
  transform: translateY(-4px);
  border-color: var(--rail);
  box-shadow: 0 24px 48px -28px rgba(var(--shadow-color), 0.22);
}

.tm-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 12px;
  background: var(--accent);
  color: var(--brand-600);
  margin-bottom: 1.1rem;
}

html.dark .tm-card__icon { color: var(--brand-500); }

.tm-card__icon svg { width: 1.35rem; height: 1.35rem; }

.tm-card--problem {
  position: relative;
  overflow: hidden;
}

.tm-card--problem::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(239, 68, 68, 0.06), transparent 55%);
  pointer-events: none;
}

.tm-card--glow {
  position: relative;
}

.tm-card--glow::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(160deg, rgba(var(--brand-rgb), 0.35), transparent 60%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s var(--tm-ease);
  pointer-events: none;
}

.tm-card--glow:hover::after { opacity: 1; }

.tm-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 640px) {
  .tm-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 900px) {
  .tm-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tm-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .tm-grid--6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

@media (min-width: 640px) {
  .tm-grid--5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1100px) {
  .tm-grid--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

/* ==========================================================================
   Trust + live market grid (Frontend1 logo-grid layout)
   ========================================================================== */

.tm-trust {
  position: relative;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(ellipse 60% 50% at 100% 0%, color-mix(in oklab, var(--brand-500) 7%, transparent), transparent 60%),
    var(--background);
}

.tm-trust__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.25rem;
  padding: clamp(3rem, 5.5vw, 5rem) 0 clamp(2.25rem, 4vw, 3.25rem);
  align-items: center;
}
@media (min-width: 1024px) {
  .tm-trust__layout {
    grid-template-columns: minmax(16rem, 0.9fr) minmax(0, 1.6fr);
    gap: 3.25rem;
    align-items: center;
  }
}

.tm-trust__copy {
  max-width: 23rem;
}

.tm-trust__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 1rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--muted-foreground);
}

.tm-trust__title {
  margin: 0;
  font-size: clamp(1.65rem, 2.6vw, 2.15rem);
  line-height: 1.22;
  letter-spacing: -0.03em;
  font-weight: 500;
}

.tm-trust__title-muted {
  color: var(--muted-foreground);
  font-weight: 500;
}

.tm-trust__title-strong {
  color: var(--foreground);
  font-weight: 650;
}

.tm-trust__lede {
  margin: 1rem 0 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--muted-foreground);
  max-width: 20rem;
}

.tm-trust__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 1.65rem;
  padding: 0.6rem 1.1rem 0.6rem 1.2rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--foreground);
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: var(--shadow-soft);
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.tm-trust__cta svg {
  width: 0.9rem;
  height: 0.9rem;
  opacity: 0.55;
  transition: transform 0.15s, opacity 0.15s;
}
.tm-trust__cta:hover {
  background: var(--muted);
  border-color: var(--rail);
  box-shadow: var(--shadow-card);
  transform: translateY(-1px);
}
.tm-trust__cta:hover svg {
  opacity: 1;
  transform: translateX(2px);
}

.tm-trust__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--rail);
  border-radius: 1rem;
  overflow: hidden;
  background: var(--card);
  box-shadow:
    0 1px 0 color-mix(in oklab, var(--foreground) 3%, transparent),
    var(--shadow-soft);
}
@media (min-width: 640px) {
  .tm-trust__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .tm-trust__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .tm-trust__grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

.tm-mcell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.28rem;
  min-height: 5.1rem;
  padding: 0.85rem 0.65rem;
  border-right: 1px solid var(--rail);
  border-bottom: 1px solid var(--rail);
  text-decoration: none;
  color: inherit;
  background: transparent;
  transition: background 0.2s var(--tm-ease);
  position: relative;
}
.tm-mcell:nth-child(2n) { border-right: none; }
@media (min-width: 640px) {
  .tm-mcell:nth-child(2n) { border-right: 1px solid var(--rail); }
  .tm-mcell:nth-child(3n) { border-right: none; }
}
@media (min-width: 900px) {
  .tm-mcell:nth-child(3n) { border-right: 1px solid var(--rail); }
  .tm-mcell:nth-child(4n) { border-right: none; }
}
@media (min-width: 1024px) {
  .tm-mcell:nth-child(4n) { border-right: 1px solid var(--rail); }
  .tm-mcell:nth-child(6n) { border-right: none; }
  .tm-mcell:nth-last-child(-n+6) { border-bottom: none; }
}
.tm-mcell:hover {
  background: color-mix(in oklab, var(--brand-500) 5%, var(--card));
}

.tm-mcell__sym {
  font-size: 0.66rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  color: var(--muted-foreground);
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.tm-mcell__price {
  font-size: 0.95rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--foreground);
  line-height: 1.15;
}
.tm-mcell__chg {
  font-size: 0.68rem;
  font-weight: 650;
  padding: 0.12rem 0.4rem;
  border-radius: 999px;
  background: var(--muted);
}
.tm-mcell__chg.is-up {
  color: var(--brand-700, #1e5c44);
  background: color-mix(in oklab, var(--brand-500) 12%, transparent);
}
.tm-mcell__chg.is-down {
  color: #b91c1c;
  background: color-mix(in oklab, #ef4444 12%, transparent);
}
html.dark .tm-mcell__chg.is-up {
  color: var(--brand-400);
}
html.dark .tm-mcell__chg.is-down {
  color: #fca5a5;
}

.tm-mcell.is-flash-up {
  animation: tm-mcell-up 0.52s var(--tm-ease);
}
.tm-mcell.is-flash-down {
  animation: tm-mcell-down 0.52s var(--tm-ease);
}
@keyframes tm-mcell-up {
  0% { background: color-mix(in oklab, var(--brand-500) 22%, transparent); }
  100% { background: transparent; }
}
@keyframes tm-mcell-down {
  0% { background: color-mix(in oklab, #ef4444 18%, transparent); }
  100% { background: transparent; }
}

.tm-mcell__price.is-blink-up {
  color: var(--brand-700, #1e5c44);
  animation: tm-price-blink-up 0.45s ease;
}
.tm-mcell__price.is-blink-down {
  color: #b91c1c;
  animation: tm-price-blink-down 0.45s ease;
}
html.dark .tm-mcell__price.is-blink-up { color: var(--brand-400); }
html.dark .tm-mcell__price.is-blink-down { color: #fca5a5; }
@keyframes tm-price-blink-up {
  0% { background: color-mix(in oklab, var(--brand-500) 28%, transparent); }
  100% { background: transparent; }
}
@keyframes tm-price-blink-down {
  0% { background: color-mix(in oklab, #ef4444 24%, transparent); }
  100% { background: transparent; }
}

.tm-trust__eyebrow.is-live .tm-live-dot {
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--brand-500) 25%, transparent);
}

/* Stats marquee — Frontend1 infinite scroll */
.tm-trust__stats {
  border-top: 1px solid var(--rail);
  background: color-mix(in oklab, var(--cream) 88%, var(--brand-500) 3%);
  overflow: hidden;
}

.tm-trust__marquee {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}

.tm-trust__marquee-track {
  display: flex;
  align-items: center;
  width: max-content;
  gap: 2.25rem;
  padding: 1.05rem 0;
  animation: tm-trust-marquee 38s linear infinite;
}

.tm-trust__marquee:hover .tm-trust__marquee-track {
  animation-play-state: paused;
}

@keyframes tm-trust-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .tm-trust__marquee-track {
    animation: none;
    flex-wrap: wrap;
    width: auto;
    justify-content: center;
    max-width: 72rem;
    margin: 0 auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    gap: 1rem 1.75rem;
  }
  .tm-trust__marquee {
    -webkit-mask-image: none;
    mask-image: none;
  }
}

.tm-trust__stat {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.tm-trust__stat-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.55rem;
  padding: 0.28rem 0.55rem;
  border-radius: 0.4rem;
  background: color-mix(in oklab, var(--brand-500) 14%, transparent);
  color: var(--brand-700, #1e5c44);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--brand-500) 10%, transparent);
}
html.dark .tm-trust__stat-pill {
  color: var(--brand-400);
  background: color-mix(in oklab, var(--brand-500) 18%, transparent);
}

.tm-trust__stat-label {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  font-weight: 450;
}

.tm-stat-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

@media (min-width: 768px) {
  .tm-stat-row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.tm-stat {
  background: var(--card);
  padding: 1.75rem 1.5rem;
  text-align: left;
}

.tm-stat__value {
  font-family: var(--font-mono);
  font-size: clamp(1.6rem, 2.6vw, 2.15rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--foreground);
  display: block;
}

.tm-stat__label {
  margin-top: 0.35rem;
  font-size: 0.84rem;
  color: var(--muted-foreground);
}

/* Feature pillars */
.tm-feature {
  position: relative;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: var(--card);
  padding: 2rem;
  overflow: hidden;
  transition: transform 0.3s var(--tm-ease), box-shadow 0.3s var(--tm-ease);
}

.tm-feature:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 60px -32px rgba(var(--shadow-color), 0.25);
}

.tm-feature__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 14px;
  background: var(--primary);
  color: var(--primary-foreground, #fff);
  margin-bottom: 1.5rem;
}

.tm-feature__badge svg { width: 1.5rem; height: 1.5rem; }

.tm-feature--brand .tm-feature__badge {
  background: var(--brand);
  color: #04140f;
}

.tm-feature__title {
  font-size: 1.125rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  margin-bottom: 0.6rem;
}

.tm-feature__desc {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--muted-foreground);
}

/* ==========================================================================
   7. Logo rail / marquee
   ========================================================================== */

.tm-logo-rail {
  position: relative;
  width: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.tm-logo-rail__track {
  display: flex;
  align-items: center;
  gap: 3.5rem;
  width: max-content;
  animation: marquee 32s linear infinite;
}

.tm-logo-rail:hover .tm-logo-rail__track {
  animation-play-state: paused;
}

.tm-logo-rail__item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--muted-foreground);
  white-space: nowrap;
  opacity: 0.75;
  transition: opacity 0.2s var(--tm-ease), color 0.2s var(--tm-ease);
}

.tm-logo-rail__item:hover {
  opacity: 1;
  color: var(--foreground);
}

.tm-logo-rail__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand);
  flex-shrink: 0;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ==========================================================================
   8. Grid background / glow orbs
   ========================================================================== */

.tm-nav__logo img,
.tm-footer__brand img {
  height: 1.4rem;
  width: auto;
}

/* Auth theme format: logo_light → .site-logo--dark (dark theme),
   logo_dark → .site-logo--light (light theme) */
.tm-shell .site-logo--light { display: block; }
.tm-shell .site-logo--dark { display: none; }
html.dark .tm-shell .site-logo--light { display: none; }
html.dark .tm-shell .site-logo--dark { display: block; }

.tm-nav__logo { gap: 0.55rem; }

/* ==========================================================================
   8. Grid background / glow orbs / hero wires
   ========================================================================== */

.tm-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 85% 70% at 55% 15%, #000 20%, transparent 72%);
  mask-image: radial-gradient(ellipse 85% 70% at 55% 15%, #000 20%, transparent 72%);
  pointer-events: none;
  z-index: 0;
}

.tm-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}

.tm-glow--brand {
  background: radial-gradient(circle, rgba(var(--brand-rgb), 0.55), transparent 70%);
}

.tm-hero__glow {
  width: min(42rem, 70vw);
  height: min(28rem, 50vw);
  top: 8%;
  right: -8%;
  opacity: 0.28;
}

.tm-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--rail);
}

.tm-hero__wires {
  pointer-events: none;
  overflow: hidden;
}

.tm-hero__wires--bleed {
  position: absolute;
  inset: 0 auto 0 50%;
  width: 100vw;
  transform: translateX(-50%);
  z-index: 0;
  display: block;
  opacity: 0.55;
  -webkit-mask-image: linear-gradient(to top right, transparent 5%, #000 27%, #000 63%, transparent 93%);
  mask-image: linear-gradient(to top right, transparent 5%, #000 27%, #000 63%, transparent 93%);
}
@media (max-width: 1023px) {
  .tm-hero__wires--bleed {
    inset: auto 0 0 0;
    width: 100%;
    height: min(72%, 20rem);
    transform: none;
    opacity: 0.48;
    -webkit-mask-image: linear-gradient(to top, #000 5%, #000 55%, transparent 100%);
    mask-image: linear-gradient(to top, #000 5%, #000 55%, transparent 100%);
  }
}
@media (min-width: 1024px) {
  .tm-hero__wires--bleed {
    opacity: 1;
  }
}

/* Legacy mobile band — never take layout space; bleed covers all breakpoints */
.tm-hero__wires--band {
  display: none !important;
  height: 0 !important;
  margin: 0 !important;
  pointer-events: none;
}

.tm-hero__wires-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.tm-hero__stage {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 5.5rem 1.25rem 3.5rem;
  min-height: auto;
}
@media (min-width: 640px) {
  .tm-hero__stage { padding-left: 1.5rem; padding-right: 1.5rem; }
}
@media (min-width: 1024px) {
  .tm-hero__stage {
    min-height: calc(100svh - 4rem);
    justify-content: flex-start;
    padding: 7.5rem 2rem 5.5rem;
  }
}

.tm-hero__copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 36rem;
}

.tm-hero__visual {
  display: none;
  pointer-events: none;
  position: absolute;
  top: auto;
  right: 1.5rem;
  bottom: 4.5rem;
  left: auto;
  width: 17.5rem;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.7rem;
  z-index: 2;
}
@media (min-width: 1024px) {
  .tm-hero__visual { display: flex; }
}
@media (min-width: 1280px) {
  .tm-hero__visual {
    width: 19rem;
    right: 2rem;
    bottom: 5.5rem;
  }
}
@media (min-width: 1536px) {
  .tm-hero__visual { width: 20.5rem; right: 2.5rem; }
}

.tm-hero__pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--rail);
  border-radius: 0.5rem;
  padding: 0.25rem 0.5rem 0.25rem 0.25rem;
  background: var(--card);
  box-shadow: var(--shadow-soft);
  text-decoration: none;
  color: inherit;
  font-size: 0.875rem;
  transition: border-color 0.15s;
}
.tm-hero__pill:hover { border-color: var(--border); }
.tm-hero__pill-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 0.25rem;
  background: color-mix(in oklab, var(--brand-500) 8%, transparent);
  padding: 0.25rem 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1rem;
  color: var(--brand-700, #1e5c44);
}
html.dark .tm-hero__pill-badge { color: var(--brand-400); }
.tm-hero__pill-label { color: var(--muted-foreground); padding-right: 0.15rem; }

.tm-hero__title {
  margin: 1.5rem 0 0;
  font-size: clamp(2.25rem, 4.5vw, 3rem);
  line-height: 1.06;
  letter-spacing: var(--tracking-tight);
  font-weight: var(--font-display-weight);
  color: var(--foreground);
}
.tm-hero__title-line { display: block; }
.tm-hero__typed-wrap {
  display: inline-flex;
  align-items: baseline;
  min-height: 1em;
}
.tm-hero__typed { display: inline-block; min-width: 0.5ch; }
.tm-hero__caret {
  display: inline-block;
  width: 0.06em;
  align-self: stretch;
  margin-left: 0.15rem;
  background: var(--brand);
  animation: tm-caret 1s steps(1) infinite;
}
@keyframes tm-caret {
  0%, 45% { opacity: 1; }
  50%, 100% { opacity: 0; }
}
.tm-hero__dot { color: var(--brand-500); }
.tm-hero__lead {
  margin: 1.5rem 0 0;
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--muted-foreground);
  text-wrap: pretty;
  max-width: 34rem;
}
.tm-hero__lead em {
  font-style: normal;
  color: var(--foreground);
}
.tm-hero__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2rem;
}
.tm-hero__cta .tm-btn {
  height: 2.75rem;
  padding: 0 1.25rem 0 1.35rem;
  border-radius: 0.5rem;
  font-size: 0.95rem;
  font-weight: 500;
}
.tm-hero__trust {
  margin-top: 1.5rem;
  font-size: 13px;
  color: var(--muted-foreground);
}

/* Frontend1 hero demo stack */
.tm-hd {
  opacity: 0;
  transform: translateY(12px) scale(0.98);
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.45s var(--tm-ease),
    transform 0.45s var(--tm-ease),
    visibility 0.45s;
  will-change: opacity, transform;
}
.tm-hd.is-in {
  opacity: 1;
  transform: translateY(0) scale(1);
  visibility: visible;
}
.tm-hd.is-out {
  opacity: 0;
  transform: translateY(-8px) scale(0.98);
  visibility: hidden;
}

.tm-hd--prompt {
  align-self: stretch;
  margin-left: 0.65rem;
  padding: 0.7rem 0.95rem;
  border-radius: 0.85rem;
  border-bottom-right-radius: 0.35rem;
  background: var(--cream);
  border: 1px solid var(--rail);
  box-shadow: var(--shadow-soft);
}
.tm-hd--prompt .tm-hd__type {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--foreground);
  min-height: 1.25em;
}

.tm-hd--ai {
  align-self: stretch;
  padding: 0.8rem 0.95rem;
  border-radius: 1rem;
  background: var(--card);
  border: 1px solid var(--rail);
  box-shadow: var(--shadow-soft);
}
.tm-hd__ai-head {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.4rem;
}
.tm-hd__avatar {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in oklab, var(--brand-500) 12%, var(--card));
  flex-shrink: 0;
  overflow: hidden;
}
.tm-hd__avatar svg { width: 0.85rem; height: 0.85rem; }
.tm-hd__ai-label {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--muted-foreground);
}
.tm-hd--ai .tm-hd__type {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--foreground);
  min-height: 2.5em;
}

.tm-hd--txn {
  align-self: stretch;
  margin-right: 0.55rem;
  padding: 0.9rem 1rem;
  border-radius: 1rem;
  background: var(--card);
  border: 1px solid var(--rail);
  box-shadow: var(--shadow-soft);
}
.tm-hd__txn-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.tm-hd__txn-id {
  font-size: 0.78rem;
  color: var(--muted-foreground);
  font-family: var(--font-mono);
}
.tm-hd__txn-amt {
  font-size: 0.95rem;
  font-weight: 650;
  color: var(--foreground);
  letter-spacing: -0.02em;
}
.tm-hd__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.4rem;
}
.tm-hd__pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 600;
  background: var(--muted);
  color: var(--muted-foreground);
  opacity: 0.35;
  transform: scale(0.96);
  transition: opacity 0.25s var(--tm-ease), transform 0.25s var(--tm-ease), background 0.25s, color 0.25s;
}
.tm-hd__pill.is-on {
  opacity: 1;
  transform: scale(1);
}
.tm-hd__pill--active.is-on {
  background: var(--brand-500);
  color: #fff;
}
.tm-hd__pill--check svg {
  width: 0.75rem;
  height: 0.75rem;
  color: var(--muted-foreground);
}
.tm-hd__pill--check.is-on svg {
  color: var(--brand-600);
}

.tm-hd--ok {
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 0.85rem 0.7rem 1rem;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--rail);
  box-shadow: var(--shadow-soft);
}
.tm-hd__ok-label {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--foreground);
}
.tm-hd__ok-icon {
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 999px;
  background: var(--brand-500);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--brand-500) 18%, transparent);
}
.tm-hd__ok-icon svg { width: 0.85rem; height: 0.85rem; }

.tm-hd__type.is-typing::after {
  content: '';
  display: inline-block;
  width: 0.08em;
  height: 1em;
  margin-left: 0.12em;
  vertical-align: -0.1em;
  background: var(--brand-500);
  animation: tm-caret 0.9s steps(1) infinite;
}

/* ==========================================================================
   9. Pipeline / steps
   ========================================================================== */

.tm-pipeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1rem;
  counter-reset: tm-step;
}

@media (min-width: 700px) {
  .tm-pipeline { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1100px) {
  .tm-pipeline { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

.tm-pipeline__step {
  counter-increment: tm-step;
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--card);
  padding: 1.5rem 1.25rem;
}

.tm-pipeline__step::before {
  content: counter(tm-step, decimal-leading-zero);
  display: block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--brand-600);
  margin-bottom: 0.85rem;
  letter-spacing: 0.05em;
}

html.dark .tm-pipeline__step::before { color: var(--brand-500); }

.tm-pipeline__title {
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: -0.01em;
  margin-bottom: 0.35rem;
}

.tm-pipeline__desc {
  font-size: 0.82rem;
  color: var(--muted-foreground);
  line-height: 1.5;
}

.tm-pipeline__step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -1.1rem;
  width: 0.9rem;
  height: 1px;
  background: var(--rail);
  display: none;
}

@media (min-width: 700px) {
  .tm-pipeline__step:not(:last-child)::after { display: block; }
}

/* ==========================================================================
   10. Code block
   ========================================================================== */

.tm-code {
  position: relative;
  background: #0d1210;
  color: #d7ede3;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.84rem;
  line-height: 1.7;
  overflow-x: auto;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.5);
}

.tm-code__dots {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.tm-code__dots span {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}

.tm-code .tm-token-key { color: #7ce8bd; }
.tm-code .tm-token-string { color: #ffd39a; }
.tm-code .tm-token-comment { color: #5c6a63; }
.tm-code .tm-token-brand { color: var(--brand-400); }

/* ==========================================================================
   11. Channels / use case interaction cards
   ========================================================================== */

.tm-channel {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--card);
  padding: 1.5rem;
  transition: transform 0.3s var(--tm-ease), border-color 0.3s var(--tm-ease), box-shadow 0.3s var(--tm-ease);
}

.tm-channel:hover {
  transform: translateY(-3px);
  border-color: var(--brand);
  box-shadow: 0 20px 40px -26px rgba(var(--brand-rgb), 0.35);
}

.tm-channel__icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 10px;
  background: var(--accent);
  color: var(--brand-600);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

html.dark .tm-channel__icon { color: var(--brand-500); }

.tm-channel__title {
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.tm-channel__desc {
  font-size: 0.85rem;
  color: var(--muted-foreground);
  line-height: 1.55;
}

.tm-usecase {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  background: var(--card);
  position: relative;
  transition: background-color 0.3s var(--tm-ease), border-color 0.3s var(--tm-ease);
}

.tm-usecase:hover {
  background: var(--accent);
  border-color: transparent;
}

.tm-usecase__num {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--brand-600);
  margin-bottom: 1rem;
  display: block;
}

html.dark .tm-usecase__num { color: var(--brand-500); }

/* ==========================================================================
   12. FAQ accordion
   ========================================================================== */

.tm-faq {
  border-top: 1px solid var(--border);
}

.tm-faq__item {
  border-bottom: 1px solid var(--border);
}

.tm-faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 1.35rem 0.25rem;
  background: none;
  border: none;
  text-align: left;
  font-size: 1.02rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--foreground);
  cursor: pointer;
}

.tm-faq__icon {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--muted-foreground);
  transition: transform 0.3s var(--tm-ease), background-color 0.3s var(--tm-ease);
  font-size: 0.9rem;
}

.tm-faq__item.is-open .tm-faq__icon {
  transform: rotate(45deg);
  background: var(--brand);
  color: #04140f;
  border-color: transparent;
}

.tm-faq__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--tm-ease), padding 0.35s var(--tm-ease);
  font-size: 0.92rem;
  color: var(--muted-foreground);
  line-height: 1.65;
  padding: 0 0.25rem;
}

.tm-faq__item.is-open .tm-faq__a {
  padding-bottom: 1.35rem;
}

/* ==========================================================================
   13. Footer
   ========================================================================== */

.tm-footer {
  border-top: 1px solid var(--border);
  padding-top: clamp(3rem, 6vw, 4.5rem);
  padding-bottom: 2rem;
  background: var(--muted);
}

.tm-footer__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.5rem;
}

@media (min-width: 700px) {
  .tm-footer__grid { grid-template-columns: 1.4fr repeat(3, 1fr); }
}

.tm-footer__brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  margin-bottom: 0.85rem;
}

.tm-footer__tagline {
  font-size: 0.88rem;
  color: var(--muted-foreground);
  max-width: 20rem;
  line-height: 1.6;
}

.tm-footer__newsletter {
  position: relative;
  margin-top: 1.15rem;
  max-width: 22rem;
}

@media (max-width: 380px) {
  .tm-footer__newsletter-row {
    flex-direction: column;
  }

  .tm-footer__newsletter-btn {
    width: 100%;
  }
}

.tm-footer__newsletter-label {
  margin: 0 0 0.55rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.tm-footer__newsletter-row {
  display: flex;
  align-items: stretch;
  gap: 0.45rem;
}

.tm-footer__newsletter-input {
  flex: 1 1 auto;
  min-width: 0;
  height: 2.55rem;
  padding: 0 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 400;
  outline: none;
  transition: border-color 0.15s var(--tm-ease), box-shadow 0.15s var(--tm-ease);
}

.tm-footer__newsletter-input::placeholder {
  color: var(--muted-foreground);
  opacity: 0.85;
}

.tm-footer__newsletter-input:focus {
  border-color: color-mix(in srgb, var(--brand) 45%, var(--border));
  box-shadow: 0 0 0 3px var(--brand-ring);
}

.tm-footer__newsletter-btn {
  flex: 0 0 auto;
  height: 2.55rem;
  padding: 0 1.1rem;
  border-radius: 999px;
  font-size: 0.875rem;
}

.tm-footer__newsletter-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.tm-footer__newsletter-feedback {
  margin: 0.55rem 0 0;
  font-size: 0.8rem;
  line-height: 1.4;
}

.tm-footer__newsletter-feedback.is-ok {
  color: var(--brand-700);
}

html.dark .tm-footer__newsletter-feedback.is-ok {
  color: var(--brand-400);
}

.tm-footer__newsletter-feedback.is-err {
  color: #b91c1c;
}

html.dark .tm-footer__newsletter-feedback.is-err {
  color: #fca5a5;
}

.tm-footer__honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.tm-footer__heading {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted-foreground);
  margin-bottom: 1rem;
}

.tm-footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.tm-footer__links a {
  font-size: 0.9rem;
  color: var(--foreground);
  opacity: 0.75;
  transition: opacity 0.2s var(--tm-ease), color 0.2s var(--tm-ease);
}

.tm-footer__links a:hover {
  opacity: 1;
  color: var(--brand-600);
}

html.dark .tm-footer__links a:hover { color: var(--brand-500); }

.tm-footer__bottom {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--muted-foreground);
}

.tm-footer__socials {
  display: flex;
  gap: 0.6rem;
}

.tm-footer__socials a {
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted-foreground);
  transition: color 0.2s var(--tm-ease), border-color 0.2s var(--tm-ease), background-color 0.2s var(--tm-ease);
}

.tm-footer__socials a:hover {
  color: var(--brand-600);
  border-color: var(--brand);
  background: var(--accent);
}

/* ==========================================================================
   14. Inner-page hero chrome
   ========================================================================== */

.tm-page-hero {
  position: relative;
  padding-top: clamp(6rem, 11vw, 9rem);
  padding-bottom: clamp(3rem, 6vw, 4.5rem);
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.tm-page-hero__eyebrow {
  margin-bottom: 1rem;
}

.tm-page-hero__title {
  font-size: clamp(2.1rem, 4.4vw, 3.25rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
  font-weight: 600;
  max-width: 42rem;
}

.tm-page-hero__subtitle {
  margin-top: 1.1rem;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: var(--muted-foreground);
  max-width: 38rem;
  line-height: 1.6;
}

/* ==========================================================================
   15. Scroll reveal / fade-up
   ========================================================================== */

.tm-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--tm-ease), transform 0.7s var(--tm-ease);
  will-change: opacity, transform;
}

.tm-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.tm-reveal--1 { transition-delay: 0.05s; }
.tm-reveal--2 { transition-delay: 0.12s; }
.tm-reveal--3 { transition-delay: 0.19s; }
.tm-reveal--4 { transition-delay: 0.26s; }
.tm-reveal--5 { transition-delay: 0.33s; }
.tm-reveal--6 { transition-delay: 0.4s; }

@keyframes fade-up {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

.tm-fade-up {
  animation: fade-up 0.8s var(--tm-ease) both;
}

/* ==========================================================================
   16. Utilities
   ========================================================================== */

.tm-flex-center { display: flex; align-items: center; justify-content: center; }
.tm-text-center { text-align: center; }
.tm-mx-auto { margin-left: auto; margin-right: auto; }
.tm-hide-mobile { display: none; }
@media (min-width: 900px) { .tm-hide-mobile { display: initial; } }
.tm-hide-desktop { display: initial; }
@media (min-width: 900px) { .tm-hide-desktop { display: none; } }

.tm-divider {
  height: 1px;
  width: 100%;
  background: var(--border);
  border: none;
}

.tm-badge-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
}

.tm-live-dot {
  position: relative;
  display: inline-flex;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
}

.tm-live-dot[data-mkt-live]:not(.is-on) {
  background: var(--muted-foreground);
  opacity: 0.4;
}

.tm-live-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--brand);
  animation: tm-ping 1.8s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.tm-live-dot[data-mkt-live]:not(.is-on)::after {
  display: none;
}

@keyframes tm-ping {
  0% { transform: scale(0.6); opacity: 0.8; }
  100% { transform: scale(1.8); opacity: 0; }
}

/* ==========================================================================
   Platform modules (Signals / Engage / Resolve + AI band)
   ========================================================================== */

.tm-modules {
  padding: clamp(3.5rem, 7vw, 6.5rem) 0 clamp(2.5rem, 5vw, 4rem);
  background: var(--background);
}
.tm-modules--bordered {
  border-top: 1px solid var(--border);
}

.tm-modules__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem 2rem;
  margin-bottom: clamp(1.75rem, 3.5vw, 2.75rem);
  flex-wrap: wrap;
}

.tm-modules__title {
  margin: 0;
  font-size: clamp(1.65rem, 3.4vw, 2.55rem);
  line-height: 1.15;
  letter-spacing: -0.035em;
  font-weight: 600;
  max-width: 18ch;
}

.tm-modules__title-strong { color: var(--foreground); }
.tm-modules__title-muted { color: var(--muted-foreground); font-weight: 500; }

.tm-modules__explore {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s var(--tm-ease), gap 0.15s var(--tm-ease);
}
.tm-modules__explore svg { width: 14px; height: 14px; opacity: 0.55; transition: transform 0.15s var(--tm-ease), opacity 0.15s; }
.tm-modules__explore:hover { color: var(--brand-600); }
.tm-modules__explore:hover svg { opacity: 1; transform: translateX(2px); }

.tm-modules__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.tm-mod {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.15rem 1.2rem 1.35rem;
  box-shadow: var(--shadow-soft);
  min-height: 100%;
  transition: transform 0.25s var(--tm-ease), box-shadow 0.25s var(--tm-ease), border-color 0.25s;
}
.tm-mod:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
  border-color: color-mix(in srgb, var(--brand) 22%, var(--border));
}

.tm-mod__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.tm-mod__name {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--foreground);
}

.tm-mod__badge {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  color: var(--brand-700);
  background: var(--brand-100);
  border: 1px solid color-mix(in srgb, var(--brand) 18%, transparent);
  white-space: nowrap;
}
html.dark .tm-mod__badge {
  color: var(--brand-300);
  background: color-mix(in srgb, var(--brand) 16%, transparent);
}

.tm-mod__viz {
  position: relative;
  height: 7.5rem;
  border-radius: 12px;
  background: linear-gradient(180deg, var(--muted) 0%, color-mix(in srgb, var(--muted) 40%, var(--card)) 100%);
  border: 1px solid var(--border);
  margin-bottom: 1.05rem;
  overflow: hidden;
}

.tm-mod__viz--signals { padding: 0.65rem 0.55rem 0.35rem; }
.tm-mod__chart { width: 100%; height: 100%; display: block; }
.tm-mod__chart-line {
  stroke-dasharray: 420;
  stroke-dashoffset: 420;
  animation: tm-mod-draw 1.4s var(--tm-ease) 0.2s forwards;
}
@keyframes tm-mod-draw {
  to { stroke-dashoffset: 0; }
}

.tm-mod__tip {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  display: inline-flex;
  align-items: baseline;
  gap: 0.28rem;
  padding: 0.28rem 0.55rem;
  border-radius: 8px;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  font-size: 0.68rem;
  color: var(--muted-foreground);
  animation: tm-mod-tip-in 0.5s var(--tm-ease) 0.9s both;
}
.tm-mod__tip .tm-mono {
  color: var(--brand-600);
  font-weight: 650;
  font-size: 0.72rem;
}
.tm-mod__tip .tm-mono.is-down { color: #ef4444; }
@keyframes tm-mod-tip-in {
  from { opacity: 0; transform: translateY(4px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.tm-mod__viz--engage {
  display: flex;
  align-items: flex-end;
  padding: 0.85rem 1rem 0.55rem;
}
.tm-mod__bars {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.55rem;
  width: 100%;
  height: 100%;
  align-items: end;
}
.tm-mod__bar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  height: 100%;
  justify-content: flex-end;
}
.tm-mod__bar {
  width: 100%;
  max-width: 2rem;
  height: var(--h, 50%);
  border-radius: 6px 6px 3px 3px;
  background: color-mix(in srgb, var(--brand) 12%, var(--rail));
  transform-origin: bottom;
  animation: tm-mod-bar 0.7s var(--tm-ease) both;
}
.tm-mod__bar.is-on {
  background: linear-gradient(180deg, var(--brand-400), var(--brand-600));
  box-shadow: 0 6px 14px color-mix(in srgb, var(--brand) 28%, transparent);
}
.tm-mod__bar-col:nth-child(1) .tm-mod__bar { animation-delay: 0.05s; }
.tm-mod__bar-col:nth-child(2) .tm-mod__bar { animation-delay: 0.12s; }
.tm-mod__bar-col:nth-child(3) .tm-mod__bar { animation-delay: 0.18s; }
.tm-mod__bar-col:nth-child(4) .tm-mod__bar { animation-delay: 0.24s; }
.tm-mod__bar-col:nth-child(5) .tm-mod__bar { animation-delay: 0.3s; }
@keyframes tm-mod-bar {
  from { transform: scaleY(0.15); opacity: 0.4; }
  to { transform: scaleY(1); opacity: 1; }
}
.tm-mod__bar-label {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted-foreground);
  text-transform: uppercase;
}

.tm-mod__viz--resolve {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.9rem 1rem;
}
.tm-mod__bubble {
  align-self: flex-start;
  max-width: 85%;
  padding: 0.55rem 0.8rem;
  border-radius: 12px 12px 12px 4px;
  background: var(--card);
  border: 1px solid var(--border);
  font-size: 0.8rem;
  font-weight: 550;
  color: var(--foreground);
  box-shadow: var(--shadow-soft);
}
.tm-mod__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.tm-mod__tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--secondary-foreground);
  background: var(--secondary);
  border: 1px solid var(--border);
}
.tm-mod__tag svg { width: 12px; height: 12px; flex-shrink: 0; }
.tm-mod__tag--ok {
  color: var(--brand-700);
  background: var(--brand-100);
  border-color: color-mix(in srgb, var(--brand) 20%, transparent);
}
html.dark .tm-mod__tag--ok {
  color: var(--brand-300);
  background: color-mix(in srgb, var(--brand) 16%, transparent);
}

.tm-mod__headline {
  display: inline-flex;
  align-items: baseline;
  gap: 0.3rem;
  margin: 0 0 0.45rem;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.3;
  color: var(--foreground);
  text-decoration: none;
  transition: color 0.15s;
}
.tm-mod__headline span { color: var(--brand); font-weight: 700; }
.tm-mod__headline:hover { color: var(--brand-600); }

.tm-mod__desc {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--muted-foreground);
}

/* AI band */
.tm-ai-band {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: center;
  margin-top: 1rem;
  padding: clamp(1.5rem, 3vw, 2.15rem) clamp(1.25rem, 3vw, 2.25rem);
  border-radius: 20px;
  background:
    radial-gradient(ellipse 60% 80% at 8% 50%, color-mix(in srgb, var(--brand) 22%, transparent), transparent 55%),
    linear-gradient(135deg, #0f1412 0%, #121816 45%, #0c100e 100%);
  color: #e8efe9;
  overflow: hidden;
  border: 1px solid #ffffff12;
  box-shadow: 0 18px 48px #00000040;
}
html.dark .tm-ai-band {
  background:
    radial-gradient(ellipse 60% 80% at 8% 50%, color-mix(in srgb, var(--brand) 18%, transparent), transparent 55%),
    linear-gradient(135deg, #0a0c0b 0%, #101412 50%, #080a09 100%);
}

.tm-ai-band__soon {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4.6rem;
  height: 4.6rem;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #5dffc0, var(--brand) 55%, var(--brand-700));
  color: #04140e;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.15;
  transform: rotate(12deg);
  box-shadow: 0 8px 20px color-mix(in srgb, var(--brand) 35%, transparent);
  animation: tm-ai-soon 4s ease-in-out infinite;
}
@keyframes tm-ai-soon {
  0%, 100% { transform: rotate(12deg) scale(1); }
  50% { transform: rotate(16deg) scale(1.04); }
}

.tm-ai-band__radar {
  position: relative;
  width: clamp(7.5rem, 14vw, 9.5rem);
  height: clamp(7.5rem, 14vw, 9.5rem);
  flex-shrink: 0;
}
.tm-ai-band__radar-ring {
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--brand) 35%, transparent);
}
.tm-ai-band__radar-ring--2 { inset: 28%; opacity: 0.7; }
.tm-ai-band__radar-cross::before,
.tm-ai-band__radar-cross::after {
  content: '';
  position: absolute;
  background: color-mix(in srgb, var(--brand) 28%, transparent);
}
.tm-ai-band__radar-cross::before {
  left: 50%; top: 8%; bottom: 8%; width: 1px; transform: translateX(-50%);
}
.tm-ai-band__radar-cross::after {
  top: 50%; left: 8%; right: 8%; height: 1px; transform: translateY(-50%);
}
.tm-ai-band__radar-dot {
  position: absolute;
  left: 50%; top: 50%;
  width: 10px; height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--brand) 22%, transparent), 0 0 24px var(--brand);
}
.tm-ai-band__radar-sweep {
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0deg, color-mix(in srgb, var(--brand) 35%, transparent) 50deg, transparent 70deg);
  animation: tm-ai-sweep 3.2s linear infinite;
  opacity: 0.85;
}
@keyframes tm-ai-sweep {
  to { transform: rotate(360deg); }
}

.tm-ai-band__body { min-width: 0; padding-right: clamp(0, 6vw, 4rem); }
.tm-ai-band__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 0.65rem;
}
.tm-ai-band__brand {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--brand-400);
  letter-spacing: -0.01em;
}
.tm-ai-band__trained {
  display: inline-flex;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  color: #c6f5df;
  background: color-mix(in srgb, var(--brand) 18%, #0a1210);
  border: 1px solid color-mix(in srgb, var(--brand) 28%, transparent);
}
.tm-ai-band__headline {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0 0 0.55rem;
  font-size: clamp(1.2rem, 2.4vw, 1.65rem);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.25;
  color: #f4faf6;
  text-decoration: none;
}
.tm-ai-band__headline span { color: var(--brand-400); }
.tm-ai-band__headline:hover { color: var(--brand-300); }
.tm-ai-band__desc {
  margin: 0 0 1.1rem;
  max-width: 42rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: #9eaaa3;
}
.tm-ai-band__powers {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.tm-ai-band__powers-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6f7a74;
  margin-right: 0.15rem;
}
.tm-ai-band__chip {
  display: inline-flex;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #e8efe9;
  background: #ffffff12;
  border: 1px solid #ffffff18;
}

@media (max-width: 980px) {
  .tm-modules__grid { grid-template-columns: 1fr; }
  .tm-ai-band { grid-template-columns: 1fr; text-align: left; }
  .tm-ai-band__radar { margin: 0 auto; }
  .tm-ai-band__body { padding-right: 3.5rem; }
}

@media (max-width: 640px) {
  .tm-modules__title { max-width: none; }
  .tm-ai-band__soon { width: 3.8rem; height: 3.8rem; font-size: 0.5rem; top: 0.75rem; right: 0.75rem; }
}

/* ==========================================================================
   Blog stories carousel (Frontend1)
   ========================================================================== */

.tm-stories {
  position: relative;
  padding: clamp(3.5rem, 7vw, 6rem) 0 clamp(2.5rem, 5vw, 4rem);
  background: var(--background);
  border-top: 1px solid var(--border);
  overflow: hidden;
}

.tm-stories__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem 1.5rem;
  margin-bottom: clamp(1.75rem, 3.5vw, 2.5rem);
}

.tm-stories__title {
  margin: 0;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  line-height: 1.22;
  letter-spacing: var(--tracking-tight);
  font-weight: var(--font-display-weight);
  color: var(--foreground);
}

.tm-stories__subtitle {
  margin: 0.45rem 0 0;
  font-size: 1.125rem;
  line-height: 1.45;
  color: var(--muted-foreground);
  letter-spacing: normal;
  font-weight: 400;
}

.tm-stories__controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.tm-stories__nav {
  display: inline-flex;
  gap: 0.4rem;
}

.tm-stories__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--foreground);
  cursor: pointer;
  transition: background 0.2s var(--tm-ease), border-color 0.2s, color 0.2s, opacity 0.2s;
}

.tm-stories__arrow svg {
  width: 1rem;
  height: 1rem;
}

.tm-stories__arrow:hover:not(:disabled) {
  border-color: color-mix(in srgb, var(--brand) 35%, var(--border));
  background: var(--muted);
}

.tm-stories__arrow:disabled {
  opacity: 0.35;
  cursor: default;
}

.tm-stories__all {
  white-space: nowrap;
}

.tm-stories__viewport {
  --stories-pad: max(1.25rem, calc((100vw - 72rem) / 2 + 1.25rem));
  overflow: hidden;
  padding-left: var(--stories-pad);
  padding-right: var(--stories-pad);
  cursor: grab;
  touch-action: pan-y;
}

.tm-stories__viewport:active {
  cursor: grabbing;
}

.tm-stories__track {
  display: flex;
  gap: 1.15rem;
  transition: transform 0.65s var(--tm-ease);
  will-change: transform;
}

.tm-story-card {
  flex: 0 0 min(48rem, calc(100vw - 2.5rem));
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  min-height: 24.5rem;
  border-radius: 1.5rem;
  overflow: hidden;
  color: #f7faf8;
  box-shadow: 0 18px 48px rgba(var(--shadow-color), 0.14);
  position: relative;
}

.tm-story-card__body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  padding: clamp(1.4rem, 2.8vw, 2rem);
  min-width: 0;
}

.tm-story-card__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(135deg, #000 20%, transparent 85%);
  pointer-events: none;
  opacity: 0.55;
}

.tm-story-card--forest { background: linear-gradient(145deg, #1f8a5f 0%, #145c42 42%, #6b1d1d 100%); }
.tm-story-card--crimson { background: linear-gradient(145deg, #c23030 0%, #8b1e1e 48%, #3f0d0d 100%); }
.tm-story-card--teal { background: linear-gradient(145deg, #0f8f7a 0%, #0f4f4a 44%, #1d3557 100%); }
.tm-story-card--ember { background: linear-gradient(145deg, #b45309 0%, #7c2d12 46%, #3f1d0f 100%); }
.tm-story-card--slate { background: linear-gradient(145deg, #334155 0%, #1e293b 48%, #0f172a 100%); }
.tm-story-card--moss { background: linear-gradient(145deg, #3f6212 0%, #1a2e05 42%, #7f1d1d 100%); }

.tm-story-card__brand {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.35rem;
}

.tm-story-card__logo {
  max-height: 1.55rem;
  max-width: 7.5rem;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

.tm-story-card__brand-text {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
}

.tm-story-card__tag {
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  white-space: nowrap;
}

.tm-story-card__title {
  position: relative;
  margin: 0;
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  line-height: 1.3;
  letter-spacing: -0.015em;
  font-weight: 500;
  max-width: 24rem;
}

.tm-story-card__title a {
  color: #fff;
  text-decoration: none;
}

.tm-story-card__title a:hover {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.tm-story-card__stats {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin: auto 0 0;
  padding: 1.35rem 0 1.25rem;
}

.tm-story-card__stat {
  margin: 0;
  min-width: 0;
}

.tm-story-card__stat-value {
  margin: 0;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: #fff;
}

.tm-story-card__stat-label {
  margin: 0.35rem 0 0;
  font-size: 0.75rem;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.72);
}

.tm-shell a.tm-story-card__cta,
.tm-story-card__cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  align-self: flex-start;
  margin-top: 0.15rem;
  padding: 0.78rem 1.15rem;
  border-radius: 999px;
  background: #fff;
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 650;
  text-decoration: none;
  transition: transform 0.2s var(--tm-ease), box-shadow 0.2s, color 0.2s, background 0.2s;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

html.dark .tm-shell a.tm-story-card__cta,
html.dark .tm-story-card__cta {
  background: #fff;
  color: #0e1512;
}

.tm-story-card__cta svg {
  width: 0.95rem;
  height: 0.95rem;
  transition: transform 0.2s var(--tm-ease);
}

.tm-shell a.tm-story-card__cta:hover,
.tm-story-card__cta:hover {
  transform: translateY(-1px);
  color: var(--primary);
}

html.dark .tm-shell a.tm-story-card__cta:hover,
html.dark .tm-story-card__cta:hover {
  color: #0e1512;
}

.tm-story-card__cta:hover svg {
  transform: translateX(2px);
}

.tm-story-card__media {
  display: block;
  position: relative;
  align-self: stretch;
  min-height: 14rem;
  height: 100%;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.28);
}

.tm-story-card__media img,
.tm-story-card__media-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s var(--tm-ease);
}

.tm-story-card__media-fallback {
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.18), transparent 45%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.08), transparent);
}

.tm-story-card.is-active .tm-story-card__media img {
  transform: scale(1.03);
}

@media (max-width: 820px) {
  .tm-story-card {
    flex-basis: min(22.5rem, calc(100vw - 2.5rem));
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .tm-story-card__media {
    min-height: 12.5rem;
    order: -1;
  }
  .tm-story-card__title {
    max-width: none;
  }
  .tm-story-card__stats {
    margin-top: 1.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tm-stories__track,
  .tm-story-card__media img,
  .tm-story-card__cta,
  .tm-story-card__cta svg {
    transition: none !important;
  }
}

/* Blog listing — story cards in a stacked grid */
.tm-story-card--list {
  flex: none;
  width: 100%;
  min-height: 18.5rem;
}

.tm-story-card--featured {
  min-height: 22rem;
  margin-bottom: 1.15rem;
}

.tm-story-card__kicker {
  position: relative;
  margin: 0.85rem 0 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.tm-story-card__excerpt {
  position: relative;
  margin: 0.75rem 0 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.78);
  max-width: 26rem;
}

/* ==========================================================================
   Ecosystem orbit (replaces final Ready-to-trade CTA)
   ========================================================================== */

.tm-ecosystem {
  position: relative;
  padding: clamp(4rem, 8vw, 7rem) 0 clamp(3.5rem, 6vw, 5.5rem);
  background:
    radial-gradient(ellipse 70% 55% at 50% 58%, color-mix(in srgb, var(--brand) 7%, transparent), transparent 70%),
    var(--background);
  border-top: 1px solid var(--border);
  overflow: hidden;
}

.tm-ecosystem__head {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto clamp(2rem, 4vw, 3rem);
}

.tm-ecosystem__kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 1rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand-600);
}

.tm-ecosystem__diamond {
  width: 0.45rem;
  height: 0.45rem;
  background: var(--brand);
  transform: rotate(45deg);
  border-radius: 1px;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent);
}

.tm-ecosystem__title {
  margin: 0;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  line-height: 1.22;
  letter-spacing: var(--tracking-tight);
  font-weight: var(--font-display-weight);
  color: var(--foreground);
}

.tm-ecosystem__title-accent {
  display: inline;
  color: var(--brand-600);
}

.tm-ecosystem__lede {
  margin: 1.1rem auto 0;
  max-width: 34rem;
  font-size: 1.125rem;
  line-height: 1.625;
  color: var(--muted-foreground);
  font-weight: 400;
}

.tm-orbit {
  --orbit-size: min(100%, 40rem);
  --r-inner: 0.31;
  --r-outer: 0.46;
  position: relative;
  width: var(--orbit-size);
  aspect-ratio: 1;
  margin: 0 auto;
  isolation: isolate;
}

.tm-orbit__glow {
  position: absolute;
  inset: 28%;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--brand) 22%, transparent), transparent 70%);
  filter: blur(8px);
  pointer-events: none;
  z-index: 0;
}

.tm-orbit__pulse {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 42%;
  height: 42%;
  margin: -21% 0 0 -21%;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--brand) 28%, transparent);
  pointer-events: none;
  z-index: 1;
  animation: tm-orbit-pulse 3.6s var(--tm-ease) infinite;
}

@keyframes tm-orbit-pulse {
  0%, 100% { transform: scale(0.92); opacity: 0.35; }
  50% { transform: scale(1.08); opacity: 0.8; }
}

.tm-orbit__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
}

.tm-orbit__ring::before {
  content: '';
  position: absolute;
  border-radius: 50%;
  border: 1.5px dashed color-mix(in srgb, var(--foreground) 12%, transparent);
  pointer-events: none;
}

.tm-orbit__ring--inner::before {
  inset: calc(50% - (var(--r-inner) * 100%));
}

.tm-orbit__ring--outer::before {
  inset: calc(50% - (var(--r-outer) * 100%));
}

.tm-orbit.is-animated .tm-orbit__ring--inner {
  animation: tm-orbit-spin 36s linear infinite;
}

.tm-orbit.is-animated .tm-orbit__ring--outer {
  animation: tm-orbit-spin-rev 52s linear infinite;
}

@keyframes tm-orbit-spin {
  to { transform: rotate(360deg); }
}
@keyframes tm-orbit-spin-rev {
  to { transform: rotate(-360deg); }
}

.tm-orbit__node {
  position: absolute;
  inset: 0;
  transform: rotate(var(--a));
  animation: tm-orbit-node-in 0.7s var(--tm-ease) both;
  animation-delay: var(--delay, 0s);
}

@keyframes tm-orbit-node-in {
  from { opacity: 0; transform: rotate(var(--a)) scale(0.6); }
  to { opacity: 1; transform: rotate(var(--a)) scale(1); }
}

.tm-orbit__spin {
  position: absolute;
  left: 50%;
  top: calc(50% - (var(--ring-r) * 100%));
  width: 0;
  height: 0;
}

.tm-orbit__ring--inner .tm-orbit__spin { --ring-r: var(--r-inner); }
.tm-orbit__ring--outer .tm-orbit__spin { --ring-r: var(--r-outer); }

.tm-orbit.is-animated .tm-orbit__ring--inner .tm-orbit__spin {
  animation: tm-orbit-counter 36s linear infinite;
}

.tm-orbit.is-animated .tm-orbit__ring--outer .tm-orbit__spin {
  animation: tm-orbit-counter-rev 52s linear infinite;
}

@keyframes tm-orbit-counter {
  to { transform: rotate(-360deg); }
}
@keyframes tm-orbit-counter-rev {
  to { transform: rotate(360deg); }
}

.tm-orbit__card {
  position: absolute;
  left: 50%;
  top: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.9rem;
  height: 3.9rem;
  margin: -1.95rem 0 0 -1.95rem;
  border-radius: 16px;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: 0 10px 24px rgba(var(--shadow-color), 0.1), 0 1px 2px rgba(var(--shadow-color), 0.05);
  transform: rotate(calc(var(--a) * -1));
  transition: box-shadow 0.25s, border-color 0.25s, scale 0.25s var(--tm-ease);
  pointer-events: auto;
  overflow: hidden;
}

.tm-orbit.is-animated .tm-orbit__card {
  animation: tm-orbit-float 4.5s ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}

@keyframes tm-orbit-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -4px; }
}

.tm-orbit__card--lg {
  width: 4.35rem;
  height: 4.35rem;
  margin: -2.175rem 0 0 -2.175rem;
  border-radius: 18px;
}

.tm-orbit__card:hover {
  border-color: color-mix(in srgb, var(--brand) 40%, var(--border));
  box-shadow: 0 14px 32px color-mix(in srgb, var(--brand) 18%, transparent), var(--shadow-card);
  z-index: 3;
  scale: 1.06;
}

.tm-orbit__coin {
  width: 68%;
  height: 68%;
  object-fit: contain;
  border-radius: 50%;
  display: block;
  user-select: none;
  pointer-events: none;
}

.tm-orbit__hub {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(7.5rem, 18vw, 9.5rem);
  height: clamp(4.4rem, 10vw, 5.4rem);
  margin: calc(clamp(4.4rem, 10vw, 5.4rem) / -2) 0 0 calc(clamp(7.5rem, 18vw, 9.5rem) / -2);
  padding: 0.85rem 1.1rem;
  border-radius: 18px;
  background: var(--card);
  border: 1.5px solid color-mix(in srgb, var(--brand) 45%, var(--border));
  box-shadow:
    0 0 0 6px color-mix(in srgb, var(--brand) 10%, transparent),
    0 16px 40px color-mix(in srgb, var(--brand) 18%, transparent),
    var(--shadow-soft);
}

.tm-orbit__logo {
  max-width: 100%;
  max-height: 2.4rem;
  width: auto;
  height: auto;
  object-fit: contain;
}

.tm-orbit__wordmark {
  font-size: 1.05rem;
  font-weight: 750;
  letter-spacing: -0.03em;
  color: var(--brand-700);
  text-align: center;
  line-height: 1.15;
}

.tm-ecosystem__cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: clamp(2rem, 4vw, 2.75rem);
}

@media (max-width: 720px) {
  .tm-orbit {
    --orbit-size: min(100%, 22rem);
    --r-inner: 0.34;
    --r-outer: 0.48;
  }
  .tm-orbit__card {
    width: 3.15rem;
    height: 3.15rem;
    margin: -1.575rem 0 0 -1.575rem;
    border-radius: 13px;
  }
  .tm-orbit__card--lg {
    width: 3.5rem;
    height: 3.5rem;
    margin: -1.75rem 0 0 -1.75rem;
  }
  .tm-orbit__hub {
    width: 6.5rem;
    height: 3.8rem;
    margin: -1.9rem 0 0 -3.25rem;
    border-radius: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tm-orbit.is-animated .tm-orbit__ring--inner,
  .tm-orbit.is-animated .tm-orbit__ring--outer,
  .tm-orbit.is-animated .tm-orbit__spin,
  .tm-orbit.is-animated .tm-orbit__card,
  .tm-orbit__pulse,
  .tm-orbit__node {
    animation: none !important;
  }
  .tm-orbit__node {
    opacity: 1;
    transform: rotate(var(--a));
  }
}

/* ==========================================================================
   About page (Frontend1-inspired)
   ========================================================================== */

.tm-about-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.tm-about-hero__glow {
  width: 34rem;
  height: 34rem;
  top: -12rem;
  left: 42%;
  transform: translateX(-50%);
  opacity: 0.55;
}

.tm-about-hero__shell {
  position: relative;
}

.tm-about-hero__shell > .tm-about-hero__inner {
  padding-top: clamp(6.5rem, 12vw, 9.5rem);
  padding-bottom: clamp(3.5rem, 7vw, 5.5rem);
}

.tm-about-hero__wires {
  pointer-events: none;
  overflow: hidden;
}

/* Frontend1 about: wires fan from top-right, masked bottom-left */
.tm-about-hero__wires--bleed {
  position: absolute;
  inset: 0 auto 0 50%;
  width: 100vw;
  transform: translateX(-50%);
  z-index: 0;
  display: block;
  opacity: 0.5;
  -webkit-mask-image: linear-gradient(to bottom left, #000 0%, #000 26%, transparent 52%);
  mask-image: linear-gradient(to bottom left, #000 0%, #000 26%, transparent 52%);
}

@media (max-width: 1023px) {
  .tm-about-hero__wires--bleed {
    inset: auto 0 0 0;
    width: 100%;
    height: min(68%, 18rem);
    transform: none;
    opacity: 0.45;
    -webkit-mask-image: linear-gradient(to top, #000 5%, #000 50%, transparent 100%);
    mask-image: linear-gradient(to top, #000 5%, #000 50%, transparent 100%);
  }
}

@media (min-width: 1024px) {
  .tm-about-hero__wires--bleed {
    opacity: 1;
  }
}

.tm-about-hero__wires--band {
  display: none !important;
  height: 0 !important;
  margin: 0 !important;
}

.tm-about-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 48rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.tm-about-hero__eyebrow {
  margin-bottom: 1.1rem;
}

.tm-about-hero__title {
  font-size: clamp(2.4rem, 5.2vw, 3.85rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 500;
  max-width: 14ch;
}

.tm-about-hero__subtitle {
  margin-top: 1.25rem;
  font-size: clamp(1.02rem, 1.5vw, 1.2rem);
  color: var(--muted-foreground);
  max-width: 38rem;
  line-height: 1.65;
}

.tm-about-hero__cta {
  margin-top: 2rem;
}

.tm-about-stats .tm-stat {
  padding: 1.9rem 1.6rem;
}

.tm-about-mission {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 900px) {
  .tm-about-mission {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr);
    gap: 4rem;
  }
}

.tm-about-mission__title {
  margin-top: 0.85rem;
  max-width: 16ch;
}

.tm-about-mission__body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--muted-foreground);
}

.tm-about-mission__body p {
  margin: 0;
}

.tm-about-split {
  display: grid;
  gap: 1rem;
}

@media (min-width: 800px) {
  .tm-about-split {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.tm-about-split__card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--card);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  min-height: 14rem;
}

.tm-about-split__card--accent {
  background:
    radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--brand) 18%, transparent), transparent 55%),
    var(--card);
}

.tm-about-split__title {
  margin: 0.9rem 0 0;
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
  max-width: 18ch;
}

.tm-about-split__text {
  margin: 1rem 0 0;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--muted-foreground);
  max-width: 34rem;
}

.tm-about-values {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 700px) {
  .tm-about-values {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1050px) {
  .tm-about-values {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.tm-about-value {
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--card);
  padding: 1.75rem 1.5rem;
  transition: transform 0.3s var(--tm-ease), border-color 0.3s var(--tm-ease), box-shadow 0.3s var(--tm-ease);
}

.tm-about-value:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--brand) 35%, var(--border));
  box-shadow: 0 24px 48px -34px rgba(var(--shadow-color), 0.35);
}

.tm-about-value__icon {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--brand) 12%, var(--muted));
  color: var(--brand-700);
  margin-bottom: 1.15rem;
}

html.dark .tm-about-value__icon {
  color: var(--brand-400);
}

.tm-about-value__icon svg {
  width: 1.2rem;
  height: 1.2rem;
}

.tm-about-value__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: -0.015em;
}

.tm-about-value__desc {
  margin: 0.55rem 0 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--muted-foreground);
}

.tm-about-why {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 900px) {
  .tm-about-why {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr);
    gap: 3.5rem;
  }
}

.tm-about-why__list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.tm-about-why__item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--card);
  transition: background-color 0.25s var(--tm-ease), border-color 0.25s var(--tm-ease);
}

.tm-about-why__item:hover {
  background: var(--accent);
  border-color: transparent;
}

.tm-about-why__num {
  font-size: 0.78rem;
  color: var(--brand-600);
  margin-top: 0.15rem;
}

html.dark .tm-about-why__num {
  color: var(--brand-400);
}

.tm-about-why__item p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--foreground);
}

.tm-about-timeline {
  margin-top: 0.5rem;
  overflow-x: auto;
  padding: 0.25rem 0 1.25rem;
  scrollbar-width: thin;
}

.tm-about-timeline__track {
  display: flex;
  gap: 1rem;
  width: max-content;
  min-width: 100%;
  padding: 0 max(1.25rem, calc((100vw - 72rem) / 2 + 1.25rem));
}

.tm-about-timeline__card {
  position: relative;
  width: min(17.5rem, 72vw);
  flex: 0 0 auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--card);
  padding: 1.6rem 1.4rem 1.7rem;
  transition: transform 0.3s var(--tm-ease), border-color 0.3s var(--tm-ease);
}

.tm-about-timeline__card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--brand) 40%, var(--border));
}

.tm-about-timeline__year {
  display: inline-block;
  font-size: 0.78rem;
  color: var(--brand-600);
  margin-bottom: 0.85rem;
}

html.dark .tm-about-timeline__year {
  color: var(--brand-400);
}

.tm-about-timeline__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: -0.015em;
}

.tm-about-timeline__desc {
  margin: 0.5rem 0 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--muted-foreground);
}

.tm-about-timeline__connector {
  display: none;
}

@media (min-width: 900px) {
  .tm-about-timeline__connector {
    display: block;
    position: absolute;
    top: 2.1rem;
    right: -1.05rem;
    width: 1.05rem;
    height: 1px;
    background: var(--border);
  }
}

.tm-about-presence {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 900px) {
  .tm-about-presence {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.25fr);
    gap: 3rem;
    align-items: start;
  }
}

.tm-about-presence__grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 700px) {
  .tm-about-presence__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.tm-about-presence__card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--card);
  padding: 1.25rem 1.15rem;
  min-height: 7.5rem;
  transition: background-color 0.25s var(--tm-ease), border-color 0.25s var(--tm-ease);
}

.tm-about-presence__card:first-child {
  grid-column: 1 / -1;
  background:
    radial-gradient(circle at 0% 0%, color-mix(in srgb, var(--brand) 14%, transparent), transparent 50%),
    var(--card);
}

@media (min-width: 700px) {
  .tm-about-presence__card:first-child {
    grid-column: span 1;
  }
}

.tm-about-presence__card:hover {
  background: var(--accent);
  border-color: transparent;
}

.tm-about-presence__label {
  display: block;
  font-size: 0.72rem;
  color: var(--brand-600);
  margin-bottom: 0.7rem;
}

html.dark .tm-about-presence__label {
  color: var(--brand-400);
}

.tm-about-presence__name {
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.tm-about-presence__meta {
  margin: 0.3rem 0 0;
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--muted-foreground);
}

.tm-about-cta {
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--radius-xl) + 4px);
  border: 1px solid transparent;
  background: var(--primary);
  color: var(--primary-foreground, #fdfdfb);
  padding: clamp(2.75rem, 6vw, 4.75rem) clamp(1.5rem, 4vw, 3.5rem);
  text-align: center;
}

.tm-about-cta__glow {
  width: 28rem;
  height: 28rem;
  top: -10rem;
  right: -8rem;
  opacity: 0.28;
}

.tm-about-cta__grid {
  opacity: 0.12;
  mix-blend-mode: soft-light;
}

.tm-about-cta__wires {
  position: absolute;
  inset: auto 0 0;
  height: 7rem;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  opacity: 0.55;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
}

@media (min-width: 1024px) {
  .tm-about-cta__wires {
    height: 10rem;
  }
}

.tm-about-cta__kicker,
.tm-about-cta__title,
.tm-about-cta__lead,
.tm-about-cta__actions {
  position: relative;
  z-index: 1;
}

.tm-about-cta__kicker {
  justify-content: center;
  color: rgba(253, 253, 251, 0.72);
}

.tm-about-cta__kicker::before {
  background: var(--brand);
}

.tm-about-cta__title {
  margin-top: 0.85rem;
  color: inherit;
  max-width: 18ch;
  margin-left: auto;
  margin-right: auto;
}

.tm-about-cta__lead {
  max-width: 34rem;
  margin: 1rem auto 0;
  color: rgba(253, 253, 251, 0.72);
}

.tm-about-cta__actions {
  margin-top: 2rem;
  justify-content: center;
  align-items: center;
}

.tm-about-cta__form {
  display: contents;
}

.tm-about-cta__input {
  border-radius: 999px;
  border: 1px solid rgba(253, 253, 251, 0.28);
  background: rgba(253, 253, 251, 0.08);
  color: inherit;
  padding: 0.75rem 1.15rem;
  font-size: 0.92rem;
  min-width: min(18rem, 100%);
  outline: none;
}

.tm-about-cta__input::placeholder {
  color: rgba(253, 253, 251, 0.55);
}

.tm-about-cta__input:focus {
  border-color: color-mix(in srgb, var(--brand) 60%, #fff);
  box-shadow: 0 0 0 3px var(--brand-ring);
}

.tm-shell a.tm-about-cta__submit,
.tm-shell button.tm-about-cta__submit,
.tm-about-cta__submit {
  background: #fdfdfb;
  color: #0e1512;
  border-color: transparent;
  box-shadow: 0 10px 28px -16px rgba(0, 0, 0, 0.45);
}

.tm-shell a.tm-about-cta__submit:hover,
.tm-shell button.tm-about-cta__submit:hover,
.tm-about-cta__submit:hover {
  background: #fff;
  color: #0e1512;
  filter: none;
}

.tm-shell a.tm-about-cta__ghost,
.tm-about-cta__ghost {
  border-color: rgba(253, 253, 251, 0.32);
  color: #fdfdfb;
  background: transparent;
}

.tm-shell a.tm-about-cta__ghost:hover,
.tm-about-cta__ghost:hover {
  background: rgba(253, 253, 251, 0.1);
  border-color: rgba(253, 253, 251, 0.5);
  color: #fdfdfb;
}

@media (max-width: 640px) {
  .tm-about-hero__title {
    max-width: none;
  }

  .tm-about-presence__grid {
    grid-template-columns: 1fr;
  }

  .tm-about-cta__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .tm-about-cta__input,
  .tm-about-cta__submit,
  .tm-about-cta__ghost {
    width: 100%;
  }
}

/* ==========================================================================
   Markets page + detail
   ========================================================================== */

.tm-markets-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.tm-markets-hero__glow {
  width: 32rem;
  height: 32rem;
  top: -12rem;
  left: 45%;
  transform: translateX(-50%);
  opacity: 0.5;
}

.tm-markets-hero__shell {
  position: relative;
}

.tm-markets-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 42rem;
  padding-top: clamp(6.25rem, 11vw, 9rem);
  padding-bottom: clamp(3rem, 6vw, 4.75rem);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.tm-markets-hero__title {
  margin: 0.85rem 0 0;
  font-size: clamp(2.35rem, 5vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-weight: 500;
  max-width: 14ch;
}

.tm-markets-hero__subtitle {
  margin: 1.15rem 0 0;
  font-size: clamp(1rem, 1.45vw, 1.15rem);
  line-height: 1.65;
  color: var(--muted-foreground);
  max-width: 36rem;
}

.tm-markets-hero__live.is-live {
  color: var(--brand-700);
}

html.dark .tm-markets-hero__live.is-live {
  color: var(--brand-400);
}

.tm-markets-hero__wires {
  pointer-events: none;
  overflow: hidden;
}

.tm-markets-hero__wires--bleed {
  position: absolute;
  inset: 0 auto 0 50%;
  width: 100vw;
  transform: translateX(-50%);
  z-index: 0;
  display: block;
  opacity: 0.5;
  -webkit-mask-image: linear-gradient(to bottom left, #000 0%, #000 26%, transparent 52%);
  mask-image: linear-gradient(to bottom left, #000 0%, #000 26%, transparent 52%);
}

@media (max-width: 1023px) {
  .tm-markets-hero__wires--bleed {
    inset: auto 0 0 0;
    width: 100%;
    height: min(68%, 18rem);
    transform: none;
    opacity: 0.45;
    -webkit-mask-image: linear-gradient(to top, #000 5%, #000 50%, transparent 100%);
    mask-image: linear-gradient(to top, #000 5%, #000 50%, transparent 100%);
  }
}

@media (min-width: 1024px) {
  .tm-markets-hero__wires--bleed {
    opacity: 1;
  }
}

.tm-markets-hero__wires--band {
  display: none !important;
  height: 0 !important;
  margin: 0 !important;
}

.tm-markets-movers {
  display: grid;
  gap: 1rem;
  margin-bottom: 2rem;
}

@media (min-width: 800px) {
  .tm-markets-movers { grid-template-columns: 1fr 1fr; }
}

.tm-markets-movers__label {
  margin: 0 0 0.65rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.tm-markets-movers__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.tm-markets-mover {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--card);
  transition: border-color 0.2s var(--tm-ease), transform 0.2s var(--tm-ease), background 0.2s var(--tm-ease);
}

.tm-markets-mover:hover {
  border-color: color-mix(in srgb, var(--brand) 40%, var(--border));
  transform: translateY(-2px);
  background: var(--accent);
}

.tm-markets-mover__sym {
  font-weight: 600;
  font-size: 0.88rem;
}

.tm-markets-mover__chg {
  font-size: 0.82rem;
  font-weight: 600;
}

.tm-markets-mover__chg.is-up,
.tm-markets-chg.is-up,
.tm-markets-price.is-up,
.tm-stat__value.is-up,
.tm-markets-detail__price.is-up,
.tm-markets-detail__chg.is-up {
  color: var(--brand-700, #1e5c44);
}

.tm-markets-mover__chg.is-down,
.tm-markets-chg.is-down,
.tm-markets-price.is-down,
.tm-stat__value.is-down,
.tm-markets-detail__price.is-down,
.tm-markets-detail__chg.is-down {
  color: #b91c1c;
}

html.dark .tm-markets-mover__chg.is-up,
html.dark .tm-markets-chg.is-up,
html.dark .tm-markets-price.is-up,
html.dark .tm-stat__value.is-up,
html.dark .tm-markets-detail__price.is-up,
html.dark .tm-markets-detail__chg.is-up {
  color: var(--brand-400);
}

html.dark .tm-markets-mover__chg.is-down,
html.dark .tm-markets-chg.is-down,
html.dark .tm-markets-price.is-down,
html.dark .tm-stat__value.is-down,
html.dark .tm-markets-detail__price.is-down,
html.dark .tm-markets-detail__chg.is-down {
  color: #fca5a5;
}

.tm-markets-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.tm-markets-chips {
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  padding-bottom: 0.15rem;
  max-width: 100%;
}

.tm-markets-chip {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--muted-foreground);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.tm-markets-chip__count {
  font-size: 0.72rem;
  opacity: 0.75;
}

.tm-markets-chip.is-active,
.tm-markets-chip:hover {
  color: var(--brand-700);
  border-color: var(--brand);
  background: var(--accent);
}

html.dark .tm-markets-chip.is-active,
html.dark .tm-markets-chip:hover {
  color: var(--brand-400);
}

.tm-markets-search {
  position: relative;
  flex: 1 1 14rem;
  min-width: 12rem;
  max-width: 22rem;
}

.tm-markets-search svg {
  position: absolute;
  left: 0.9rem;
  top: 1.2rem;
  transform: translateY(-50%);
  width: 1rem;
  height: 1rem;
  color: var(--muted-foreground);
  pointer-events: none;
  z-index: 1;
}

.tm-markets-search input {
  width: 100%;
  padding: 0.7rem 1rem 0.7rem 2.5rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--foreground);
  font-size: 0.88rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.tm-markets-search input:focus {
  border-color: color-mix(in srgb, var(--brand) 45%, var(--border));
  box-shadow: 0 0 0 3px var(--brand-ring);
}

.tm-markets-table-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--card);
  overflow: hidden;
}

.tm-markets-table-scroll {
  overflow-x: auto;
}

.tm-markets-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 920px;
  text-align: left;
}

.tm-markets-table th {
  padding: 0.9rem 1.1rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  background: var(--muted);
  border-bottom: 1px solid var(--border);
}

.tm-markets-table td {
  padding: 0.95rem 1.1rem;
  border-top: 1px solid var(--border);
  font-size: 0.88rem;
  vertical-align: middle;
}

.tm-markets-table tbody tr {
  transition: background-color 0.2s var(--tm-ease);
}

.tm-markets-table tbody tr:hover td {
  background: var(--accent);
}

.tm-markets-table tbody tr.is-flash-up td {
  animation: tm-mcell-up 0.52s var(--tm-ease);
}

.tm-markets-table tbody tr.is-flash-down td {
  animation: tm-mcell-down 0.52s var(--tm-ease);
}

.tm-markets-table__rank {
  width: 3rem;
  color: var(--muted-foreground);
}

.tm-markets-table__num {
  text-align: right;
  font-weight: 600;
}

.tm-markets-table__spark {
  width: 7.5rem;
}

.tm-markets-table__action {
  text-align: right;
  width: 7rem;
}

.tm-markets-cell__label {
  display: none;
}

.tm-markets-open {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.tm-markets-open__chev {
  display: none;
  width: 0.95rem;
  height: 0.95rem;
}

.tm-markets-pair {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  color: inherit;
}

.tm-markets-pair__icon {
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 50%;
  background: var(--accent);
  color: var(--brand-600);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  flex-shrink: 0;
  overflow: hidden;
}

.tm-markets-pair__icon--lg {
  width: 3.4rem;
  height: 3.4rem;
  font-size: 0.85rem;
}

.tm-markets-pair__icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tm-markets-pair__meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.tm-markets-pair__sym {
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.tm-markets-pair__name {
  font-size: 0.78rem;
  color: var(--muted-foreground);
}

.tm-markets-cat {
  padding: 0.2rem 0.65rem;
  font-size: 0.72rem;
}

.tm-markets-spark {
  display: block;
  width: 6.5rem;
  height: 1.9rem;
  color: var(--muted-foreground);
}

.tm-markets-spark.is-up { color: var(--brand-600); }
.tm-markets-spark.is-down { color: #d94848; }
html.dark .tm-markets-spark.is-up { color: var(--brand-400); }
html.dark .tm-markets-spark.is-down { color: #fca5a5; }

.tm-markets-table__spark {
  position: relative;
}

.tm-markets-spark.is-loading {
  opacity: 0.35;
}

.tm-markets-price.is-blink-up,
.tm-markets-detail__price.is-blink-up {
  animation: tm-price-blink-up 0.45s ease;
}

.tm-markets-price.is-blink-down,
.tm-markets-detail__price.is-blink-down {
  animation: tm-price-blink-down 0.45s ease;
}

.tm-markets-empty {
  padding: 3.5rem 1.5rem;
  text-align: center;
  color: var(--muted-foreground);
  font-size: 0.9rem;
}

.tm-markets-foot {
  margin: 0;
  padding: 0.85rem 1.15rem;
  border-top: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--muted-foreground);
}

.tm-markets-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  color: var(--muted-foreground);
  margin-bottom: 1.5rem;
}

.tm-markets-breadcrumb a:hover {
  color: var(--foreground);
}

.tm-markets-detail-head {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.tm-markets-detail-title {
  margin: 0.35rem 0 0;
  font-size: clamp(2rem, 4vw, 2.8rem);
  letter-spacing: -0.03em;
  font-weight: 500;
  line-height: 1.05;
}

.tm-markets-detail-name {
  margin: 0.25rem 0 0;
  color: var(--muted-foreground);
}

.tm-markets-detail__quote {
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--card);
  padding: clamp(1.5rem, 3vw, 2.25rem);
}

.tm-markets-detail__label {
  margin: 0 0 0.4rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.tm-markets-detail__price {
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
}

.tm-markets-detail__chg {
  margin: 0.65rem 0 0;
  font-size: 1.05rem;
  font-weight: 600;
}

.tm-markets-detail__chg span {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted-foreground);
  margin-left: 0.25rem;
}

.tm-markets-detail__status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 1rem 0 0;
  font-size: 0.84rem;
  color: var(--muted-foreground);
}

.tm-markets-detail__chart-wrap {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.tm-markets-detail__chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.tm-markets-detail__chart-hint {
  font-size: 0.72rem;
  color: var(--muted-foreground);
}

.tm-markets-detail__chart {
  width: 100%;
  height: 18rem;
  margin-top: 0.85rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--muted) 55%, var(--card));
  overflow: hidden;
}

@media (min-width: 800px) {
  .tm-markets-detail__chart { height: 22rem; }
}

.tm-markets-detail__meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

@media (min-width: 700px) {
  .tm-markets-detail__meta {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.tm-markets-detail__meta p:not(.tm-markets-detail__label) {
  margin: 0;
  font-weight: 600;
  font-size: 0.95rem;
}

.tm-markets-related {
  margin-top: 3rem;
}

.tm-markets-related__grid {
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 700px) {
  .tm-markets-related__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.tm-markets-related__card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.85rem;
  align-items: center;
  padding: 1rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--card);
  color: inherit;
  transition: border-color 0.2s var(--tm-ease), transform 0.2s var(--tm-ease), background 0.2s var(--tm-ease);
}

.tm-markets-related__card:hover {
  border-color: color-mix(in srgb, var(--brand) 35%, var(--border));
  transform: translateY(-2px);
  background: var(--accent);
}

.tm-markets-related__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.tm-markets-related__quote {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.2rem;
  font-weight: 600;
}

.tm-markets-chg .tm-markets-cell__value.is-up,
.tm-markets-cell--chg .tm-markets-cell__value.is-up {
  color: var(--brand-600);
}

.tm-markets-chg .tm-markets-cell__value.is-down,
.tm-markets-cell--chg .tm-markets-cell__value.is-down {
  color: #d94848;
}

html.dark .tm-markets-chg .tm-markets-cell__value.is-up,
html.dark .tm-markets-cell--chg .tm-markets-cell__value.is-up {
  color: var(--brand-400);
}

html.dark .tm-markets-chg .tm-markets-cell__value.is-down,
html.dark .tm-markets-cell--chg .tm-markets-cell__value.is-down {
  color: #fca5a5;
}

@media (max-width: 640px) {
  .tm-markets-hero__title { max-width: none; }
  .tm-markets-search { max-width: none; }
}

/* ==========================================================================
   Blog — hero, filters, nav, article, pagination
   ========================================================================== */

.tm-blog-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(3.5rem, 7vw, 5.5rem) 0 clamp(2.5rem, 5vw, 3.75rem);
  border-bottom: 1px solid var(--border);
}

.tm-blog-hero__glow {
  width: 28rem;
  height: 28rem;
  top: -12rem;
  left: 50%;
  transform: translateX(-50%);
}

.tm-blog-hero__shell {
  position: relative;
  z-index: 1;
}

.tm-blog-hero__wires {
  pointer-events: none;
}

.tm-blog-hero__wires--bleed {
  position: absolute;
  inset: -10% -5% auto auto;
  width: min(42vw, 28rem);
  height: 14rem;
  opacity: 0.55;
}

.tm-blog-hero__inner {
  position: relative;
  max-width: 40rem;
}

.tm-blog-hero__eyebrow {
  margin-bottom: 0.85rem;
}

.tm-blog-hero__title {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: var(--tracking-tight);
  font-weight: var(--font-display-weight);
  color: var(--foreground);
}

.tm-blog-hero__subtitle {
  margin: 1rem 0 0;
  max-width: 34rem;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--muted-foreground);
}

.tm-blog-hero__inner .tm-hero__cta {
  margin-top: 1.5rem;
}

.tm-blog-hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2rem;
  margin-top: 2rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--border);
}

.tm-blog-hero__stat {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.tm-blog-hero__stat-value {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--brand-600);
}

html.dark .tm-blog-hero__stat-value {
  color: var(--brand-400);
}

.tm-blog-hero__stat-label {
  font-size: 0.78rem;
  color: var(--muted-foreground);
}

.tm-blog-index {
  padding-top: clamp(1.75rem, 3vw, 2.5rem);
  scroll-margin-top: 5.5rem;
}

.tm-blog-index__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.25rem;
  margin-bottom: 1.75rem;
}

.tm-blog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.tm-blog-filters__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--background);
  color: var(--muted-foreground);
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.18s var(--tm-ease), color 0.18s var(--tm-ease), background 0.18s var(--tm-ease);
}

.tm-blog-filters__btn .tm-mono {
  font-size: 0.72rem;
  opacity: 0.75;
}

.tm-blog-filters__btn:hover {
  border-color: color-mix(in srgb, var(--brand) 35%, var(--border));
  color: var(--foreground);
}

.tm-blog-filters__btn.is-active {
  background: var(--brand-600);
  border-color: var(--brand-600);
  color: #fff;
}

.tm-blog-filters__btn.is-active .tm-mono {
  opacity: 0.9;
  color: inherit;
}

.tm-blog-index__count {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted-foreground);
}

.tm-blog-index__count strong {
  color: var(--foreground);
}

.tm-blog-index__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.tm-blog-index__grid {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.tm-blog-index__empty {
  display: grid;
  gap: 0.75rem;
  justify-items: start;
  padding: 2.5rem 1.5rem;
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--muted) 45%, transparent);
}

.tm-blog-index__empty .tm-h3 {
  margin: 0;
  font-size: 1.2rem;
}

.tm-blog-index__empty .tm-body {
  margin: 0;
}

.tm-blog-index__pager {
  margin-top: 2.25rem;
}

.tm-blog-nav {
  padding: 1.2rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--card, var(--background));
}

.tm-blog-nav__label {
  margin: 0 0 0.9rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.tm-blog-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.tm-blog-nav__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.5rem 0.65rem;
  margin: 0 -0.65rem;
  border-radius: 0.6rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--muted-foreground);
  text-decoration: none;
  transition: background 0.15s var(--tm-ease), color 0.15s var(--tm-ease);
}

.tm-blog-nav__link:hover {
  color: var(--foreground);
  background: var(--accent);
}

.tm-blog-nav__link.is-active {
  color: var(--brand-600);
  background: var(--accent);
  font-weight: 650;
}

html.dark .tm-blog-nav__link.is-active {
  color: var(--brand-400);
}

.tm-blog-nav__count {
  font-size: 0.72rem;
  opacity: 0.7;
}

.tm-blog-nav__empty {
  margin: 0;
  font-size: 0.86rem;
  color: var(--muted-foreground);
}

.tm-blog-recent {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.tm-blog-recent__item {
  display: flex;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.tm-blog-recent__item:hover .tm-blog-recent__title {
  color: var(--brand-600);
}

.tm-blog-recent__thumb {
  width: 3.75rem;
  height: 3.75rem;
  border-radius: 0.65rem;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--border);
}

.tm-blog-recent__thumb--empty {
  display: block;
  background: var(--muted);
}

.tm-blog-recent__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.tm-blog-recent__cat {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-600);
}

.tm-blog-recent__title {
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--foreground);
  transition: color 0.15s var(--tm-ease);
}

.tm-blog-recent__date {
  font-size: 0.72rem;
  color: var(--muted-foreground);
}

@media (min-width: 1024px) {
  .tm-blog-index__layout {
    grid-template-columns: 15.5rem minmax(0, 1fr);
    align-items: start;
    gap: 2.5rem;
  }
  .tm-blog-index__aside {
    position: sticky;
    top: 6rem;
  }
}

@media (max-width: 900px) {
  .tm-blog-index__aside {
    display: none;
  }
  .tm-blog-hero__wires--bleed {
    width: min(55vw, 18rem);
    height: 10rem;
    opacity: 0.35;
  }
}

/* Blog article */
.tm-blog-article-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(2.75rem, 5vw, 4rem) 0 2rem;
  border-bottom: 1px solid var(--border);
}

.tm-blog-article-hero__glow {
  width: 22rem;
  height: 22rem;
  top: -10rem;
  left: 12%;
}

.tm-blog-article-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 46rem;
}

.tm-blog-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1rem;
  font-size: 0.84rem;
  color: var(--muted-foreground);
}

.tm-blog-breadcrumb a {
  color: inherit;
  text-decoration: none;
  font-weight: 600;
}

.tm-blog-breadcrumb a:hover {
  color: var(--brand-600);
}

.tm-blog-article-hero__title {
  margin: 0.65rem 0 0;
  font-size: clamp(1.85rem, 3.8vw, 2.75rem);
  line-height: 1.12;
  letter-spacing: var(--tracking-tight);
  font-weight: var(--font-display-weight);
  color: var(--foreground);
}

.tm-blog-article-hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.55rem;
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--muted-foreground);
}

.tm-blog-show {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.25rem;
}

.tm-blog-show__hero {
  width: 100%;
  border-radius: var(--radius-lg);
  margin-bottom: 1.75rem;
  border: 1px solid var(--border);
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.tm-blog-show__lede {
  margin: 0 0 2rem;
  padding-left: 1rem;
  border-left: 3px solid var(--brand);
  font-size: 1.08rem;
  line-height: 1.6;
  color: var(--foreground);
}

.tm-blog-show__footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.tm-blog-prose {
  font-size: 1.02rem;
  line-height: 1.8;
  color: var(--foreground);
}

.tm-blog-prose h2,
.tm-blog-prose h3 {
  color: var(--foreground);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 2rem 0 0.75rem;
}

.tm-blog-prose p {
  margin-bottom: 1.15rem;
  color: var(--muted-foreground);
}

.tm-blog-prose a {
  color: var(--brand-600);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.tm-blog-prose strong {
  color: var(--foreground);
}

.tm-blog-prose img {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  max-width: 100%;
  height: auto;
}

.tm-blog-prose ul,
.tm-blog-prose ol {
  margin: 0 0 1.15rem 1.25rem;
  color: var(--muted-foreground);
}

.tm-blog-prose blockquote {
  margin: 1.5rem 0;
  padding: 0.25rem 0 0.25rem 1rem;
  border-left: 3px solid var(--brand);
  color: var(--foreground);
}

.tm-blog-related {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.tm-blog-related__card {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 1rem;
  padding: 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  background: var(--card, var(--background));
  transition: border-color 0.18s var(--tm-ease), transform 0.18s var(--tm-ease), background 0.18s var(--tm-ease);
}

.tm-blog-related__card:hover {
  border-color: color-mix(in srgb, var(--brand) 35%, var(--border));
  transform: translateY(-2px);
  background: var(--accent);
}

.tm-blog-related__media {
  width: 100%;
  height: 5.5rem;
  object-fit: cover;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
}

.tm-blog-related__media--empty {
  display: block;
  background: var(--muted);
}

.tm-blog-related__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.15rem 0.15rem 0.15rem 0;
}

.tm-blog-related__cat {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-600);
}

.tm-blog-related__title {
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.3;
  color: var(--foreground);
}

.tm-blog-related__excerpt {
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--muted-foreground);
}

@media (min-width: 720px) {
  .tm-blog-related {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .tm-blog-related__card {
    grid-template-columns: 1fr;
  }
  .tm-blog-related__media {
    height: 9rem;
  }
}

@media (min-width: 1100px) {
  .tm-blog-show {
    grid-template-columns: 15rem minmax(0, 1fr) 15rem;
    align-items: start;
    gap: 2.5rem;
  }
  .tm-blog-show__aside,
  .tm-blog-show__recent {
    position: sticky;
    top: 6rem;
  }
}

/* Frontend1 pagination */
.tm-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.25rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--muted) 35%, var(--background));
}

.tm-pager__meta {
  margin: 0;
  font-size: 0.86rem;
  color: var(--muted-foreground);
}

.tm-pager__meta strong {
  color: var(--foreground);
  font-weight: 650;
}

.tm-pager__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.tm-pager__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.35rem;
  height: 2.35rem;
  padding: 0 0.65rem;
  border-radius: 0.7rem;
  border: 1px solid var(--border);
  background: var(--background);
  color: var(--foreground);
  font-size: 0.88rem;
  font-weight: 650;
  text-decoration: none;
  transition: border-color 0.15s var(--tm-ease), background 0.15s var(--tm-ease), color 0.15s var(--tm-ease), transform 0.15s var(--tm-ease);
}

.tm-pager__btn svg {
  width: 1rem;
  height: 1rem;
}

.tm-pager__btn:hover:not(.is-disabled):not(.is-active) {
  border-color: color-mix(in srgb, var(--brand) 40%, var(--border));
  color: var(--brand-600);
  transform: translateY(-1px);
}

.tm-pager__btn.is-active {
  background: var(--brand-600);
  border-color: var(--brand-600);
  color: #fff;
}

.tm-pager__btn.is-disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.tm-pager__ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.5rem;
  color: var(--muted-foreground);
  font-weight: 600;
}

@media (max-width: 560px) {
  .tm-pager {
    flex-direction: column;
    align-items: stretch;
  }
  .tm-pager__list {
    justify-content: center;
  }
  .tm-pager__meta {
    text-align: center;
  }
}

/* ==========================================================================
   Account types — Frontend1 redesign
   ========================================================================== */

.tm-accounts-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  padding: clamp(3.75rem, 7vw, 5.75rem) 0 clamp(2.5rem, 5vw, 3.75rem);
}

.tm-accounts-hero__glow {
  width: 30rem;
  height: 30rem;
  top: -12rem;
  left: 45%;
  transform: translateX(-50%);
  opacity: 0.55;
}

.tm-accounts-hero__shell {
  position: relative;
  z-index: 1;
}

.tm-accounts-hero__wires {
  pointer-events: none;
}

.tm-accounts-hero__wires--bleed {
  position: absolute;
  inset: -8% -4% auto auto;
  width: min(46vw, 30rem);
  height: 15rem;
  opacity: 0.55;
}

.tm-accounts-hero__inner {
  position: relative;
  max-width: 40rem;
}

.tm-accounts-hero__eyebrow {
  margin-bottom: 0.9rem;
}

.tm-accounts-hero__title {
  margin: 0;
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: var(--tracking-tight);
  font-weight: var(--font-display-weight);
  color: var(--foreground);
  max-width: 16ch;
}

.tm-accounts-hero__subtitle {
  margin: 1.1rem 0 0;
  max-width: 34rem;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--muted-foreground);
}

.tm-accounts-hero__inner .tm-hero__cta {
  margin-top: 1.5rem;
}

.tm-accounts-hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2rem;
  margin-top: 2rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--border);
}

.tm-accounts-hero__stat {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.tm-accounts-hero__stat-value {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--brand-600);
}

html.dark .tm-accounts-hero__stat-value {
  color: var(--brand-400);
}

.tm-accounts-hero__stat-label {
  font-size: 0.78rem;
  color: var(--muted-foreground);
}

.tm-accounts-plans {
  scroll-margin-top: 5.5rem;
}

.tm-accounts-plans__title {
  margin-top: 0.75rem;
  font-size: clamp(1.55rem, 2.8vw, 2.1rem);
}

.tm-accounts-plans__lead {
  margin-top: 0.75rem;
  max-width: 36rem;
}

.tm-accounts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
  margin-top: 2rem;
}

@media (min-width: 720px) {
  .tm-accounts-grid--2,
  .tm-accounts-grid--3,
  .tm-accounts-grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .tm-accounts-grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .tm-accounts-grid--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.tm-accounts-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 1.35rem 1.35rem 1.4rem;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius-lg) + 2px);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--accent) 55%, transparent), transparent 42%),
    var(--card, var(--background));
  transition: border-color 0.2s var(--tm-ease), transform 0.2s var(--tm-ease), box-shadow 0.2s var(--tm-ease);
}

.tm-accounts-card:hover {
  border-color: color-mix(in srgb, var(--brand) 32%, var(--border));
  transform: translateY(-2px);
}

.tm-accounts-card.is-featured {
  border-color: color-mix(in srgb, var(--brand) 55%, var(--border));
  box-shadow: 0 18px 40px -28px color-mix(in srgb, var(--brand) 55%, transparent);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--brand) 10%, transparent), transparent 48%),
    var(--card, var(--background));
}

.tm-accounts-card__head {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1.15rem;
}

.tm-accounts-card__badge {
  align-self: flex-start;
  margin-bottom: 0.35rem;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  background: var(--brand-600);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tm-accounts-card__name {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--foreground);
}

.tm-accounts-card__tagline {
  margin: 0;
  min-height: 2.6em;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--muted-foreground);
}

.tm-accounts-card__price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.45rem;
  margin-top: 0.55rem;
}

.tm-accounts-card__price-value {
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--brand-600);
}

html.dark .tm-accounts-card__price-value {
  color: var(--brand-400);
}

.tm-accounts-card__price-note {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.tm-accounts-card__specs {
  display: grid;
  gap: 0;
  margin: 0 0 1.1rem;
  border: 1px solid var(--border);
  border-radius: 0.85rem;
  overflow: hidden;
  background: color-mix(in srgb, var(--muted) 55%, transparent);
}

.tm-accounts-card__specs > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
}

.tm-accounts-card__specs > div + div {
  border-top: 1px solid var(--border);
}

.tm-accounts-card__specs dt {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.tm-accounts-card__specs dd {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--foreground);
}

.tm-accounts-card__desc {
  margin: 0 0 1rem;
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--muted-foreground);
}

.tm-accounts-card__feats {
  list-style: none;
  margin: 0 0 1.35rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1;
}

.tm-accounts-card__feats li {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  font-size: 0.86rem;
  color: var(--foreground);
}

.tm-accounts-card__feats svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  margin-top: 0.15rem;
  color: var(--brand-600);
}

.tm-accounts-card__cta {
  margin-top: auto;
}

.tm-accounts-table-wrap {
  margin-top: 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: auto;
  background: var(--card, var(--background));
}

.tm-accounts-table {
  width: 100%;
  min-width: 40rem;
  border-collapse: collapse;
}

.tm-accounts-table th,
.tm-accounts-table td {
  padding: 0.95rem 1.15rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
}

.tm-accounts-table thead th {
  background: color-mix(in srgb, var(--muted) 70%, transparent);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.tm-accounts-table tbody th {
  font-weight: 650;
  white-space: nowrap;
  color: var(--foreground);
}

.tm-accounts-table tbody tr:last-child th,
.tm-accounts-table tbody tr:last-child td {
  border-bottom: 0;
}

.tm-accounts-table tbody tr:hover th,
.tm-accounts-table tbody tr:hover td {
  background: var(--accent);
}

.tm-accounts-table .is-hot {
  color: var(--brand-600);
  font-weight: 700;
}

.tm-accounts-empty__inner {
  max-width: 32rem;
  margin: 0 auto;
  text-align: center;
  display: grid;
  gap: 0.75rem;
  justify-items: center;
}

.tm-accounts-guide__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 960px) {
  .tm-accounts-guide__layout {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 2.5rem;
  }
}

.tm-accounts-guide__title {
  margin-top: 0.75rem;
}

.tm-accounts-guide__lead {
  margin: 0.75rem 0 1.75rem;
}

.tm-accounts-guide__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.tm-accounts-guide__item {
  display: flex;
  gap: 1rem;
  padding: 1.05rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 0.9rem;
  background: var(--card, var(--background));
}

.tm-accounts-guide__n {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.55rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: var(--brand-600);
  font-size: 0.75rem;
  font-weight: 700;
}

.tm-accounts-guide__name {
  margin: 0;
  font-weight: 700;
  color: var(--foreground);
}

.tm-accounts-guide__desc {
  margin: 0.25rem 0 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--muted-foreground);
}

.tm-accounts-path {
  padding: 1.4rem 1.35rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius-lg) + 2px);
  background:
    linear-gradient(160deg, color-mix(in srgb, var(--brand) 8%, transparent), transparent 55%),
    var(--card, var(--background));
}

.tm-accounts-path__title {
  margin: 0.55rem 0 0;
  font-size: 1.35rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.tm-accounts-path__lead {
  margin: 0.5rem 0 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--muted-foreground);
}

.tm-accounts-path__rail {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  margin: 1.4rem 0;
}

.tm-accounts-path__step {
  text-align: center;
  padding: 0.85rem 0.5rem;
  border-radius: 0.7rem;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--muted) 55%, transparent);
}

.tm-accounts-path__step span {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-600);
}

.tm-accounts-path__step strong {
  font-size: 0.82rem;
  font-weight: 700;
}

.tm-accounts-path__step.is-hot {
  border-color: color-mix(in srgb, var(--brand) 45%, var(--border));
  background: var(--accent);
}

.tm-accounts-path__steps {
  list-style: none;
  margin: 0 0 1.35rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  font-size: 0.88rem;
  color: var(--muted-foreground);
}

.tm-accounts-path__steps li {
  display: flex;
  gap: 0.65rem;
}

.tm-accounts-path__steps .tm-mono {
  color: var(--brand-600);
  font-weight: 700;
}

.tm-accounts-faq__inner {
  max-width: 46rem;
}

.tm-accounts-faq__list {
  margin-top: 1.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--card, var(--background));
}

.tm-accounts-faq__item + .tm-accounts-faq__item {
  border-top: 1px solid var(--border);
}

.tm-accounts-faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  cursor: pointer;
  list-style: none;
  font-weight: 650;
  color: var(--foreground);
}

.tm-accounts-faq__q::-webkit-details-marker {
  display: none;
}

.tm-accounts-faq__q svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  color: var(--muted-foreground);
  transition: transform 0.18s var(--tm-ease);
}

.tm-accounts-faq__item[open] .tm-accounts-faq__q svg {
  transform: rotate(180deg);
  color: var(--brand-600);
}

.tm-accounts-faq__a {
  padding: 0 1.25rem 1.2rem;
  font-size: 0.94rem;
  line-height: 1.6;
  color: var(--muted-foreground);
}

.tm-accounts-faq__more {
  margin: 1.5rem 0 0;
  text-align: center;
}

@media (max-width: 720px) {
  .tm-accounts-hero__wires--bleed {
    width: min(58vw, 16rem);
    height: 10rem;
    opacity: 0.35;
  }
  .tm-accounts-card__tagline {
    min-height: 0;
  }
}

/* ==========================================================================
   FAQ page — Frontend1 redesign
   ========================================================================== */

.tm-faq-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  padding: clamp(3.5rem, 7vw, 5.5rem) 0 clamp(2.5rem, 5vw, 3.75rem);
}

.tm-faq-hero__glow {
  width: 28rem;
  height: 28rem;
  top: -12rem;
  left: 48%;
  transform: translateX(-50%);
  opacity: 0.55;
}

.tm-faq-hero__shell {
  position: relative;
  z-index: 1;
}

.tm-faq-hero__wires {
  pointer-events: none;
}

.tm-faq-hero__wires--bleed {
  position: absolute;
  inset: -8% -4% auto auto;
  width: min(44vw, 28rem);
  height: 14rem;
  opacity: 0.55;
}

.tm-faq-hero__inner {
  position: relative;
  max-width: 40rem;
}

.tm-faq-hero__eyebrow {
  margin-bottom: 0.9rem;
}

.tm-faq-hero__title {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: var(--tracking-tight);
  font-weight: var(--font-display-weight);
  color: var(--foreground);
  max-width: 14ch;
}

.tm-faq-hero__subtitle {
  margin: 1.05rem 0 0;
  max-width: 34rem;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--muted-foreground);
}

.tm-faq-search {
  position: relative;
  margin-top: 1.6rem;
  max-width: 32rem;
}

.tm-faq-search__icon {
  position: absolute;
  left: 1.05rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.05rem;
  height: 1.05rem;
  color: var(--muted-foreground);
  pointer-events: none;
}

.tm-faq-search input {
  width: 100%;
  padding: 0.9rem 3.1rem 0.9rem 2.75rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card, var(--background));
  color: var(--foreground);
  font-size: 0.94rem;
  outline: none;
  transition: border-color 0.15s var(--tm-ease), box-shadow 0.15s var(--tm-ease);
}

.tm-faq-search input:focus {
  border-color: color-mix(in srgb, var(--brand) 55%, var(--border));
  box-shadow: 0 0 0 3px var(--brand-ring);
}

.tm-faq-search__clear {
  position: absolute;
  right: 0.55rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--background);
  color: var(--muted-foreground);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  line-height: 1;
}

.tm-faq-search__clear[hidden] {
  display: none;
}

.tm-faq-hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2rem;
  margin-top: 1.85rem;
  padding-top: 1.3rem;
  border-top: 1px solid var(--border);
}

.tm-faq-hero__stat {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.tm-faq-hero__stat-value {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--brand-600);
}

html.dark .tm-faq-hero__stat-value {
  color: var(--brand-400);
}

.tm-faq-hero__stat-label {
  font-size: 0.78rem;
  color: var(--muted-foreground);
}

.tm-faq-page {
  scroll-margin-top: 5.5rem;
  padding-top: clamp(1.75rem, 3vw, 2.5rem);
}

.tm-faq-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.75rem;
}

.tm-faq-filters__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--background);
  color: var(--muted-foreground);
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.18s var(--tm-ease), color 0.18s var(--tm-ease), background 0.18s var(--tm-ease);
}

.tm-faq-filters__btn .tm-mono {
  font-size: 0.72rem;
  opacity: 0.75;
}

.tm-faq-filters__btn:hover {
  border-color: color-mix(in srgb, var(--brand) 35%, var(--border));
  color: var(--foreground);
}

.tm-faq-filters__btn.is-active {
  background: var(--brand-600);
  border-color: var(--brand-600);
  color: #fff;
}

.tm-faq-filters__btn.is-active .tm-mono {
  opacity: 0.9;
  color: inherit;
}

.tm-faq-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}

.tm-faq-aside {
  display: none;
  flex-direction: column;
  gap: 1.15rem;
}

.tm-faq-nav,
.tm-faq-side,
.tm-faq-help {
  padding: 1.2rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--card, var(--background));
}

.tm-faq-nav__label {
  margin: 0 0 0.9rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.tm-faq-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.tm-faq-nav__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.5rem 0.65rem;
  margin: 0 -0.65rem;
  border-radius: 0.6rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--muted-foreground);
  text-decoration: none;
  transition: background 0.15s var(--tm-ease), color 0.15s var(--tm-ease);
}

.tm-faq-nav__link:hover {
  color: var(--foreground);
  background: var(--accent);
}

.tm-faq-nav__link.is-active {
  color: var(--brand-600);
  background: var(--accent);
  font-weight: 650;
}

html.dark .tm-faq-nav__link.is-active {
  color: var(--brand-400);
}

.tm-faq-nav__count {
  font-size: 0.72rem;
  opacity: 0.7;
}

.tm-faq-help__title {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--foreground);
}

.tm-faq-help__desc {
  margin: 0 0 1rem;
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--muted-foreground);
}

.tm-faq-help .tm-btn + .tm-btn,
.tm-faq-side .tm-btn + .tm-btn {
  margin-top: 0.55rem;
}

.tm-faq-side--cta {
  border-color: color-mix(in srgb, var(--brand) 40%, var(--border));
  background:
    linear-gradient(160deg, color-mix(in srgb, var(--brand) 10%, transparent), transparent 60%),
    var(--card, var(--background));
}

.tm-faq-popular,
.tm-faq-blog {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.tm-faq-popular__link,
.tm-faq-blog__link {
  display: block;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
}

.tm-faq-popular li:last-child .tm-faq-popular__link,
.tm-faq-blog li:last-child .tm-faq-blog__link {
  border-bottom: 0;
  padding-bottom: 0;
}

.tm-faq-popular__q,
.tm-faq-blog__title {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--foreground);
  transition: color 0.15s var(--tm-ease);
}

.tm-faq-popular__link:hover .tm-faq-popular__q,
.tm-faq-blog__link:hover .tm-faq-blog__title {
  color: var(--brand-600);
}

.tm-faq-popular__cat {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-600);
}

.tm-faq-blog__date {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.74rem;
  color: var(--muted-foreground);
}

.tm-faq-blog + .tm-btn {
  margin-top: 1rem;
}

.tm-faq-main {
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
  min-width: 0;
}

.tm-faq-section {
  scroll-margin-top: 6.5rem;
}

.tm-faq-section__head {
  margin-bottom: 0.95rem;
}

.tm-faq-section__title {
  margin: 0;
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--foreground);
}

.tm-faq-section__meta {
  margin: 0.3rem 0 0;
  font-size: 0.88rem;
  color: var(--muted-foreground);
}

.tm-faq-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--card, var(--background));
}

.tm-faq-item + .tm-faq-item {
  border-top: 1px solid var(--border);
}

.tm-faq-item.is-hidden {
  display: none;
}

.tm-faq-item__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  cursor: pointer;
  list-style: none;
  font-size: 0.96rem;
  font-weight: 650;
  color: var(--foreground);
  scroll-margin-top: 6.5rem;
}

.tm-faq-item__q::-webkit-details-marker {
  display: none;
}

.tm-faq-item__q svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  color: var(--muted-foreground);
  transition: transform 0.18s var(--tm-ease), color 0.18s var(--tm-ease);
}

.tm-faq-item[open] .tm-faq-item__q svg {
  transform: rotate(180deg);
  color: var(--brand-600);
}

.tm-faq-item__a {
  padding: 0 1.25rem 1.2rem;
  font-size: 0.94rem;
  line-height: 1.65;
  color: var(--muted-foreground);
}

.tm-faq-item__a mark {
  background: color-mix(in srgb, var(--brand) 22%, transparent);
  color: inherit;
  border-radius: 0.15rem;
  padding: 0 0.1em;
}

.tm-faq-item__link {
  color: var(--brand-600);
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.tm-faq-empty {
  display: grid;
  gap: 0.65rem;
  justify-items: start;
  padding: 2.25rem 1.5rem;
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--muted) 40%, transparent);
}

.tm-faq-empty .tm-h3 {
  margin: 0;
  font-size: 1.15rem;
}

.tm-faq-empty .tm-body {
  margin: 0;
}

.tm-faq-empty .tm-body a {
  color: var(--brand-600);
  font-weight: 650;
}

@media (min-width: 1024px) {
  .tm-faq-layout {
    grid-template-columns: 15rem minmax(0, 1fr) 15rem;
    gap: 2.25rem;
  }
  .tm-faq-aside {
    display: flex;
    position: sticky;
    top: 6rem;
  }
  .tm-faq-filters {
    display: none;
  }
}

@media (max-width: 720px) {
  .tm-faq-hero__wires--bleed {
    width: min(56vw, 16rem);
    height: 10rem;
    opacity: 0.35;
  }
}

/* ==========================================================================
   Contact page — Frontend1 redesign
   ========================================================================== */

.tm-contact-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  padding: clamp(3.5rem, 7vw, 5.5rem) 0 clamp(2.5rem, 5vw, 3.75rem);
}

.tm-contact-hero__glow {
  width: 30rem;
  height: 30rem;
  top: -12rem;
  left: 42%;
  transform: translateX(-50%);
  opacity: 0.55;
}

.tm-contact-hero__shell {
  position: relative;
  z-index: 1;
}

.tm-contact-hero__wires {
  pointer-events: none;
}

.tm-contact-hero__wires--bleed {
  position: absolute;
  inset: -8% -4% auto auto;
  width: min(46vw, 30rem);
  height: 15rem;
  opacity: 0.55;
}

.tm-contact-hero__inner {
  position: relative;
  max-width: 40rem;
}

.tm-contact-hero__eyebrow {
  margin-bottom: 0.9rem;
}

.tm-contact-hero__title {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 3.45rem);
  line-height: 1.05;
  letter-spacing: var(--tracking-tight);
  font-weight: var(--font-display-weight);
  color: var(--foreground);
  max-width: 15ch;
}

.tm-contact-hero__subtitle {
  margin: 1.05rem 0 0;
  max-width: 34rem;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--muted-foreground);
}

.tm-contact-hero__inner .tm-hero__cta {
  margin-top: 1.5rem;
}

.tm-contact-hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2rem;
  margin-top: 2rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--border);
}

.tm-contact-hero__stat {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.tm-contact-hero__stat-value {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--brand-600);
}

html.dark .tm-contact-hero__stat-value {
  color: var(--brand-400);
}

.tm-contact-hero__stat-label {
  font-size: 0.78rem;
  color: var(--muted-foreground);
}

.tm-contact-channels__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

@media (min-width: 720px) {
  .tm-contact-channels__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .tm-contact-channels__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.tm-contact-channel {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  padding: 1.15rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--card, var(--background));
  text-decoration: none;
  color: inherit;
  transition: border-color 0.18s var(--tm-ease), transform 0.18s var(--tm-ease), background 0.18s var(--tm-ease);
}

a.tm-contact-channel:hover {
  border-color: color-mix(in srgb, var(--brand) 35%, var(--border));
  transform: translateY(-2px);
  background: var(--accent);
}

.tm-contact-channel__icon {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 0.75rem;
  background: var(--accent);
  color: var(--brand-600);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tm-contact-channel__icon svg {
  width: 1.15rem;
  height: 1.15rem;
}

.tm-contact-channel__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.tm-contact-channel__title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.tm-contact-channel__value {
  font-size: 0.95rem;
  font-weight: 650;
  color: var(--brand-600);
  word-break: break-word;
}

html.dark .tm-contact-channel__value {
  color: var(--brand-400);
}

.tm-contact-channel__desc {
  font-size: 0.82rem;
  color: var(--muted-foreground);
  line-height: 1.4;
}

.tm-contact-main {
  scroll-margin-top: 5.5rem;
}

.tm-contact-main__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.25rem;
  align-items: start;
}

@media (min-width: 980px) {
  .tm-contact-main__layout {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 2.75rem;
  }
}

.tm-contact-aside__title {
  margin-top: 0.75rem;
  font-size: clamp(1.55rem, 2.8vw, 2.1rem);
}

.tm-contact-aside__lead {
  margin-top: 0.85rem;
  max-width: 34rem;
}

.tm-contact-topics {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.tm-contact-topics__item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.9rem 1rem;
  border: 1px solid var(--border);
  border-radius: 0.85rem;
  background: var(--card, var(--background));
}

.tm-contact-topics__dot {
  width: 0.45rem;
  height: 0.45rem;
  margin-top: 0.45rem;
  border-radius: 50%;
  background: var(--brand);
  flex-shrink: 0;
}

.tm-contact-topics__item strong {
  display: block;
  font-size: 0.9rem;
  color: var(--foreground);
}

.tm-contact-topics__item span span {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.82rem;
  color: var(--muted-foreground);
  line-height: 1.45;
}

.tm-contact-process {
  margin-top: 1.75rem;
  padding: 1.2rem 1.2rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(160deg, color-mix(in srgb, var(--brand) 8%, transparent), transparent 55%),
    var(--card, var(--background));
}

.tm-contact-process__label {
  margin: 0 0 0.9rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.tm-contact-process__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.tm-contact-process__list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.tm-contact-process__list .tm-mono {
  color: var(--brand-600);
  font-weight: 700;
  font-size: 0.78rem;
  margin-top: 0.15rem;
}

.tm-contact-process__list strong {
  display: block;
  font-size: 0.9rem;
  color: var(--foreground);
  font-style: normal;
}

.tm-contact-process__list em {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.82rem;
  font-style: normal;
  color: var(--muted-foreground);
  line-height: 1.45;
}

.tm-contact-hours {
  margin-top: 1.15rem;
  padding: 1.1rem 1.15rem;
  border-radius: 0.85rem;
  background: var(--accent);
  border: 1px solid transparent;
}

.tm-contact-hours__title {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--foreground);
}

.tm-contact-hours__text {
  margin: 0.4rem 0 0;
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--muted-foreground);
}

.tm-contact-form-wrap {
  padding: 1.5rem 1.4rem 1.55rem;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius-lg) + 4px);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--accent) 70%, transparent), transparent 40%),
    var(--card, var(--background));
  box-shadow: 0 18px 40px -30px rgba(var(--shadow-color), 0.35);
}

.tm-contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.tm-contact-form__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .tm-contact-form__row {
    grid-template-columns: 1fr 1fr;
  }
}

.tm-contact-field label {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.tm-contact-field label span:not(.tm-contact-field__opt) {
  color: #d94848;
}

.tm-contact-field__opt {
  text-transform: none;
  font-weight: 500;
  letter-spacing: 0;
  opacity: 0.75;
}

.tm-contact-field input,
.tm-contact-field select,
.tm-contact-field textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background: var(--background);
  color: var(--foreground);
  font-size: 0.92rem;
  font-family: inherit;
  transition: border-color 0.15s var(--tm-ease), box-shadow 0.15s var(--tm-ease);
}

.tm-contact-field textarea {
  resize: vertical;
  min-height: 9.5rem;
}

.tm-contact-field input:focus,
.tm-contact-field select:focus,
.tm-contact-field textarea:focus {
  outline: none;
  border-color: color-mix(in srgb, var(--brand) 55%, var(--border));
  box-shadow: 0 0 0 3px var(--brand-ring);
}

.tm-contact-field__error {
  margin: 0.4rem 0 0;
  font-size: 0.78rem;
  color: #d94848;
}

.tm-contact-form__submit {
  width: 100%;
}

.tm-contact-form__note {
  margin: 0;
  font-size: 0.74rem;
  line-height: 1.5;
  color: var(--muted-foreground);
}

.tm-contact-links__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-top: 2rem;
}

@media (min-width: 720px) {
  .tm-contact-links__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .tm-contact-links__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.tm-contact-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1.05rem 1.15rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--card, var(--background));
  color: var(--foreground);
  font-size: 0.92rem;
  font-weight: 650;
  text-decoration: none;
  transition: border-color 0.18s var(--tm-ease), transform 0.18s var(--tm-ease), background 0.18s var(--tm-ease), color 0.18s var(--tm-ease);
}

.tm-contact-link svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  color: var(--brand-600);
  transition: transform 0.18s var(--tm-ease);
}

.tm-contact-link:hover {
  border-color: color-mix(in srgb, var(--brand) 35%, var(--border));
  background: var(--accent);
  transform: translateY(-2px);
  color: var(--brand-600);
}

.tm-contact-link:hover svg {
  transform: translateX(2px);
}

.tm-contact-links__more {
  margin: 1.75rem 0 0;
  text-align: center;
}

.tm-contact-swal {
  background: var(--card) !important;
  border: 1px solid var(--border) !important;
  border-radius: 1rem !important;
  padding: 1.75rem 1.5rem 1.5rem !important;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.18) !important;
}

.tm-contact-swal__title {
  color: var(--foreground) !important;
  font-size: 1.125rem !important;
  font-weight: 600 !important;
  padding: 0 !important;
}

.tm-contact-swal__html {
  color: var(--muted-foreground) !important;
  font-size: 0.875rem !important;
  line-height: 1.5 !important;
  margin-top: 0.5rem !important;
}

.tm-contact-swal__icon {
  border-color: rgba(0, 196, 140, 0.3) !important;
  color: var(--brand-600) !important;
  margin: 0 auto 1rem !important;
  transform: scale(0.85);
}

.tm-contact-swal__icon--error {
  border-color: rgba(217, 72, 72, 0.3) !important;
  color: #d94848 !important;
}

.tm-contact-swal__confirm {
  background: var(--brand) !important;
  color: #04140f !important;
  border-radius: 999px !important;
  font-weight: 600 !important;
  font-size: 0.875rem !important;
  padding: 0.625rem 1.75rem !important;
  box-shadow: none !important;
  margin-top: 1.25rem !important;
}

div:where(.swal2-container) {
  backdrop-filter: blur(4px);
}

@media (max-width: 720px) {
  .tm-contact-hero__wires--bleed {
    width: min(56vw, 16rem);
    height: 10rem;
    opacity: 0.35;
  }
}

/* ─── Affiliate program ─────────────────────────────────────────── */
.tm-affiliate-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(4.5rem, 10vw, 7.5rem) 0 clamp(3.25rem, 6vw, 4.5rem);
  border-bottom: 1px solid var(--border);
}

.tm-affiliate-hero__glow {
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: min(70vw, 36rem);
  height: min(50vw, 22rem);
  opacity: 0.55;
}

.tm-affiliate-hero__shell {
  position: relative;
  z-index: 1;
}

.tm-affiliate-hero__wires {
  pointer-events: none;
}

.tm-affiliate-hero__wires--bleed {
  position: absolute;
  right: -2%;
  top: 8%;
  width: min(42vw, 22rem);
  height: min(36vw, 18rem);
  opacity: 0.55;
  z-index: 0;
}

.tm-affiliate-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 40rem;
}

.tm-affiliate-hero__eyebrow {
  margin-bottom: 1rem;
}

.tm-affiliate-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 5.2vw, 3.65rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.05;
  color: var(--foreground);
  margin: 0;
}

.tm-affiliate-hero__subtitle {
  margin: 1.1rem 0 0;
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  line-height: 1.55;
  color: var(--muted-foreground);
  max-width: 34rem;
}

.tm-affiliate-hero__inner .tm-hero__cta {
  margin-top: 1.75rem;
}

.tm-affiliate-hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.75rem 2.5rem;
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
}

.tm-affiliate-hero__stat {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.tm-affiliate-hero__stat-value {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--brand-600);
  letter-spacing: -0.02em;
}

html.dark .tm-affiliate-hero__stat-value {
  color: var(--brand);
}

.tm-affiliate-hero__stat-label {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  letter-spacing: 0.02em;
}

.tm-affiliate-commissions {
  padding-top: clamp(3rem, 5vw, 4.5rem);
}

.tm-affiliate-rates {
  display: grid;
  gap: 1.25rem;
  margin-top: 2.25rem;
}

.tm-affiliate-rates--1 {
  grid-template-columns: 1fr;
  max-width: 28rem;
  margin-inline: auto;
}

.tm-affiliate-rates--2 {
  grid-template-columns: repeat(2, 1fr);
}

.tm-affiliate-rates--3 {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 900px) {
  .tm-affiliate-rates--3 {
    grid-template-columns: 1fr;
  }

  .tm-affiliate-rates--2 {
    grid-template-columns: 1fr;
  }
}

.tm-affiliate-rate {
  position: relative;
  padding: 1.75rem 1.5rem 1.6rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--card, var(--background));
  overflow: hidden;
}

.tm-affiliate-rate::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), transparent 70%);
  opacity: 0.85;
}

.tm-affiliate-rate__kicker {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-600);
}

.tm-affiliate-rate__value {
  margin: 0.65rem 0 0;
  font-size: clamp(2.25rem, 4vw, 2.85rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--foreground);
  line-height: 1;
}

.tm-affiliate-rate__title {
  margin: 1rem 0 0;
  font-size: 1.05rem;
  font-weight: 650;
  color: var(--foreground);
}

.tm-affiliate-rate__desc {
  margin: 0.45rem 0 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--muted-foreground);
}

.tm-affiliate-steps {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem 1.25rem;
  counter-reset: none;
}

@media (max-width: 900px) {
  .tm-affiliate-steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .tm-affiliate-steps {
    grid-template-columns: 1fr;
  }
}

.tm-affiliate-step {
  position: relative;
  padding: 0 0.25rem;
}

.tm-affiliate-step__num {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--brand-600);
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
}

.tm-affiliate-step__title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 650;
  color: var(--foreground);
}

.tm-affiliate-step__desc {
  margin: 0.45rem 0 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--muted-foreground);
}

.tm-affiliate-benefits__layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

@media (max-width: 860px) {
  .tm-affiliate-benefits__layout {
    grid-template-columns: 1fr;
  }
}

.tm-affiliate-benefits__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--border);
}

.tm-affiliate-benefit {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--border);
}

.tm-affiliate-benefit__check {
  flex-shrink: 0;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--brand) 16%, transparent);
  color: var(--brand-600);
  margin-top: 0.1rem;
}

.tm-affiliate-benefit__check svg {
  width: 0.85rem;
  height: 0.85rem;
}

.tm-affiliate-benefit__title {
  display: block;
  font-size: 0.98rem;
  font-weight: 650;
  color: var(--foreground);
}

.tm-affiliate-benefit__desc {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--muted-foreground);
}

.tm-affiliate-banner {
  border: 1px solid var(--border);
  border-radius: 1rem;
  overflow: hidden;
  background: var(--card, var(--background));
  display: flex;
  flex-direction: column;
}

.tm-affiliate-banner--leader {
  margin-bottom: 1.25rem;
}

.tm-affiliate-banner__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.9rem 1.15rem;
  border-bottom: 1px solid var(--border);
}

.tm-affiliate-banner__name {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 650;
  color: var(--foreground);
}

.tm-affiliate-banner__meta {
  margin: 0.15rem 0 0;
  font-size: 0.72rem;
  color: var(--muted-foreground);
}

.tm-affiliate-banner__tag {
  flex-shrink: 0;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted-foreground);
  background: var(--muted);
}

.tm-affiliate-banner__frame {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--muted);
  padding: 1.15rem;
}

.tm-affiliate-banner--leader .tm-affiliate-banner__frame {
  padding: 0;
}

.tm-affiliate-banner--leader .tm-affiliate-banner__frame img {
  width: 100%;
  height: auto;
  display: block;
}

.tm-affiliate-banner__frame img {
  max-width: 100%;
  height: auto;
  display: block;
}

.tm-affiliate-banner--tall .tm-affiliate-banner__frame {
  padding-block: 1.5rem;
}

.tm-affiliate-banner__note {
  margin: 0;
  padding: 0.55rem 1.15rem;
  border-top: 1px solid var(--border);
  font-size: 0.68rem;
  color: var(--muted-foreground);
  margin-top: auto;
}

.tm-affiliate-banner-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

@media (max-width: 720px) {
  .tm-affiliate-banner-grid {
    grid-template-columns: 1fr;
  }
}

.tm-affiliate-kit__cta {
  margin-top: 2rem;
  padding: 1.5rem 1.6rem;
  border-radius: 1rem;
  background: color-mix(in srgb, var(--brand) 10%, var(--background));
  border: 1px solid color-mix(in srgb, var(--brand) 22%, var(--border));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.tm-affiliate-terms__wrap {
  max-width: 44rem;
}

.tm-affiliate-terms__body .tm-body {
  white-space: pre-line;
  margin-top: 1rem;
}

@media (max-width: 720px) {
  .tm-affiliate-hero__wires--bleed {
    width: min(56vw, 16rem);
    height: 10rem;
    opacity: 0.35;
  }
}

/* ─── Global mobile polish (app-like) ───────────────────────────── */
@media (max-width: 720px) {
  .tm-shell {
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
  }

  .tm-nav {
    height: 3.65rem;
  }

  .tm-nav__inner {
    height: 3.65rem;
    gap: 0.65rem;
  }

  .tm-nav__logo img {
    height: 1.2rem;
  }

  .tm-nav__actions {
    gap: 0.3rem;
  }

  .tm-nav__cta-full {
    display: none;
  }

  .tm-nav__cta-short {
    display: inline;
  }

  .tm-nav__cta {
    padding-left: 0.85rem;
    padding-right: 0.7rem;
  }

  .tm-nav__hamburger {
    width: 2.35rem;
    height: 2.35rem;
  }

  .tm-theme-toggle {
    width: 2.15rem;
    height: 2.15rem;
  }

  .tm-lang__btn {
    height: 2.15rem;
    padding: 0 0.4rem 0 0.35rem;
    gap: 0.25rem;
  }

  .tm-lang__code {
    font-size: 0.68rem;
  }

  .tm-lang__chev {
    display: none;
  }

  .tm-hero__cta,
  .tm-markets-hero__inner .tm-hero__cta,
  .tm-accounts-hero__inner .tm-hero__cta,
  .tm-contact-hero__inner .tm-hero__cta,
  .tm-affiliate-hero__inner .tm-hero__cta,
  .tm-faq-hero__inner .tm-hero__cta,
  .tm-blog-hero__inner .tm-hero__cta,
  .tm-about-cta__actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .tm-hero__cta .tm-btn,
  .tm-about-cta__actions .tm-btn,
  .tm-about-cta__submit,
  .tm-about-cta__ghost {
    width: 100%;
    justify-content: center;
  }

  .tm-stat {
    padding: 1.15rem 1rem;
  }

  .tm-stat__value {
    font-size: 1.45rem;
  }

  .tm-stat__label {
    font-size: 0.72rem;
  }

  /* Markets: clean app quote list */
  .tm-markets-table {
    min-width: 0;
  }

  .tm-markets-table thead {
    display: none;
  }

  .tm-markets-table,
  .tm-markets-table tbody {
    display: block;
    width: 100%;
  }

  .tm-markets-table-wrap {
    border-radius: 1rem;
  }

  .tm-markets-table tbody tr.market-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    grid-template-areas:
      "pair price action"
      "pair chg   action";
    column-gap: 0.75rem;
    row-gap: 0.15rem;
    align-items: center;
    padding: 0.9rem 0.85rem;
    border-bottom: 1px solid var(--border);
    min-height: 4.1rem;
  }

  .tm-markets-table tbody tr.market-row:last-child {
    border-bottom: none;
  }

  .tm-markets-table tbody tr.market-row:active {
    background: var(--muted);
  }

  .tm-markets-table tbody tr.market-row td {
    border: 0;
    padding: 0;
    background: transparent !important;
    width: auto;
  }

  .tm-markets-table tbody tr.market-row .tm-markets-table__rank,
  .tm-markets-table tbody tr.market-row .tm-markets-cell--cat,
  .tm-markets-table tbody tr.market-row .tm-markets-cell--spark {
    display: none;
  }

  .tm-markets-cell__label {
    display: none !important;
  }

  .tm-markets-cell--pair {
    grid-area: pair;
    min-width: 0;
  }

  .tm-markets-cell--price {
    grid-area: price;
    text-align: right;
    justify-self: end;
  }

  .tm-markets-cell--price .tm-markets-cell__value {
    font-size: 0.98rem;
    font-weight: 700;
    letter-spacing: -0.02em;
  }

  .tm-markets-cell--chg {
    grid-area: chg;
    text-align: right;
    justify-self: end;
  }

  .tm-markets-cell--chg .tm-markets-cell__value {
    font-size: 0.8rem;
    font-weight: 650;
  }

  .tm-markets-cell--action {
    grid-area: action;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-left: 0.15rem;
  }

  .tm-markets-open {
    width: 2rem;
    height: 2rem;
    min-width: 2rem;
    padding: 0;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-color: transparent;
    background: transparent;
  }

  .tm-markets-open__text {
    display: none;
  }

  .tm-markets-open__chev {
    display: block;
    width: 0.95rem;
    height: 0.95rem;
    color: var(--muted-foreground);
  }

  .tm-markets-table tbody tr.market-row .tm-markets-pair {
    gap: 0.65rem;
  }

  .tm-markets-table tbody tr.market-row .tm-markets-pair__icon {
    width: 2.25rem;
    height: 2.25rem;
    font-size: 0.68rem;
  }

  .tm-markets-table tbody tr.market-row .tm-markets-pair__sym {
    font-size: 0.92rem;
    font-weight: 700;
  }

  .tm-markets-table tbody tr.market-row .tm-markets-pair__name {
    font-size: 0.72rem;
    margin-top: 0.1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 12rem;
  }

  .tm-markets-table-scroll {
    overflow-x: visible;
  }

  .tm-markets-chips {
    margin: 0;
    padding: 0.1rem 0 0.35rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    max-width: 100%;
  }

  .tm-markets-chips::-webkit-scrollbar {
    display: none;
  }

  .tm-markets-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .tm-markets-search {
    flex: 0 0 auto !important;
    width: 100%;
    min-width: 0 !important;
    max-width: none !important;
    height: auto !important;
  }

  .tm-markets-search svg {
    top: 1.2rem;
    transform: translateY(-50%);
  }

  .tm-markets-movers {
    gap: 1rem;
  }

  .tm-markets-foot {
    padding: 0.85rem 1rem;
    font-size: 0.75rem;
    line-height: 1.45;
  }

  /* Accounts comparison: keep scroll but softer */
  .tm-accounts-table-wrap {
    margin-inline: -0.25rem;
    border-radius: var(--radius-md);
    -webkit-overflow-scrolling: touch;
  }

  .tm-accounts-table {
    min-width: 32rem;
  }

  .tm-accounts-table th,
  .tm-accounts-table td {
    padding: 0.75rem 0.85rem;
    font-size: 0.8rem;
  }

  /* Footer denser on phone */
  .tm-footer__grid {
    gap: 1.75rem;
  }

  .tm-footer__newsletter {
    max-width: none;
  }

  .tm-footer__newsletter-row {
    flex-direction: column;
  }

  .tm-footer__newsletter-btn {
    width: 100%;
  }

  /* Page heroes: less top padding under sticky nav */
  .tm-markets-hero,
  .tm-accounts-hero,
  .tm-contact-hero,
  .tm-affiliate-hero,
  .tm-faq-hero,
  .tm-blog-hero {
    padding-top: clamp(3rem, 12vw, 4rem);
  }

  .tm-hero__stage {
    padding-top: 3.75rem;
    padding-bottom: 2rem;
  }

  .tm-section {
    padding-block: clamp(2.5rem, 8vw, 3.5rem);
  }

  .tm-drawer__panel {
    width: min(100vw - 2.5rem, 20rem);
    padding-bottom: calc(1.5rem + env(safe-area-inset-bottom));
  }

  .tm-contact-form__row {
    grid-template-columns: 1fr;
  }

  .tm-affiliate-hero__stats,
  .tm-contact-hero__stats,
  .tm-faq-hero__stats,
  .tm-accounts-hero__stats {
    gap: 1.15rem 1.5rem;
  }

  .tm-affiliate-kit__cta {
    flex-direction: column;
    align-items: stretch;
  }

  .tm-affiliate-kit__cta .tm-btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 420px) {
  .tm-mcell {
    padding: 0.85rem 0.75rem;
  }

  .tm-mcell__price {
    font-size: 0.95rem;
  }

  .tm-trust__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .tm-shell *,
  .tm-shell *::before,
  .tm-shell *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
