@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@400;600;700;800&display=swap');

:root {
  /* Brand Colors TP Road */
  --tp-navy: #0A2240;
  --tp-red: #E63030;
  --tp-red-hover: #C52222;
  
  /* Grays / Lights for Premium Aesthetic */
  --bg-white: #FFFFFF;
  --bg-light: #F4F6F8; /* Super soft gray inspired by XPD */
  --bg-dark: #121A25; /* Very dark navy for footers */
  
  --text-dark: #1C2431;
  --text-muted: #5A6A7E;
  --text-light: #A0B0C4;
  --border-light: #E0E6ED;
  
  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* UI Tokens */
  --radius-sm: 4px;
  --radius-md: 8px; /* Sharp, clean edges */
  --radius-lg: 12px;
  --shadow-sm: 0 4px 6px -1px rgba(0,0,0,0.05);
  --shadow-md: 0 10px 30px -5px rgba(10,34,64,0.08); /* Premium subtle shadow */
  --shadow-lg: 0 20px 40px -5px rgba(10,34,64,0.12);
  
  --transition-fast: 0.2s ease;
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background-color: var(--bg-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--tp-navy);
  line-height: 1.2;
  font-weight: 700;
}

p {
  color: var(--text-muted);
  font-size: 1.125rem;
}

a {
  text-decoration: none;
  transition: var(--transition-fast);
}

.text-navy { color: var(--tp-navy); }
.text-red { color: var(--tp-red); }
.text-white { color: white; }
.text-muted { color: var(--text-muted); }

.bg-white { background-color: var(--bg-white); }
.bg-light { background-color: var(--bg-light); }
.bg-navy { background-color: var(--tp-navy); }

/* =========================================
   LAYOUT UTILS
   ========================================= */
.container {
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-padding {
  padding: 100px 0;
}

.text-center { text-align: center; }

/* =========================================
   TYPOGRAPHY HIERARCHY
   ========================================= */
.h-giant {
  font-size: clamp(3rem, 5vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.h-section {
  font-size: clamp(2rem, 3vw, 2.75rem);
  font-weight: 700;
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}

/* =========================================
   BUTTONS (Premium Pill / Rect shapes)
   ========================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-smooth);
  border: none;
}

.btn-primary {
  background-color: var(--tp-red);
  color: white;
}
.btn-primary:hover {
  background-color: var(--tp-red-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(230,48,48,0.3);
}

.btn-navy {
  background-color: var(--tp-navy);
  color: white;
}
.btn-navy:hover {
  background-color: #163660;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(10,34,64,0.3);
}

.btn-outline {
  background-color: transparent;
  color: var(--tp-navy);
  border: 1px solid var(--border-light);
}
.btn-outline:hover {
  border-color: var(--tp-navy);
  background-color: rgba(10,34,64,0.03);
}

/* =========================================
   NAVIGATION
   ========================================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 90px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-light);
  z-index: 1000;
  transition: transform 0.3s ease, height 0.3s ease;
  display: flex;
  align-items: center;
}

.navbar.scrolled {
  height: 75px;
  box-shadow: var(--shadow-sm);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-img {
  height: 40px;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  color: var(--tp-navy);
  font-weight: 500;
  font-size: 0.95rem;
  font-family: var(--font-body);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--tp-red);
  transition: var(--transition-fast);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--tp-navy);
  width: 30px;
  cursor: pointer;
}

/* =========================================
   HERO SECTION (Enterprise Style)
   ========================================= */
.hero-premium {
  padding: 180px 0 100px;
  background: var(--bg-light);
  position: relative;
  overflow: hidden;
}

.hero-premium::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(10,34,64,0.03) 0%, rgba(255,255,255,0) 70%);
  border-radius: 50%;
  z-index: 0;
}

/* Hero Background Decorative Truck Image */
.hero-bg-image {
  position: absolute;
  top: 50%;
  right: -3%;
  transform: translateY(-48%);
  width: 62%;
  max-width: 900px;
  z-index: 0;
  pointer-events: none;
  opacity: 0.15;
}

.hero-bg-image img {
  width: 100%;
  height: auto;
  display: block;
  filter: saturate(0) contrast(1.05) brightness(1.05);
}

/* Gradient overlay to smoothly fade image edges into background */
.hero-premium::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    linear-gradient(to right, var(--bg-light) 0%, var(--bg-light) 25%, rgba(244,246,248,0) 55%, rgba(244,246,248,0.6) 90%, var(--bg-light) 100%),
    linear-gradient(to bottom, var(--bg-light) 0%, rgba(244,246,248,0) 20%, rgba(244,246,248,0) 80%, var(--bg-light) 100%);
  z-index: 0;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
  position: relative;
  z-index: 1;
  align-items: center;
  max-width: 750px;
}

.hero-content {
  max-width: 700px;
}

.hero-subtitle {
  color: var(--tp-red);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.85rem;
  display: block;
  margin-bottom: 20px;
}

.hero-desc {
  font-size: 1.25rem;
  margin-top: 24px;
  margin-bottom: 40px;
  color: var(--text-muted);
  max-width: 600px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  align-items: center;
}

/* Trust Stats Bar */
.trust-bar {
  margin-top: 80px;
  padding-top: 40px;
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.trust-icon {
  width: 48px;
  height: 48px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--tp-red);
  box-shadow: var(--shadow-sm);
}
.trust-icon svg { width: 24px; height: 24px; }

.trust-text h4 {
  font-size: 1.5rem;
  margin-bottom: 2px;
}
.trust-text p {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
}

/* =========================================
   VALUE PROP / CERTEZA
   ========================================= */
.value-prop {
  background-color: var(--tp-navy);
  color: white;
  padding: 100px 0;
  text-align: center;
}

.value-prop h2 {
  color: white;
  max-width: 800px;
  margin: 0 auto 24px;
  font-size: clamp(2rem, 3vw, 3rem);
}

.value-prop p {
  color: var(--text-light);
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.2rem;
}

/* =========================================
   SERVICES GRID (Premium Cards)
   ========================================= */
.services-section {
  background-color: var(--bg-white);
}

.services-header {
  margin-bottom: 60px;
  max-width: 600px;
}

.service-grid-premium {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.service-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 40px;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--tp-red);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition-smooth);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  width: 60px;
  height: 60px;
  background: var(--bg-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--tp-navy);
}

.service-icon svg {
  width: 28px;
  height: 28px;
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.service-card p {
  font-size: 1rem;
  margin-bottom: 24px;
}

.service-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--tp-red);
  font-weight: 600;
  font-size: 0.95rem;
}
.service-link svg {
  width: 16px;
  transition: var(--transition-fast);
}
.service-card:hover .service-link svg {
  transform: translateX(4px);
}

/* =========================================
   TECH / CONTROL SECTION
   ========================================= */
.tech-section {
  background: var(--bg-light);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.tech-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.tech-list {
  list-style: none;
  margin-top: 32px;
}

.tech-list li {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.tech-list li svg {
  color: var(--tp-red);
  flex-shrink: 0;
  margin-top: 4px;
}

.tech-list h4 {
  font-size: 1.125rem;
  margin-bottom: 4px;
}

.tech-visual {
  background: var(--bg-white);
  padding: 40px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  position: relative;
}

.dashboard-mockup {
  width: 100%;
  height: 300px;
  background: var(--bg-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  border: 1px solid var(--border-light);
}

/* =========================================
   CULTURE CTA
   ========================================= */
.culture-cta {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

/* =========================================
   FOOTER (Premium Dark)
   ========================================= */
.footer {
  background-color: var(--bg-dark);
  color: var(--text-light);
  padding: 80px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 40px;
  margin-bottom: 30px;
}

.footer-logo {
  height: 48px;
  margin-bottom: 24px;
  filter: brightness(0) invert(1);
}

.footer-desc {
  max-width: 400px;
  font-size: 1rem;
}

.footer-title {
  color: white;
  font-size: 1.1rem;
  margin-bottom: 24px;
  font-family: var(--font-body);
}

.footer-links {
  list-style: none;
}
.footer-links li {
  margin-bottom: 12px;
}
.footer-links a {
  color: var(--text-light);
  font-size: 0.95rem;
}
.footer-links a:hover {
  color: white;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

/* =========================================
   ANIMATIONS
   ========================================= */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 1024px) {
  .hero-grid, .tech-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-bg-image {
    opacity: 0.1;
    width: 80%;
    right: -15%;
  }
  .hero-grid {
    max-width: 100%;
  }
}

@media (max-width: 600px) {
  .hero-bg-image {
    display: none;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 75px;
    left: 0;
    width: 100%;
    background: white;
    flex-direction: column;
    padding: 30px;
    box-shadow: var(--shadow-sm);
    clip-path: circle(0% at top right);
    transition: var(--transition-smooth);
  }
  .nav-links.active {
    clip-path: circle(150% at top right);
  }
  .nav-toggle { display: block; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 16px; }
  .trust-bar { flex-direction: column; }
}
