:root {
  --td-primary: #2563eb;
  --td-primary-dark: #1d4ed8;
  --td-primary-light: #eff6ff;
  --td-accent: #0ea5e9;
  --td-dark: #0f172a;
  --td-dark-2: #1e293b;
  --td-text: #1e293b;
  --td-muted: #64748b;
  --td-border: #e2e8f0;
  --td-bg-light: #f8fafc;
  --td-white: #ffffff;
  --td-success: #10b981;
  --td-radius: 12px;
  --td-radius-sm: 8px;
  --td-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
  --td-shadow-lg: 0 20px 48px rgba(15, 23, 42, 0.14);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  margin: 0;
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--td-text);
  background-color: var(--td-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font-family: inherit;
}

.td-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.td-section {
  padding: 88px 0;
}

.td-section-title {
  margin: 0 0 12px;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--td-dark);
  letter-spacing: -0.02em;
}

.td-section-desc {
  margin: 0;
  font-size: 1.05rem;
  color: var(--td-muted);
  max-width: 680px;
}

.td-section-head-center {
  text-align: center;
  margin-bottom: 48px;
}

.td-section-head-center .td-section-desc {
  margin: 0 auto;
}

/* NAVBAR */
.td-navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--td-border);
}

.td-navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.td-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--td-dark);
}

.td-brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--td-primary), var(--td-accent));
  color: var(--td-white);
  font-weight: 800;
  font-size: 0.95rem;
}

.td-nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.td-nav-links a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--td-text);
  transition: color 0.2s ease;
}

.td-nav-links a:hover {
  color: var(--td-primary);
}

.td-btn-login {
  padding: 9px 18px;
  border-radius: var(--td-radius-sm);
  border: 1px solid var(--td-border);
  background: var(--td-bg-light);
}

.td-mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 6px;
}

.td-mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--td-dark);
}

.td-mobile-menu {
  display: none;
  flex-direction: column;
  gap: 14px;
  padding: 18px 24px 24px;
  border-top: 1px solid var(--td-border);
  background: var(--td-white);
}

.td-mobile-menu.is-open {
  display: flex;
}

/* BUTTONS */
.td-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  border-radius: var(--td-radius-sm);
  font-weight: 700;
  font-size: 0.95rem;
  border: 0;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.td-btn-primary {
  background: linear-gradient(135deg, var(--td-primary), var(--td-primary-dark));
  color: var(--td-white);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.28);
}

.td-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.35);
}

.td-btn-outline {
  border: 1.5px solid var(--td-border);
  color: var(--td-dark);
  background: var(--td-white);
}

.td-btn-outline:hover {
  border-color: var(--td-primary);
  color: var(--td-primary);
}

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

/* 1. HERO */
.td-hero {
  padding: 76px 0 88px;
  background: radial-gradient(circle at top right, rgba(37, 99, 235, 0.08), transparent 55%),
              linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.td-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.td-hero-title {
  margin: 0 0 20px;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.td-hero-title span {
  display: block;
  font-size: clamp(2.4rem, 4.5vw, 3.75rem);
  font-weight: 400;
  color: var(--td-dark-2);
}

.td-hero-title strong {
  display: block;
  font-size: clamp(2.5rem, 4.8vw, 4rem);
  font-weight: 800;
  color: var(--td-primary);
}

.td-hero-subtitle {
  margin: 0 0 32px;
  font-size: 1.1rem;
  color: var(--td-muted);
  max-width: 540px;
}

.td-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.td-showcase-card {
  background: var(--td-white);
  border: 1px solid var(--td-border);
  border-radius: var(--td-radius);
  box-shadow: var(--td-shadow-lg);
  overflow: hidden;
}

.td-showcase-topbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  background: var(--td-dark);
  color: #cbd5e1;
  font-size: 0.82rem;
  font-weight: 600;
}

.td-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.td-dot-red { background: #ef4444; }
.td-dot-yellow { background: #f59e0b; }
.td-dot-green { background: #10b981; }
.td-showcase-label { margin-left: 6px; }

.td-showcase-body {
  padding: 24px;
}

.td-metric-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-radius: var(--td-radius-sm);
  background: var(--td-primary-light);
  color: var(--td-primary-dark);
  margin-bottom: 18px;
  font-size: 0.9rem;
}

.td-preview-rows {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.td-preview-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--td-border);
  border-radius: var(--td-radius-sm);
}

.td-preview-row strong {
  display: block;
  font-size: 0.92rem;
  color: var(--td-dark);
}

.td-preview-row small {
  color: var(--td-muted);
  font-size: 0.8rem;
}

.td-badge {
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}

.td-badge-success { background: #dcfce7; color: #15803d; }
.td-badge-primary { background: #dbeafe; color: #1d4ed8; }
.td-badge-neutral { background: #f1f5f9; color: #334155; }

/* 2. PERFORMANCE CAROUSEL */
.td-carousel-section {
  background: var(--td-bg-light);
  border-top: 1px solid var(--td-border);
  border-bottom: 1px solid var(--td-border);
}

.td-carousel-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 36px;
}

.td-counter {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--td-primary);
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.td-slider-controls {
  display: flex;
  gap: 10px;
}

.td-arrow-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--td-border);
  background: var(--td-white);
  color: var(--td-dark);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.td-arrow-btn:hover {
  background: var(--td-primary);
  color: var(--td-white);
  border-color: var(--td-primary);
}

.td-carousel-stage {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.td-slide-card {
  background: var(--td-white);
  border: 1px solid var(--td-border);
  border-radius: var(--td-radius);
  padding: 24px;
  box-shadow: var(--td-shadow);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.td-slide-card.is-active {
  border-color: var(--td-primary);
  transform: translateY(-3px);
}

.td-slide-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--td-primary);
  margin-bottom: 10px;
}

.td-slide-card h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
  color: var(--td-dark);
}

.td-slide-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--td-muted);
}

/* 3. ALL-IN-ONE ACCORDION */
.td-accordion-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
  align-items: start;
}

.td-accordion-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.td-accordion-item {
  border: 1px solid var(--td-border);
  border-radius: var(--td-radius);
  background: var(--td-white);
  overflow: hidden;
}

.td-accordion-item.is-open {
  border-color: var(--td-primary);
  box-shadow: var(--td-shadow);
}

.td-accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  background: transparent;
  border: 0;
  text-align: left;
  cursor: pointer;
}

.td-acc-tag {
  display: block;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--td-primary);
  margin-bottom: 2px;
}

.td-accordion-trigger strong {
  font-size: 1.02rem;
  color: var(--td-dark);
}

.td-acc-toggle {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--td-muted);
}

.td-accordion-panel {
  display: none;
  padding: 0 20px 18px;
  color: var(--td-muted);
  font-size: 0.95rem;
}

.td-accordion-item.is-open .td-accordion-panel {
  display: block;
}

.td-preview-box {
  background: var(--td-dark);
  color: var(--td-white);
  border-radius: var(--td-radius);
  padding: 32px;
  box-shadow: var(--td-shadow-lg);
  position: sticky;
  top: 100px;
}

.td-preview-kicker {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  color: #60a5fa;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}

.td-preview-box h3 {
  margin: 0 0 12px;
  font-size: 1.5rem;
}

.td-preview-box p {
  margin: 0 0 24px;
  color: #cbd5e1;
  font-size: 0.96rem;
}

.td-preview-visual-bar {
  height: 8px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 18px;
}

.td-bar-fill {
  width: 78%;
  height: 100%;
  background: linear-gradient(90deg, var(--td-primary), var(--td-accent));
}

.td-preview-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: #94a3b8;
}

/* 4. STATS */
.td-stats-section {
  background: linear-gradient(135deg, var(--td-dark) 0%, var(--td-dark-2) 100%);
  color: var(--td-white);
}

.td-stats-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 32px;
  align-items: center;
  text-align: center;
}

.td-stat-label {
  display: block;
  font-size: 0.9rem;
  color: #94a3b8;
  margin-bottom: 8px;
}

.td-stat-number {
  display: block;
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 800;
  color: var(--td-white);
  letter-spacing: -0.02em;
}

.td-stat-sub {
  display: block;
  font-size: 0.85rem;
  color: #60a5fa;
  margin-top: 6px;
  font-weight: 600;
}

.td-stat-divider {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.td-stem {
  width: 2px;
  height: 26px;
  background: rgba(255, 255, 255, 0.25);
}

.td-stem-badge {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--td-primary);
  color: var(--td-white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
}

/* 5. TESTIMONIALS */
.td-testimonials-section {
  background: var(--td-bg-light);
}

.td-inline-link {
  display: inline-block;
  margin-top: 14px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--td-primary);
}

.td-testimonial-card {
  background: var(--td-white);
  border: 1px solid var(--td-border);
  border-radius: var(--td-radius);
  padding: 32px;
  box-shadow: var(--td-shadow);
}

.td-quote-text {
  margin: 0 0 18px;
  font-size: 1.08rem;
  color: var(--td-dark);
  font-weight: 500;
}

.td-quote-author {
  font-size: 0.9rem;
  color: var(--td-muted);
  font-weight: 700;
}

/* 6. COMPARISON TABLE */
.td-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--td-border);
  border-radius: var(--td-radius);
  box-shadow: var(--td-shadow);
}

.td-comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  min-width: 560px;
}

.td-comparison-table th,
.td-comparison-table td {
  padding: 18px 24px;
  border-bottom: 1px solid var(--td-border);
}

.td-comparison-table th {
  background: var(--td-bg-light);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--td-dark);
}

.td-col-us {
  background: #eff6ff !important;
  color: var(--td-primary-dark) !important;
}

.td-val-us {
  background: rgba(37, 99, 235, 0.04);
  font-weight: 700;
}

.td-pill-builtin {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: #dcfce7;
  color: #15803d;
  font-size: 0.82rem;
  font-weight: 700;
}

.td-val-them {
  color: var(--td-muted);
  font-weight: 600;
}

.td-val-unavailable {
  color: #94a3b8;
  font-style: italic;
}

/* 7. CRM UPGRADED */
.td-crmup-section {
  background: var(--td-bg-light);
}

.td-crmup-top {
  margin-bottom: 40px;
}

.td-crmup-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.td-crmup-steps {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.td-step-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  text-align: left;
  padding: 14px 18px;
  border-radius: var(--td-radius-sm);
  border: 1px solid var(--td-border);
  background: var(--td-white);
  color: var(--td-dark);
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.td-step-btn.is-active {
  background: var(--td-primary);
  color: var(--td-white);
  border-color: var(--td-primary);
}

.td-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.08);
  font-size: 0.8rem;
  font-weight: 800;
  flex-shrink: 0;
}

.td-step-btn.is-active .td-step-num {
  background: rgba(255, 255, 255, 0.22);
  color: var(--td-white);
}

.td-crmup-detail {
  background: var(--td-white);
  border: 1px solid var(--td-border);
  border-radius: var(--td-radius);
  padding: 32px;
  box-shadow: var(--td-shadow);
  position: sticky;
  top: 100px;
}

.td-crmup-detail h3 {
  margin: 0 0 12px;
  font-size: 1.4rem;
  color: var(--td-dark);
}

.td-crmup-detail p {
  margin: 0;
  color: var(--td-muted);
  font-size: 0.98rem;
}

/* 8. GET STARTED FORM */
.td-cta-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  background: var(--td-white);
  border: 1px solid var(--td-border);
  border-radius: var(--td-radius);
  padding: 44px;
  box-shadow: var(--td-shadow-lg);
}

.td-cta-copy h2 {
  margin: 0 0 12px;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--td-dark);
}

.td-cta-copy p {
  margin: 0 0 16px;
  color: var(--td-muted);
}

.td-call-line {
  font-size: 0.95rem;
  color: var(--td-dark) !important;
}

.td-callback-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.td-form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.td-form-row label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--td-dark);
}

.td-form-row input {
  padding: 12px 14px;
  border-radius: var(--td-radius-sm);
  border: 1px solid var(--td-border);
  font-size: 0.95rem;
}

.td-form-row input:focus {
  outline: none;
  border-color: var(--td-primary);
}

.td-captcha-box {
  padding: 12px 14px;
  border-radius: var(--td-radius-sm);
  background: var(--td-bg-light);
  border: 1px solid var(--td-border);
}

.td-captcha-check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
}

.td-error-msg {
  display: none;
  color: #dc2626;
  font-size: 0.8rem;
  font-weight: 700;
  margin-top: 6px;
}

.td-error-msg.is-visible {
  display: block;
}

.td-form-success {
  display: none;
  padding: 14px;
  border-radius: var(--td-radius-sm);
  background: #dcfce7;
  color: #15803d;
  font-size: 0.9rem;
  font-weight: 700;
}

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

/* 9. FOOTER */
.td-footer {
  background: var(--td-dark);
  color: #cbd5e1;
  padding: 64px 0 32px;
}

.td-footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 36px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.td-footer .td-brand-text {
  color: var(--td-white);
}

.td-did-you-know {
  margin: 20px 0 0;
  padding: 16px;
  border-radius: var(--td-radius-sm);
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.td-did-you-know span {
  font-size: 0.78rem;
  color: #94a3b8;
  text-transform: uppercase;
  font-weight: 700;
}

.td-did-you-know strong {
  font-size: 1.4rem;
  color: #60a5fa;
}

.td-did-you-know small {
  font-size: 0.84rem;
  color: #cbd5e1;
}

.td-footer-col h4 {
  margin: 0 0 14px;
  font-size: 0.95rem;
  color: var(--td-white);
}

.td-footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.td-footer-col a {
  font-size: 0.88rem;
  color: #94a3b8;
  transition: color 0.2s ease;
}

.td-footer-col a:hover {
  color: var(--td-white);
}

.td-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  font-size: 0.84rem;
  color: #94a3b8;
}

.td-footer-mark {
  font-weight: 800;
  color: var(--td-white);
}

/* RESPONSIVE */
@media (max-width: 960px) {
  .td-hero-grid,
  .td-accordion-layout,
  .td-crmup-grid,
  .td-cta-box,
  .td-footer-top {
    grid-template-columns: 1fr;
  }

  .td-carousel-stage {
    grid-template-columns: 1fr;
  }

  .td-stats-grid {
    grid-template-columns: 1fr;
  }

  .td-stat-divider {
    flex-direction: row;
    justify-content: center;
  }

  .td-stem {
    width: 26px;
    height: 2px;
  }

  .td-preview-box,
  .td-crmup-detail {
    position: static;
  }
}

@media (max-width: 768px) {
  .td-nav-links {
    display: none;
  }

  .td-mobile-toggle {
    display: flex;
  }

  .td-cta-box {
    padding: 28px 20px;
  }
}
