/* =============================================
   TRADESTACK - style.css
   Custom websites, stores, apps & ads for trades
   ============================================= */

/* --- RESET & BASE --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --navy: #1B2A4A;
  --steel: #2D4A7A;
  --slate: #3A5A8C;
  --accent: #FF6B2C;
  --accent-hover: #E55A1F;
  --accent-glow: rgba(255, 107, 44, 0.15);
  --light: #F4F6FA;
  --lighter: #FAFBFD;
  --white: #FFFFFF;
  --text: #1a1a2e;
  --text-mid: #4a5568;
  --text-light: #718096;
  --border: #E2E8F0;
  --success: #38A169;
  --radius: 8px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --shadow-xl: 0 16px 50px rgba(0,0,0,0.15);
  --max-w: 1200px;
  --transition: 0.25s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 700;
  line-height: 1.15;
  color: var(--navy);
}
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); letter-spacing: -0.015em; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.1rem; }

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-mid);
  max-width: 600px;
  line-height: 1.7;
}

/* --- NAVBAR --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(27, 42, 74, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: var(--transition);
}
.navbar.scrolled {
  background: rgba(27, 42, 74, 0.98);
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
}
.nav-logo .logo-mark {
  width: 36px;
  height: 36px;
  background: var(--accent);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--white);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
}
.nav-links a:hover { color: var(--white); }
.nav-cta {
  background: var(--accent);
  color: var(--white) !important;
  padding: 10px 22px;
  border-radius: var(--radius);
  font-weight: 600;
  transition: var(--transition);
}
.nav-cta:hover { background: var(--accent-hover); transform: translateY(-1px); }

/* Mobile menu */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  padding: 8px;
}
.mobile-menu {
  display: none;
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  background: var(--navy);
  padding: 20px 24px;
  border-bottom: 2px solid var(--accent);
  z-index: 999;
}
.mobile-menu.open { display: block; }
.mobile-menu a {
  display: block;
  padding: 14px 0;
  color: rgba(255,255,255,0.85);
  font-size: 1rem;
  font-weight: 500;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:hover { color: var(--accent); }

/* --- HERO --- */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, #0F1B33 100%);
  padding: 140px 0 100px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255,107,44,0.08) 0%, transparent 70%);
  border-radius: 50%;
}
.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-text { position: relative; z-index: 1; }
.hero-text h1 {
  color: var(--white);
  margin-bottom: 20px;
}
.hero-text h1 .accent { color: var(--accent); }
.hero-text p {
  color: rgba(255,255,255,0.7);
  font-size: 1.15rem;
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 520px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.hero-trust {
  margin-top: 48px;
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
}
.trust-item svg { width: 18px; height: 18px; stroke: var(--accent); fill: none; }

/* Hero stack visual */
.hero-visual { position: relative; z-index: 1; }
.stack-cards {
  position: relative;
  height: 400px;
}
.stack-card {
  position: absolute;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-xl);
  transition: transform 0.4s ease;
}

.stack-card-1 {
  top: 0; left: 0; width: 280px;
  transform: rotate(-3deg);
  z-index: 3;
}
.stack-card-2 {
  top: 40px; left: 100px; width: 280px;
  transform: rotate(2deg);
  z-index: 2;
}
.stack-card-3 {
  top: 80px; left: 50px; width: 280px;
  transform: rotate(-1deg);
  z-index: 1;
}
.stack-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 14px;
  color: var(--white);
}
.stack-card h4 {
  font-size: 1rem;
  margin-bottom: 6px;
  color: var(--navy);
}
.stack-card p {
  font-size: 0.82rem;
  color: var(--text-mid);
  line-height: 1.5;
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  transition: var(--transition);
}
.btn-primary {
  background: var(--accent);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255,107,44,0.3);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.3);
}
.btn-outline:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.05);
}
.btn-outline-dark {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--border);
}
.btn-outline-dark:hover {
  border-color: var(--navy);
  background: var(--light);
}

/* --- SECTIONS --- */
.section {
  padding: 100px 0;
}
.section-alt {
  background: var(--light);
}
.section-dark {
  background: var(--navy);
  color: var(--white);
}
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark .section-subtitle { color: rgba(255,255,255,0.6); }

.section-header {
  text-align: center;
  margin-bottom: 60px;
}
.section-header h2 { margin-bottom: 16px; }
.section-header .section-subtitle { margin: 0 auto; }

/* --- SERVICES GRID --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 28px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}
.service-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: var(--white);
}
.service-card h3 { margin-bottom: 12px; }
.service-card p {
  color: var(--text-mid);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 20px;
}
.service-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.service-features li {
  font-size: 0.88rem;
  color: var(--text-mid);
  display: flex;
  align-items: center;
  gap: 8px;
}
.service-features li::before {
  content: '✓';
  color: var(--success);
  font-weight: 700;
  font-size: 0.8rem;
}
.service-card .service-price {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-family: 'Space Grotesk', sans-serif;
}
.service-price .price {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--navy);
}
.service-price .price-period {
  font-size: 0.85rem;
  color: var(--text-light);
  font-weight: 400;
}

/* --- WHY TRADESTACK --- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 40px;
}
.why-item { text-align: center; }
.why-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--accent-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.5rem;
}
.why-item h4 { margin-bottom: 10px; }
.why-item p {
  font-size: 0.92rem;
  color: var(--text-mid);
  line-height: 1.6;
}

/* --- FREE TOOLS BANNER --- */
.free-tools-banner {
  background: linear-gradient(135deg, var(--navy) 0%, var(--steel) 100%);
  border-radius: var(--radius-lg);
  padding: 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.free-tools-banner::before {
  content: '';
  position: absolute;
  bottom: -40%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255,107,44,0.1) 0%, transparent 70%);
  border-radius: 50%;
}
.free-tools-text h2 { color: var(--white); margin-bottom: 16px; }
.free-tools-text p { color: rgba(255,255,255,0.7); margin-bottom: 28px; }
.free-tool-cards { display: flex; flex-direction: column; gap: 16px; }
.free-tool-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.free-tool-card-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 10px;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--white);
}
.free-tool-card h4 { color: var(--white); font-size: 0.95rem; margin-bottom: 4px; }
.free-tool-card p { color: rgba(255,255,255,0.55); font-size: 0.82rem; }

/* --- PRICING TABLE --- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}
.pricing-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  text-align: center;
  transition: var(--transition);
  position: relative;
}
.pricing-card.featured {
  border-color: var(--accent);
  transform: scale(1.03);
}
.pricing-card.featured::after {
  content: 'Most Popular';
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 6px 20px;
  border-radius: 20px;
}
.pricing-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-lg);
}
.pricing-card h3 { margin-bottom: 8px; }
.pricing-card .pricing-desc {
  font-size: 0.9rem;
  color: var(--text-mid);
  margin-bottom: 24px;
}
.pricing-card .pricing-amount {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}
.pricing-card .pricing-period {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 28px;
}
.pricing-card .pricing-features {
  list-style: none;
  text-align: left;
  margin-bottom: 32px;
}
.pricing-card .pricing-features li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text-mid);
  display: flex;
  align-items: center;
  gap: 10px;
}
.pricing-card .pricing-features li::before {
  content: '✓';
  color: var(--success);
  font-weight: 700;
}
.pricing-card .pricing-features li:last-child { border-bottom: none; }
.pricing-note {
  text-align: center;
  margin-top: 40px;
  color: var(--text-mid);
  font-size: 0.9rem;
}

/* --- LEAD FORM --- */
.lead-section {
  background: var(--light);
  padding: 100px 0;
}
.lead-inner {
  max-width: 800px;
  margin: 0 auto;
}
.lead-form-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-lg);
}
.lead-path-picker {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 32px;
}
.lead-path-btn {
  padding: 20px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  text-align: center;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  transition: var(--transition);
}
.lead-path-btn:hover { border-color: var(--steel); }
.lead-path-btn.active {
  border-color: var(--accent);
  background: var(--accent-glow);
  color: var(--navy);
}
.lead-path-btn span {
  display: block;
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--text-light);
  margin-top: 4px;
}

.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--white);
  transition: var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
}
.checkbox-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-mid);
}
.checkbox-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.form-submit {
  width: 100%;
  padding: 16px;
  background: var(--accent);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 700;
  transition: var(--transition);
  margin-top: 8px;
}
.form-submit:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255,107,44,0.3);
}
.form-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}
.form-success {
  display: none;
  text-align: center;
  padding: 40px;
}
.form-success.show { display: block; }
.form-success h3 { color: var(--success); margin-bottom: 12px; }
.form-success p { color: var(--text-mid); }

/* --- BLOG --- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 28px;
}
.blog-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}
.blog-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.blog-card-img {
  height: 200px;
  background: linear-gradient(135deg, var(--navy), var(--steel));
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.3);
  font-size: 2rem;
}
.blog-card-body { padding: 24px; }
.blog-card-date {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 8px;
}
.blog-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}
.blog-card p {
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.6;
}
.blog-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent);
}

/* --- FOOTER --- */
.footer {
  background: #0F1B33;
  color: rgba(255,255,255,0.6);
  padding: 60px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand h3 {
  font-family: 'Space Grotesk', sans-serif;
  color: var(--white);
  font-size: 1.3rem;
  margin-bottom: 12px;
}
.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.6;
  max-width: 300px;
}
.footer-col h4 {
  color: var(--white);
  font-size: 0.9rem;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.footer-col a {
  display: block;
  font-size: 0.88rem;
  padding: 4px 0;
  transition: var(--transition);
}
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
}

/* --- ARTICLE PAGE --- */
.article-header {
  background: var(--navy);
  padding: 120px 0 60px;
  text-align: center;
}
.article-header h1 { color: var(--white); font-size: 2.2rem; margin-bottom: 16px; }
.article-meta {
  color: rgba(255,255,255,0.5);
  font-size: 0.9rem;
}
.article-body {
  max-width: 780px;
  margin: 0 auto;
  padding: 60px 24px;
}
.article-body h2 { margin: 40px 0 16px; font-size: 1.6rem; }
.article-body h3 { margin: 32px 0 12px; font-size: 1.3rem; }
.article-body p { margin-bottom: 20px; color: var(--text-mid); line-height: 1.8; font-size: 1.05rem; }
.article-body ul, .article-body ol { margin: 0 0 20px 24px; color: var(--text-mid); }
.article-body li { margin-bottom: 8px; line-height: 1.7; }
.article-body blockquote {
  border-left: 4px solid var(--accent);
  padding: 16px 24px;
  margin: 24px 0;
  background: var(--light);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--text);
  font-style: italic;
}

/* --- TOAST --- */
.toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--navy);
  color: var(--white);
  padding: 16px 24px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 9999;
}
.toast.show {
  transform: translateY(0);
  opacity: 1;
}
.toast.success { border-left: 4px solid var(--success); }
.toast.error { border-left: 4px solid #E53E3E; }

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }

  .hero { padding: 110px 0 70px; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { display: none; }

  .section { padding: 70px 0; }

  .services-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-card.featured { transform: none; }

  .free-tools-banner {
    grid-template-columns: 1fr;
    padding: 40px 24px;
  }

  .lead-form-box { padding: 28px 20px; }
  .lead-path-picker { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .why-grid { grid-template-columns: 1fr; }

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

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .hero-trust { flex-direction: column; gap: 16px; }
  .checkbox-grid { grid-template-columns: 1fr; }
}
/* ========== DEALER SPREAD + SPOTLIGHT ========== */

/* Hidden expand content */
.card-expand {
  display: none;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.card-expand ul {
  list-style: none;
  margin-bottom: 16px;
}
.card-expand ul li {
  font-size: 0.85rem;
  color: var(--text-mid);
  padding: 5px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.card-expand ul li::before {
  content: '✓';
  color: var(--success);
  font-weight: 700;
  font-size: 0.8rem;
}
.card-expand-price {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--navy);
}
.card-expand-price span {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--text-light);
}

/* Overlay behind spotlight */
.card-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  z-index: 99;
}
.card-overlay.active { display: block; }

/* Dealer fan on hover */
.stack-cards:hover .stack-card-1 {
  transform: translateX(-40px) rotate(-8deg);
}
.stack-cards:hover .stack-card-2 {
  transform: translateX(0) rotate(0deg) translateY(-10px);
}
.stack-cards:hover .stack-card-3 {
  transform: translateX(40px) rotate(8deg);
}

/* Hover glow — card rises and gets orange border */
.stack-cards:hover .stack-card {
  opacity: 0.7;
  transition: all 0.35s ease;
}
.stack-cards:hover .stack-card:hover {
  opacity: 1;
  transform: translateY(-20px) rotate(0deg) scale(1.05);
  box-shadow: 0 12px 40px rgba(255,107,44,0.25);
  border: 2px solid var(--accent);
  z-index: 10;
}

/* Smooth transitions on all cards */
.stack-card {
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  cursor: pointer;
  border: 2px solid transparent;
}

/* ===== SPOTLIGHT STATE ===== */
.stack-card.spotlight {
  position: fixed !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) rotate(0deg) scale(1) !important;
  width: 360px !important;
  z-index: 100 !important;
  opacity: 1 !important;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4) !important;
  border: 2px solid var(--accent) !important;
  max-height: 80vh;
  overflow-y: auto;
}
.stack-card.spotlight .card-expand {
  display: block;
}

/* Dim other cards during spotlight */
.stack-cards.has-spotlight .stack-card:not(.spotlight) {
  opacity: 0.15 !important;
  filter: blur(3px);
  pointer-events: none;
}

/* Disable fan during spotlight */
.stack-cards.has-spotlight:hover .stack-card-1,
.stack-cards.has-spotlight:hover .stack-card-2,
.stack-cards.has-spotlight:hover .stack-card-3 {
  transform: none;
}
.stack-cards.has-spotlight:hover .stack-card:hover {
  transform: none;
  box-shadow: none;
  border-color: transparent;
}
/* ========== REVEAL ON SCROLL ========== */
.reveal-item {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  transition-delay: var(--delay, 0s);
}
.reveal-item.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ========== TILT CARDS ========== */
.tilt-card {
  transform-style: preserve-3d;
  perspective: 800px;
}
.tilt-card.revealed {
  transition: opacity 0.6s ease, transform 0.3s ease;
  transition-delay: 0s;
}
.tilt-card:hover {
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}