/* =========================================
   Traverse Engineering – Enhanced Visual Design
   TRI™ Route Intelligence
   ========================================= */

:root{
  --bg: #0b3a66;
  --bg2:#082d50;
  --ink:#0f172a;
  --muted:#475569;
  --line:#e2e8f0;
  --soft:#f8fafc;
  --white:#ffffff;
  --accent:#f97316;
  --accent2:#ea580c;
  --accent-light:#fed7aa;
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial, sans-serif;
  color:var(--ink);
  background:var(--white);
  line-height:1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container{
  max-width:1160px;
  margin:0 auto;
  padding:0 20px;
}

a{color:inherit}
.muted{color:var(--muted)}
.small{font-size:13px}
.mt{margin-top:16px}
.w100{width:100%; text-align:center}

/* Header */
.header{
  position:sticky;
  top:0;
  z-index:20;
  background:rgba(255,255,255,.92);
  backdrop-filter:saturate(180%) blur(10px);
  border-bottom:1px solid var(--line);
}
.header__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 0;
}
.brand{ text-decoration:none; transition: opacity 0.2s; }
.brand:hover{ opacity: 0.8; }
.brand__name{ font-weight:900; letter-spacing:.02em; }
.brand__tag{ font-size:12px; letter-spacing:.22em; color:var(--accent); font-weight:800; margin-top:2px; }

.nav a{
  text-decoration:none;
  font-weight:700;
  color:var(--muted);
  margin-left:18px;
  transition: color 0.2s;
}
.nav a:hover{ color:var(--ink); }

/* Buttons */
.btn{
  display:inline-block;
  text-decoration:none;
  font-weight:800;
  border-radius:12px;
  padding:12px 16px;
  border:1px solid transparent;
  transition: all 0.2s ease;
}
.btn--primary{
  background:var(--accent);
  color:var(--white);
  border-color:var(--accent);
}
.btn--primary:hover{ 
  background:var(--accent2); 
  border-color:var(--accent2);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}
.btn--secondary{
  background:var(--white);
  color:var(--bg);
  border-color:rgba(255,255,255,.6);
  box-shadow: 0 1px 0 rgba(15,23,42,.06);
}
.btn--secondary:hover{ 
  border-color: var(--line);
  transform: translateY(-1px);
}

/* Hero */
.hero{
  background: linear-gradient(135deg, var(--bg), var(--bg2));
  color:var(--white);
  padding:72px 0 54px;
  position: relative;
  overflow: hidden;
}
.hero::before{
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 80% 20%, rgba(249, 115, 22, 0.1) 0%, transparent 50%);
  pointer-events: none;
}
.hero .container{ position: relative; z-index: 1; }
.pill{
  display:inline-block;
  padding:8px 12px;
  border-radius:999px;
  background:rgba(255,255,255,.12);
  border:1px solid rgba(255,255,255,.18);
  font-weight:800;
  letter-spacing:.08em;
  font-size:12px;
  margin-bottom:18px;
}
.hero h1{
  font-size:44px;
  line-height:1.15;
  letter-spacing:-.02em;
  margin:0 0 14px;
}
.hero .lead{
  font-size:18px;
  max-width:760px;
  color:rgba(255,255,255,.86);
  margin:0 0 22px;
}
.actions{ display:flex; gap:12px; flex-wrap:wrap; margin-top:8px; }
.cred{
  display:flex; flex-wrap:wrap; gap:10px;
  margin-top:22px;
}
.cred__item{
  font-size:13px;
  padding:8px 12px;
  border-radius:12px;
  background:rgba(255,255,255,.10);
  border:1px solid rgba(255,255,255,.14);
}

/* Sections */
.section{ padding:80px 0; }
.section--alt{ 
  background:var(--soft); 
  border-top:1px solid var(--line); 
  border-bottom:1px solid var(--line); 
}

.section__header{
  max-width: 880px;
  margin-bottom: 48px;
}
.section__header.centered{
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

h2{ 
  margin:0 0 12px; 
  font-size:32px; 
  letter-spacing:-.02em;
  font-weight: 900;
  line-height: 1.2;
}
.sub{ 
  margin:0; 
  color:var(--muted); 
  font-size: 17px;
  line-height: 1.6;
}

/* Problem Section */
.problem-section{
  background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
}

.problem-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
}

.problem-card{
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 32px 24px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.problem-card::before{
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background: var(--accent);
  transition: height 0.3s ease;
}

.problem-card:hover::before{
  height: 100%;
}

.problem-card:hover{
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
  border-color: rgba(249, 115, 22, 0.3);
}

.problem-card__icon{
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, #fff5ed 0%, #fed7aa 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--accent);
}

.problem-card h3{
  margin: 0 0 10px;
  font-size: 19px;
  font-weight: 800;
  color: var(--ink);
}

.problem-card p{
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

/* Deliverables Section */
.deliverables-section{
  background: var(--soft);
}

.deliverables-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 32px;
}

.deliverable-card{
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px;
  position: relative;
  transition: all 0.3s ease;
}

.deliverable-card:hover{
  transform: translateX(4px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.deliverable-card__number{
  position: absolute;
  top: 20px;
  right: 24px;
  font-size: 48px;
  font-weight: 900;
  color: rgba(249, 115, 22, 0.08);
  line-height: 1;
}

.deliverable-card h3{
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
  position: relative;
  z-index: 1;
}

.deliverable-card p{
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

/* Feasibility Section */
.feasibility-section{
  background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
}

.callout-enhanced{
  border: 2px solid var(--line);
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-radius: 24px;
  padding: 48px;
  position: relative;
  overflow: hidden;
  max-width: 840px;
  margin: 0 auto;
}

.callout-enhanced::before{
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.callout-enhanced__content{
  position: relative;
  z-index: 1;
}

.callout-enhanced h2{
  margin: 0 0 16px;
  font-size: 28px;
}

.callout-enhanced p{
  margin: 0 0 12px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
}

.callout-enhanced p:last-child{
  margin-bottom: 0;
  font-size: 15px;
}

/* How It Works Section */
.how-section{
  background: var(--soft);
}

.process-flow{
  max-width: 740px;
  margin: 0 auto;
  padding-top: 32px;
}

.process-step{
  position: relative;
  padding-left: 80px;
  padding-bottom: 48px;
}

.process-step:last-child{
  padding-bottom: 0;
}

.process-step__connector{
  position: absolute;
  left: 27px;
  top: 56px;
  bottom: -48px;
  width: 2px;
  background: linear-gradient(180deg, var(--line) 0%, transparent 100%);
}

.process-step:last-child .process-step__connector{
  display: none;
}

.process-step__number{
  position: absolute;
  left: 0;
  top: 0;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 100%);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 900;
  box-shadow: 0 8px 16px rgba(249, 115, 22, 0.25);
}

.process-step__content h3{
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 800;
  color: var(--ink);
}

.process-step__content p{
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 16px;
}

/* FAQ Section */
.faq-section{
  background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
}

.faq-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 32px;
}

.faq-item{
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  transition: all 0.3s ease;
}

.faq-item:hover{
  border-color: rgba(249, 115, 22, 0.3);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
}

.faq-item h3{
  margin: 0 0 12px;
  font-size: 17px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.4;
}

.faq-item p{
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 15px;
}

/* Pricing Section */
.pricing-section{
  background: var(--soft);
}

.pricing-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.pricing-card{
  background: var(--white);
  border: 2px solid var(--line);
  border-radius: 20px;
  padding: 32px 28px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.pricing-card:hover{
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.1);
}

.pricing-card--featured{
  border-color: var(--accent);
  background: linear-gradient(180deg, #fff5ed 0%, #ffffff 100%);
  transform: scale(1.05);
}

.pricing-card--featured:hover{
  transform: translateY(-6px) scale(1.05);
  box-shadow: 0 20px 40px rgba(249, 115, 22, 0.15);
}

.pricing-card__badge{
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--accent);
  color: var(--white);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.pricing-card__header{
  margin-bottom: 16px;
}

.pricing-card h3{
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
}

.pricing-card__price{
  font-size: 42px;
  font-weight: 900;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 8px;
}

.pricing-card__price .currency{
  font-size: 28px;
  font-weight: 800;
  color: var(--muted);
}

.pricing-card__desc{
  color: var(--muted);
  margin: 0 0 20px;
  font-size: 15px;
}

.pricing-card__features{
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.pricing-card__features li{
  padding: 10px 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  position: relative;
  padding-left: 24px;
}

.pricing-card__features li::before{
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 800;
}

/* Footer */
.footer{
  border-top:1px solid var(--line);
  background:#fff;
  padding:28px 0;
}
.footer__inner{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:14px;
  flex-wrap:wrap;
}
.footer__links a{ 
  margin-left:14px; 
  text-decoration:none; 
  color:var(--muted); 
  font-weight:700;
  transition: color 0.2s;
}
.footer__links a:hover{ color:var(--ink); }

/* Why TRI vs Traditional Section */
.why-tri-section{
  background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
}

.comparison-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 40px;
  margin-bottom: 48px;
}

.comparison-card{
  background: var(--white);
  border: 2px solid var(--line);
  border-radius: 20px;
  padding: 32px;
  transition: all 0.3s ease;
}

.comparison-card--traditional{
  position: relative;
}

.comparison-card--traditional::before{
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: #dc2626;
  border-radius: 20px 20px 0 0;
}

.comparison-card--tri{
  border-color: var(--accent);
  background: linear-gradient(180deg, #fff5ed 0%, #ffffff 100%);
  position: relative;
}

.comparison-card--tri::before{
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--accent);
  border-radius: 20px 20px 0 0;
}

.comparison-card__label{
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 20px;
  text-transform: uppercase;
}

.comparison-card__flow{
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}

.flow-step{
  background: var(--soft);
  padding: 16px;
  border-radius: 12px;
  font-weight: 600;
  color: var(--ink);
  text-align: center;
  border: 1px solid var(--line);
}

.comparison-card--tri .flow-step{
  background: linear-gradient(135deg, #fff5ed 0%, #fed7aa 100%);
  border-color: var(--accent-light);
}

.flow-arrow{
  text-align: center;
  color: var(--muted);
  font-size: 24px;
  line-height: 1;
}

.comparison-card__cost{
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 14px;
  padding: 20px;
  text-align: center;
}

.comparison-card__cost--savings{
  background: #ecfdf5;
  border-color: #6ee7b7;
}

.cost-label{
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cost-value{
  font-size: 28px;
  font-weight: 900;
  color: var(--ink);
  margin-bottom: 6px;
}

.cost-note{
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}

.comparison-cta{
  background: var(--soft);
  border: 2px solid var(--line);
  border-radius: 20px;
  padding: 36px;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.comparison-cta h3{
  margin: 0 0 12px;
  font-size: 24px;
  font-weight: 800;
  color: var(--ink);
}

.comparison-cta p{
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

/* When to Use TRI Section */
.when-section{
  background: var(--soft);
}

.when-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 32px;
}

.when-card{
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
  transition: all 0.3s ease;
}

.when-card:hover{
  border-color: var(--accent);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
  transform: translateY(-2px);
}

.when-card__icon{
  font-size: 40px;
  margin-bottom: 16px;
  line-height: 1;
}

.when-card h3{
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
}

.when-card p{
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 15px;
}

/* Enhanced Pricing Section */
.pricing-card__outcome{
  background: var(--soft);
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 20px;
  font-size: 14px;
  color: var(--ink);
}

.pricing-card__outcome strong{
  color: var(--accent);
  font-weight: 800;
}

.pricing-card__roi{
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  text-align: center;
}

.roi-label{
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.roi-value{
  font-size: 24px;
  font-weight: 900;
  color: var(--accent);
  margin-bottom: 4px;
}

.roi-note{
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}

.pricing-guarantee{
  margin-top: 56px;
  background: linear-gradient(135deg, var(--bg), var(--bg2));
  border-radius: 24px;
  padding: 48px;
  color: var(--white);
  text-align: center;
}

.pricing-guarantee h3{
  margin: 0 0 32px;
  font-size: 28px;
  font-weight: 900;
  color: var(--white);
}

.guarantee-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
}

.guarantee-item{
  padding: 24px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  transition: all 0.3s ease;
}

.guarantee-item:hover{
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-4px);
}

.guarantee-stat{
  font-size: 42px;
  font-weight: 900;
  color: var(--accent-light);
  margin-bottom: 12px;
  line-height: 1;
}

.guarantee-item p{
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  line-height: 1.5;
}

/* Responsive */
@media (max-width: 980px){
  .problem-grid,
  .deliverables-grid,
  .faq-grid,
  .pricing-grid{ 
    grid-template-columns: 1fr; 
  }
  
  .comparison-grid,
  .when-grid,
  .guarantee-grid{
    grid-template-columns: 1fr;
  }
  
  .pricing-card--featured{
    transform: none;
  }
  
  .pricing-card--featured:hover{
    transform: translateY(-6px);
  }
  
  .hero h1{ font-size:36px; }
  .nav a{ display:none; }
  .nav .btn{ display:inline-block; margin-left:0; }
  
  .callout-enhanced{
    padding: 32px 24px;
  }
  
  h2{ font-size: 28px; }
  
  .section{ padding: 60px 0; }
  
  .pricing-guarantee{
    padding: 32px 24px;
  }
  
  .guarantee-stat{
    font-size: 36px;
  }
}

@media (max-width: 640px){
  .problem-grid,
  .deliverables-grid,
  .faq-grid,
  .pricing-grid{ 
    grid-template-columns: 1fr; 
  }
  
  .pricing-card--featured{
    transform: none;
  }
  
  .pricing-card--featured:hover{
    transform: translateY(-6px);
  }
  
  .hero h1{ font-size:36px; }
  .nav a{ display:none; }
  .nav .btn{ display:inline-block; margin-left:0; }
  
  .callout-enhanced{
    padding: 32px 24px;
  }
  
  h2{ font-size: 28px; }
  
  .section{ padding: 60px 0; }
}

@media (max-width: 640px){
  .hero{ padding: 48px 0 40px; }
  .hero h1{ font-size: 30px; }
  .hero .lead{ font-size: 16px; }
  
  .problem-card,
  .deliverable-card,
  .faq-item{ padding: 20px; }
  
  .pricing-card{ padding: 24px 20px; }
  .pricing-card__price{ font-size: 36px; }
  
  .section__header{ margin-bottom: 32px; }
}
