/* ════════════════════════════════════════════════
   Trade Diary – Landing Page Styles (Redesign 2025)
   Dark-first design. Drop-in replacement for
   assets/css/test/landingStyle.css
   ════════════════════════════════════════════════ */

/* ── DESIGN TOKENS ── */
:root {
  --primary: #4f46e5;
  --primary-light: #6366f1;
  --primary-glow: rgba(99, 102, 241, 0.15);
  --accent: #10b981;
  --accent-glow: rgba(16, 185, 129, 0.15);
  --danger: #ef4444;
  --warning: #f59e0b;
  --bg: #06060f;
  --bg-card: #0e0e1f;
  --bg-card2: #12122a;
  --border: rgba(99, 102, 241, 0.15);
  --border-subtle: rgba(255, 255, 255, 0.06);
  --text: #f1f1ff;
  --text-muted: #8b8baa;
  --text-dim: #5a5a7a;
  --radius: 16px;
  --radius-sm: 10px;
  /* legacy compat */
  --primary-dark: #6366f1;
}

/* ── RESET & BASE ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* subtle noise texture */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.3;
}

.mesh-bg {
  display: none;
}

/* ── NAV ── */
header,
nav#td-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0 16px;
  background: rgba(6, 6, 15, 0.82) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle) !important;
  box-shadow: none !important;
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}
.logo-icon {
  width: 36px;
  height: 36px;
  background: var(--primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.4);
}
.nav-logo > span {
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.3px;
}
.nav-links-list {
  display: flex;
  gap: 4px;
  list-style: none;
}
.nav-links-list a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: 8px;
  transition:
    color 0.2s,
    background 0.2s;
}
.nav-links-list a:hover {
  color: var(--text);
  background: var(--border-subtle);
}
.btn-nav-login {
  background: var(--primary) !important;
  color: #fff !important;
  padding: 8px 20px !important;
  border-radius: 10px !important;
  transition:
    background 0.2s,
    transform 0.2s !important;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.btn-nav-login:hover {
  transform: translateY(-1px);
  background: var(--primary-light) !important;
}

/* dark-mode toggle in nav */
.nav-toggle-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}
.toggle-checkbox {
  display: none;
}
.toggle-label {
  display: inline-block;
  width: 40px;
  height: 22px;
  background: var(--border-subtle);
  border-radius: 100px;
  cursor: pointer;
  position: relative;
  transition: background 0.3s;
  border: 1px solid var(--border);
}
.toggle-label::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  background: var(--text-muted);
  border-radius: 50%;
  transition:
    transform 0.3s,
    background 0.3s;
}
.toggle-checkbox:checked + .toggle-label {
  background: var(--primary);
}
.toggle-checkbox:checked + .toggle-label::after {
  transform: translateX(18px);
  background: #fff;
}

/* mobile menu button */
#mobile-menu-button {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 20px;
  cursor: pointer;
  padding: 6px;
  display: none;
}
#mobile-menu {
  display: none;
  background: var(--bg-card);
  border-top: 1px solid var(--border-subtle);
  padding: 12px 16px 20px;
}
#mobile-menu a {
  display: block;
  padding: 10px 0;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 15px;
  border-bottom: 1px solid var(--border-subtle);
  transition: color 0.2s;
}
#mobile-menu a:hover {
  color: var(--text);
}
#mobile-menu a:last-child {
  border-bottom: none;
}

/* ── HERO ── */
#hero {
  position: relative;
  min-height: auto;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 32px 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  width: 100%;
}
.hero-tagline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.25);
  color: #a5b4fc;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 24px;
}
.hero-tagline::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #a5b4fc;
  animation: td-pulse 2s ease-in-out infinite;
}
@keyframes td-pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(0.8);
  }
}

.hero-text h1 {
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 24px;
}
.hero-text h1 em {
  font-style: normal;
  color: #818cf8;
}
.hero-desc {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 480px;
}
.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 12px;
  transition: all 0.25s ease;
}
.btn-primary:hover {
  transform: translateY(-2px);
  background: var(--primary-light);
}
.btn-secondary-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  transition: all 0.25s ease;
}
.btn-secondary-outline:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(99, 102, 241, 0.4);
  transform: translateY(-2px);
}

/* hero dashboard card */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dashboard-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  width: 100%;
  max-width: 460px;
  box-shadow:
    0 40px 80px rgba(0, 0, 0, 0.5),
    0 0 60px rgba(99, 102, 241, 0.1);
  animation: td-floatCard 6s ease-in-out infinite;
}
@keyframes td-floatCard {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.card-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}
.card-badge {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 100px;
  border: 1px solid rgba(16, 185, 129, 0.3);
}
.chart-area {
  position: relative;
  height: 130px;
  margin-bottom: 24px;
}
.chart-area svg {
  width: 100%;
  height: 100%;
}
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.stat-box {
  background: var(--bg-card2);
  border-radius: 12px;
  padding: 14px;
  border: 1px solid var(--border-subtle);
}
.stat-label {
  font-size: 11px;
  color: var(--text-dim);
  margin-bottom: 6px;
  font-weight: 500;
}
.stat-val {
  font-size: 20px;
  font-weight: 700;
}
.stat-val.green {
  color: #34d399;
}
.stat-val.blue {
  color: #818cf8;
}
.stat-val.amber {
  color: #fbbf24;
}

/* ── STATS BAND ── */
.stats-band {
  background: var(--bg-card);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 40px 32px;
}
.stats-band-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
}
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  text-align: center;
  position: relative;
}
.stat-item:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: var(--border-subtle);
}
.stat-num {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -1px;
  color: #818cf8;
  line-height: 1;
}
.stat-num.green {
  color: #34d399;
}
.stat-num.rose {
  color: #fb7185;
}
.stat-num.amber {
  color: #fbbf24;
}
.stat-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 8px;
  font-weight: 500;
}

/* ── SECTION WRAPPER ── */
section {
  position: relative;
}
.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 32px;
}
.section-label {
  display: inline-block;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.25);
  color: #a5b4fc;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
}
.section-heading {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 16px;
  line-height: 1.15;
}
.section-heading em {
  font-style: normal;
  color: #818cf8;
}
.section-sub {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.7;
}
.section-head {
  text-align: center;
  margin-bottom: 64px;
}
.section-head .section-sub {
  margin: 0 auto;
}

/* ── FEATURES ── */
#features {
  background: var(--bg);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 32px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.feature-card:hover {
  border-color: rgba(99, 102, 241, 0.35);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}
.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}
.icon-blue {
  background: rgba(99, 102, 241, 0.15);
  color: #818cf8;
}
.icon-amber {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
}
.icon-rose {
  background: rgba(239, 68, 68, 0.12);
  color: #fb7185;
}
.icon-green {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
}
.icon-purple {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
}
.icon-sky {
  background: rgba(14, 165, 233, 0.15);
  color: #38bdf8;
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}
.feature-card p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 18px;
  line-height: 1.6;
}
.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
}
.feature-list li::before {
  content: "✓";
  color: #34d399;
  font-weight: 700;
  font-size: 12px;
  margin-top: 1px;
  flex-shrink: 0;
}

/* ── HOW IT WORKS ── */
#how-it-works {
  background: var(--bg-card);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}
.steps-row {
  display: flex;
  align-items: flex-start;
  gap: 0;
  position: relative;
}
.steps-row::before {
  content: "";
  position: absolute;
  top: 32px;
  left: calc(16.66% + 32px);
  right: calc(16.66% + 32px);
  height: 1px;
  background: var(--border);
}
.step {
  flex: 1;
  text-align: center;
  padding: 0 24px;
  position: relative;
  width: 100%;
}
.step-num {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
  background: var(--bg-card2);
  border: 2px solid var(--border);
  color: #a5b4fc;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 30px rgba(99, 102, 241, 0.2);
}
.step-num.active {
  background: var(--primary);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 0 40px rgba(99, 102, 241, 0.5);
}
.step h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
}
.step p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── TESTIMONIALS ── */
#testimonials {
  background: var(--bg);
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: start;
}
.testi-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s;
}
.testi-card.featured {
  border-color: rgba(99, 102, 241, 0.35);
  background: rgba(99, 102, 241, 0.06);
}
.testi-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}
.quote-mark {
  font-size: 72px;
  font-weight: 900;
  line-height: 0.5;
  color: rgba(99, 102, 241, 0.2);
  margin-bottom: 20px;
  display: block;
  font-family: Georgia, serif;
}
.stars {
  display: flex;
  gap: 3px;
  margin-bottom: 16px;
}
.star {
  color: #fbbf24;
  font-size: 14px;
}
.testi-text {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 24px;
  font-style: italic;
}
.testi-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testi-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
}
.testi-avatar-initials {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}
.testi-name {
  font-size: 14px;
  font-weight: 700;
}
.testi-role {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 2px;
}

/* ── COMPARISON ── */
#comparison {
  background: var(--bg-card);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}
.compare-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--bg-card2);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}
.compare-table thead tr {
  background: rgba(99, 102, 241, 0.08);
}
.compare-table th {
  padding: 18px 24px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-muted);
  text-align: center;
  border-bottom: 1px solid var(--border-subtle);
}
.compare-table th:nth-child(2) {
  color: #a5b4fc;
  text-align: center;
}
.compare-table td {
  padding: 14px 24px;
  font-size: 14px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-muted);
}
.compare-table tr:last-child td {
  border-bottom: none;
}
.compare-table td:nth-child(2) {
  text-align: center;
}
.compare-table td:nth-child(3) {
  text-align: center;
  color: var(--text-dim);
}
.compare-table .feature-name {
  color: var(--text);
  font-weight: 500;
}
.check {
  color: #34d399;
  font-size: 18px;
}
.cross {
  color: #ef4444;
  font-size: 16px;
}
.compare-table tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.015);
}

/* ── PRICING ── */
#pricing {
  background: var(--bg);
}
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 860px;
  margin: 0 auto;
}
.price-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 40px;
  transition: all 0.3s;
}
.price-card.popular {
  background: rgba(99, 102, 241, 0.08);
  border-color: rgba(99, 102, 241, 0.4);
  position: relative;
}
.price-card:not(.popular):hover {
  border-color: var(--border);
  transform: translateY(-4px);
}
.price-card.popular:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}
.popular-tag {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: #f59e0b;
  color: #000;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 18px;
  border-radius: 100px;
  white-space: nowrap;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.popular-tag svg {
  display: inline-block;
}
.plan-name {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 6px;
}
.plan-desc {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 28px;
}
.plan-price {
  margin-bottom: 8px;
}
.plan-price span {
  font-size: 38px;
  font-weight: 600;
  letter-spacing: -2px;
}
.plan-price small {
  font-size: 14px;
  color: var(--text-muted);
}
.plan-monthly {
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 8px;
}
.plan-savings {
  font-size: 13px;
  color: #34d399;
  font-weight: 600;
  margin-bottom: 28px;
}
.plan-original {
  font-size: 14px;
  color: var(--text-dim);
  text-decoration: line-through;
}
.plan-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}
.plan-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-muted);
}
.plan-features li::before {
  content: "✓";
  color: #34d399;
  font-weight: 700;
}
.btn-plan {
  display: block;
  text-align: center;
  padding: 14px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all 0.25s;
  text-decoration: none;
  width: 100%;
}
.btn-plan-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-plan-outline:hover {
  border-color: rgba(99, 102, 241, 0.5);
  background: rgba(99, 102, 241, 0.08);
}
.btn-plan-fill {
  background: var(--primary);
  color: #fff;
}
.btn-plan-fill:hover {
  background: var(--primary-light);
  transform: translateY(-1px);
}

/* ── FAQ ── */
#faq {
  background: var(--bg-card);
  border-top: 1px solid var(--border-subtle);
}
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: var(--bg-card2);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  font-size: 15px;
  font-weight: 600;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  gap: 16px;
}
.faq-q:hover {
  color: #a5b4fc;
}
.faq-icon {
  font-size: 18px;
  color: var(--text-dim);
  transition: transform 0.3s;
  flex-shrink: 0;
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  transition:
    max-height 0.4s ease,
    padding 0.3s;
  padding: 0 24px;
}
.faq-item.open .faq-a {
  max-height: 300px;
  padding: 0 24px 20px;
}
.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

/* ── CTA BOTTOM ── */
#cta-bottom {
  background: var(--bg);
  border-top: 1px solid var(--border-subtle);
}
.cta-box {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  background: rgba(99, 102, 241, 0.06);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: 24px;
  padding: 72px 48px;
  position: relative;
  overflow: hidden;
}
.cta-box h2 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}
.cta-box p {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 36px;
  position: relative;
  z-index: 1;
}
.cta-btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  position: relative;
  z-index: 1;
}

/* ── FOOTER ── */
footer {
  background: #030309;
  border-top: 1px solid var(--border-subtle);
  padding: 64px 32px 32px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand p {
  font-size: 14px;
  color: var(--text-dim);
  margin-top: 12px;
  line-height: 1.7;
  max-width: 260px;
}
.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 16px;
  text-transform: uppercase;
}
.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--text-dim);
  text-decoration: none;
  margin-bottom: 10px;
  transition: color 0.2s;
}
.footer-col a:hover {
  color: var(--text);
}
.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-dim);
}

/* ── INFLUENCER POPUP ANIMATION ── */
@keyframes influencer-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(79, 70, 229, 0.5);
  }
  50% {
    box-shadow: 0 0 0 7px rgba(79, 70, 229, 0);
  }
}
#apply-coupon-btn {
  animation: influencer-pulse 1.8s ease-in-out infinite;
}
#apply-coupon-btn.applied {
  animation: none;
  box-shadow: none;
}

/* ── VIDEO MODAL ── */
.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.32, 0.72, 0, 1);
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.modal.active {
  opacity: 1;
  visibility: visible;
}
.modal-content {
  position: relative;
  width: 90%;
  max-width: 900px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6);
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.32, 0.72, 0, 1);
}
.modal.active .modal-content {
  transform: translateY(0);
  opacity: 1;
}
.modal-header {
  padding: 1.5rem 2rem;
  background: var(--primary);
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.modal-title {
  font-size: 1.25rem;
  font-weight: 600;
}
.close-btn {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #fff;
}
.close-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: rotate(90deg);
}
.video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  background: #000;
}
.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}
.modal-body {
  padding: 2rem;
}
.video-content {
  text-align: center;
  margin-top: 1.5rem;
}
.video-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text);
}
.video-description {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
}
.modal-footer {
  padding: 1.5rem 2rem;
  background: var(--bg-card2);
  display: flex;
  justify-content: center;
  border-top: 1px solid var(--border-subtle);
}
.action-buttons {
  display: flex;
  gap: 1rem;
  width: 100%;
  max-width: 400px;
}
.action-btn {
  flex: 1;
  padding: 0.875rem 1.5rem;
  border-radius: 12px;
  font-weight: 600;
  text-align: center;
  transition: all 0.3s ease;
  text-decoration: none;
}
.action-btn.primary {
  background: var(--primary);
  color: #fff;
}
.action-btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(99, 102, 241, 0.3);
}
.action-btn.secondary {
  border: 1px solid var(--border);
  color: #a5b4fc;
  background: transparent;
}
.action-btn.secondary:hover {
  background: var(--border-subtle);
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}
@media (max-width: 768px) {
  header,
  nav#td-nav {
    padding: 0 8px;
  }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 4rem 16px 5rem;
  }
  .hero-visual {
    display: none;
  }
  .stats-band {
    padding: 28px 16px;
  }
  .stats-band-inner {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat-item:nth-child(2)::after {
    display: none;
  }
  .stat-num {
    font-size: 30px;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .steps-row {
    flex-direction: column;
    gap: 32px;
  }
  .steps-row::before {
    display: none;
  }
  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-col {
    padding: 0 8px;
  }
  .nav-links-list {
    display: none;
  }
  .cta-box {
    padding: 40px 24px;
  }
  .section-inner {
    padding: 56px 16px;
  }
  #mobile-menu-button {
    display: block;
  }
  .nav-toggle-wrap .nav-links-list {
    display: none;
  }
  .compare-table th,
  .compare-table td {
    padding: 12px 14px;
    font-size: 13px;
  }
  .price-card {
    padding: 28px 20px;
  }
  .hero-cta .btn-primary,
  .hero-cta .btn-secondary-outline {
    width: auto;
    justify-content: center;
  }
}
@media (max-width: 480px) {
  .stats-band-inner {
    grid-template-columns: 1fr 1fr;
  }
  .action-buttons {
    flex-direction: column;
  }
  .hero-text h1 {
    font-size: 32px;
    letter-spacing: -1px;
  }
  .hero-desc {
    font-size: 15px;
  }
  .section-heading {
    font-size: 26px;
  }
  .plan-price span {
    font-size: 40px;
  }
  .testi-card {
    padding: 24px 20px;
  }
  .feature-card {
    padding: 24px 20px;
  }
  .compare-table {
    font-size: 12px;
  }
  .compare-table th,
  .compare-table td {
    padding: 10px 10px;
  }
  footer {
    padding: 48px 16px 24px;
  }
}

/* Bulletproof fallback to toggle logos if Tailwind 'dark:' isn't working */
.force-light-logo {
  display: block;
}

.force-dark-logo {
  display: none;
}

@media (prefers-color-scheme: dark) {
  .force-light-logo {
    display: none;
  }

  .force-dark-logo {
    display: block;
  }
}

/* Bulletproof fallback to hide text on mobile */
@media (max-width: 639px) {
  .hide-on-mobile {
    display: none !important;
  }
}
