:root {
  --fs-xxxl: clamp(2.4rem, 4vw, 3rem);      
  --fs-xxl: clamp(2rem, 3.2vw, 2.5rem);      
  --fs-xl: 1.9rem;                        

  --fs-lg: 1.25rem;                        
  --fs-1_2: 1.2rem;  

  --fs-md: 1.1rem;                          
  --fs-base: 1.5rem;                           
  --fs-sm: 1.2rem;                          
  --fs-xs: 0.82rem;                          
  --fs-tiny: 0.75rem;                        

  --fs-1_25: 1.25rem;             
  --fs-0_96: 0.96rem;             
  --fs-0_95: 0.95rem;
  --fs-0_88: 0.88rem;
  --fs-2_1: 2.1rem;               
  --fs-1_9: 1.9rem;              

  --fw-bold: 700;
  --fw-semibold: 600;
  --fw-medium: 500;
  --fw-normal: 400;

  --lh-hero-title: 1.1;
  --lh-title: 1.2;
  --lh-normal: 1.65;
  
  --container: 1200px;
  --text: #1e293b;
  --muted: #64748b;
  --accent: #3b82f6;
  --accent-light: #eff6ff;
  --transition: all 0.3s ease;
  --shadow-card: 0 10px 30px rgba(15, 23, 42, 0.05);
  --shadow-hover: 0 20px 40px rgba(15, 23, 42, 0.1);
}

*::before,
*::after,
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  background: #f8fafc;
  color: var(--text);
  overflow-x: hidden;
  line-height: var(--lh-normal);
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  top: -10%;
  left: -10%;
  width: 50%;
  height: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.09) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
}

body::after {
  content: "";
  position: fixed;
  top: 20%;
  right: -10%;
  width: 40%;
  height: 40%;
  background: radial-gradient(circle, rgba(147, 197, 253, 0.16) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
}

.container {
  width: 90%;
  max-width: var(--container);
  margin: 0 auto;
}

.text-gradient {
  background: linear-gradient(to right, #1e3a8a, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ================== HERO SECTION ================== */
.ett-hero {
  padding: 5rem 0 3rem;
  position: relative;
}

.ett-hero__inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: center;
}

.ett-hero__title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.1;
  font-weight: 800;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.ett-hero__subtitle {
  font-size: var(--fs-sm);
  color: var(--muted);
  margin-bottom: 2rem;
  max-width: 90%;
  line-height: 1.7;
}

.hero-btns {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

.hero-img-container {
  position: relative;
  animation: float 6s ease-in-out infinite;
}

.hero-img-container img {
  width: 100%;
  border-radius: 28px;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.2);
  border: 4px solid rgba(255, 255, 255, 0.6);
  background: #0b1120;
}

/* ================== STATS STRIP ================== */
.stats-strip {
  margin-top: 4rem;
  background: white;
  border-radius: 16px;
  padding: 2rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  box-shadow: var(--shadow-card);
  border: 1px solid #e2e8f0;
}

.stat-item {
  text-align: center;
  border-right: 1px solid #e5e7eb;
  padding-inline: 0.5rem;
}

.stat-item:last-child {
  border-right: none;
}

.stat-num {
  display: block;
  font-size: var(--fs-2_1);     
  font-weight: var(--fw-bold);
  color: var(--accent);
  margin-bottom: 5px;
}

.stat-label {
  font-size: var(--fs-0_95);
  color: var(--muted);
  font-weight: var(--fw-medium);
}

/* ================== SECTION UTILS ================== */
.section {
  padding: 5rem 0;
  position: relative;
}

.section__header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem;
}

.section__title {
  font-size: var(--fs-xxl);  
  font-weight: var(--fw-bold);
  margin-bottom: 1rem;
  letter-spacing: -0.03em;
  line-height: var(--lh-hero-title);
}

.section__desc {
  color: var(--muted);
  font-size: var(--fs-sm); 
  line-height: var(--lh-normal);
}

/* ================== HOW IT WORKS (STEPS) ================== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
}

.step-card {
  background: white;
  padding: 2.3rem 2rem;
  border-radius: 24px;
  position: relative;
  border: 1px solid #e2e8f0;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}

.step-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: var(--accent-light);
}

.step-num {
  background: var(--accent-light);
  color: var(--accent);
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--fw-bold);
  font-size: var(--fs-1_2);
  margin-bottom: 1.3rem;
}

.step-title {
  font-size: var(--fs-1_25);
  font-weight: var(--fw-bold);
  margin-bottom: 0.6rem;
}

.step-text {
  color: var(--muted);
  font-size: var(--fs-sm);
  line-height: var(--lh-normal);
}

/* ================== FEATURES GRID ================== */
.ett-feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)); /* Fixed minmax bug */
  gap: 2rem;
}

.ett-feature-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  padding: 2.4rem 2rem;
  border-radius: 24px;
  border: 1px solid #e2e8f0;
  box-shadow: var(--shadow-card);
  transition: all 0.4s ease;
}

.ett-feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: var(--accent);
}

.ett-feature-icon {
  font-size: var(--fs-2_1);
  margin-bottom: 1.4rem;
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
}

.ett-feature-title {
  font-size: var(--fs-1_25);
  margin-bottom: 0.7rem;
  font-weight: var(--fw-bold);
  color: var(--text);
}

.ett-feature-text {
  font-size: var(--fs-sm);
  color: var(--muted);
  line-height: var(--lh-normal);
}

/* ================== ROUTE SECTION ================== */
.route-section {
  background: #f9fafb;
}

.route-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
}

.route-copy h3 {
  font-size: var(--fs-1_9);
  margin-bottom: 1rem;
  font-weight: var(--fw-bold);
  line-height: var(--lh-hero-title);
}

.route-copy p {
  color: var(--muted);
  margin-bottom: 1.5rem;
  font-size: var(--fs-sm);
  line-height: var(--lh-normal);
}

.route-copy ul {
  display: grid;
  gap: 0.6rem;
  color: var(--muted);
  font-size: var(--fs-0_95);
  line-height: var(--lh-normal);
}

.route-copy ul li::before {
  content: "•";
  color: var(--accent);
  margin-right: 6px;
}

.map-card {
  background: white;
  border-radius: 26px;
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
  border: 1px solid #e2e8f0;
  position: relative;
  overflow: hidden;
}

.map-svg {
  width: 100%;
  height: 260px;
}

.map-path {
  fill: none;
  stroke: #60a5fa;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 8 10;
}

@keyframes moveDot {
  0% { offset-distance: 0%; }
  100% { offset-distance: 100%; }
}

.map-dot {
  r: 7;
  fill: #22c55e;
  offset-path: path("M20,230 C80,150 160,80 260,60 C340,45 410,80 470,130");
  animation: moveDot 6s linear infinite;
}

.map-tag {
  position: absolute;
  background: white;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  font-size: var(--fs-0_88);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 15px 40px rgba(15, 23, 42, 0.12);
  font-weight: var(--fw-medium);
}

.map-tag--top { top: 16px; right: 18px; }
.map-tag--bottom { bottom: 18px; left: 20px; }

.dot-green {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #22c55e;
}

/* ================== SLIDER SECTION ================== */
.slider-section {
  background: white;
}

.slider-wrapper {
  background: #f9fafb;
  border-radius: 28px;
  padding: 2rem;
  box-shadow: var(--shadow-card);
  border: 1px solid #e2e8f0;
}

.slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.slider-header h3 {
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  line-height: var(--lh-normal);
}

.slider-controls {
  display: flex;
  gap: 0.6rem;
}

.slider-btn {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: 0.2s;
}

.slider-btn:hover {
  background: #eff6ff;
  border-color: var(--accent);
}

.ai-slider {
  position: relative;
  overflow: hidden;
}

.ai-slides {
  display: flex;
  transition: transform 0.5s ease;
}

.ai-slide {
  min-width: 100%;
}

.ai-card {
  background: white;
  border-radius: 20px;
  padding: 1.8rem;
  border: 1px solid #e2e8f0;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.ai-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-sm);
  background: #eff6ff;
  color: #1d4ed8;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 0.8rem;
  font-weight: var(--fw-medium);
}

.ai-title {
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
  margin-bottom: 0.5rem;
}

.ai-card p {
  font-size: var(--fs-md);
  color: var(--muted);
  line-height: var(--lh-normal);
}

.ai-meta {
  font-size: var(--fs-sm);
  color: var(--muted);
  margin-top: 0.7rem;
}

/* ================== RPM SECTION ================== */
.rpm-section {
  background: #0f172a;
  color: white;
}

.rpm-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
}

.rpm-left h2 {
  font-size: var(--fs-xl);
  margin-bottom: 1rem;
  font-weight: var(--fw-bold);
}

.rpm-left p {
  color: #cbd5f5;
  font-size: var(--fs-md);
  line-height: var(--lh-normal);
}

.rpm-card {
  background: rgba(15, 23, 42, 0.9);
  border-radius: 24px;
  padding: 2rem;
  border: 1px solid rgba(148, 163, 184, 0.6);
  box-shadow: 0 22px 55px rgba(15, 23, 42, 0.9);
}

.rpm-field {
  margin-bottom: 1.2rem;
}

.rpm-field label {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9ca3af;
  display: block;
  margin-bottom: 0.4rem;
}

.rpm-field-row {
  display: flex;
  justify-content: space-between;
  font-size: var(--fs-sm);
  color: #e5e7eb;
}

.rpm-slider {
  width: 100%;
}

.rpm-output-box {
  margin-top: 1.3rem;
  padding: 1rem;
  border-radius: 16px;
  background: radial-gradient(circle at top left, #22c55e1a, #0b1120);
  border: 1px solid rgba(34, 197, 94, 0.35);
  text-align: center;
}

.rpm-output-label {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #9ca3af;
}

.rpm-number {
  font-size: var(--fs-xxxl);
  font-weight: var(--fw-bold);
  color: #4ade80;
}

.rpm-tagline {
  font-size: var(--fs-sm);
  color: #e5e7eb;
  margin-top: 0.4rem;
}

/* ================== TRUSTED SECTION ================== */
.trusted-section {
  background: #f9fafb;
}

.trusted-strip {
  border-radius: 20px;
  background: white;
  padding: 2.5rem 2rem;
  border: 1px solid #e5e7eb;
  box-shadow: var(--shadow-card);
}

.trusted-label {
  font-size: var(--fs-sm);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 1.2rem;
  text-align: center;
  font-weight: var(--fw-semibold);
}

.trusted-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.6rem;
}

.trusted-logo {
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  color: #1a1b1c;
  filter: grayscale(100%);
  opacity: 0.85;
  transition: 0.25s ease;
}

.trusted-logo:hover {
  filter: grayscale(0);
  opacity: 1;
  color: #111827;
  border-color: var(--accent);
  box-shadow: 0 12px 25px rgba(37, 99, 235, 0.18);
  transform: translateY(-3px);
}


/* ========================================================
   RESPONSIVE MEDIA QUERIES (THE MAGIC HAPPENS HERE) 
   ======================================================== */

/* For Tablets and Smaller Laptops (Max 1024px) */
@media (max-width: 1024px) {
  /* Stack 2-column layouts to 1 column */
  .ett-hero__inner,
  .route-layout,
  .rpm-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }
  
  /* Center align lists and buttons inside stacked layouts */
  .hero-btns {
    justify-content: center;
  }
  
  .route-copy ul {
    display: inline-grid;
    text-align: left; /* Keep bullets aligned properly */
    margin: 0 auto;
  }

  /* Reduce Features to 2 columns */
  .ett-feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Reduce Steps to 2 columns */
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Fix alignment for step number to keep it centered when text is centered */
  .step-num {
    margin: 0 auto 1.3rem auto;
  }
  .step-card {
    text-align: center;
  }
}

/* For Mobile Phones (Max 768px) */
@media (max-width: 768px) {
  /* Stack EVERYTHING to 1 column */
  .ett-feature-grid,
  .steps-grid,
  .stats-strip {
    grid-template-columns: 1fr;
  }

  /* Fix the border direction for stacked stats */
  .stat-item {
    border-right: none;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 1.5rem;
  }

  .stat-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }

  /* Typography Adjustments for small screens */
  .ett-hero__title {
    font-size: 2.2rem;
  }
  
  .section__title {
    font-size: 1.8rem;
  }

  /* Section Padding Adjustments */
  .section, .ett-hero {
    padding: 3.5rem 0;
  }
  
  .section__header {
    margin: 0 auto 2.5rem;
  }

  /* RPM Row fix for mobile */
  .rpm-field-row {
    flex-direction: column;
    gap: 0.5rem;
  }

  /* Make SVG scale properly on extremely small screens */
  .map-card {
    padding: 1rem;
  }
}