/* Technical Due Diligence — v2 */

:root {
  --tdd-gold:    #D4A843;
  --tdd-gold2:   #F0C060;
  --tdd-slate:   #334155;
  --tdd-blue:    #3B82F6;
  --tdd-cyan:    #06B6D4;
  --tdd-green:   #22C55E;
  --tdd-red:     #EF4444;
  --tdd-bg:      #04060A;
  --tdd-bg2:     #060810;
  --tdd-card:    #080C14;
}

.tdd-accent { background: linear-gradient(135deg, var(--tdd-gold) 0%, var(--tdd-gold2) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* ── SHARED ── */
.tdd-section-header { text-align: center; max-width: 800px; margin: 0 auto 64px; }
.tdd-section-header h2 { font-size: 44px; font-weight: 800; color: #fff; line-height: 1.2; margin-bottom: 14px; }
.tdd-section-header p { font-size: 17px; color: rgba(255,255,255,0.5); line-height: 1.7; }

/* ── BUTTONS ── */
.tdd-cta-btn { display: inline-flex; align-items: center; gap: 10px; padding: 16px 32px; background: linear-gradient(135deg, var(--tdd-gold), var(--tdd-gold2)); color: #0a0800; border: none; border-radius: 10px; font-size: 15px; font-weight: 800; cursor: pointer; transition: all 0.3s ease; box-shadow: 0 8px 30px rgba(212,168,67,0.35); letter-spacing: 0.2px; }
.tdd-cta-btn:hover { transform: translateY(-3px); box-shadow: 0 14px 40px rgba(212,168,67,0.5); }
.tdd-cta-btn i { color: #0a0800 !important; -webkit-text-fill-color: #0a0800 !important; font-family: "Font Awesome 6 Free" !important; font-weight: 900 !important; background: none !important; -webkit-background-clip: initial !important; background-clip: initial !important; transition: transform 0.2s; }
.tdd-cta-btn:hover i { transform: translateX(4px); }
.tdd-cta-large { font-size: 17px; padding: 20px 44px; }

/* ── HERO ── */
.tdd-hero { position: relative; min-height: 92vh; display: flex; align-items: center; justify-content: center; background: var(--tdd-bg); padding: 130px 60px 80px; overflow: hidden; text-align: center; }
.tdd-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.tdd-hero-inner { position: relative; z-index: 10; max-width: 900px; width: 100%; display: flex; flex-direction: column; align-items: center; }
.tdd-hero-badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 16px; border: 1px solid rgba(212,168,67,0.4); border-radius: 50px; font-size: 12px; font-weight: 600; color: var(--tdd-gold); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 28px; }
.tdd-hero-badge i { color: var(--tdd-gold) !important; -webkit-text-fill-color: var(--tdd-gold) !important; font-family: "Font Awesome 6 Free" !important; font-weight: 900 !important; background: none !important; -webkit-background-clip: initial !important; background-clip: initial !important; }
.tdd-hero-title { font-size: 62px; font-weight: 900; color: #fff; line-height: 1.08; margin-bottom: 24px; letter-spacing: -2px; }
.tdd-hero-sub { font-size: 18px; color: rgba(255,255,255,0.62); line-height: 1.8; max-width: 740px; margin-bottom: 48px; }

/* ── AUDIT MATRIX (5-col hover-expand) ── */
.tdd-matrix { background: var(--tdd-bg2) !important; padding: 100px 60px; }
.tdd-matrix-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; max-width: 1300px; margin: 0 auto; }

.tdd-matrix-card { position: relative; background: #080C14 !important; border: 1px solid rgba(212,168,67,0.08); border-radius: 20px; padding: 32px 22px; overflow: hidden; transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease, max-height 0.4s ease; cursor: default; }
.tdd-matrix-card:hover { transform: translateY(-6px); box-shadow: 0 28px 70px rgba(212,168,67,0.14); border-color: rgba(212,168,67,0.3); }

/* Radar sweep animation */
.tdd-radar-sweep { position: absolute; inset: 0; border-radius: 20px; pointer-events: none; overflow: hidden; opacity: 0; transition: opacity 0.3s ease; }
.tdd-radar-sweep::after { content: ''; position: absolute; top: -100%; left: -20%; width: 140%; height: 60%; background: linear-gradient(180deg, transparent 0%, rgba(212,168,67,0.06) 50%, transparent 100%); animation: tddRadar 2.4s ease-in-out infinite; }
@keyframes tddRadar { 0% { top: -60%; } 100% { top: 120%; } }
.tdd-matrix-card:hover .tdd-radar-sweep { opacity: 1; }

.tdd-matrix-icon { width: 48px; height: 48px; background: linear-gradient(135deg, var(--tdd-gold), var(--tdd-gold2)); border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; position: relative; z-index: 1; transition: box-shadow 0.35s ease; }
.tdd-matrix-card:hover .tdd-matrix-icon { box-shadow: 0 0 24px rgba(212,168,67,0.5); }
.tdd-matrix-icon i { font-size: 18px; color: #0a0800 !important; -webkit-text-fill-color: #0a0800 !important; font-family: "Font Awesome 6 Free" !important; font-weight: 900 !important; background: none !important; -webkit-background-clip: initial !important; background-clip: initial !important; display: block !important; }
.tdd-matrix-card h3 { font-size: 15px; font-weight: 700; color: #ffffff !important; -webkit-text-fill-color: #ffffff !important; margin-bottom: 10px; line-height: 1.35; position: relative; z-index: 1; }
.tdd-matrix-card p { font-size: 13px; color: rgba(255,255,255,0.5) !important; -webkit-text-fill-color: rgba(255,255,255,0.5) !important; line-height: 1.8; margin: 0 0 16px; position: relative; z-index: 1; }
.tdd-card-tags { display: flex; flex-wrap: wrap; gap: 5px; position: relative; z-index: 1; }
.tdd-card-tags span { padding: 3px 9px; background: rgba(212,168,67,0.07); border: 1px solid rgba(212,168,67,0.18); border-radius: 50px; font-size: 10px; font-weight: 600; color: rgba(255,255,255,0.4); }

/* ── AUDIT TIMELINE ── */
.tdd-timeline-section { background: var(--tdd-bg) !important; padding: 100px 60px; }
.tdd-timeline-layout { max-width: 960px; margin: 0 auto; display: grid; grid-template-columns: 56px 1fr; gap: 0 40px; }
.tdd-timeline-track { position: relative; display: flex; justify-content: center; }
.tdd-track-line { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 2px; height: 100%; background: rgba(212,168,67,0.1); border-radius: 2px; }
.tdd-track-glow { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 2px; height: 0%; background: linear-gradient(180deg, var(--tdd-gold), var(--tdd-gold2)); border-radius: 2px; box-shadow: 0 0 12px var(--tdd-gold); transition: height 0.05s linear; }

.tdd-phases { display: flex; flex-direction: column; }
.tdd-phase { display: flex; gap: 28px; align-items: flex-start; padding: 48px 0; border-bottom: 1px solid rgba(212,168,67,0.06); opacity: 0.3; transition: opacity 0.4s ease, transform 0.5s ease; transform: translateX(20px); }
.tdd-phase:last-child { border-bottom: none; }
.tdd-phase.active { opacity: 1; transform: translateX(0); }
.tdd-phase-node { width: 52px; height: 52px; border-radius: 50%; border: 2px solid rgba(212,168,67,0.18); display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: all 0.4s ease; background: rgba(8,12,20,0.8); }
.tdd-phase.active .tdd-phase-node { border-color: var(--tdd-gold); box-shadow: 0 0 24px rgba(212,168,67,0.45); background: rgba(212,168,67,0.07); }
.tdd-phase-node span { font-size: 11px; font-weight: 800; color: rgba(255,255,255,0.3); letter-spacing: 1px; font-family: 'Courier New', monospace; }
.tdd-phase.active .tdd-phase-node span { color: var(--tdd-gold); }
.tdd-phase-days { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: var(--tdd-gold); opacity: 0.7; margin-bottom: 8px; font-family: 'Courier New', monospace; }
.tdd-phase-body h3 { font-size: 22px; font-weight: 700; color: #ffffff !important; -webkit-text-fill-color: #ffffff !important; margin-bottom: 12px; line-height: 1.3; }
.tdd-phase-body p { font-size: 15px; color: rgba(255,255,255,0.55) !important; -webkit-text-fill-color: rgba(255,255,255,0.55) !important; line-height: 1.8; margin: 0 0 14px; }
.tdd-code-tag { display: inline-block; font-family: 'Courier New', monospace; font-size: 12px; color: var(--tdd-green); background: rgba(34,197,94,0.07); border: 1px solid rgba(34,197,94,0.2); padding: 5px 12px; border-radius: 6px; letter-spacing: 0.3px; }

/* ── USE CASES BENTO ── */
.tdd-usecases { background: var(--tdd-bg2) !important; padding: 100px 60px; }
.tdd-bento-grid { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 20px; align-items: start; }

.tdd-bento-card { position: relative; background: #080C16 !important; border: 1px solid rgba(212,168,67,0.1); border-radius: 20px; padding: 40px 36px; transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease; overflow: hidden; }
.tdd-bento-card::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 80% 10%, rgba(212,168,67,0.04) 0%, transparent 60%); pointer-events: none; }
.tdd-bento-card:hover { transform: translateY(-5px); box-shadow: 0 24px 60px rgba(212,168,67,0.12); border-color: rgba(212,168,67,0.25); }
.tdd-bento-large { padding: 52px 44px; }

.tdd-bento-icon { width: 48px; height: 48px; background: linear-gradient(135deg, var(--tdd-gold), var(--tdd-gold2)); border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; position: relative; z-index: 1; }
.tdd-bento-icon i { font-size: 18px; color: #0a0800 !important; -webkit-text-fill-color: #0a0800 !important; font-family: "Font Awesome 6 Free" !important; font-weight: 900 !important; background: none !important; -webkit-background-clip: initial !important; background-clip: initial !important; display: block !important; }
.tdd-bento-card h3 { font-size: 18px; font-weight: 700; color: #ffffff !important; -webkit-text-fill-color: #ffffff !important; margin-bottom: 14px; line-height: 1.3; position: relative; z-index: 1; }
.tdd-bento-card p { font-size: 14px; color: rgba(255,255,255,0.52) !important; -webkit-text-fill-color: rgba(255,255,255,0.52) !important; line-height: 1.85; margin: 0 0 20px; position: relative; z-index: 1; }
.tdd-bento-chips { display: flex; flex-wrap: wrap; gap: 8px; position: relative; z-index: 1; }
.tdd-bento-chips span { padding: 4px 12px; background: rgba(212,168,67,0.07); border: 1px solid rgba(212,168,67,0.18); border-radius: 50px; font-size: 11px; font-weight: 600; color: rgba(255,255,255,0.45); }

/* ── ADVISORY ADVANTAGE ── */
.tdd-advantage { background: var(--tdd-bg) !important; padding: 100px 60px; border-top: 1px solid rgba(212,168,67,0.06); border-bottom: 1px solid rgba(212,168,67,0.06); }
.tdd-advantage-inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1.6fr; gap: 80px; align-items: center; }
.tdd-advantage-eyebrow { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: var(--tdd-gold); opacity: 0.7; margin-bottom: 20px; font-family: 'Courier New', monospace; }
.tdd-advantage-left h2 { font-size: 52px; font-weight: 900; color: #ffffff !important; -webkit-text-fill-color: #ffffff !important; line-height: 1.1; letter-spacing: -2px; }
.tdd-advantage-lead { font-size: 17px; color: rgba(255,255,255,0.7) !important; -webkit-text-fill-color: rgba(255,255,255,0.7) !important; line-height: 1.85; margin-bottom: 36px; }
.tdd-advantage-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 16px; }
.tdd-advantage-list li { display: flex; align-items: flex-start; gap: 14px; font-size: 15px; color: rgba(255,255,255,0.7) !important; -webkit-text-fill-color: rgba(255,255,255,0.7) !important; line-height: 1.6; }
.tdd-advantage-list li i { color: var(--tdd-gold) !important; -webkit-text-fill-color: var(--tdd-gold) !important; font-family: "Font Awesome 6 Free" !important; font-weight: 900 !important; background: none !important; -webkit-background-clip: initial !important; background-clip: initial !important; font-size: 14px; margin-top: 3px; flex-shrink: 0; }

/* ── FINAL CTA ── */
.tdd-final-cta { position: relative; padding: 130px 60px; text-align: center; overflow: hidden; background: #030408; border-top: 1px solid rgba(212,168,67,0.08); }
.tdd-cta-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.tdd-final-cta::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 25% 50%, rgba(212,168,67,0.1) 0%, transparent 55%), radial-gradient(circle at 75% 50%, rgba(59,130,246,0.07) 0%, transparent 55%); pointer-events: none; }
.tdd-final-inner { position: relative; z-index: 2; max-width: 760px; margin: 0 auto; }
.tdd-final-cta h2 { font-size: 52px; font-weight: 900; color: #fff; line-height: 1.1; margin-bottom: 20px; letter-spacing: -1.5px; }
.tdd-final-cta p { font-size: 17px; color: rgba(255,255,255,0.6); line-height: 1.75; margin-bottom: 44px; }

/* ── LIGHT THEME ── */
body.light-theme section.tdd-hero { background: #ffffff !important; }
body.light-theme section.tdd-matrix { background: #f8f6f0 !important; }
body.light-theme section.tdd-timeline-section { background: #ffffff !important; }
body.light-theme section.tdd-usecases { background: #f8f6f0 !important; }
body.light-theme section.tdd-advantage { background: #ffffff !important; border-color: rgba(0,0,0,0.06) !important; }
body.light-theme section.tdd-final-cta { background: #ffffff !important; border-top-color: rgba(0,0,0,0.06) !important; }
body.light-theme section.tdd-final-cta::before { background: radial-gradient(circle at 25% 50%, rgba(255,123,0,0.07) 0%, transparent 55%), radial-gradient(circle at 75% 50%, rgba(255,123,0,0.05) 0%, transparent 55%) !important; }

body.light-theme .tdd-accent { background: linear-gradient(135deg, var(--original-orange), var(--original-orange-hover)) !important; -webkit-background-clip: text !important; -webkit-text-fill-color: transparent !important; background-clip: text !important; }
body.light-theme .tdd-hero-title { color: #1a1f3a !important; }
body.light-theme .tdd-hero-sub { color: rgba(26,31,58,0.65) !important; }
body.light-theme .tdd-hero-badge { border-color: rgba(255,123,0,0.4) !important; color: var(--original-orange) !important; }
body.light-theme .tdd-hero-badge i { color: var(--original-orange) !important; -webkit-text-fill-color: var(--original-orange) !important; }
body.light-theme .tdd-section-header h2 { color: #1a1f3a !important; }
body.light-theme .tdd-section-header p { color: rgba(26,31,58,0.6) !important; }
body.light-theme .tdd-cta-btn { background: linear-gradient(135deg, var(--original-orange), var(--original-orange-hover)) !important; color: #fff !important; box-shadow: 0 8px 30px rgba(255,123,0,0.3) !important; }
body.light-theme .tdd-cta-btn i { color: #fff !important; -webkit-text-fill-color: #fff !important; }

body.light-theme .tdd-matrix-card { background: #ffffff !important; border-color: rgba(0,0,0,0.08) !important; box-shadow: 0 4px 20px rgba(0,0,0,0.05) !important; }
body.light-theme .tdd-matrix-card:hover { box-shadow: 0 28px 70px rgba(255,123,0,0.1) !important; border-color: rgba(255,123,0,0.25) !important; }
body.light-theme .tdd-matrix-card:hover .tdd-matrix-icon { box-shadow: 0 0 24px rgba(255,123,0,0.35) !important; }
body.light-theme .tdd-matrix-icon { background: linear-gradient(135deg, var(--original-orange), var(--original-orange-hover)) !important; }
body.light-theme .tdd-matrix-icon i { color: #fff !important; -webkit-text-fill-color: #fff !important; }
body.light-theme .tdd-matrix-card h3 { color: #1a1f3a !important; }
body.light-theme .tdd-matrix-card p { color: rgba(26,31,58,0.6) !important; }
body.light-theme .tdd-card-tags span { background: rgba(255,123,0,0.06) !important; border-color: rgba(255,123,0,0.18) !important; color: rgba(26,31,58,0.5) !important; }

body.light-theme .tdd-track-line { background: rgba(255,123,0,0.1) !important; }
body.light-theme .tdd-track-glow { background: linear-gradient(180deg, var(--original-orange), var(--original-orange-hover)) !important; box-shadow: 0 0 12px var(--original-orange) !important; }
body.light-theme .tdd-phase { border-bottom-color: rgba(0,0,0,0.06) !important; }
body.light-theme .tdd-phase-node { border-color: rgba(255,123,0,0.2) !important; background: #fff !important; }
body.light-theme .tdd-phase.active .tdd-phase-node { border-color: var(--original-orange) !important; box-shadow: 0 0 24px rgba(255,123,0,0.3) !important; background: rgba(255,123,0,0.06) !important; }
body.light-theme .tdd-phase-node span { color: rgba(26,31,58,0.3) !important; }
body.light-theme .tdd-phase.active .tdd-phase-node span { color: var(--original-orange) !important; }
body.light-theme .tdd-phase-days { color: var(--original-orange) !important; }
body.light-theme .tdd-phase-body h3 { color: #1a1f3a !important; }
body.light-theme .tdd-phase-body p { color: rgba(26,31,58,0.6) !important; }
body.light-theme .tdd-code-tag { color: #1a6b3a !important; background: rgba(0,100,50,0.06) !important; border-color: rgba(0,100,50,0.2) !important; }

body.light-theme .tdd-bento-card { background: #ffffff !important; border-color: rgba(0,0,0,0.08) !important; box-shadow: 0 4px 20px rgba(0,0,0,0.05) !important; }
body.light-theme .tdd-bento-card:hover { box-shadow: 0 24px 60px rgba(255,123,0,0.1) !important; border-color: rgba(255,123,0,0.2) !important; }
body.light-theme .tdd-bento-icon { background: linear-gradient(135deg, var(--original-orange), var(--original-orange-hover)) !important; }
body.light-theme .tdd-bento-icon i { color: #fff !important; -webkit-text-fill-color: #fff !important; }
body.light-theme .tdd-bento-card h3 { color: #1a1f3a !important; }
body.light-theme .tdd-bento-card p { color: rgba(26,31,58,0.6) !important; }
body.light-theme .tdd-bento-chips span { background: rgba(255,123,0,0.06) !important; border-color: rgba(255,123,0,0.18) !important; color: rgba(26,31,58,0.5) !important; }

body.light-theme .tdd-advantage-eyebrow { color: var(--original-orange) !important; }
body.light-theme .tdd-advantage-left h2 { color: #1a1f3a !important; }
body.light-theme .tdd-advantage-lead { color: rgba(26,31,58,0.7) !important; }
body.light-theme .tdd-advantage-list li { color: rgba(26,31,58,0.7) !important; }
body.light-theme .tdd-advantage-list li i { color: var(--original-orange) !important; -webkit-text-fill-color: var(--original-orange) !important; }

body.light-theme .tdd-final-cta h2 { color: #1a1f3a !important; }
body.light-theme .tdd-final-cta p { color: rgba(26,31,58,0.65) !important; }

/* ── RESPONSIVE ── */
@media (max-width: 1200px) {
  .tdd-matrix-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1000px) {
  .tdd-bento-grid { grid-template-columns: 1fr 1fr; }
  .tdd-bento-large { grid-column: 1 / -1; }
  .tdd-advantage-inner { grid-template-columns: 1fr; gap: 40px; }
  .tdd-advantage-left h2 { font-size: 40px; }
}
@media (max-width: 700px) {
  .tdd-matrix-grid { grid-template-columns: 1fr 1fr; }
  .tdd-bento-grid { grid-template-columns: 1fr; }
  .tdd-hero-title { font-size: 38px; }
  .tdd-section-header h2 { font-size: 32px; }
  .tdd-final-cta h2 { font-size: 32px; }
  .tdd-hero, .tdd-matrix, .tdd-timeline-section, .tdd-usecases, .tdd-advantage, .tdd-final-cta { padding: 80px 24px; }
  .tdd-timeline-layout { grid-template-columns: 1fr; }
  .tdd-timeline-track { display: none; }
  .tdd-advantage-left h2 { font-size: 34px; }
}
@media (max-width: 480px) {
  .tdd-matrix-grid { grid-template-columns: 1fr; }
}
