/* ============================================================
   TenScan Landing v2 — Design System
   Light modern SaaS aesthetic with subtle gradients
   ============================================================ */

/* ── CSS Variables (Theme: Indigo by default) ── */
:root {
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Source Sans 3', sans-serif;
  --color-primary: #1e3a5f;
  --color-primary-light: #2c5282;
  --color-accent: #2563eb;
  --color-accent-hover: #1d4ed8;
  --color-surface: #f7f9fc;
  --color-surface-alt: #eef2f7;
  --color-card: #ffffff;
  --color-text: #1a1f36;
  --color-text-secondary: #64748b;
  --color-border: #e2e8f0;
}

/* ── Reset ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background 0.4s, color 0.4s;
}
h1, h2, h3 { font-family: var(--font-heading); text-wrap: balance; }

.ts-container { max-width: 1200px; margin: 0 auto; padding: 0 48px; }

/* ── Header ── */
.ts-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: all 0.3s ease;
  border-bottom: 1px solid transparent;
}
.ts-header.scrolled {
  background: color-mix(in oklch, var(--color-card) 92%, transparent);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--color-border);
}
.ts-header-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 48px;
  height: 72px; display: flex; align-items: center; justify-content: space-between;
}
.ts-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--color-primary);
  font-family: var(--font-heading); font-size: 22px; font-weight: 700;
  letter-spacing: -0.02em;
}
.ts-nav { display: flex; align-items: center; gap: 32px; }
.ts-nav-link {
  text-decoration: none; color: var(--color-text-secondary);
  font-size: 15px; font-weight: 500; transition: color 0.2s;
}
.ts-nav-link:hover { color: var(--color-text); }
.ts-auth-buttons { display: flex; align-items: center; gap: 12px; }

/* User profile dropdown */
.ts-user-profile { position: relative; display: none; }
.ts-user-menu-btn {
  display: flex; align-items: center; gap: 8px;
  background: transparent; color: var(--color-text);
  padding: 8px 14px; border-radius: 8px;
  font-size: 14px; font-weight: 600; cursor: pointer;
  border: 1px solid var(--color-border);
  transition: all 0.2s ease;
}
.ts-user-menu-btn:hover { border-color: var(--color-accent); color: var(--color-accent); }
.ts-user-menu-btn .chevron-icon { width: 14px; height: 14px; transition: transform 0.2s ease; }
.ts-user-menu-btn.active .chevron-icon { transform: rotate(180deg); }
.ts-user-menu {
  position: absolute; top: calc(100% + 8px); right: 0;
  min-width: 220px;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  box-shadow: 0 12px 36px rgba(0,0,0,0.08);
  padding: 8px;
  display: none;
  z-index: 200;
}
.ts-user-menu-header { padding: 10px 12px 12px; }
.ts-user-menu-name { font-size: 14px; font-weight: 600; color: var(--color-text); }
.ts-user-menu-tokens { font-size: 12px; color: var(--color-text-secondary); margin-top: 2px; }
.ts-user-menu-divider { height: 1px; background: var(--color-border); margin: 4px 0; }
.ts-user-menu-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 8px;
  text-decoration: none; color: var(--color-text);
  font-size: 14px; font-weight: 500;
  background: none; border: none; width: 100%;
  text-align: left; cursor: pointer;
  transition: background 0.15s ease;
}
.ts-user-menu-item:hover { background: var(--color-surface-alt); }
.ts-user-menu-item svg, .ts-user-menu-item i { width: 16px; height: 16px; color: var(--color-text-secondary); }

/* Mobile menu */
.ts-mobile-menu-btn {
  display: none;
  flex-direction: column; justify-content: center; gap: 4px;
  width: 36px; height: 36px;
  background: transparent; border: none;
  cursor: pointer; padding: 8px;
}
.ts-mobile-menu-btn .bar {
  width: 20px; height: 2px; background: var(--color-text);
  border-radius: 2px; transition: all 0.3s ease;
}
.ts-mobile-menu-btn[aria-expanded="true"] .bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.ts-mobile-menu-btn[aria-expanded="true"] .bar:nth-child(2) { opacity: 0; }
.ts-mobile-menu-btn[aria-expanded="true"] .bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.ts-mobile-nav {
  position: fixed; top: 72px; left: 0; right: 0;
  background: var(--color-card);
  border-bottom: 1px solid var(--color-border);
  padding: 16px 24px;
  display: none;
  flex-direction: column; gap: 16px;
  z-index: 99;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.ts-mobile-nav.open { display: flex; }
.ts-mobile-nav a {
  font-size: 16px; font-weight: 500;
  color: var(--color-text); text-decoration: none;
  padding: 8px 0;
}

/* ── Buttons ── */
.ts-btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--color-accent); color: #fff;
  padding: 13px 28px; border-radius: 10px;
  font-size: 15px; font-weight: 600; font-family: var(--font-body);
  text-decoration: none; border: none; cursor: pointer;
  transition: all 0.25s ease;
}
.ts-btn-primary:hover {
  background: var(--color-accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px color-mix(in oklch, var(--color-accent) 30%, transparent);
}
.ts-btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--color-text);
  padding: 13px 28px; border-radius: 10px;
  font-size: 15px; font-weight: 600; font-family: var(--font-body);
  text-decoration: none; border: 1px solid var(--color-border);
  cursor: pointer; transition: all 0.25s ease;
}
.ts-btn-secondary:hover {
  border-color: var(--color-accent); color: var(--color-accent);
}
.ts-btn-sm { padding: 9px 20px; font-size: 14px; border-radius: 8px; }
.ts-btn-lg { padding: 16px 36px; font-size: 17px; border-radius: 12px; }
.ts-btn-full { width: 100%; justify-content: center; }
.ts-btn-white { background: #fff; color: var(--color-primary); }
.ts-btn-white:hover {
  background: #f0f4ff; transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255,255,255,0.25);
}

/* Login / Register top bar buttons */
.ts-btn-login,
.ts-btn-register {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 600; font-family: var(--font-body);
  padding: 9px 20px; border-radius: 8px;
  text-decoration: none; cursor: pointer;
  transition: all 0.2s ease;
}
.ts-btn-login {
  background: transparent; color: var(--color-text);
  border: 1px solid var(--color-border);
}
.ts-btn-login:hover {
  border-color: var(--color-accent); color: var(--color-accent);
}
.ts-btn-register {
  background: var(--color-accent); color: #fff;
  border: 1px solid var(--color-accent);
}
.ts-btn-register:hover {
  background: var(--color-accent-hover); border-color: var(--color-accent-hover);
}

/* ── Hero ── */
.ts-hero {
  padding-top: 72px;
  min-height: 100vh;
  display: flex; align-items: center;
  background:
    linear-gradient(170deg, var(--color-surface) 0%, var(--color-surface-alt) 50%, var(--color-surface) 100%);
  position: relative; overflow: hidden;
}
.ts-hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 70% 60% at 72% 35%, color-mix(in oklch, var(--color-accent) 8%, transparent) 0%, transparent 70%),
    radial-gradient(ellipse 50% 50% at 20% 80%, color-mix(in oklch, var(--color-accent) 4%, transparent) 0%, transparent 60%);
}
.ts-hero-bg-grid {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image: radial-gradient(color-mix(in oklch, var(--color-primary) 6%, transparent) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, black 20%, transparent 70%);
}
.ts-hero-bg-glow {
  position: absolute; border-radius: 50%; pointer-events: none; z-index: 0;
  filter: blur(80px); opacity: 0.5;
}
.ts-hero-bg-glow-1 {
  width: 500px; height: 500px; top: -100px; right: -80px;
  background: color-mix(in oklch, var(--color-accent) 12%, transparent);
  animation: ts-floatOrb 12s ease-in-out infinite alternate;
}
.ts-hero-bg-glow-2 {
  width: 350px; height: 350px; bottom: -60px; left: 10%;
  background: color-mix(in oklch, var(--color-primary) 8%, transparent);
  animation: ts-floatOrb 10s ease-in-out 2s infinite alternate-reverse;
}
.ts-hero-bg-orb {
  position: absolute; width: 200px; height: 200px;
  top: 25%; right: 8%; border-radius: 50%;
  background: color-mix(in oklch, var(--color-accent) 6%, transparent);
  border: 1px solid color-mix(in oklch, var(--color-accent) 10%, transparent);
  pointer-events: none; z-index: 0;
  animation: ts-floatOrb 8s ease-in-out 1s infinite alternate;
}

@keyframes ts-floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(20px, -30px) scale(1.08); }
}

.ts-hero-grid {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px;
  align-items: center; position: relative; z-index: 2;
  padding: 60px 0 80px;
}
.ts-hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 16px; border-radius: 100px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.02em;
  color: var(--color-accent);
  background: color-mix(in oklch, var(--color-accent) 8%, transparent);
  border: 1px solid color-mix(in oklch, var(--color-accent) 15%, transparent);
  margin-bottom: 24px;
  box-shadow: 0 2px 8px color-mix(in oklch, var(--color-accent) 8%, transparent);
}
.ts-hero-badge-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 6px var(--color-accent);
  animation: ts-badgePulse 2s ease-in-out infinite;
}
@keyframes ts-badgePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}
.ts-hero-title {
  font-size: 52px; line-height: 1.12; letter-spacing: -0.025em;
  font-weight: 700; color: var(--color-primary); margin-bottom: 22px;
}
.ts-hero-desc {
  font-size: 18px; line-height: 1.7; color: var(--color-text-secondary);
  max-width: 520px; margin-bottom: 36px;
}
.ts-hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 40px; }
.ts-btn-hero {
  padding: 15px 32px; font-size: 16px; border-radius: 12px;
  box-shadow:
    0 4px 14px color-mix(in oklch, var(--color-accent) 25%, transparent),
    0 1px 3px rgba(0,0,0,0.08);
}
.ts-btn-hero:hover {
  box-shadow:
    0 8px 28px color-mix(in oklch, var(--color-accent) 35%, transparent),
    0 2px 6px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}
.ts-trust-avatars { display: flex; }
.ts-trust-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600; color: #fff;
  border: 2.5px solid var(--color-surface);
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.ts-hero-trust { display: flex; align-items: center; gap: 14px; }
.ts-trust-text { font-size: 14px; color: var(--color-text-secondary); font-weight: 500; }

/* ── Hero Mockup ── */
.ts-mockup-wrap {
  perspective: 1200px;
  filter: drop-shadow(0 30px 60px rgba(0,0,0,0.12)) drop-shadow(0 8px 20px rgba(0,0,0,0.06));
}
.ts-mockup-window {
  border-radius: 16px; overflow: hidden;
  background: var(--color-card);
  border: 1px solid color-mix(in oklch, var(--color-border) 80%, var(--color-accent) 10%);
  box-shadow:
    0 0 0 1px color-mix(in oklch, var(--color-accent) 5%, transparent),
    inset 0 1px 0 rgba(255,255,255,0.6);
  transform: rotateY(-4deg) rotateX(2deg);
  transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}
.ts-mockup-window:hover { transform: rotateY(0deg) rotateX(0deg); }
.ts-mockup-titlebar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; background: var(--color-surface-alt);
  border-bottom: 1px solid var(--color-border);
}
.ts-mockup-dots { display: flex; gap: 7px; }
.ts-mockup-dots span { width: 10px; height: 10px; border-radius: 50%; }
.ts-mockup-url {
  font-size: 12px; color: var(--color-text-secondary);
  background: var(--color-card); padding: 4px 16px; border-radius: 6px;
  border: 1px solid var(--color-border);
}
.ts-mockup-body {
  display: grid; grid-template-columns: 200px 1px 1fr;
  min-height: 280px;
}
.ts-mockup-panel-left { padding: 16px; }
.ts-mockup-divider { background: var(--color-border); }
.ts-mockup-panel-right {
  padding: 20px; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
}
.ts-mockup-section-label {
  font-size: 11px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--color-text-secondary); margin-bottom: 10px;
}
.ts-mockup-file {
  display: flex; align-items: center; gap: 10px;
  padding: 10px; border-radius: 8px; background: var(--color-surface);
  margin-bottom: 8px; opacity: 0; transform: translateX(-12px);
  transition: all 0.4s ease;
}
.ts-mockup-file.visible { opacity: 1; transform: translateX(0); }
.ts-mockup-file-icon {
  width: 32px; height: 32px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  background: color-mix(in oklch, var(--color-accent) 10%, transparent);
}
.ts-mockup-file-icon.doc { background: color-mix(in oklch, #64748b 10%, transparent); }
.ts-mockup-file-name { font-size: 12px; font-weight: 600; color: var(--color-text); }
.ts-mockup-file-meta { font-size: 10px; color: var(--color-text-secondary); margin-top: 2px; }

.ts-mockup-empty {
  display: none; flex-direction: column; align-items: center; gap: 12px;
}
.ts-mockup-empty.active { display: flex; animation: ts-fadeIn 0.4s ease; }
.ts-mockup-analyzing {
  display: none; flex-direction: column; align-items: center; gap: 12px;
  width: 100%; max-width: 240px;
}
.ts-mockup-analyzing.active { display: flex; animation: ts-fadeIn 0.3s ease; }
.ts-mockup-spinner {
  width: 32px; height: 32px; border-radius: 50%;
  border: 3px solid var(--color-border);
  border-top-color: var(--color-accent);
  animation: ts-spin 0.8s linear infinite;
}
.ts-mockup-progress-bar {
  width: 100%; height: 6px; border-radius: 3px;
  background: var(--color-surface-alt); overflow: hidden;
}
.ts-mockup-progress-fill {
  height: 100%; border-radius: 3px; background: var(--color-accent);
}
.ts-mockup-analyzing.active .ts-mockup-progress-fill {
  animation: ts-progressFill 2s ease-out forwards;
}
.ts-mockup-results { display: none; width: 100%; }
.ts-mockup-results.active { display: block; animation: ts-fadeIn 0.4s ease; }
.ts-mockup-score-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--color-border);
}
.ts-mockup-score { display: flex; flex-direction: column; }
.ts-mockup-score-num {
  font-size: 28px; font-weight: 700; color: var(--color-accent);
  font-family: var(--font-heading); letter-spacing: -0.02em;
}
.ts-mockup-score-label { font-size: 11px; color: var(--color-text-secondary); }
.ts-mockup-score-tags { display: flex; gap: 6px; }
.ts-mockup-tag {
  font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 4px;
}
.ts-mockup-tag.ok { background: #dcfce7; color: #166534; }
.ts-mockup-tag.fail { background: #fee2e2; color: #991b1b; }
.ts-mockup-reqs { display: flex; flex-direction: column; gap: 6px; }
.ts-mockup-req {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 10px; border-radius: 6px; background: var(--color-surface);
  font-size: 12px;
}
.ts-mockup-results.active .ts-mockup-req {
  animation: ts-slideUp 0.3s ease both;
}
.ts-mockup-req-status {
  width: 20px; height: 20px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; flex-shrink: 0;
}
.ts-mockup-req-status.ok { background: #dcfce7; color: #166534; }
.ts-mockup-req-status.fail { background: #fee2e2; color: #991b1b; }
.ts-mockup-req-name { color: var(--color-text); font-weight: 500; }

/* ── Sections shared ── */
.ts-section { padding: 100px 0; }
.ts-process-bg { background: var(--color-surface-alt); }
.ts-section-header { text-align: center; margin-bottom: 56px; }
.ts-section-header h2 {
  font-size: 40px; line-height: 1.2; letter-spacing: -0.015em;
  color: var(--color-primary); margin-bottom: 14px;
}
.ts-section-sub {
  font-size: 17px; line-height: 1.6; color: var(--color-text-secondary);
  max-width: 580px; margin: 0 auto;
}

/* ── Stats — Animated Counters ── */
.ts-stats-v2 {
  background: linear-gradient(135deg, var(--color-primary) 0%, color-mix(in oklch, var(--color-primary) 85%, var(--color-accent)) 100%);
  padding: 90px 0;
  position: relative; overflow: hidden;
}
.ts-stats-v2::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 60% 50% at 80% 20%, rgba(255,255,255,0.04) 0%, transparent 60%);
}
.ts-stats-v2 .ts-section-header h2 { color: #fff; }
.ts-stats-v2 .ts-section-sub { color: rgba(255,255,255,0.55); }
.ts-stats-grid-v2 {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  position: relative; z-index: 1;
}
.ts-stat-card-v2 {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 18px; padding: 32px 24px;
  text-align: center;
  transition: all 0.4s ease;
  display: flex; flex-direction: column; align-items: center; gap: 20px;
}
.ts-stat-card-v2:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.18);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.2);
}

.ts-stat-ring-wrap {
  position: relative; width: 80px; height: 80px;
  display: flex; align-items: center; justify-content: center;
}
.ts-stat-ring-value {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 700; color: #fff;
  font-family: var(--font-heading); letter-spacing: -0.02em;
}
.ts-stat-ring-circle {
  fill: none; stroke: var(--color-accent);
  stroke-width: 5; stroke-linecap: round;
  stroke-dasharray: 235.6;
  stroke-dashoffset: 235.6;
  transition: stroke-dashoffset 2s ease-out;
  transform: rotate(-90deg);
  transform-origin: center;
}
.ts-stat-card-v2.visible .ts-stat-ring-circle {
  stroke-dashoffset: 35.34;
}

.ts-stat-bar-visual { width: 100%; }
.ts-stat-big-num {
  font-size: 36px; font-weight: 700; color: #fff;
  font-family: var(--font-heading); letter-spacing: -0.02em;
  line-height: 1; margin-bottom: 12px;
}
.ts-stat-unit {
  font-size: 20px; font-weight: 500; color: rgba(255,255,255,0.7);
}
.ts-stat-bar-track {
  width: 100%; height: 8px; border-radius: 4px;
  background: rgba(255,255,255,0.1); position: relative;
  overflow: hidden;
}
.ts-stat-bar-old {
  position: absolute; inset: 0;
  background: rgba(255,255,255,0.08); border-radius: 4px;
}
.ts-stat-bar-new {
  position: absolute; top: 0; left: 0; height: 100%; width: 0;
  background: var(--color-accent); border-radius: 4px;
  transition: width 2s ease-out 0.3s;
}
.ts-stat-card-v2.visible .ts-stat-bar-new { width: 8%; }
.ts-stat-bar-labels {
  display: flex; justify-content: space-between;
  font-size: 11px; color: rgba(255,255,255,0.45); margin-top: 6px;
}

.ts-stat-multi { text-align: center; }
.ts-stat-dots {
  display: flex; gap: 4px; justify-content: center; margin-top: 8px;
}
.ts-stat-dot { opacity: 0; transform: scale(0); transition: all 0.3s ease; }
.ts-stat-card-v2.visible .ts-stat-dot {
  opacity: 1; transform: scale(1);
}
.ts-stat-card-v2.visible .ts-stat-dot:nth-child(1) { transition-delay: 0.8s; }
.ts-stat-card-v2.visible .ts-stat-dot:nth-child(2) { transition-delay: 0.95s; }
.ts-stat-card-v2.visible .ts-stat-dot:nth-child(3) { transition-delay: 1.1s; }
.ts-stat-card-v2.visible .ts-stat-dot:nth-child(4) { transition-delay: 1.25s; }
.ts-stat-card-v2.visible .ts-stat-dot:nth-child(5) { transition-delay: 1.4s; }

.ts-stat-zero {
  display: flex; align-items: center; gap: 16px;
}
.ts-stat-zero-num {
  font-size: 48px; font-weight: 700; color: #fff;
  font-family: var(--font-heading); letter-spacing: -0.02em;
  line-height: 1;
}
.ts-stat-zero-shield {
  animation: ts-shieldPulse 2s ease-in-out infinite;
}
@keyframes ts-shieldPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

.ts-stat-info { text-align: center; }
.ts-stat-label-v2 {
  font-size: 16px; font-weight: 600; color: rgba(255,255,255,0.9);
  margin-bottom: 4px;
}
.ts-stat-desc-v2 {
  font-size: 13px; color: rgba(255,255,255,0.45); line-height: 1.5;
}

/* ── Features — Flip Cards ── */
.ts-features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.ts-flip-card-wrap { height: 300px; }
.ts-flip-card {
  width: 100%; height: 100%;
  perspective: 800px;
  cursor: pointer;
}
.ts-flip-inner {
  position: relative; width: 100%; height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.ts-flip-card:hover .ts-flip-inner { transform: rotateY(180deg); }

.ts-flip-front, .ts-flip-back {
  position: absolute; inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 16px;
  padding: 32px;
  display: flex; flex-direction: column;
  overflow: hidden;
}

.ts-flip-front {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  transition: box-shadow 0.3s ease;
}
.ts-flip-card:hover .ts-flip-front {
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}
.ts-flip-front-top {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: 20px;
}
.ts-feature-num {
  font-size: 40px; font-weight: 700;
  font-family: var(--font-heading);
  color: color-mix(in oklch, var(--color-accent) 18%, transparent);
  line-height: 1; letter-spacing: -0.03em;
}
.ts-feature-icon-wrap {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: color-mix(in oklch, var(--color-accent) 8%, transparent);
  color: var(--color-accent);
  flex-shrink: 0;
}
.ts-flip-front h3 {
  font-size: 19px; font-weight: 700; margin-bottom: 10px;
  color: var(--color-text); font-family: var(--font-body);
  line-height: 1.3;
}
.ts-flip-front p {
  font-size: 15px; line-height: 1.55; color: var(--color-text-secondary);
  flex: 1;
}
.ts-flip-hint {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--color-text-secondary);
  opacity: 0.5; margin-top: 12px;
  transition: opacity 0.3s;
}
.ts-flip-card:hover .ts-flip-hint { opacity: 0; }

.ts-flip-back {
  background: var(--color-primary);
  transform: rotateY(180deg);
  justify-content: center;
  box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}
.ts-flip-back-num {
  position: absolute; top: -10px; right: 16px;
  font-size: 100px; font-weight: 800;
  font-family: var(--font-heading);
  color: rgba(255,255,255,0.06);
  line-height: 1; pointer-events: none;
  letter-spacing: -0.04em;
}
.ts-flip-back h3 {
  font-size: 20px; font-weight: 700; margin-bottom: 14px;
  color: #fff; font-family: var(--font-body);
  position: relative; z-index: 1;
  line-height: 1.3;
}
.ts-flip-back p {
  font-size: 15px; line-height: 1.7;
  color: rgba(255,255,255,0.82);
  position: relative; z-index: 1;
}

/* ── Why TenScan — Bento Grid ── */
.ts-why-section {
  background: var(--color-primary);
  position: relative; overflow: hidden;
}
.ts-why-bg-dots {
  position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 30%, transparent 70%);
}
.ts-why-section .ts-section-header h2 { color: #fff; }
.ts-why-section .ts-section-sub { color: rgba(255,255,255,0.6); }
.ts-why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.ts-why-wide { grid-column: span 2; }
.ts-why-card {
  border-radius: 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 32px;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}
.ts-why-card::before {
  content: ''; position: absolute; inset: 0;
  border-radius: 16px; opacity: 0;
  background: var(--why-accent-bg);
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.ts-why-card::after {
  content: ''; position: absolute; inset: -1px;
  border-radius: 17px; opacity: 0;
  border: 1px solid var(--why-accent-border);
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.ts-why-card:hover::before { opacity: 1; }
.ts-why-card:hover::after { opacity: 1; }
.ts-why-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px var(--why-accent-glow);
  border-color: transparent;
}
.ts-why-card-inner {
  position: relative; z-index: 1;
  display: flex; gap: 20px; align-items: flex-start;
}
.ts-why-wide .ts-why-card-inner { align-items: center; }
.ts-why-icon {
  width: 56px; height: 56px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  flex-shrink: 0;
  color: var(--why-accent-icon);
  transition: all 0.4s ease;
}
.ts-why-card:hover .ts-why-icon {
  background: var(--why-accent-bg);
  border-color: var(--why-accent-border);
  transform: scale(1.08);
}
.ts-why-text { flex: 1; }
.ts-why-text h3 {
  font-size: 18px; font-weight: 700; margin-bottom: 8px;
  color: #fff; font-family: var(--font-body);
  line-height: 1.3;
}
.ts-why-text p {
  font-size: 14px; line-height: 1.65;
  color: rgba(255,255,255,0.55);
}
.ts-why-card:hover .ts-why-text p {
  color: rgba(255,255,255,0.72);
}

/* ── How It Works — Interactive Timeline ── */
.ts-process-section {
  background: var(--color-surface-alt);
  position: relative; overflow: hidden;
}
.ts-process-section::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 50% 60% at 80% 50%, color-mix(in oklch, var(--color-accent) 4%, transparent) 0%, transparent 70%);
}
.ts-process-layout {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px;
  align-items: start; position: relative;
}
.ts-process-steps { display: flex; flex-direction: column; }
.ts-process-step {
  display: flex; gap: 20px; cursor: pointer;
  padding: 4px 0;
}
.ts-process-step-indicator {
  display: flex; flex-direction: column; align-items: center;
  flex-shrink: 0; width: 44px;
}
.ts-process-step-dot {
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; font-family: var(--font-body);
  color: var(--color-text-secondary);
  background: var(--color-card);
  border: 2px solid var(--color-border);
  transition: all 0.35s ease;
  flex-shrink: 0;
}
.ts-process-step.active .ts-process-step-dot {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
  box-shadow: 0 4px 16px color-mix(in oklch, var(--color-accent) 30%, transparent);
  transform: scale(1.1);
}
.ts-process-step-line {
  width: 2px; flex: 1; min-height: 20px;
  background: var(--color-border);
  margin: 4px 0; position: relative;
  overflow: hidden;
}
.ts-process-step-line-fill {
  position: absolute; inset: 0;
  background: var(--color-accent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.5s ease;
}
.ts-process-step.completed .ts-process-step-line-fill {
  transform: scaleY(1);
}
.ts-process-step-content {
  padding: 8px 0 32px;
  transition: opacity 0.3s;
}
.ts-process-step-content h3 {
  font-size: 20px; font-weight: 700; margin-bottom: 8px;
  color: var(--color-text); font-family: var(--font-body);
  transition: color 0.3s;
}
.ts-process-step.active .ts-process-step-content h3 {
  color: var(--color-accent);
}
.ts-process-step-content p {
  font-size: 15px; line-height: 1.6; color: var(--color-text-secondary);
  margin-bottom: 12px;
}
.ts-process-step-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.ts-process-tag {
  padding: 3px 10px; border-radius: 5px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.02em;
  color: var(--color-accent);
  background: color-mix(in oklch, var(--color-accent) 8%, transparent);
  border: 1px solid color-mix(in oklch, var(--color-accent) 15%, transparent);
}

.ts-process-visual {
  position: sticky; top: 120px;
}
.ts-process-visual-card {
  border-radius: 20px;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  box-shadow:
    0 20px 50px rgba(0,0,0,0.06),
    0 1px 3px rgba(0,0,0,0.04),
    0 0 0 1px color-mix(in oklch, var(--color-accent) 4%, transparent);
  padding: 32px;
  min-height: 340px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}

.ts-step-visual {
  display: none;
  width: 100%;
  animation: ts-svFadeIn 0.4s ease both;
}
.ts-step-visual.active { display: block; }
@keyframes ts-svFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Step 1: Upload */
.ts-sv-dropzone { margin-bottom: 20px; }
.ts-sv-dropzone-border {
  border: 2px dashed color-mix(in oklch, var(--color-accent) 30%, transparent);
  border-radius: 14px; padding: 32px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  background: color-mix(in oklch, var(--color-accent) 3%, transparent);
  transition: border-color 0.3s;
}
.ts-sv-drop-text { font-size: 15px; font-weight: 600; color: var(--color-text); }
.ts-sv-drop-sub { font-size: 13px; color: var(--color-text-secondary); }
.ts-step-visual.active .ts-sv-file-appear {
  animation: ts-svSlideUp 0.5s ease 0.6s both;
}
@keyframes ts-svSlideUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.ts-sv-mini-file {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; border-radius: 12px;
  background: var(--color-surface); border: 1px solid var(--color-border);
}
.ts-sv-mini-file-icon {
  width: 36px; height: 36px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.ts-sv-fname { font-size: 13px; font-weight: 600; color: var(--color-text); }
.ts-sv-fmeta { font-size: 11px; color: var(--color-text-secondary); margin-top: 2px; }
.ts-sv-check {
  width: 28px; height: 28px; border-radius: 50%;
  background: #dcfce7; color: #16a34a;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; margin-left: auto;
}

/* Step 2: Documents */
.ts-sv-docs { display: flex; flex-direction: column; gap: 12px; }
.ts-sv-doc-row {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; border-radius: 12px;
  background: var(--color-surface); border: 1px solid var(--color-border);
  opacity: 0;
}
.ts-step-visual.active .ts-sv-doc-row {
  animation: ts-svSlideUp 0.4s ease both;
}
.ts-step-visual.active .ts-sv-doc-row:nth-child(1) { animation-delay: 0s; }
.ts-step-visual.active .ts-sv-doc-row:nth-child(2) { animation-delay: 0.15s; }
.ts-step-visual.active .ts-sv-doc-row:nth-child(3) { animation-delay: 0.3s; }
.ts-sv-progress-mini {
  width: 60px; height: 4px; border-radius: 2px;
  background: var(--color-surface-alt); overflow: hidden;
}
.ts-sv-progress-mini-fill {
  height: 100%; width: 0; border-radius: 2px;
  background: var(--color-accent);
}
.ts-step-visual.active .ts-sv-progress-mini-fill {
  animation: ts-progressFill 1.2s ease-out both;
}

/* Step 3: Analyzing */
.ts-sv-analyze { display: flex; flex-direction: column; gap: 20px; }
.ts-sv-analyze-header {
  display: flex; align-items: center; gap: 10px;
  font-size: 15px; font-weight: 600; color: var(--color-text);
}
.ts-sv-spinner-sm {
  width: 20px; height: 20px; border-radius: 50%;
  border: 2.5px solid var(--color-border);
  border-top-color: var(--color-accent);
  animation: ts-spin 0.8s linear infinite;
}
.ts-sv-analyze-lines { display: flex; flex-direction: column; gap: 10px; }
.ts-sv-analyze-line {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 10px;
  background: var(--color-surface);
  opacity: 0;
  position: relative; overflow: hidden;
}
.ts-step-visual.active .ts-sv-analyze-line {
  animation: ts-svSlideUp 0.35s ease both;
}
.ts-step-visual.active .ts-sv-analyze-line:nth-child(1) { animation-delay: 0s; }
.ts-step-visual.active .ts-sv-analyze-line:nth-child(2) { animation-delay: 0.3s; }
.ts-step-visual.active .ts-sv-analyze-line:nth-child(3) { animation-delay: 0.6s; }
.ts-step-visual.active .ts-sv-analyze-line:nth-child(4) { animation-delay: 0.9s; }
.ts-sv-scan-bar {
  position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--color-accent); border-radius: 2px;
  animation: ts-scanPulse 1.5s ease-in-out infinite;
}
@keyframes ts-scanPulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}
.ts-sv-req-text {
  font-size: 13px; font-weight: 500; color: var(--color-text); flex: 1;
}
.ts-sv-match-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #22c55e;
  opacity: 0;
}
.ts-step-visual.active .ts-sv-match-dot {
  animation: ts-dotAppear 0.3s ease 0.8s both;
}
@keyframes ts-dotAppear {
  from { transform: scale(0); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.ts-sv-analyze-progress { display: flex; flex-direction: column; gap: 6px; }
.ts-sv-analyze-bar {
  width: 100%; height: 6px; border-radius: 3px;
  background: var(--color-surface-alt); overflow: hidden;
}
.ts-sv-analyze-fill {
  height: 100%; width: 0; border-radius: 3px;
  background: var(--color-accent);
}
.ts-step-visual.active .ts-sv-analyze-fill {
  animation: ts-progressFill 3s ease-out forwards;
}
.ts-sv-analyze-pct {
  font-size: 12px; color: var(--color-text-secondary);
}

/* Step 4: Report */
.ts-sv-report { display: flex; flex-direction: column; gap: 20px; }
.ts-sv-report-header {
  text-align: center; padding-bottom: 16px;
  border-bottom: 1px solid var(--color-border);
}
.ts-sv-report-score {
  font-size: 56px; font-weight: 700; color: var(--color-accent);
  font-family: var(--font-heading); line-height: 1; letter-spacing: -0.03em;
}
.ts-sv-report-score span { font-size: 28px; }
.ts-sv-report-label {
  font-size: 14px; color: var(--color-text-secondary); margin-top: 4px;
}
.ts-sv-report-bars { display: flex; flex-direction: column; gap: 10px; }
.ts-sv-bar-row {
  display: flex; align-items: center; gap: 10px;
}
.ts-sv-bar-label {
  font-size: 13px; font-weight: 500; color: var(--color-text-secondary);
  width: 85px; flex-shrink: 0;
}
.ts-sv-bar-track {
  flex: 1; height: 8px; border-radius: 4px;
  background: var(--color-surface-alt); overflow: hidden;
}
.ts-sv-bar-fill {
  height: 100%; width: 0; border-radius: 4px;
}
.ts-step-visual.active .ts-sv-bar-fill {
  animation: ts-barGrow 0.8s ease both forwards;
}
.ts-step-visual.active .ts-sv-bar-fill:nth-of-type(1) { animation-delay: 0s; }
@keyframes ts-barGrow {
  from { width: 0; }
  to { width: var(--bar-target-width, 0%); }
}
.ts-sv-bar-pct {
  font-size: 13px; font-weight: 600; color: var(--color-text);
  width: 36px; text-align: right;
}
.ts-sv-export-row {
  display: flex; gap: 10px; padding-top: 8px;
}
.ts-sv-export-btn {
  flex: 1; padding: 10px; border-radius: 8px;
  font-size: 13px; font-weight: 600; text-align: center;
  background: var(--color-accent); color: #fff;
  cursor: pointer;
}
.ts-sv-export-alt {
  background: transparent; color: var(--color-text);
  border: 1px solid var(--color-border);
}

/* ── Reviews ── */
.ts-reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ts-review-card {
  padding: 32px; border-radius: 14px; background: var(--color-card);
  border: 1px solid var(--color-border); transition: all 0.3s ease;
}
.ts-review-card:hover { box-shadow: 0 6px 24px rgba(0,0,0,0.06); }
.ts-review-stars {
  color: #f59e0b; font-size: 16px; letter-spacing: 2px; margin-bottom: 14px;
}
.ts-review-text {
  font-size: 15px; line-height: 1.65; color: var(--color-text);
  font-style: italic; margin-bottom: 20px;
}
.ts-review-author { display: flex; align-items: center; gap: 12px; }
.ts-review-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 600; color: #fff;
}
.ts-review-name { font-size: 14px; font-weight: 600; color: var(--color-text); }
.ts-review-role { font-size: 13px; color: var(--color-text-secondary); }

/* ── Pricing ── */
.ts-pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 960px; margin: 0 auto; }
.ts-pricing-card {
  padding: 36px 28px; border-radius: 16px; background: var(--color-card);
  border: 1px solid var(--color-border); text-align: center;
  transition: all 0.3s ease; position: relative;
}
.ts-pricing-card:hover { box-shadow: 0 8px 30px rgba(0,0,0,0.08); transform: translateY(-3px); }
.ts-pricing-card.popular {
  border-color: var(--color-accent);
  box-shadow: 0 4px 24px color-mix(in oklch, var(--color-accent) 15%, transparent);
}
.ts-pricing-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  padding: 4px 16px; border-radius: 100px;
  background: var(--color-accent); color: #fff;
  font-size: 12px; font-weight: 600; white-space: nowrap;
}
.ts-pricing-name {
  font-size: 18px; font-weight: 700; color: var(--color-text);
  margin-bottom: 16px; font-family: var(--font-body);
}
.ts-pricing-amount {
  font-size: 42px; font-weight: 700; font-family: var(--font-heading);
  color: var(--color-primary); letter-spacing: -0.02em;
}
.ts-pricing-currency { font-size: 20px; color: var(--color-text-secondary); }
.ts-pricing-per {
  font-size: 14px; color: var(--color-text-secondary); margin-top: 4px;
}
.ts-pricing-docs {
  font-size: 15px; font-weight: 600; color: var(--color-text);
  margin: 16px 0; padding: 12px 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
.ts-pricing-features {
  list-style: none; text-align: left; margin: 20px 0 28px;
  display: flex; flex-direction: column; gap: 10px;
}
.ts-pricing-features li {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; color: var(--color-text-secondary);
}

/* ── FAQ ── */
.ts-faq-container { max-width: 780px; }
.ts-faq-list { display: flex; flex-direction: column; gap: 10px; }
.ts-faq-item {
  border: 1px solid var(--color-border); border-radius: 12px;
  background: var(--color-card); overflow: hidden;
  transition: all 0.3s ease;
}
.ts-faq-item:hover { border-color: color-mix(in oklch, var(--color-accent) 30%, transparent); }
.ts-faq-q {
  width: 100%; padding: 20px 24px; border: none; background: none;
  display: flex; justify-content: space-between; align-items: center;
  cursor: pointer; font-size: 16px; font-weight: 600;
  color: var(--color-text); font-family: var(--font-body);
  text-align: left; gap: 16px;
}
.ts-faq-chevron {
  flex-shrink: 0; transition: transform 0.3s ease;
  color: var(--color-text-secondary);
}
.ts-faq-item.open .ts-faq-chevron { transform: rotate(180deg); }
.ts-faq-a {
  max-height: 0; overflow: hidden; transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 24px;
}
.ts-faq-item.open .ts-faq-a {
  max-height: 400px; padding: 0 24px 20px;
}
.ts-faq-a p {
  font-size: 15px; line-height: 1.65; color: var(--color-text-secondary);
}

/* ── CTA ── */
.ts-cta-section {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
  text-align: center;
}
.ts-cta-inner h2 {
  font-size: 40px; color: #fff; margin-bottom: 16px;
}
.ts-cta-inner p {
  font-size: 18px; color: rgba(255,255,255,0.8); margin-bottom: 32px;
}
.ts-cta-actions { display: flex; justify-content: center; gap: 16px; }
.ts-cta-note {
  font-size: 14px; color: rgba(255,255,255,0.6); margin-top: 20px;
}

/* ── Footer ── */
.ts-footer {
  padding: 40px 0; border-top: 1px solid var(--color-border);
  background: var(--color-surface);
}
.ts-footer-inner {
  display: flex; justify-content: space-between; align-items: center;
  gap: 24px; flex-wrap: wrap;
}
.ts-footer-left { display: flex; flex-direction: column; gap: 8px; }
.ts-footer-copy { font-size: 13px; color: var(--color-text-secondary); }
.ts-footer-links { display: flex; gap: 24px; }
.ts-footer-links a {
  font-size: 14px; color: var(--color-text-secondary);
  text-decoration: none; transition: color 0.2s;
}
.ts-footer-links a:hover { color: var(--color-accent); }

/* ── Scroll reveal ── */
.ts-reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.ts-reveal.visible { opacity: 1; transform: translateY(0); }

/* ── Shared keyframes ── */
@keyframes ts-fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes ts-spin { to { transform: rotate(360deg); } }
@keyframes ts-progressFill { from { width: 0; } to { width: 100%; } }
@keyframes ts-slideUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .ts-hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .ts-hero-title { font-size: 42px; }
  .ts-features-grid { grid-template-columns: repeat(2, 1fr); }
  .ts-why-grid { grid-template-columns: repeat(2, 1fr); }
  .ts-why-wide { grid-column: span 2; }
  .ts-stats-grid-v2 { grid-template-columns: repeat(2, 1fr); }
  .ts-reviews-grid { grid-template-columns: 1fr; }
  .ts-pricing-grid { grid-template-columns: 1fr; max-width: 480px; }
  .ts-process-layout { grid-template-columns: 1fr; gap: 40px; }
  .ts-process-visual { position: static; }
}

@media (max-width: 768px) {
  .ts-container { padding: 0 20px; }
  .ts-header-inner { padding: 0 20px; }
  .ts-nav { display: none; }
  .ts-mobile-menu-btn { display: flex; }
  .ts-auth-buttons .ts-btn-login { display: none; }
  .ts-hero-title { font-size: 34px; }
  .ts-hero-desc { font-size: 16px; }
  .ts-section { padding: 60px 0; }
  .ts-section-header h2 { font-size: 30px; }
  .ts-features-grid { grid-template-columns: 1fr; }
  .ts-why-grid { grid-template-columns: 1fr; }
  .ts-why-wide { grid-column: auto; }
  .ts-stats-grid-v2 { grid-template-columns: 1fr; }
  .ts-cta-inner h2 { font-size: 30px; }
  .ts-footer-inner { flex-direction: column; text-align: center; }
}

/* ── Решения dropdown ── */
.ts-nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.ts-nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: var(--color-text-secondary);
  transition: color 0.2s;
}
.ts-nav-dropdown-toggle:hover { color: var(--color-text); }
.ts-nav-dropdown-toggle svg { transition: transform 0.2s ease; }
.ts-nav-dropdown:hover .ts-nav-dropdown-toggle svg,
.ts-nav-dropdown:focus-within .ts-nav-dropdown-toggle svg {
  transform: rotate(180deg);
}
.ts-nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 8px;
  min-width: 280px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
  display: none;
  z-index: 100;
}
.ts-nav-dropdown:hover .ts-nav-dropdown-menu,
.ts-nav-dropdown:focus-within .ts-nav-dropdown-menu {
  display: block;
}
.ts-nav-dropdown-menu a {
  display: block;
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--color-text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  transition: background 0.15s ease, color 0.15s ease;
}
.ts-nav-dropdown-menu a:hover {
  background: var(--color-surface-alt);
  color: var(--color-accent);
}
.ts-nav-dropdown-menu a small {
  display: block;
  font-size: 12px;
  color: var(--color-text-secondary);
  margin-top: 2px;
  font-weight: 400;
}

/* ── Мобильный лейбл «Решения» ── */
.ts-mobile-nav-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--color-text-secondary);
  padding-top: 8px;
  border-top: 1px solid var(--color-border);
  margin-top: 8px;
}

/* ── Колонка футера ── */
.ts-footer-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ts-footer-col-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 4px;
}
.ts-footer-col a {
  color: var(--color-text-secondary);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}
.ts-footer-col a:hover { color: var(--color-accent); }

/* ════════════════════════════════════════════════════════════
   Landing Pages (LP) — посадочные /sootvetstvie-tovara-tz и др.
   ════════════════════════════════════════════════════════════ */

.ts-lp { display: block; }

/* Hero */
.ts-lp-hero {
  padding: 120px 0 80px;
  background: linear-gradient(180deg, var(--color-surface) 0%, transparent 100%);
}
.ts-lp-hero-inner {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
}
.ts-lp-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-secondary);
  margin-bottom: 24px;
}
.ts-lp-hero-eyebrow::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--color-accent);
}
.ts-lp-hero h1 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 52px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--color-text);
  margin: 0 0 24px;
  font-weight: 700;
}
.ts-lp-hero-lead {
  font-size: 19px;
  line-height: 1.55;
  color: var(--color-text-secondary);
  max-width: 720px;
  margin: 0 auto 36px;
}
.ts-lp-hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Контентная секция */
.ts-lp-section {
  padding: 64px 0;
}
.ts-lp-section-narrow {
  max-width: 880px;
  margin: 0 auto;
}
.ts-lp-section h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 36px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--color-text);
  margin: 0 0 20px;
  font-weight: 700;
}
.ts-lp-section h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--color-text);
  margin: 0 0 12px;
}
.ts-lp-section p {
  font-size: 17px;
  line-height: 1.65;
  color: var(--color-text);
  margin: 0 0 16px;
}
.ts-lp-section p:last-child { margin-bottom: 0; }
.ts-lp-section a { color: var(--color-accent); }

/* Боль (3 карточки) */
.ts-lp-pain {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 32px;
}
.ts-lp-pain-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 24px;
}
.ts-lp-pain-card-icon {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(239, 68, 68, 0.08);
  color: #ef4444;
  border-radius: 10px;
  margin-bottom: 14px;
}
.ts-lp-pain-card h3 {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 8px;
  line-height: 1.35;
}
.ts-lp-pain-card p {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.55;
  margin: 0;
}

/* Шаги */
.ts-lp-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  counter-reset: lp-step;
}
.ts-lp-step {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 28px 24px 24px;
  counter-increment: lp-step;
  position: relative;
}
.ts-lp-step::before {
  content: counter(lp-step, decimal-leading-zero);
  position: absolute;
  top: 16px; right: 22px;
  font-size: 32px;
  font-weight: 700;
  color: var(--color-surface-alt);
  font-family: "Playfair Display", Georgia, serif;
  line-height: 1;
}
.ts-lp-step h3 {
  font-size: 17px;
  margin: 0 0 8px;
  max-width: calc(100% - 50px);
}
.ts-lp-step p {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.55;
  margin: 0;
}

/* Чек-лист */
.ts-lp-checklist {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ts-lp-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--color-text);
}
.ts-lp-checklist li::before {
  content: "✓";
  flex-shrink: 0;
  width: 22px; height: 22px;
  display: inline-flex;
  align-items: center; justify-content: center;
  background: rgba(34, 197, 94, 0.14);
  color: #16a34a;
  border-radius: 50%;
  font-weight: 700;
  font-size: 13px;
  margin-top: 1px;
}

/* Цитата / кейс */
.ts-lp-quote {
  background: var(--color-surface-alt);
  border-left: 3px solid var(--color-accent);
  padding: 20px 24px;
  border-radius: 0 10px 10px 0;
  margin: 24px 0;
}
.ts-lp-quote p {
  font-size: 17px;
  font-style: italic;
  color: var(--color-text);
  margin: 0;
  line-height: 1.55;
}

/* Финальный CTA */
.ts-lp-final-cta {
  background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  border-radius: 24px;
  padding: 56px 40px;
  text-align: center;
  margin: 40px 0 64px;
  color: #fff;
}
.ts-lp-final-cta h2 {
  color: #fff !important;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 36px;
  line-height: 1.2;
  margin: 0 0 16px;
  font-weight: 700;
}
.ts-lp-final-cta p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 17px;
  max-width: 540px;
  margin: 0 auto 28px;
  line-height: 1.55;
}
.ts-lp-final-cta .ts-btn-primary {
  background: #fff;
  color: var(--color-accent);
}
.ts-lp-final-cta .ts-btn-primary:hover {
  background: var(--color-surface);
  color: var(--color-accent);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Product preview — стилизованное окно со скриншотом */
.ts-lp-preview {
  margin: 28px 0 8px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-card);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}
.ts-lp-preview-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--color-surface-alt);
  border-bottom: 1px solid var(--color-border);
}
.ts-lp-preview-dots {
  display: flex;
  gap: 6px;
}
.ts-lp-preview-dots span {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--color-border);
}
.ts-lp-preview-dots span:nth-child(1) { background: #ff5f57; }
.ts-lp-preview-dots span:nth-child(2) { background: #febc2e; }
.ts-lp-preview-dots span:nth-child(3) { background: #28c840; }
.ts-lp-preview-url {
  flex: 1;
  text-align: center;
  font-size: 12px;
  color: var(--color-text-secondary);
  font-family: "SF Mono", Consolas, monospace;
}
.ts-lp-preview-img {
  display: block;
  width: 100%;
  height: auto;
  background: #0d1117;
}
.ts-lp-preview-caption {
  margin-top: 10px;
  font-size: 13px;
  color: var(--color-text-secondary);
  text-align: center;
  font-style: italic;
}

/* Адаптив */
@media (max-width: 768px) {
  .ts-lp-hero { padding: 80px 0 48px; }
  .ts-lp-hero h1 { font-size: 34px; }
  .ts-lp-hero-lead { font-size: 17px; }
  .ts-lp-pain { grid-template-columns: 1fr; }
  .ts-lp-steps { grid-template-columns: 1fr; }
  .ts-lp-section { padding: 48px 0; }
  .ts-lp-section h2 { font-size: 28px; }
  .ts-lp-final-cta { padding: 40px 24px; }
  .ts-lp-final-cta h2 { font-size: 26px; }
  .ts-lp-preview-url { font-size: 11px; }
}
