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

:root {
  --primary: #E60023;
  --primary-hover: #C5001E;
  --bg-main: #FFFFFF;
  --bg-card: #FFFFFF;
  --bg-alt: #F8FAFC; /* Slate 50: Extremely crisp, cool white */
  --text-main: #0F172A; /* Slate 900: Perfect contrast luxury black */
  --text-muted: #475569; /* Slate 600: Highly readable medium gray */
  --border-color: #E2E8F0; /* Slate 200: Sharp division */
  --radius: 16px; /* Crisper, mature box corners */
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: var(--bg-alt);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  /* Pro UI tweak: hardware-accelerated crisp text rendering */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Subtle, smooth ambient backlights without the messy dot-grid */
body::before {
  content: '';
  position: fixed;
  top: -10%; right: -5%;
  width: 50vw; height: 50vw;
  background: radial-gradient(circle, rgba(230,0,35,0.04) 0%, transparent 60%);
  filter: blur(80px);
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
}
body::after {
  content: '';
  position: fixed;
  bottom: -20%; left: -10%;
  width: 50vw; height: 50vw;
  background: radial-gradient(circle, rgba(15,23,42,0.03) 0%, transparent 60%);
  filter: blur(80px);
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
}

h1, h2, h3, h4, h5 {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  line-height: 1.15;
  color: var(--text-main);
  letter-spacing: -0.015em;
}

img {
  max-width: 100%;
  display: block;
  object-fit: cover;
}

/* =====================================
   GATEWAY ENTRY (index.html)
===================================== */
.gateway-wrapper {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100vw;
  height: 100vh;
  background: var(--bg-alt);
  padding: 1.5rem;
  z-index: 99999;
}

.gateway-card {
  background: var(--bg-main);
  padding: 4.5rem 3rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  /* Sharp, high-end Apple-style shadow matrix */
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05), 0 20px 25px -5px rgba(0,0,0,0.05);
  text-align: center;
  width: 100%;
  max-width: 520px;
  animation: popIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes popIn {
  0% { opacity: 0; transform: scale(0.97) translateY(15px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

.gateway-card .logo {
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: 2.25rem;
  margin-bottom: 2rem;
  color: var(--text-main);
}
.gateway-card .logo span { color: var(--primary); }

.gateway-card h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}
.gateway-card p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
  font-weight: 500;
}

.lang-options {
  display: flex;
  gap: 1rem;
  justify-content: center;
}
.lang-options .btn {
  flex: 1;
}

/* =====================================
   UI UTILITIES & COMPONENTS
===================================== */
.container {
  width: 100%;
  max-width: 1140px; /* Tighter layout for sharpness */
  margin: 0 auto;
  padding: 0 5%;
}

.section-title {
  font-size: clamp(2.25rem, 4vw, 3rem);
  margin-bottom: 3.5rem;
  text-align: center;
}

.highlight { color: var(--primary); }

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
}

.card-panel {
  padding: 3rem;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02), 0 2px 4px -2px rgba(0,0,0,0.02);
  transition: all 0.3s ease;
}
.card-panel:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.05), 0 8px 10px -6px rgba(0,0,0,0.02);
  border-color: #CBD5E1; /* Slight outline pop */
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 2rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 50px;
  transition: all 0.25s ease;
  cursor: pointer;
  border: none;
  text-align: center;
  text-decoration: none;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 1px 3px rgba(230,0,35,0.4);
}
.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 15px -4px rgba(230,0,35,0.5);
}
.btn-outline {
  background: transparent;
  color: var(--text-main);
  border: 2px solid var(--border-color);
}
.btn-outline:hover {
  background: var(--bg-alt);
  border-color: var(--text-muted);
}

/* NAVBAR */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  padding: 1.25rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0.04);
}
.navbar .logo {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--text-main);
  letter-spacing: -0.5px;
}
.navbar .logo span { color: var(--primary); }

.lang-switch { display: flex; gap: 0.35rem; }
.lang-switch a {
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  color: var(--text-muted);
  background: var(--bg-alt);
  border: 1px solid transparent;
}
.lang-switch a.active {
  background: var(--text-main);
  color: var(--bg-main);
}
.lang-switch a:hover:not(.active) { background: #FFFFFF; border-color: var(--border-color); color: var(--text-main); }

/* MAIN SECTIONS */
section { padding: 7rem 0; }
section:nth-child(even) { background: var(--bg-main); border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color);}

.hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  padding-top: 8rem;
  background: var(--bg-alt);
}
.hero-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}
.hero h1 {
  font-size: clamp(3rem, 5.5vw, 4.5rem);
  margin-bottom: 1.5rem;
}
.hero p {
  font-size: 1.25rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 3rem;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
}
.badge {
  display: inline-block;
  padding: 0.45rem 1.25rem;
  border-radius: 50px;
  background: #FFF0F1;
  color: var(--primary);
  font-weight: 800;
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* COMPARISON GRID */
.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2.5rem;
}
.comp-card {
  padding: 2.5rem;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  transition: transform 0.3s;
}
.comp-card.active-comp {
  background: #FFFFFF;
  border: 2px solid var(--primary);
  box-shadow: 0 10px 20px rgba(230,0,35,0.06);
  transform: translateY(-2px);
}
.comp-card h3 { font-size: 1.5rem; margin-bottom: 1.25rem; }
.comp-card ul { list-style: none; }
.comp-card ul li {
  margin-bottom: 1.15rem;
  color: var(--text-muted);
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  font-size: 1.05rem;
  font-weight: 500;
}
.comp-card ul li::before {
  content: "✓";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--border-color);
  color: var(--text-main);
  font-size: 0.75rem;
  font-weight: bold;
  flex-shrink: 0;
  margin-top: 4px;
}
.comp-card.active-comp ul li::before {
  background: var(--primary);
  color: #fff;
}

/* ABOUT */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4.5rem;
  align-items: center;
}
.about-img {
  position: relative;
  border-radius: var(--radius);
}
.about-img img {
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  border: 1px solid var(--border-color);
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center;
}
.about-text h2 { font-size: 2.5rem; margin-bottom: 1.5rem; }
.about-text p { color: var(--text-muted); font-size: 1.15rem; font-weight: 500; margin-bottom: 1.25rem; }

/* PROOF CARDS */
.proof-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 3rem;
}
.proof-img {
  border-radius: 12px;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border-color);
}
.proof-cards h3 { font-size: 1.5rem; margin-bottom: 0.75rem; }
.proof-cards p { color: var(--text-muted); font-size: 1.05rem; }

/* TIMELINE */
.phase-timeline {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  max-width: 950px;
  margin: 0 auto;
}
.phase-card {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: stretch;
  background: var(--bg-main);
  padding: 3rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.03);
}
.phase-desc h3 { font-size: 2rem; margin-bottom: 1rem; }
.phase-desc .time {
  display: inline-block;
  color: var(--primary);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.5px;
  margin-bottom: 1.25rem;
  padding: 0.4rem 0.85rem;
  background: #FFF0F1;
  border: 1px solid rgba(230,0,35,0.15);
  border-radius: 6px;
}
.phase-desc p { color: var(--text-main); font-size: 1.1rem; font-weight: 500; margin-bottom: 1.25rem; }
.phase-desc ul { list-style: none; }
.phase-desc ul li {
  margin-bottom: 0.85rem;
  color: var(--text-muted);
  display: flex;
  gap: 0.75rem;
  font-size: 1rem;
}
.phase-desc ul li::before {
  content: "→";
  color: var(--primary);
  font-weight: 800;
}

.budget-card {
  background: var(--bg-alt);
  border-radius: 12px;
  padding: 2.25rem;
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.budget-card h4 {
  font-size: 1.15rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.budget-card h4::before { content: ''; width: 10px; height: 10px; background: var(--primary); border-radius: 50%; }
.cost-item {
  display: flex;
  justify-content: space-between;
  padding: 0.85rem 0;
  border-bottom: 1px dashed var(--border-color);
  color: var(--text-muted);
  font-size: 1rem;
  font-weight: 500;
}
.cost-item strong { color: var(--text-main); font-family: 'Outfit', sans-serif; font-size: 1.1rem; font-weight: 800;}
.cost-total {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--primary);
  border-top: 2px solid var(--primary);
}

/* ESTIMATOR */
.estimator-wrapper {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 3.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  box-shadow: 0 10px 25px rgba(0,0,0,0.04);
  width: 100%;
  max-width: 100% !important;
  box-sizing: border-box;
  overflow: hidden;
}

.controls {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  width: 100%;
}
.control-group { width: 100%; }
.control-group label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1.15rem;
  font-weight: 800;
  font-size: 1.15rem;
}
input[type=range] {
  -webkit-appearance: none;
  width: 100%;
  background: transparent;
}
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  height: 28px; width: 28px;
  border-radius: 50%;
  background: var(--bg-main);
  border: 5px solid var(--primary);
  cursor: pointer;
  margin-top: -10px;
  box-shadow: 0 4px 10px rgba(230,0,35,0.3);
}
input[type=range]::-webkit-slider-runnable-track {
  width: 100%; height: 8px;
  background: var(--border-color);
  border-radius: 4px;
}

.results-board {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  justify-content: center;
  background: var(--bg-alt);
  padding: 2.5rem;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  width: 100%;
}
.result-block {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1.25rem;
}
.result-block:last-child { border-bottom: none; padding-bottom: 0; }
.result-block h5 {
  color: var(--text-muted);
  font-size: 1.05rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.result-block .val {
  font-size: 2rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  color: var(--text-main);
}
.result-block:last-child h5, .result-block:last-child .val { color: var(--primary); }
.result-block:last-child .val { font-size: 2.75rem; }

/* CTA */
.cta { padding: 8rem 0 6rem; background: var(--bg-main); }
.cta h2 { font-size: clamp(2.5rem, 4vw, 4rem); margin-bottom: 1rem; }

/* ANIMATIONS */
.fade-up {
  animation: fadeInCSS 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInCSS {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* =====================================
   PRO SITE FOOTER
===================================== */
.site-footer {
  text-align: center;
  padding: 4rem 0 3rem;
  background: var(--bg-alt);
  border-top: 1px solid var(--border-color);
  display: flex;          /* Force perfect flex alignment */
  flex-direction: column; /* Stack vertically */
  align-items: center;    /* Center horizontally completely */
  justify-content: center;
  width: 100%;
}

.site-footer .footer-logo {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--text-main);
  margin-bottom: 0.75rem;
}
.site-footer .footer-logo span { color: var(--primary); }

.site-footer p {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.25px;
}


/* =====================================
   MOBILE OPTIMIZATIONS
===================================== */
@media (max-width: 900px) {
  body { overflow-x: hidden; width: 100vw; }
  .container { padding: 0 1.25rem; }

  /* Gateway Mobile Fixes */
  .gateway-wrapper { padding: 1.25rem; }
  .gateway-card {
    padding: 3rem 1.5rem;
    max-height: 90vh;
    overflow-y: auto;
  }
  .gateway-card .logo { font-size: 2rem; }
  .gateway-card h2 { font-size: 1.5rem; }
  .lang-options { flex-direction: column; gap: 0.75rem; }
  .lang-options .btn { width: 100%; display: flex; }

  /* Layout Breakdowns */
  .about-grid, .comparison-grid, .proof-cards, .phase-card, .estimator-wrapper {
    grid-template-columns: 1fr;
    gap: 2rem;
    width: 100%;
  }

  section { padding: 5rem 0; }
  .section-title { font-size: 2rem; margin-bottom: 2.5rem; }
  
  /* Hero fixes */
  .hero { padding-top: 6.5rem; min-height: auto; padding-bottom: 4rem; }
  .hero h1 { font-size: 2.5rem; }
  .hero p { font-size: 1.1rem; padding: 0; }
  
  /* Component Padding */
  .card-panel, .comp-card, .proof-card, .budget-card, .results-board {
    padding: 1.5rem;
    width: 100%;
    box-sizing: border-box;
  }
  
  .about-text h2 { font-size: 2rem; }
  .phase-card { padding: 1.5rem; }
  .phase-desc h3 { font-size: 1.5rem; }
  
  /* Price Wrap Fix */
  .cost-item { font-size: 0.9rem; padding: 0.75rem 0; }
  .cost-item span { padding-right: 0.5rem; }
  .cost-item strong { font-size: 0.95rem; }
  .cost-total { font-size: 1.2rem; }
  
  /* Estimator padding */
  .estimator-wrapper { padding: 1.5rem; gap: 2rem; }
  
  .result-block { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
  .result-block .val { font-size: 1.75rem; }
  .result-block:last-child .val { font-size: 2.25rem; }

  /* CTA */
  .cta { padding: 5rem 0; }
  .cta h2 { font-size: 2.25rem !important; }
  .cta .cta-buttons { 
    flex-direction: column !important; 
    width: 100%; 
    padding: 0 1rem; /* ADDS LEFT & RIGHT SPACING ON MOBILE CTA BUTTONS */
    box-sizing: border-box;
    gap: 1.25rem !important;
  }
  .cta .btn { width: 100%; display: flex; margin: 0 !important; }
  
  /* FOOTER Mobile spacing */
  .site-footer { padding: 3rem 0 2rem; }
}
