/* ============================================================
   TradeMetriq — website.css
   Production stylesheet — no CDN dependencies
   All colors via CSS custom properties
   ============================================================ */

/* ─── Custom Properties ──────────────────────────────────── */
:root {
  --tm-teal: #0A7C6E;
  --tm-teal-dark: #065F53;
  --tm-blue: #0B4F8A;
  --tm-navy: #0F1929;
  --tm-amber: #D97706;
  --tm-amber-light: #FEF3C7;
  --tm-bw: #F9F7F4;
  --tm-gray-50: #F8FAFC;
  --tm-gray-700: #374151;
  --tm-red: #DC2626;
  --tm-green: #16A34A;
  --tm-white: #FFFFFF;
  --tm-radius: 12px;
  --tm-radius-lg: 20px;
  --tm-shadow: 0 1px 3px rgba(0,0,0,.08), 0 8px 24px rgba(0,0,0,.06);
  --tm-shadow-lg: 0 20px 60px rgba(15,25,41,.20);
  --tm-transition: 0.22s ease;
}

/* ─── @font-face ─────────────────────────────────────────── */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/dm-sans-400.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/dm-sans-500.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/dm-sans-600.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/dm-sans-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/inter-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/inter-500.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/dm-mono-400.woff2') format('woff2');
}

/* ─── Reset / Base ───────────────────────────────────────── */
html,
body {
  margin: 0;
  padding: 0;
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: #374151;
  background: #fff;
  overflow-x: hidden;
  max-width: 100vw;
}

/* ─── Typography helpers ─────────────────────────────────── */
.h4-label {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--tm-teal);
  margin-bottom: 14px;
}

h1,
h2,
h3,
h4 {
  font-family: 'DM Sans', system-ui, sans-serif;
}

/* ─── Layout ─────────────────────────────────────────────── */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

.container-narrow {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 32px;
}

.section-lg {
  padding: 96px 32px;
}

.section-md {
  padding: 72px 32px;
}

/* ─── Header ─────────────────────────────────────────────── */
.tm-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  box-shadow: none;
  transition: background var(--tm-transition), box-shadow var(--tm-transition);
  font-family: 'Inter', system-ui, sans-serif;
}

.tm-header.is-scrolled {
  background: #fff;
  box-shadow: 0 1px 0 rgba(0,0,0,.08);
}

.header-light .tm-header {
  background: #fff;
  box-shadow: 0 1px 0 rgba(0,0,0,.08);
}

.tm-header-inner {
  width: 100%;
  max-width: 1280px;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Logo */
.tm-logo img {
  height: 32px;
  width: auto;
  display: block;
}

.tm-logo-dark {
  display: none;
}

.tm-logo-light {
  display: block;
}

.tm-header.is-scrolled .tm-logo-dark,
.header-light .tm-logo-dark {
  display: block;
}

.tm-header.is-scrolled .tm-logo-light,
.header-light .tm-logo-light {
  display: none;
}

/* Nav */
.tm-nav {
  display: flex;
  align-items: center;
  gap: 34px;
}

.tm-nav a {
  position: relative;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
  color: rgba(255,255,255,.88);
  padding: 6px 0;
  transition: color .2s;
}

.tm-nav a:hover {
  color: var(--tm-teal);
}

.tm-header.is-scrolled .tm-nav a,
.header-light .tm-nav a {
  color: #374151;
}

.tm-nav a.active {
  color: var(--tm-teal);
}

.tm-nav a.active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--tm-teal);
  border-radius: 2px;
}

/* Header CTA */
.tm-header-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.tm-btn-ghost {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.45);
  padding: 8px 18px;
  border-radius: 9px;
  transition: border-color .2s, color .2s;
}

.tm-btn-ghost:hover {
  border-color: var(--tm-teal);
  color: var(--tm-teal);
}

.tm-header.is-scrolled .tm-btn-ghost,
.header-light .tm-btn-ghost {
  color: #374151;
  border-color: #374151;
}

.tm-btn-demo {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  color: #fff;
  background: var(--tm-teal);
  padding: 9px 20px;
  border-radius: 9px;
  transition: background .2s;
}

.tm-btn-demo:hover {
  background: var(--tm-teal-dark);
}

/* Hamburger */
.tm-burger {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-shrink: 0;
}

.tm-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  margin: 5px 0;
  transition: background .2s;
}

.tm-header.is-scrolled .tm-burger span,
.header-light .tm-burger span {
  background: #0F1929;
}

/* ─── Mobile Menu Overlay ────────────────────────────────── */
.tm-mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: #0F1929;
  display: flex;
  flex-direction: column;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s, visibility .25s;
}

.tm-mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
}

.tm-mobile-menu-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 36px;
  margin-bottom: 48px;
}

.tm-mobile-close {
  background: none;
  border: none;
  cursor: pointer;
  color: #fff;
  font-size: 30px;
  line-height: 1;
  padding: 4px 8px;
}

.tm-mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.tm-mobile-nav a {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-weight: 700;
  font-size: 28px;
  letter-spacing: -.02em;
  color: #fff;
  text-decoration: none;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
  transition: color .2s;
}

.tm-mobile-nav a:hover,
.tm-mobile-nav a.active {
  color: var(--tm-teal);
}

.tm-mobile-login {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-weight: 600;
  font-size: 18px;
  color: rgba(255,255,255,.6);
  text-decoration: none;
  padding: 18px 0;
}

.tm-mobile-demo {
  display: block;
  text-align: center;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-weight: 700;
  font-size: 17px;
  color: #fff;
  background: var(--tm-teal);
  padding: 18px;
  border-radius: 12px;
  text-decoration: none;
  margin-top: 16px;
  transition: background .2s;
}

.tm-mobile-demo:hover {
  background: var(--tm-teal-dark);
}

/* ─── Hero ───────────────────────────────────────────────── */
.tm-hero {
  min-height: 100vh;
  background: #0F1929;
  padding: 104px 32px 64px;
  display: flex;
  align-items: center;
}

.tm-hero-grid {
  display: grid;
  grid-template-columns: 54fr 46fr;
  gap: 48px;
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
}

.tm-hero-kicker {
  font-family: 'DM Mono', monospace;
  font-size: 13px;
  letter-spacing: .1em;
  color: var(--tm-amber);
  margin-bottom: 18px;
}

.tm-hero-h1 {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(34px, 7vw, 60px);
  line-height: 1.06;
  letter-spacing: -.03em;
  color: #fff;
  margin: 0 0 22px;
  text-wrap: balance;
}

.tm-hero-p {
  font-size: 20px;
  line-height: 1.55;
  color: rgba(255,255,255,.8);
  margin: 0 0 26px;
  max-width: 540px;
}

.tm-tagline-block {
  border-left: 2px solid var(--tm-amber);
  padding-left: 16px;
  margin-bottom: 32px;
}

.tm-tagline-sw {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: #fff;
  line-height: 1.35;
}

.tm-tagline-en {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-weight: 400;
  font-size: 14px;
  color: rgba(255,255,255,.7);
  margin-top: 2px;
}

.tm-cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.tm-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: #fff;
  background: var(--tm-teal);
  padding: 14px 28px;
  border-radius: 10px;
  text-decoration: none;
  transition: background .2s, box-shadow .2s;
  border: none;
  cursor: pointer;
}

.tm-btn-primary:hover {
  background: var(--tm-teal-dark);
  box-shadow: 0 0 0 3px rgba(217,119,6,.35);
}

.tm-btn-outline-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-weight: 500;
  font-size: 16px;
  color: #fff;
  background: transparent;
  border: 1.5px solid rgba(255,255,255,.4);
  padding: 14px 28px;
  border-radius: 10px;
  cursor: pointer;
  transition: border-color .2s;
  text-decoration: none;
}

.tm-btn-outline-white:hover {
  border-color: #fff;
}

/* ─── Dashboard Carousel ─────────────────────────────────── */
.tm-dashboard {
  position: relative;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  height: 420px;
  background: #1A2740;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  box-shadow: 0 24px 64px rgba(0,0,0,.45);
  overflow: hidden;
}

.tm-dashboard-frame {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .6s ease;
  pointer-events: none;
}

.tm-dashboard-frame.is-active {
  opacity: 1;
}

.tm-dash-dots {
  position: absolute;
  bottom: 14px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.tm-dash-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.3);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background .3s;
}

.tm-dash-dot.is-active {
  background: var(--tm-teal);
}

/* ─── Stats Bar ──────────────────────────────────────────── */
.tm-stats-bar {
  background: #1A2740;
  border-top: 1px solid rgba(255,255,255,.06);
  border-bottom: 1px solid rgba(255,255,255,.06);
  padding: 34px 32px;
}

.tm-stats-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 0;
}

.tm-stat {
  flex: 1;
  text-align: center;
  position: relative;
}

.tm-stat + .tm-stat::before {
  content: '';
  position: absolute;
  left: 0;
  top: 18%;
  bottom: 18%;
  width: 1px;
  background: rgba(255,255,255,.12);
}

.tm-stat-num {
  font-family: 'DM Mono', monospace;
  font-weight: 700;
  font-size: 28px;
  color: #fff;
}

.tm-stat-label {
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
  margin-top: 4px;
}

/* ─── Trust Bar ──────────────────────────────────────────── */
.tm-trust {
  background: #fff;
  padding: 32px;
}

.tm-trust-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.tm-trust-label {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 500;
  font-size: 14px;
  color: rgba(55,65,81,.6);
}

.tm-trust-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.tm-trust-logo {
  width: 160px;
  height: 48px;
  background: #F8FAFC;
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 12px;
  color: rgba(55,65,81,.4);
  filter: grayscale(1);
  opacity: .4;
  transition: filter .2s, opacity .2s;
}

.tm-trust-logo:hover {
  filter: none;
  opacity: 1;
}

.tm-proof {
  background: #fff;
  padding: 56px 32px;
}

.tm-proof-inner {
  max-width: 1080px;
  margin: 0 auto;
}

.tm-proof-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.tm-proof-card {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: var(--tm-shadow);
  background: #F8FAFC;
}

.tm-proof-card img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: top;
}

.tm-proof-card figcaption {
  padding: 14px 16px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(55,65,81,.75);
  border-top: 1px solid rgba(0,0,0,.06);
}

@media (max-width: 860px) {
  .tm-proof-grid { grid-template-columns: 1fr; }
  .tm-proof-card img { height: 260px; }
}

/* ─── Problem / Solution alternating blocks ──────────────── */
.tm-ps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}

.tm-ps.v-left .tm-visual {
  order: 0;
}

.tm-ps.v-left .tm-text {
  order: 1;
}

.tm-ps-label {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--tm-teal);
  margin-bottom: 14px;
}

.tm-ps-h2 {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(26px, 4.8vw, 36px);
  line-height: 1.12;
  letter-spacing: -.025em;
  color: #0F1929;
  margin: 0 0 18px;
}

.tm-ps-p {
  font-size: 18px;
  line-height: 1.7;
  color: #374151;
  margin: 0 0 18px;
}

.tm-formula-box {
  background: #0F1929;
  border-left: 4px solid var(--tm-teal);
  border-radius: 12px;
  padding: 24px;
}

.tm-formula-chip {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--tm-teal);
  background: rgba(10,124,110,.18);
  padding: 3px 8px;
  border-radius: 5px;
}

.tm-formula-label {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .06em;
  color: rgba(255,255,255,.85);
}

.tm-formula-body {
  font-family: 'DM Mono', monospace;
  font-size: 14px;
  line-height: 1.7;
  color: #fff;
  margin-bottom: 18px;
}

.tm-formula-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 14px;
}

.tm-formula-result {
  font-family: 'DM Mono', monospace;
  font-size: 13px;
  color: #fff;
}

.tm-formula-badge {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  background: var(--tm-red);
  padding: 4px 9px;
  border-radius: 5px;
}

.tm-coaching-box {
  background: #FEF3C7;
  border-left: 4px solid var(--tm-amber);
  border-radius: 10px;
  padding: 20px;
  display: flex;
  gap: 14px;
}

/* ─── Features Grid ──────────────────────────────────────── */
.tm-feat {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.tm-feat-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 16px;
  padding: 32px;
  box-shadow: var(--tm-shadow);
  transition: box-shadow var(--tm-transition), border-color var(--tm-transition), transform var(--tm-transition);
}

.tm-feat-card:hover {
  box-shadow: var(--tm-shadow-lg);
  border-color: var(--tm-teal);
  transform: translateY(-2px);
}

.tm-feat-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 18px;
  color: var(--tm-teal);
}

.tm-local-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

@media (max-width: 760px) {
  .tm-local-grid { grid-template-columns: 1fr; }
}

.tm-feat-h3 {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-weight: 700;
  font-size: 22px;
  line-height: 1.3;
  color: #0F1929;
  margin: 0 0 10px;
}

.tm-feat-p {
  font-size: 15px;
  line-height: 1.65;
  color: #374151;
  margin: 0 0 18px;
}

.tm-feat-formula {
  font-family: 'DM Mono', monospace;
  font-size: 11.5px;
  line-height: 1.5;
  color: #0F1929;
  background: #F8FAFC;
  border: 1px solid rgba(0,0,0,.06);
  border-left: 3px solid var(--tm-teal);
  border-radius: 8px;
  padding: 10px 12px;
}

.tm-feat-stat {
  display: inline-block;
  font-family: 'DM Mono', monospace;
  font-size: 11.5px;
  color: #374151;
  background: #F8FAFC;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 20px;
  padding: 5px 13px;
}

.tm-feat-badge {
  display: inline-block;
  font-family: 'DM Mono', monospace;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--tm-green);
  background: rgba(22,163,74,.1);
  border: 1px solid rgba(22,163,74,.4);
  border-radius: 20px;
  padding: 5px 13px;
}

/* ─── Testimonials ───────────────────────────────────────── */
.tm-testi-row {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding: 6px 4px 20px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.tm-testi-card {
  flex: 0 0 380px;
  max-width: 88vw;
  scroll-snap-align: start;
  background: #F9F7F4;
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 16px;
  padding: 32px;
}

.tm-testi-quote {
  font-size: 17px;
  line-height: 1.65;
  color: #0F1929;
  margin: 0 0 18px;
}

.tm-testi-q-mark {
  color: var(--tm-teal);
  font-family: 'DM Sans', system-ui, sans-serif;
  font-weight: 700;
  font-size: 22px;
}

.tm-testi-stars {
  color: var(--tm-amber);
  font-size: 16px;
  letter-spacing: 2px;
  margin-bottom: 18px;
}

.tm-testi-footer {
  border-top: 1px solid rgba(0,0,0,.08);
  padding-top: 18px;
  display: flex;
  align-items: center;
  gap: 13px;
}

.tm-testi-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #F8FAFC;
  border: 2px solid rgba(0,0,0,.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--tm-teal);
  flex-shrink: 0;
}

.tm-testi-name {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: #0F1929;
}

.tm-testi-meta {
  font-size: 13px;
  line-height: 1.4;
  color: #374151;
}

.tm-testi-note {
  font-size: 13px;
  font-style: italic;
  color: rgba(55,65,81,.5);
  margin: 8px 0 0;
}

/* ─── Comparison Table ───────────────────────────────────── */
.tm-compare-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.tm-compare-table {
  min-width: 520px;
  max-width: 860px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  background: #1A2740;
}

.tm-compare-head {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  background: #0F1929;
  padding: 0;
}

.tm-compare-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
}

.tm-compare-row:nth-child(even) {
  background: #16223A;
}

.tm-compare-row:nth-child(odd) {
  background: #1A2740;
}

.tm-compare-cell {
  font-size: 14px;
  color: rgba(255,255,255,.8);
  padding: 16px 24px;
}

.tm-compare-cell-tm {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 18px;
}

.tm-compare-cell-fp {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 18px;
}

/* ─── CTA Section ────────────────────────────────────────── */
.tm-cta-section {
  background: #1A2740;
  padding: 100px 32px;
  position: relative;
  overflow: hidden;
}

.tm-cta-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(10,124,110,.15) 0%, transparent 65%);
  pointer-events: none;
}

.tm-cta-inner {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

/* ─── Video Modal ────────────────────────────────────────── */
.tm-video-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(15,25,41,.9);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s, visibility .25s;
}

.tm-video-modal.is-open {
  opacity: 1;
  visibility: visible;
}

/* ─── Page Hero (light pages) ────────────────────────────── */
.page-hero {
  padding: 132px 32px 48px;
  background: #fff;
  text-align: center;
}

.page-hero-dark {
  background: #0F1929;
}

/* ─── Product page ───────────────────────────────────────── */
.tm-three {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.tm-iface-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 16px;
  padding: 26px;
  box-shadow: var(--tm-shadow);
  display: flex;
  flex-direction: column;
}

.tm-iface-badge {
  align-self: flex-start;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-weight: 600;
  font-size: 11.5px;
  letter-spacing: .04em;
  padding: 4px 11px;
  border-radius: 14px;
  margin-bottom: 16px;
}

.tm-iface-mock {
  height: 150px;
  border-radius: 10px;
  background: #0F1929;
  border: 1px solid rgba(255,255,255,.08);
  padding: 12px;
  overflow: hidden;
  margin-bottom: 18px;
}

.tm-iface-features {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.tm-iface-feature {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  color: #374151;
}

.tm-dive {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  max-width: 1080px;
  margin: 0 auto;
}

.tm-dive.v-left .tm-visual {
  order: 0;
}

.tm-dive.v-left .tm-text {
  order: 1;
}

.tm-dive-visual {
  background: #0F1929;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  padding: 22px;
  min-height: 240px;
  box-shadow: 0 20px 50px rgba(15,25,41,.16);
}

.tm-dive-num {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--tm-teal);
  margin-bottom: 12px;
}

.tm-dive-h2 {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(26px, 4.6vw, 32px);
  line-height: 1.14;
  letter-spacing: -.02em;
  color: #0F1929;
  margin: 0 0 16px;
}

.tm-dive-p {
  font-size: 17px;
  line-height: 1.7;
  color: #374151;
  margin: 0 0 16px;
}

.tm-dive-formula {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  line-height: 1.5;
  color: #0F1929;
  background: #F8FAFC;
  border: 1px solid rgba(0,0,0,.06);
  border-left: 3px solid var(--tm-teal);
  border-radius: 8px;
  padding: 11px 13px;
}

/* ─── Pricing page ───────────────────────────────────────── */
.tm-tiers {
  display: grid;
  grid-template-columns: 1fr 1.08fr 1fr;
  gap: 22px;
  align-items: start;
  max-width: 1080px;
  margin: 0 auto;
}

.tm-tier-card {
  position: relative;
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 18px;
  padding: 32px 28px;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
}

.tm-tier-card.is-popular {
  background: var(--tm-teal);
  border-color: var(--tm-teal);
  padding: 40px 30px;
  box-shadow: 0 20px 60px rgba(10,124,110,.3);
}

.tm-tier-popular-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-weight: 700;
  font-size: 10.5px;
  letter-spacing: .06em;
  color: #0F1929;
  background: #FEF3C7;
  padding: 5px 11px;
  border-radius: 14px;
}

.tm-tier-name {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-weight: 700;
  font-size: 24px;
  color: #0F1929;
  margin: 0 0 6px;
}

.tm-tier-name.light {
  color: #fff;
}

.tm-tier-whom {
  font-size: 14px;
  color: #374151;
  margin-bottom: 22px;
}

.tm-tier-whom.light {
  color: rgba(255,255,255,.8);
}

.tm-tier-features {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-bottom: 18px;
}

.tm-tier-feature {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 14px;
  color: #0F1929;
}

.tm-tier-feature.light {
  color: #fff;
}

.tm-tier-exclude {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 14px;
  color: rgba(55,65,81,.4);
}

.tm-tier-exclude.light {
  color: rgba(255,255,255,.45);
}

.tm-tier-cta {
  display: block;
  text-align: center;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-weight: 700;
  font-size: 15px;
  padding: 13px;
  border-radius: 10px;
  text-decoration: none;
  transition: opacity .2s;
}

.tm-tier-cta:hover {
  opacity: .88;
}

.tm-trust-pills {
  max-width: 1080px;
  margin: 48px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.tm-trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 500;
  font-size: 13px;
  color: #374151;
  background: #F8FAFC;
  border: 1px solid rgba(0,0,0,.06);
  padding: 8px 15px;
  border-radius: 20px;
}

/* ─── FAQ Accordion ──────────────────────────────────────── */
.tm-faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 760px;
  margin: 0 auto;
}

.tm-faq-item {
  background: #fff;
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 12px;
  overflow: hidden;
}

.tm-faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  padding: 20px 22px;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-weight: 600;
  font-size: 17px;
  color: #0F1929;
}

.tm-faq-icon {
  font-size: 24px;
  line-height: 1;
  color: var(--tm-teal);
  flex-shrink: 0;
  transition: transform .2s;
}

.tm-faq-item.is-open .tm-faq-icon {
  transform: rotate(45deg);
}

.tm-faq-a {
  font-size: 15px;
  line-height: 1.7;
  color: #374151;
  padding: 0 22px 20px;
  display: none;
}

.tm-faq-item.is-open .tm-faq-a {
  display: block;
}

/* ─── Contact / Demo Form ────────────────────────────────── */
.tm-form-wrap {
  max-width: 660px;
  margin: 0 auto;
}

.tm-form {
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 18px;
  padding: 36px;
  box-shadow: 0 1px 3px rgba(0,0,0,.05);
}

.tm-fgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.tm-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.tm-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.tm-lbl {
  display: block;
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 500;
  font-size: 13.5px;
  color: #374151;
  margin-bottom: 7px;
}

.tm-in {
  width: 100%;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 15px;
  color: #0F1929;
  background: #fff;
  border: 1px solid rgba(0,0,0,.14);
  border-radius: 10px;
  padding: 12px 14px;
  outline: none;
  transition: border-color .18s;
  appearance: none;
}

.tm-in:focus {
  border-color: var(--tm-teal);
}

.tm-submit {
  width: 100%;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: #fff;
  background: var(--tm-teal);
  border: none;
  border-radius: 10px;
  padding: 15px;
  cursor: pointer;
  transition: background .2s;
}

.tm-submit:hover {
  background: var(--tm-teal-dark);
}

.tm-form-note {
  font-size: 13px;
  color: rgba(55,65,81,.6);
  margin: 16px 0 0;
  text-align: center;
}

.tm-form-success {
  background: #F9F7F4;
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 18px;
  padding: 56px 40px;
  text-align: center;
  display: none;
}

.tm-form-success.is-visible {
  display: block;
}

.tm-form-wrap.is-submitted .tm-form {
  display: none;
}

.tm-form-wrap.is-submitted .tm-form-success {
  display: block;
}

.tm-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 48px;
  max-width: 660px;
  margin-left: auto;
  margin-right: auto;
}

.tm-contact-card {
  background: #F9F7F4;
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 14px;
  padding: 24px;
}

/* ─── Blog page ──────────────────────────────────────────── */
.tm-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.tm-blog-card {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
  transition: box-shadow var(--tm-transition), transform var(--tm-transition);
}

.tm-blog-card:hover {
  box-shadow: 0 18px 50px rgba(15,25,41,.14);
  transform: translateY(-3px);
}

.tm-blog-cover {
  aspect-ratio: 16 / 9;
  background: #F8FAFC;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 13px;
  color: rgba(55,65,81,.4);
  border-bottom: 1px solid rgba(0,0,0,.05);
}

.tm-blog-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.tm-blog-cat {
  align-self: flex-start;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: .04em;
  color: var(--tm-teal);
  background: rgba(10,124,110,.1);
  padding: 4px 11px;
  border-radius: 13px;
  margin-bottom: 14px;
}

.tm-blog-h3 {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-weight: 700;
  font-size: 19px;
  line-height: 1.3;
  color: #0F1929;
  margin: 0 0 10px;
}

.tm-blog-excerpt {
  font-size: 14px;
  line-height: 1.6;
  color: #374151;
  margin: 0 0 18px;
  flex: 1;
}

.tm-blog-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tm-blog-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #F8FAFC;
  border: 1px solid rgba(0,0,0,.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-weight: 700;
  font-size: 12px;
  color: var(--tm-teal);
}

.tm-blog-meta-text {
  font-size: 12.5px;
  color: #374151;
}

.tm-blog-read-more {
  margin-left: auto;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-weight: 600;
  font-size: 13px;
  color: var(--tm-teal);
  text-decoration: none;
}

.tm-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 48px;
}

.tm-page-btn {
  font-family: 'DM Mono', monospace;
  font-size: 14px;
  color: #374151;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background .2s, color .2s;
  border: 1px solid transparent;
}

.tm-page-btn.active {
  color: #fff;
  background: var(--tm-teal);
}

.tm-page-btn:hover {
  background: #F8FAFC;
}

/* ─── Case Studies ───────────────────────────────────────── */
.tm-case-featured {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--tm-shadow-lg);
  border: 1px solid rgba(0,0,0,.06);
  display: grid;
  grid-template-columns: 40% 60%;
}

.tm-case-featured-left {
  background: #0F1929;
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  min-height: 340px;
}

.tm-case-featured-right {
  background: #fff;
  padding: 40px;
}

.tm-case-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.tm-case-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 16px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tm-case-metric-row {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 26px;
}

.tm-case-metric-val {
  font-family: 'DM Mono', monospace;
  font-weight: 700;
  font-size: 26px;
  color: var(--tm-teal);
  line-height: 1.1;
}

.tm-case-metric-label {
  font-size: 13px;
  line-height: 1.4;
  color: #374151;
  margin-top: 6px;
}

/* ─── About page ─────────────────────────────────────────── */
.tm-markets {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.tm-markets-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tm-market-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: #F9F7F4;
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 12px;
}

/* ─── Legal page ─────────────────────────────────────────── */
.tm-legal-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 130px 32px 96px;
}

.tm-legal-section h2 {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-weight: 700;
  font-size: 28px;
  letter-spacing: -.02em;
  color: #0F1929;
  margin: 48px 0 20px;
  scroll-margin-top: 96px;
}

.tm-legal-item h3 {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-weight: 600;
  font-size: 17px;
  color: #0F1929;
  margin-bottom: 8px;
}

.tm-legal-item p {
  font-size: 16px;
  line-height: 1.75;
  color: #374151;
  margin: 0;
}

/* ─── Footer ─────────────────────────────────────────────── */
.tm-footer {
  background: #0F1929;
  font-family: 'Inter', system-ui, sans-serif;
}

.tm-footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 80px 32px 0;
}

.tm-footer-main {
  display: flex;
  flex-wrap: wrap;
  gap: 48px 56px;
}

.tm-footer-brand {
  flex: 2 1 300px;
  min-width: 280px;
  max-width: 380px;
}

.tm-footer-tagline {
  border-left: 2px solid var(--tm-amber);
  padding-left: 14px;
  margin-bottom: 18px;
}

.tm-footer-tagline-sw {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: #fff;
  line-height: 1.3;
}

.tm-footer-tagline-en {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-weight: 400;
  font-size: 12px;
  color: rgba(255,255,255,.7);
  margin-top: 2px;
}

.tm-footer-p {
  font-size: 14px;
  line-height: 1.65;
  color: rgba(255,255,255,.7);
  margin: 0 0 22px;
  max-width: 300px;
}

.tm-footer-socials {
  display: flex;
  gap: 12px;
}

.tm-footer-social {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.7);
  transition: background .2s, color .2s;
  text-decoration: none;
}

.tm-footer-social:hover {
  background: var(--tm-teal);
  color: #fff;
}

.tm-footer-col {
  flex: 1 1 140px;
  min-width: 130px;
}

.tm-footer-col-head {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--tm-teal);
  margin-bottom: 18px;
}

.tm-footer-col-links {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.tm-footer-col-link {
  font-size: 14px;
  color: rgba(255,255,255,.7);
  text-decoration: none;
  transition: color .2s;
}

.tm-footer-col-link:hover {
  color: var(--tm-teal);
}

.tm-footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255,255,255,.1);
  margin-top: 64px;
  padding: 28px 0 48px;
}

.tm-footer-copy {
  font-size: 13px;
  color: rgba(255,255,255,.6);
}

.tm-footer-lang {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}

.tm-footer-lang-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 13px;
  padding: 2px 0;
  color: rgba(255,255,255,.6);
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
}

.tm-footer-lang-btn.is-active {
  color: var(--tm-teal);
  border-bottom-color: var(--tm-teal);
}

.tm-footer-lang-sep {
  color: rgba(255,255,255,.3);
}

/* ─── Utility classes ────────────────────────────────────── */
.tm-pill {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-weight: 500;
  font-size: 13px;
  color: var(--tm-teal);
  background: rgba(10,124,110,.1);
  border: 1px solid var(--tm-teal);
  padding: 6px 16px;
  border-radius: 20px;
}

.text-center {
  text-align: center;
}

.tm-section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

.tm-kicker {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--tm-teal);
  margin-bottom: 14px;
}

.tm-kicker-amber {
  color: var(--tm-amber);
}

.tm-h2 {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(28px, 5.2vw, 40px);
  line-height: 1.12;
  letter-spacing: -.025em;
  color: #0F1929;
  margin: 0 0 14px;
}

.tm-h2-white {
  color: #fff;
}

.tm-lead {
  font-size: 18px;
  line-height: 1.6;
  color: #374151;
  margin: 0;
}

.tm-lead-muted {
  color: rgba(255,255,255,.75);
}

/* ─── About hero specifics ───────────────────────────────── */
.tm-about-hero-h1 {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(32px, 6.4vw, 48px);
  line-height: 1.1;
  letter-spacing: -.03em;
  color: #fff;
  margin: 0 0 28px;
  text-wrap: balance;
}

.tm-pillar-icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: rgba(10,124,110,.1);
  color: var(--tm-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.tm-team-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: #F8FAFC;
  border: 2px solid rgba(0,0,0,.06);
  margin: 0 auto 18px;
}

/* ─── Keyframe animations ────────────────────────────────── */
@keyframes tmFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes tmFadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

/* ─── Responsive breakpoints ─────────────────────────────── */

/* Tablet / small desktop — hide desktop nav, show burger */
@media (max-width: 880px) {
  .tm-nav,
  .tm-header-cta {
    display: none;
  }

  .tm-burger {
    display: flex;
  }

  .tm-hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .tm-ps {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .tm-ps.v-left .tm-visual,
  .tm-ps.v-left .tm-text {
    order: unset;
  }

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

  .tm-markets {
    grid-template-columns: 1fr;
    gap: 32px;
  }

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

  .tm-dive.v-left .tm-visual,
  .tm-dive.v-left .tm-text {
    order: unset;
  }

  .tm-case-featured {
    grid-template-columns: 1fr;
  }

  .tm-fgrid,
  .tm-2col,
  .tm-contact-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* Medium screens — 2-col feature grid, pricing stacks */
@media (max-width: 1024px) {
  .tm-feat {
    grid-template-columns: repeat(2, 1fr);
  }

  .tm-tiers {
    grid-template-columns: 1fr;
    max-width: 440px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Blog grid — 2 cols at mid range */
@media (max-width: 900px) {
  .tm-blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile — single column everything */
@media (max-width: 640px) {
  .tm-feat {
    grid-template-columns: 1fr;
  }

  .tm-stats-inner {
    flex-wrap: wrap;
  }

  .tm-stat {
    flex: 1 1 45%;
    padding: 16px 0;
  }

  .tm-stat + .tm-stat::before {
    display: none;
  }

  .tm-cta-row {
    flex-direction: column;
  }

  .section-lg {
    padding: 64px 20px;
  }

  .section-md {
    padding: 48px 20px;
  }

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

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

/* ─── Reduced motion guard (must be last) ────────────────── */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
