/* Legacy System Modernization — v1 */

:root {
  --lm-orange:  #F97316;
  --lm-amber:   #FB923C;
  --lm-red:     #EF4444;
  --lm-cyan:    #06B6D4;
  --lm-green:   #22C55E;
  --lm-bg:      #080604;
  --lm-bg2:     #0A0806;
  --lm-gray:    #3F3F46;
}

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

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

/* ── BUTTONS ── */
.lm-cta-btn { display: inline-flex; align-items: center; gap: 10px; padding: 16px 32px; background: linear-gradient(135deg, var(--lm-orange), var(--lm-amber)); color: #fff; border: none; border-radius: 10px; font-size: 15px; font-weight: 700; cursor: pointer; transition: all 0.3s ease; box-shadow: 0 8px 30px rgba(249,115,22,0.35); }
.lm-cta-btn:hover { transform: translateY(-3px); box-shadow: 0 14px 40px rgba(249,115,22,0.5); }
.lm-cta-btn i { color: #fff !important; -webkit-text-fill-color: #fff !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; }
.lm-cta-btn:hover i { transform: translateX(4px); }
.lm-cta-large { font-size: 17px; padding: 20px 44px; }
.lm-cta-outline { background: transparent !important; border: 1.5px solid rgba(249,115,22,0.5) !important; color: var(--lm-orange) !important; box-shadow: none !important; }
.lm-cta-outline:hover { background: rgba(249,115,22,0.08) !important; border-color: var(--lm-orange) !important; }
.lm-cta-outline i { color: var(--lm-orange) !important; -webkit-text-fill-color: var(--lm-orange) !important; }

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

/* ── MANDATES GRID (4-col) ── */
.lm-mandates { background: var(--lm-bg2); padding: 100px 60px; }
.lm-mandates-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; max-width: 1280px; margin: 0 auto; }

.lm-mandate-card { position: relative; background: rgba(15,10,6,0.7); backdrop-filter: blur(20px); border: 1px solid rgba(249,115,22,0.08); border-radius: 20px; padding: 36px 24px; transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.35s ease, border-color 0.35s ease; overflow: hidden; }
.lm-mandate-card:hover { transform: translateY(-10px) scale(1.01); box-shadow: 0 28px 70px rgba(249,115,22,0.16); border-color: rgba(249,115,22,0.3); }

/* Circuit pattern revealed on hover */
.lm-circuit-bg { position: absolute; inset: 0; border-radius: 20px; opacity: 0; transition: opacity 0.4s ease; pointer-events: none;
  background-image:
    linear-gradient(rgba(249,115,22,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(249,115,22,0.06) 1px, transparent 1px);
  background-size: 24px 24px; }
.lm-mandate-card:hover .lm-circuit-bg { opacity: 1; }

.lm-mandate-icon { width: 52px; height: 52px; background: linear-gradient(135deg, var(--lm-orange), var(--lm-amber)); border-radius: 13px; display: flex; align-items: center; justify-content: center; margin-bottom: 18px; position: relative; z-index: 1; transition: box-shadow 0.35s ease; }
.lm-mandate-card:hover .lm-mandate-icon { box-shadow: 0 0 28px rgba(249,115,22,0.55); }
.lm-mandate-icon i { font-size: 20px; color: #fff !important; -webkit-text-fill-color: #fff !important; font-family: "Font Awesome 6 Free" !important; font-weight: 900 !important; background: none !important; -webkit-background-clip: initial !important; background-clip: initial !important; }
.lm-mandate-card h3 { font-size: 16px; font-weight: 700; color: #fff; margin-bottom: 12px; line-height: 1.35; position: relative; z-index: 1; }
.lm-mandate-card p { font-size: 13.5px; color: rgba(255,255,255,0.52); line-height: 1.8; margin: 0 0 18px; position: relative; z-index: 1; }
.lm-card-tags { display: flex; flex-wrap: wrap; gap: 6px; position: relative; z-index: 1; }
.lm-card-tags span { padding: 3px 10px; background: rgba(249,115,22,0.07); border: 1px solid rgba(249,115,22,0.18); border-radius: 50px; font-size: 11px; font-weight: 600; color: rgba(255,255,255,0.4); }

/* ── STRANGLER FIG TIMELINE ── */
.lm-methodology { background: var(--lm-bg); padding: 100px 60px; }
.lm-timeline-layout { max-width: 960px; margin: 0 auto; display: grid; grid-template-columns: 56px 1fr; gap: 0 40px; }
.lm-timeline-track { position: relative; display: flex; justify-content: center; }
.lm-track-line { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 2px; height: 100%; background: rgba(249,115,22,0.1); border-radius: 2px; }
.lm-track-glow { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 2px; height: 0%; background: linear-gradient(180deg, var(--lm-orange), var(--lm-amber)); border-radius: 2px; box-shadow: 0 0 12px var(--lm-orange); transition: height 0.05s linear; }

.lm-phases { display: flex; flex-direction: column; }
.lm-phase { display: flex; gap: 28px; align-items: flex-start; padding: 48px 0; border-bottom: 1px solid rgba(249,115,22,0.06); opacity: 0.3; transition: opacity 0.4s ease, transform 0.5s ease; transform: translateX(20px); }
.lm-phase:last-child { border-bottom: none; }
.lm-phase.active { opacity: 1; transform: translateX(0); }
.lm-phase-node { width: 52px; height: 52px; border-radius: 50%; border: 2px solid rgba(249,115,22,0.18); display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: all 0.4s ease; background: rgba(15,10,6,0.6); }
.lm-phase.active .lm-phase-node { border-color: var(--lm-orange); box-shadow: 0 0 24px rgba(249,115,22,0.45); background: rgba(249,115,22,0.07); }
.lm-phase-node span { font-size: 11px; font-weight: 800; color: rgba(255,255,255,0.3); letter-spacing: 1px; font-family: 'Courier New', monospace; }
.lm-phase.active .lm-phase-node span { color: var(--lm-orange); }
.lm-phase-body h3 { font-size: 22px; font-weight: 700; color: #fff; margin-bottom: 12px; line-height: 1.3; }
.lm-phase-body p { font-size: 15px; color: rgba(255,255,255,0.55); line-height: 1.8; margin: 0 0 14px; }
.lm-code-tag { display: inline-block; font-family: 'Courier New', monospace; font-size: 12px; color: var(--lm-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; }

/* ── ROI BENTO ── */
.lm-roi { background: #0A0806 !important; padding: 100px 60px; }
.lm-bento-grid { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 20px; align-items: start; }

.lm-bento-card { position: relative; background: #130D08 !important; border: 1px solid rgba(249,115,22,0.15) !important; border-radius: 20px; padding: 40px 36px; transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease; overflow: hidden; backdrop-filter: none !important; }
.lm-bento-card:hover { transform: translateY(-5px); box-shadow: 0 24px 60px rgba(249,115,22,0.18) !important; border-color: rgba(249,115,22,0.35) !important; }
.lm-bento-large { padding: 52px 44px; }
.lm-bento-large::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 80% 20%, rgba(249,115,22,0.09) 0%, transparent 60%); pointer-events: none; }

.lm-bento-icon { width: 48px; height: 48px; background: linear-gradient(135deg, var(--lm-orange), var(--lm-amber)) !important; border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; position: relative; z-index: 2; flex-shrink: 0; }
.lm-bento-icon i,
.lm-bento-icon i.fas,
.lm-bento-icon i.far { font-size: 18px !important; color: #fff !important; -webkit-text-fill-color: #fff !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; }
.lm-bento-metric { font-size: 72px; font-weight: 900; line-height: 1; letter-spacing: -3px; color: var(--lm-orange) !important; -webkit-text-fill-color: var(--lm-orange) !important; background: none !important; -webkit-background-clip: initial !important; background-clip: initial !important; margin-bottom: 8px; }
.lm-bento-large .lm-bento-metric { font-size: 96px; }
.lm-bento-card h3 { font-size: 18px !important; font-weight: 700 !important; color: #ffffff !important; -webkit-text-fill-color: #ffffff !important; margin-bottom: 12px; line-height: 1.3; }
.lm-bento-card p { font-size: 14px !important; color: rgba(255,255,255,0.6) !important; -webkit-text-fill-color: rgba(255,255,255,0.6) !important; line-height: 1.8; margin: 0 0 20px; }
.lm-bento-tag { display: inline-block; padding: 4px 12px; background: rgba(249,115,22,0.1) !important; border: 1px solid rgba(249,115,22,0.25) !important; border-radius: 50px; font-size: 11px; font-weight: 700; color: var(--lm-orange) !important; -webkit-text-fill-color: var(--lm-orange) !important; text-transform: uppercase; letter-spacing: 1px; }

/* ── TESTIMONIAL ── */
.lm-testimonials { background: var(--lm-bg); padding: 100px 60px; }
.lm-quote-block { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr; gap: 60px; align-items: center; }
.lm-quote-left { }
.lm-qmark { font-size: 100px; line-height: 0.6; color: var(--lm-orange); opacity: 0.18; font-family: Georgia, serif; display: block; margin-bottom: 24px; }
.lm-quote-left blockquote { font-size: 18px; color: rgba(255,255,255,0.82); line-height: 1.85; font-style: italic; margin: 0 0 32px; border: none; padding: 0; }
.lm-quote-meta { display: flex; flex-direction: column; gap: 14px; }
.lm-quote-stat-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 14px; background: rgba(34,197,94,0.08); border: 1px solid rgba(34,197,94,0.22); border-radius: 50px; font-size: 11px; font-weight: 700; color: var(--lm-green); width: fit-content; }
.lm-quote-stat-pill i { color: var(--lm-green) !important; -webkit-text-fill-color: var(--lm-green) !important; font-family: "Font Awesome 6 Free" !important; font-weight: 900 !important; background: none !important; -webkit-background-clip: initial !important; background-clip: initial !important; }
.lm-quote-left cite { font-size: 14px; color: rgba(255,255,255,0.4); font-style: normal; }
.lm-quote-left cite span { color: var(--lm-orange); }

.lm-quote-right { display: flex; flex-direction: column; gap: 32px; }
.lm-quote-stat-block { display: flex; flex-direction: column; gap: 20px; padding: 36px 32px; background: rgba(15,10,6,0.65); border: 1px solid rgba(249,115,22,0.1); border-radius: 20px; }
.lm-stat { display: flex; flex-direction: column; gap: 4px; }
.lm-stat-num { font-size: 48px; font-weight: 900; line-height: 1; letter-spacing: -2px; background: linear-gradient(135deg, var(--lm-orange), var(--lm-amber)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.lm-stat-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: rgba(255,255,255,0.35); font-family: 'Courier New', monospace; }

/* ── FINAL CTA ── */
.lm-final-cta { position: relative; padding: 130px 60px; text-align: center; overflow: hidden; background: #060402; border-top: 1px solid rgba(249,115,22,0.08); }
.lm-cta-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.lm-final-cta::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 25% 50%, rgba(249,115,22,0.12) 0%, transparent 55%), radial-gradient(circle at 75% 50%, rgba(239,68,68,0.08) 0%, transparent 55%); pointer-events: none; }
.lm-final-inner { position: relative; z-index: 2; max-width: 760px; margin: 0 auto; }
.lm-final-cta h2 { font-size: 52px; font-weight: 900; color: #fff; line-height: 1.1; margin-bottom: 20px; letter-spacing: -1.5px; }
.lm-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.lm-hero { background: #ffffff !important; }
body.light-theme section.lm-mandates { background: #fff8f4 !important; }
body.light-theme section.lm-methodology { background: #ffffff !important; }
body.light-theme section.lm-roi { background: #fff8f4 !important; }
body.light-theme section.lm-testimonials { background: #ffffff !important; }
body.light-theme section.lm-final-cta { background: #ffffff !important; border-top-color: rgba(0,0,0,0.06) !important; }
body.light-theme section.lm-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 .lm-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 .lm-hero-title { color: #1a1f3a !important; }
body.light-theme .lm-hero-sub { color: rgba(26,31,58,0.65) !important; }
body.light-theme .lm-hero-badge { border-color: rgba(255,123,0,0.4) !important; color: var(--original-orange) !important; }
body.light-theme .lm-hero-badge i { color: var(--original-orange) !important; -webkit-text-fill-color: var(--original-orange) !important; }
body.light-theme .lm-section-header h2 { color: #1a1f3a !important; }
body.light-theme .lm-section-header p { color: rgba(26,31,58,0.6) !important; }

body.light-theme .lm-mandate-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 .lm-mandate-card:hover { box-shadow: 0 28px 70px rgba(255,123,0,0.12) !important; border-color: rgba(255,123,0,0.25) !important; }
body.light-theme .lm-mandate-card:hover .lm-mandate-icon { box-shadow: 0 0 28px rgba(255,123,0,0.35) !important; }
body.light-theme .lm-mandate-icon { background: linear-gradient(135deg, var(--original-orange), var(--original-orange-hover)) !important; }
body.light-theme .lm-mandate-icon i { color: #fff !important; -webkit-text-fill-color: #fff !important; }
body.light-theme .lm-mandate-card h3 { color: #1a1f3a !important; }
body.light-theme .lm-mandate-card p { color: rgba(26,31,58,0.6) !important; }
body.light-theme .lm-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 .lm-circuit-bg { background-image: linear-gradient(rgba(255,123,0,0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,123,0,0.06) 1px, transparent 1px) !important; }

body.light-theme .lm-track-line { background: rgba(255,123,0,0.1) !important; }
body.light-theme .lm-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 .lm-phase { border-bottom-color: rgba(0,0,0,0.06) !important; }
body.light-theme .lm-phase-node { border-color: rgba(255,123,0,0.2) !important; background: #fff !important; }
body.light-theme .lm-phase.active .lm-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 .lm-phase-node span { color: rgba(26,31,58,0.3) !important; }
body.light-theme .lm-phase.active .lm-phase-node span { color: var(--original-orange) !important; }
body.light-theme .lm-phase-body h3 { color: #1a1f3a !important; }
body.light-theme .lm-phase-body p { color: rgba(26,31,58,0.6) !important; }
body.light-theme .lm-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 .lm-bento-card { background: #ffffff !important; border-color: rgba(0,0,0,0.08) !important; box-shadow: 0 4px 20px rgba(0,0,0,0.06) !important; }
body.light-theme .lm-bento-card:hover { box-shadow: 0 24px 60px rgba(255,123,0,0.12) !important; border-color: rgba(255,123,0,0.2) !important; }
body.light-theme .lm-bento-icon { background: linear-gradient(135deg, var(--original-orange), var(--original-orange-hover)) !important; }
body.light-theme .lm-bento-icon i,
body.light-theme .lm-bento-icon i.fas { color: #fff !important; -webkit-text-fill-color: #fff !important; background: none !important; -webkit-background-clip: initial !important; background-clip: initial !important; font-family: "Font Awesome 6 Free" !important; font-weight: 900 !important; display: block !important; }
body.light-theme .lm-bento-metric { color: var(--original-orange) !important; -webkit-text-fill-color: var(--original-orange) !important; background: none !important; -webkit-background-clip: initial !important; background-clip: initial !important; }
body.light-theme .lm-bento-card h3 { color: #1a1f3a !important; -webkit-text-fill-color: #1a1f3a !important; }
body.light-theme .lm-bento-card p { color: rgba(26,31,58,0.65) !important; -webkit-text-fill-color: rgba(26,31,58,0.65) !important; }
body.light-theme .lm-bento-tag { background: rgba(255,123,0,0.08) !important; border-color: rgba(255,123,0,0.22) !important; color: var(--original-orange) !important; -webkit-text-fill-color: var(--original-orange) !important; }

body.light-theme .lm-quote-left blockquote { color: rgba(26,31,58,0.85) !important; }
body.light-theme .lm-quote-left cite { color: rgba(26,31,58,0.45) !important; }
body.light-theme .lm-quote-left cite span { color: var(--original-orange) !important; }
body.light-theme .lm-quote-stat-pill { background: rgba(34,197,94,0.08) !important; border-color: rgba(34,197,94,0.22) !important; color: #16a34a !important; }
body.light-theme .lm-quote-stat-pill i { color: #16a34a !important; -webkit-text-fill-color: #16a34a !important; }
body.light-theme .lm-quote-stat-block { background: #ffffff !important; border-color: rgba(0,0,0,0.08) !important; }
body.light-theme .lm-stat-num { 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 .lm-stat-label { color: rgba(26,31,58,0.4) !important; }
body.light-theme .lm-cta-outline { border-color: rgba(255,123,0,0.5) !important; color: var(--original-orange) !important; }
body.light-theme .lm-cta-outline:hover { background: rgba(255,123,0,0.06) !important; }
body.light-theme .lm-cta-outline i { color: var(--original-orange) !important; -webkit-text-fill-color: var(--original-orange) !important; }

body.light-theme .lm-final-cta h2 { color: #1a1f3a !important; }
body.light-theme .lm-final-cta p { color: rgba(26,31,58,0.65) !important; }
body.light-theme .lm-cta-btn:not(.lm-cta-outline) { background: linear-gradient(135deg, var(--original-orange), var(--original-orange-hover)) !important; box-shadow: 0 8px 30px rgba(255,123,0,0.3) !important; }

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
  .lm-mandates-grid { grid-template-columns: repeat(2, 1fr); }
  .lm-bento-grid { grid-template-columns: 1fr 1fr; }
  .lm-bento-large { grid-column: 1 / -1; }
  .lm-quote-block { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 700px) {
  .lm-mandates-grid { grid-template-columns: 1fr; }
  .lm-bento-grid { grid-template-columns: 1fr; }
  .lm-hero-title { font-size: 38px; }
  .lm-section-header h2 { font-size: 32px; }
  .lm-final-cta h2 { font-size: 32px; }
  .lm-hero, .lm-mandates, .lm-methodology, .lm-roi, .lm-testimonials, .lm-final-cta { padding: 80px 24px; }
  .lm-timeline-layout { grid-template-columns: 1fr; }
  .lm-timeline-track { display: none; }
  .lm-bento-metric { font-size: 56px; }
  .lm-bento-large .lm-bento-metric { font-size: 72px; }
}
