/* ═══════════════════════════════════════════════════════════════
   TechMek Cloud Consulting — Design System
   Modern dark SaaS aesthetic · Glassmorphism · Micro-animations
   ═══════════════════════════════════════════════════════════════ */

/* ── Design Tokens ─────────────────────────────────────────────── */
:root {
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50:  #f8fafc;

  --blue-700: #1d4ed8;
  --blue-600: #2563eb;
  --blue-500: #3b82f6;
  --blue-400: #60a5fa;
  --blue-300: #93c5fd;

  --lime-500: #84cc16;
  --lime-400: #a3e635;
  --cyan-500: #06b6d4;
  --cyan-400: #22d3ee;

  --red-400: #f87171;
  --yellow-400: #facc15;
  --green-400: #4ade80;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --shadow-glow: 0 0 60px -12px rgba(59,130,246,0.3);
  --shadow-card: 0 4px 30px rgba(0,0,0,0.3);
  --shadow-float: 0 25px 60px -12px rgba(0,0,0,0.5);

  --transition: 0.3s cubic-bezier(0.4,0,0.2,1);
  --transition-slow: 0.6s cubic-bezier(0.4,0,0.2,1);
}

/* ── Global Reset & Base ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body.tm-dark,
body.tm-dark #page {
  background: var(--slate-950) !important;
  color: var(--slate-300);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── Astra Overrides ──────────────────────────────────────────── */
.tm-dark .ast-container,
.tm-dark .site-content,
.tm-dark #content,
.tm-dark .ast-separate-container,
.tm-dark .ast-separate-container .ast-article-single,
.tm-dark .ast-separate-container .ast-article-post,
.tm-dark .ast-plain-container,
.tm-dark .entry-content {
  background: transparent !important;
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 auto !important;
}
.tm-dark .ast-separate-container .ast-article-single { padding: 0 !important; }
.tm-dark .entry-header, .tm-hidden { display: none !important; }
.tm-dark .ast-no-sidebar .entry-content { margin: 0 !important; }

/* ── Astra Header Override ────────────────────────────────────── */
.tm-dark .main-header-bar,
.tm-dark .ast-primary-header-bar {
  background: rgba(2,6,23,0.85) !important;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(148,163,184,0.08) !important;
  box-shadow: none !important;
}
.tm-dark .main-header-bar .site-title a,
.tm-dark .main-header-bar .ast-site-title-wrap a,
.tm-dark .site-title a {
  color: var(--slate-50) !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em;
}
.tm-dark .main-navigation a,
.tm-dark .ast-header-navigation a {
  color: var(--slate-300) !important;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.01em;
  transition: color var(--transition);
}
.tm-dark .main-navigation a:hover,
.tm-dark .ast-header-navigation a:hover { color: var(--blue-400) !important; }

/* ── Astra Footer Override ────────────────────────────────────── */
.tm-dark .site-footer,
.tm-dark .ast-small-footer {
  background: var(--slate-950) !important;
  border-top: 1px solid rgba(148,163,184,0.08);
  color: var(--slate-500);
}
.tm-dark .site-footer a { color: var(--slate-400); }

/* ── Typography ───────────────────────────────────────────────── */
.tm-h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); font-weight: 800; line-height: 1.08; letter-spacing: -0.03em; color: var(--slate-50); }
.tm-h2 { font-size: clamp(2rem, 3.5vw, 3rem); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; color: var(--slate-50); }
.tm-h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); font-weight: 600; line-height: 1.3; color: var(--slate-100); }
.tm-h4 { font-size: 1.125rem; font-weight: 600; line-height: 1.4; color: var(--slate-200); }
.tm-body-lg { font-size: 1.125rem; line-height: 1.8; color: var(--slate-400); }
.tm-body { font-size: 1rem; line-height: 1.7; color: var(--slate-400); }
.tm-small { font-size: 0.875rem; line-height: 1.6; color: var(--slate-500); }

.tm-gradient-text {
  background: linear-gradient(135deg, var(--blue-400) 0%, var(--cyan-400) 50%, var(--lime-400) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.tm-gradient-blue {
  background: linear-gradient(135deg, var(--blue-400), var(--cyan-400));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Layout ───────────────────────────────────────────────────── */
.tm-section { padding: 100px 0; position: relative; overflow: hidden; }
.tm-section-sm { padding: 60px 0; }
.tm-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }
.tm-container-lg { max-width: 1400px; margin: 0 auto; padding: 0 24px; }
.tm-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.tm-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.tm-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.tm-flex-center { display: flex; align-items: center; justify-content: center; }
.tm-text-center { text-align: center; }
.tm-mb-16 { margin-bottom: 16px; }
.tm-mb-24 { margin-bottom: 24px; }
.tm-mb-32 { margin-bottom: 32px; }
.tm-mb-48 { margin-bottom: 48px; }
.tm-mb-64 { margin-bottom: 64px; }
.tm-gap-12 { gap: 12px; }
.tm-gap-16 { gap: 16px; }

@media (max-width: 768px) {
  .tm-grid-2, .tm-grid-3, .tm-grid-4 { grid-template-columns: 1fr; }
  .tm-section { padding: 60px 0; }
}

/* ── Buttons ──────────────────────────────────────────────────── */
.tm-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: var(--radius-full);
  font-family: var(--font-sans); font-weight: 600; font-size: 15px;
  text-decoration: none; cursor: pointer; border: none;
  transition: all var(--transition); position: relative; overflow: hidden;
}
.tm-btn-primary {
  background: linear-gradient(135deg, var(--blue-600), var(--blue-500));
  color: white !important; box-shadow: 0 4px 20px rgba(59,130,246,0.3);
}
.tm-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(59,130,246,0.45);
  color: white !important;
}
.tm-btn-secondary {
  background: rgba(148,163,184,0.08);
  color: var(--slate-200) !important;
  border: 1px solid rgba(148,163,184,0.15);
  backdrop-filter: blur(10px);
}
.tm-btn-secondary:hover {
  background: rgba(148,163,184,0.15);
  border-color: rgba(148,163,184,0.25);
  transform: translateY(-2px);
  color: var(--slate-50) !important;
}
.tm-btn-sm { padding: 10px 20px; font-size: 13px; }
.tm-btn-lg { padding: 18px 36px; font-size: 16px; }

/* ── Badge / Tag ──────────────────────────────────────────────── */
.tm-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: var(--radius-full);
  font-size: 13px; font-weight: 600; letter-spacing: 0.02em;
  background: rgba(59,130,246,0.12); color: var(--blue-400);
  border: 1px solid rgba(59,130,246,0.2);
}
.tm-badge-lime {
  background: rgba(132,204,22,0.12); color: var(--lime-400);
  border-color: rgba(132,204,22,0.2);
}
.tm-tech-tag {
  display: inline-flex; padding: 4px 10px; border-radius: var(--radius-sm);
  font-size: 12px; font-weight: 600; font-family: var(--font-mono);
  background: rgba(148,163,184,0.08); color: var(--slate-400);
  border: 1px solid rgba(148,163,184,0.1);
}

/* ── Glass Card ───────────────────────────────────────────────── */
.tm-card {
  background: rgba(15,23,42,0.6);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border: 1px solid rgba(148,163,184,0.08);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all var(--transition);
}
.tm-card:hover {
  border-color: rgba(59,130,246,0.2);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}
.tm-card-icon {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-md);
  font-size: 24px; margin-bottom: 20px;
  background: rgba(59,130,246,0.1);
}
.tm-card-icon.lime { background: rgba(132,204,22,0.1); }
.tm-card-icon.cyan { background: rgba(6,182,212,0.1); }
.tm-card-icon.red  { background: rgba(248,113,113,0.1); }

/* ── Hero Section ─────────────────────────────────────────────── */
.tm-hero {
  min-height: 100vh;
  display: flex; align-items: center;
  position: relative;
  background: var(--slate-950);
  padding: 120px 0 100px;
}
.tm-hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(59,130,246,0.15), transparent),
    radial-gradient(ellipse 60% 40% at 80% 50%, rgba(6,182,212,0.08), transparent),
    radial-gradient(ellipse 40% 30% at 20% 80%, rgba(132,204,22,0.05), transparent);
}
.tm-hero-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: center;
}
.tm-hero-content { z-index: 1; }
.tm-hero-subtitle { font-size: 1.125rem; line-height: 1.8; color: var(--slate-400); margin: 24px 0 32px; max-width: 540px; }
.tm-hero-cta { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 40px; }
.tm-hero-tech { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; color: var(--slate-500); font-size: 13px; }

@media (max-width: 968px) {
  .tm-hero-grid { grid-template-columns: 1fr; text-align: center; }
  .tm-hero-subtitle { margin-left: auto; margin-right: auto; }
  .tm-hero-cta { justify-content: center; }
  .tm-hero-tech { justify-content: center; }
  .tm-hero-visual { max-width: 560px; margin: 0 auto; }
}

/* ── Terminal Component ───────────────────────────────────────── */
.tm-terminal {
  background: rgba(15,23,42,0.95);
  border: 1px solid rgba(148,163,184,0.12);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-float);
  font-family: var(--font-mono);
}
.tm-terminal-header {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 18px;
  background: rgba(30,41,59,0.8);
  border-bottom: 1px solid rgba(148,163,184,0.08);
}
.tm-dot { width: 12px; height: 12px; border-radius: 50%; }
.tm-dot.red { background: #ff5f57; }
.tm-dot.yellow { background: #febc2e; }
.tm-dot.green { background: #28c840; }
.tm-terminal-title {
  margin-left: auto; font-size: 12px; color: var(--slate-500);
}
.tm-terminal-body {
  padding: 20px; min-height: 280px;
  font-size: 13px; line-height: 1.8;
}
.tm-terminal-line { white-space: nowrap; overflow: hidden; }
.tm-terminal-prompt { color: var(--lime-400); }
.tm-terminal-command { color: var(--slate-200); }
.tm-terminal-output { color: var(--slate-500); }
.tm-terminal-cursor {
  display: inline-block; width: 8px; height: 16px;
  background: var(--lime-400); vertical-align: text-bottom;
  animation: blink 1s step-end infinite;
}

@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

/* ── Stats Section ────────────────────────────────────────────── */
.tm-stats {
  background: var(--slate-950);
  border-top: 1px solid rgba(148,163,184,0.06);
  border-bottom: 1px solid rgba(148,163,184,0.06);
}
.tm-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; text-align: center; }
.tm-stat-number {
  font-size: clamp(2rem, 4vw, 3rem); font-weight: 800;
  color: var(--slate-50); font-family: var(--font-sans);
  line-height: 1;
}
.tm-stat-label { font-size: 14px; color: var(--slate-500); margin-top: 8px; font-weight: 500; }

@media (max-width: 768px) { .tm-stats-grid { grid-template-columns: repeat(2, 1fr); } }

/* ── Section Header ───────────────────────────────────────────── */
.tm-section-header { text-align: center; max-width: 680px; margin: 0 auto 64px; }
.tm-section-header .tm-badge { margin-bottom: 16px; }
.tm-section-header p { margin-top: 16px; }

/* ── Bento Grid ───────────────────────────────────────────────── */
.tm-bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}
.tm-bento-item { border-radius: var(--radius-lg); }
.tm-bento .span-8  { grid-column: span 8; }
.tm-bento .span-6  { grid-column: span 6; }
.tm-bento .span-4  { grid-column: span 4; }
.tm-bento .span-12 { grid-column: span 12; }

@media (max-width: 768px) {
  .tm-bento .span-4, .tm-bento .span-6, .tm-bento .span-8 { grid-column: span 12; }
}

.tm-bento-card {
  background: rgba(15,23,42,0.5);
  border: 1px solid rgba(148,163,184,0.08);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all var(--transition);
  height: 100%;
  position: relative; overflow: hidden;
}
.tm-bento-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--blue-500), transparent);
  opacity: 0; transition: opacity var(--transition);
}
.tm-bento-card:hover::before { opacity: 1; }
.tm-bento-card:hover {
  border-color: rgba(59,130,246,0.15);
  background: rgba(15,23,42,0.7);
  transform: translateY(-2px);
}
.tm-bento-icon { font-size: 32px; margin-bottom: 16px; }
.tm-bento-title { font-size: 1.25rem; font-weight: 700; color: var(--slate-50); margin-bottom: 12px; }
.tm-bento-desc { font-size: 0.9375rem; color: var(--slate-400); line-height: 1.7; margin-bottom: 16px; }
.tm-bento-tags { display: flex; flex-wrap: wrap; gap: 6px; }

/* ── Logo Marquee ─────────────────────────────────────────────── */
.tm-marquee-wrap {
  overflow: hidden;
  border-top: 1px solid rgba(148,163,184,0.06);
  border-bottom: 1px solid rgba(148,163,184,0.06);
  padding: 32px 0;
  background: rgba(15,23,42,0.3);
}
.tm-marquee-label { text-align: center; font-size: 13px; font-weight: 600; color: var(--slate-600); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 24px; }
.tm-marquee-track {
  display: flex; gap: 48px; width: max-content;
  animation: marquee 30s linear infinite;
}
.tm-marquee-item {
  display: flex; align-items: center; gap: 8px;
  font-size: 16px; font-weight: 700; color: var(--slate-600);
  white-space: nowrap; opacity: 0.6; transition: opacity var(--transition);
}
.tm-marquee-item:hover { opacity: 1; }
.tm-marquee-item span.tm-mi { font-size: 22px; }

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

/* ── Testimonials ─────────────────────────────────────────────── */
.tm-testimonial-card {
  background: rgba(15,23,42,0.5);
  border: 1px solid rgba(148,163,184,0.08);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex; flex-direction: column;
}
.tm-testimonial-quote {
  font-size: 1rem; line-height: 1.8; color: var(--slate-300);
  font-style: italic; flex: 1; margin-bottom: 24px;
  position: relative; padding-left: 20px;
  border-left: 2px solid var(--blue-500);
}
.tm-testimonial-author { display: flex; align-items: center; gap: 12px; }
.tm-testimonial-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-500), var(--cyan-400));
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700; color: white;
}
.tm-testimonial-name { font-weight: 600; color: var(--slate-200); font-size: 14px; }
.tm-testimonial-role { font-size: 13px; color: var(--slate-500); }

/* ── Case Study Cards ─────────────────────────────────────────── */
.tm-case-card {
  background: rgba(15,23,42,0.5);
  border: 1px solid rgba(148,163,184,0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
}
.tm-case-card:hover {
  border-color: rgba(59,130,246,0.15);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}
.tm-case-header {
  padding: 32px 32px 0;
  display: flex; justify-content: space-between; align-items: flex-start; gap: 16px;
}
.tm-case-body { padding: 20px 32px 32px; }
.tm-case-metrics { display: flex; gap: 24px; margin-top: 20px; flex-wrap: wrap; }
.tm-case-metric { text-align: center; }
.tm-case-metric-value { font-size: 1.5rem; font-weight: 800; color: var(--lime-400); line-height: 1; }
.tm-case-metric-label { font-size: 12px; color: var(--slate-500); margin-top: 4px; }
.tm-case-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 20px; }
.tm-case-before-after {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: center;
  margin: 20px 0;
}
.tm-case-ba-box { padding: 16px; background: rgba(148,163,184,0.05); border-radius: var(--radius-md); }
.tm-case-ba-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 8px; }
.tm-case-ba-label.before { color: var(--red-400); }
.tm-case-ba-label.after { color: var(--green-400); }
.tm-case-ba-text { font-size: 13px; color: var(--slate-400); font-family: var(--font-mono); line-height: 1.6; }
.tm-case-arrow { color: var(--blue-400); font-size: 24px; }

/* ── Multi-step Form ──────────────────────────────────────────── */
.tm-form-wrap {
  max-width: 640px; margin: 0 auto;
  background: rgba(15,23,42,0.6);
  border: 1px solid rgba(148,163,184,0.08);
  border-radius: var(--radius-xl);
  padding: 48px; backdrop-filter: blur(20px);
}
.tm-form-progress {
  display: flex; gap: 8px; margin-bottom: 40px;
}
.tm-form-progress-step {
  flex: 1; height: 4px; border-radius: 2px;
  background: rgba(148,163,184,0.1);
  transition: background var(--transition);
}
.tm-form-progress-step.active { background: var(--blue-500); }
.tm-form-progress-step.done { background: var(--lime-400); }
.tm-form-step { display: none; }
.tm-form-step.active { display: block; animation: fadeSlideUp 0.4s ease; }
.tm-form-step-title { font-size: 1.25rem; font-weight: 700; color: var(--slate-50); margin-bottom: 8px; }
.tm-form-step-desc { font-size: 0.9375rem; color: var(--slate-400); margin-bottom: 32px; }
.tm-form-group { margin-bottom: 20px; }
.tm-form-label { display: block; font-size: 14px; font-weight: 600; color: var(--slate-300); margin-bottom: 8px; }
.tm-form-input, .tm-form-textarea, .tm-form-select {
  width: 100%; padding: 12px 16px; border-radius: var(--radius-md);
  background: rgba(148,163,184,0.06); border: 1px solid rgba(148,163,184,0.12);
  color: var(--slate-200); font-family: var(--font-sans); font-size: 15px;
  transition: border-color var(--transition);
  outline: none;
}
.tm-form-input:focus, .tm-form-textarea:focus, .tm-form-select:focus {
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
}
.tm-form-textarea { min-height: 120px; resize: vertical; }
.tm-form-select { appearance: none; cursor: pointer; }
.tm-check-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.tm-check-item {
  padding: 14px 16px; border-radius: var(--radius-md);
  border: 1px solid rgba(148,163,184,0.1);
  background: rgba(148,163,184,0.04);
  cursor: pointer; transition: all var(--transition);
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; color: var(--slate-300);
}
.tm-check-item:hover { border-color: rgba(59,130,246,0.3); background: rgba(59,130,246,0.05); }
.tm-check-item.selected { border-color: var(--blue-500); background: rgba(59,130,246,0.1); color: var(--slate-50); }
.tm-check-item input { display: none; }
.tm-check-icon { width: 20px; height: 20px; border-radius: 4px; border: 2px solid var(--slate-600); display: flex; align-items: center; justify-content: center; transition: all var(--transition); font-size: 12px; }
.tm-check-item.selected .tm-check-icon { background: var(--blue-500); border-color: var(--blue-500); }
.tm-form-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 32px; }

@media (max-width: 640px) { .tm-check-grid { grid-template-columns: 1fr; } .tm-form-wrap { padding: 32px 20px; } }

/* ── CTA Section ──────────────────────────────────────────────── */
.tm-cta {
  text-align: center; padding: 100px 0;
  position: relative;
}
.tm-cta::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 60% at 50% 50%, rgba(59,130,246,0.08), transparent);
}
.tm-cta-title { margin-bottom: 16px; }
.tm-cta-desc { max-width: 520px; margin: 0 auto 32px; }

/* ── About Page ───────────────────────────────────────────────── */
.tm-about-hero {
  padding: 160px 0 80px;
  background: var(--slate-950);
  position: relative;
}
.tm-about-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 50% at 30% 0%, rgba(59,130,246,0.1), transparent);
}
.tm-values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.tm-value-card { padding: 32px; text-align: center; }
.tm-value-icon { font-size: 40px; margin-bottom: 16px; }
.tm-approach-steps {
  display: flex; flex-direction: column; gap: 0;
  position: relative; padding-left: 32px;
}
.tm-approach-steps::before {
  content: ''; position: absolute; left: 11px; top: 4px; bottom: 4px; width: 2px;
  background: linear-gradient(to bottom, var(--blue-500), var(--cyan-400), var(--lime-400));
}
.tm-approach-step { position: relative; padding: 20px 0 20px 24px; }
.tm-approach-step::before {
  content: ''; position: absolute; left: -25px; top: 26px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--blue-500); border: 3px solid var(--slate-900);
}
.tm-approach-step:nth-child(2)::before { background: var(--cyan-400); }
.tm-approach-step:nth-child(3)::before { background: var(--cyan-400); }
.tm-approach-step:nth-child(4)::before { background: var(--lime-400); }

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

/* ── Tech Grid ────────────────────────────────────────────────── */
.tm-tech-grid {
  display: flex; flex-wrap: wrap; gap: 12px;
  justify-content: center;
}
.tm-tech-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 18px; border-radius: var(--radius-full);
  background: rgba(148,163,184,0.06);
  border: 1px solid rgba(148,163,184,0.1);
  font-size: 14px; font-weight: 500; color: var(--slate-300);
  transition: all var(--transition);
}
.tm-tech-pill:hover {
  border-color: rgba(59,130,246,0.3);
  background: rgba(59,130,246,0.08);
  transform: translateY(-2px);
}

/* ── Divider ──────────────────────────────────────────────────── */
.tm-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(148,163,184,0.12), transparent);
  margin: 0;
}

/* ── Scroll Reveal Animations ─────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

@keyframes fadeSlideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

/* ── Grid Background Pattern ──────────────────────────────────── */
.tm-grid-bg {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0;
}
.tm-grid-bg::before {
  content: ''; position: absolute; inset: -50%;
  background-image:
    linear-gradient(rgba(148,163,184,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148,163,184,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  transform: perspective(500px) rotateX(60deg);
  transform-origin: center top;
}

/* ── Footer Custom ────────────────────────────────────────────── */
.tm-footer {
  background: var(--slate-950);
  border-top: 1px solid rgba(148,163,184,0.06);
  padding: 60px 0 32px;
}
.tm-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.tm-footer-brand { font-size: 20px; font-weight: 800; color: var(--slate-50); margin-bottom: 12px; }
.tm-footer-desc { font-size: 14px; color: var(--slate-500); line-height: 1.7; }
.tm-footer-heading { font-size: 13px; font-weight: 700; color: var(--slate-300); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 16px; }
.tm-footer-links { list-style: none; padding: 0; }
.tm-footer-links li { margin-bottom: 8px; }
.tm-footer-links a { color: var(--slate-500); font-size: 14px; text-decoration: none; transition: color var(--transition); }
.tm-footer-links a:hover { color: var(--blue-400); }
.tm-footer-bottom { padding-top: 24px; border-top: 1px solid rgba(148,163,184,0.06); display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--slate-600); }

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

/* ── Services Page Specific ───────────────────────────────────── */
.tm-services-hero {
  padding: 160px 0 80px;
  background: var(--slate-950);
  position: relative;
}
.tm-services-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 50% at 70% 0%, rgba(6,182,212,0.1), transparent);
}
.tm-service-detail {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
  padding: 60px 0;
}
.tm-service-detail:nth-child(even) { direction: rtl; }
.tm-service-detail:nth-child(even) > * { direction: ltr; }
.tm-service-detail-icon { font-size: 48px; margin-bottom: 16px; }
.tm-service-list { list-style: none; padding: 0; margin: 16px 0; }
.tm-service-list li {
  padding: 8px 0; padding-left: 24px; position: relative;
  font-size: 15px; color: var(--slate-400);
}
.tm-service-list li::before {
  content: ''; position: absolute; left: 0; top: 15px;
  width: 8px; height: 8px; border-radius: 2px;
  background: var(--blue-500);
}

@media (max-width: 768px) {
  .tm-service-detail, .tm-service-detail:nth-child(even) { grid-template-columns: 1fr; direction: ltr; }
}

/* ── Contact Hero ─────────────────────────────────────────────── */
.tm-contact-hero {
  padding: 160px 0 80px;
  background: var(--slate-950);
  position: relative;
}
.tm-contact-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% -10%, rgba(132,204,22,0.08), transparent);
}

/* ── Success Message ──────────────────────────────────────────── */
.tm-success-msg {
  text-align: center; padding: 48px;
  animation: fadeSlideUp 0.5s ease;
}
.tm-success-icon { font-size: 48px; margin-bottom: 16px; }

/* ── Print ────────────────────────────────────────────────────── */
@media print { body.tm-dark { background: white; color: #333; } .tm-terminal, .tm-marquee-wrap { display: none; } }

/* ── Hide Astra Default Footer ────────────────────────────────── */
.tm-dark .site-below-footer-wrap,
.tm-dark .ast-footer-copyright,
.tm-dark footer.site-footer.ast-builder-footer,
.tm-dark .site-footer-above-section-1,
.tm-dark .site-below-footer-wrap[data-section="section-below-footer-builder"] {
  display: none !important;
}

/* ── Form Step Labels ─────────────────────────────────────────── */
.tm-form-step-labels {
  display: flex; gap: 16px; margin-bottom: 32px; padding-bottom: 24px;
  border-bottom: 1px solid rgba(148,163,184,0.1);
}
.tm-step-label {
  font-size: 0.8125rem; font-weight: 500; color: var(--slate-500); transition: color var(--transition);
}
.tm-step-label.active { color: var(--blue-400); font-weight: 600; }

/* ── Form Progress Bar ────────────────────────────────────────── */
.tm-form-progress-bar {
  height: 4px; background: linear-gradient(90deg, var(--blue-500), var(--cyan-400));
  border-radius: 2px; transition: width 0.4s ease;
}

/* ── Form Row ─────────────────────────────────────────────────── */
.tm-form-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
@media (max-width: 640px) {
  .tm-form-row { grid-template-columns: 1fr; }
}
