/* ====== VARIABLES ====== */
:root {
  --logo-red: #D11E1B;
  --text-dark: #222;
  --text-light: #444;
  --text-muted: #888;
  --section-bg: #fff;
  --alt-bg: #f7f6f3;
  --hero-bg: #eeebe3;
  --img-radius: 0.6rem;
  --section-padding: 2.5rem;
  --section-padding-mobile: 1.1rem;
  --section-margin-mobile: 0.7rem;
  --section-gap-mobile: 1.2rem;
  --shadow-light: 0 2px 12px rgba(0,0,0,0.03);
  --shadow-medium: 0 4px 20px rgba(0,0,0,0.06);
  --shadow-heavy: 0 8px 30px rgba(0,0,0,0.12);
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ====== BASE STYLES ====== */
html { 
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}
body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background-color: var(--hero-bg);
  color: var(--text-dark);
  font-size: 1rem;
  line-height: 1.7;
  letter-spacing: 0.01em;
  padding-top: 72px;
}
.text-muted { color: var(--text-muted) !important; }

/* ====== FADE-IN ANIMATION FOR SECTIONS ====== */
.fade-init {
  opacity: 0;
  transform: translateY(30px) translate3d(0,0,0);
  transition: opacity 0.8s cubic-bezier(.4,0,.2,1), transform 0.8s cubic-bezier(.4,0,.2,1);
  will-change: opacity, transform;
}
.fade-in {
  opacity: 1;
  transform: none;
}

/* ====== HEADER/NAVBAR ====== */
.main-header {
  position: fixed;
  top: 0; left: 0; width: 100%;
  z-index: 1000;
  background: var(--section-bg);
  box-shadow: var(--shadow-light);
  backdrop-filter: blur(10px);
}
.main-header .navbar-brand {
  gap: 0.6rem;
  font-weight: 700;
  color: var(--logo-red);
  font-size: 1.1rem;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  transition: var(--transition-smooth);
}
.main-header .navbar-brand:hover {
  transform: scale(1.02);
}
.main-header .navbar-brand img {
  height: 44px;
  width: 44px;
  border-radius: 50%;
  box-shadow: var(--shadow-light);
  transition: var(--transition-smooth);
}
.main-header .nav-link {
  color: var(--text-dark);
  font-weight: 600;
  transition: var(--transition-smooth);
  font-size: 0.86rem;
  position: relative;
}
.main-header .nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--logo-red);
  transition: var(--transition-smooth);
  transform: translateX(-50%);
}
.main-header .nav-link:hover::after,
.main-header .nav-link.active::after {
  width: 100%;
}
.main-header .nav-link:hover,
.main-header .nav-link.active {
  color: var(--logo-red);
}

/* ====== HERO SECTION ====== */
header.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 1.5rem 1rem 2rem 1rem;
  background-color: var(--hero-bg);
  background-repeat: repeat-x;
  background-position: bottom center;
  background-size: 40px 40px;
    position: relative;
  background-color: var(--hero-bg);
}
.logo-wrapper {
  display: inline-block;
  animation: pulse 3s ease-in-out infinite;
  margin-bottom: 1.2rem;
}
@keyframes pulse {
  0%,100% { transform: scale(1) translate3d(0,0,0);}
  50% { transform: scale(1.05) translate3d(0,0,0);}
}
.hero-logo {
  width: 289px;
  height: 289px;
  opacity: 0;
  transition: opacity 1s ease-out, transform 0.2s ease-out;
  margin-bottom: 1.2rem;
  border-radius: var(--img-radius);
  /* Removed box-shadow to fix the square shadow issue */
}
.hero-logo.visible { opacity: 1; }
.hero-title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  color: var(--logo-red);
  margin-bottom: 0.7rem;
  letter-spacing: -1px;
  line-height: 1.15;
}
.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--text-light);
  font-weight: 500;
  margin-bottom: 1.5rem;
  line-height: 1.5;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 1.2rem;
  flex-wrap: wrap;
}

/* ====== BUTTONS ====== */
.btn-pill, .cta-btn {
  display: inline-block;
  background: transparent;
  color: var(--logo-red);
  border: 2px solid var(--logo-red);
  border-radius: 999em;
  padding: 0.6rem 1.5rem;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  margin-top: 0.7rem;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-light);
  letter-spacing: 0.01em;
  opacity: 0;
  position: relative;
  overflow: hidden;
}
.btn-pill::before, .cta-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--logo-red);
  transition: var(--transition-smooth);
  z-index: -1;
}
.btn-pill.visible, .cta-btn.visible { opacity: 1; }
.btn-pill:hover::before, .cta-btn:hover::before {
  left: 0;
}
.btn-pill:hover, .cta-btn:hover,
.btn-pill:focus, .cta-btn:focus {
  color: #fff;
  outline: none;
  box-shadow: var(--shadow-medium);
  transform: translateY(-2px);
}
.btn-pill:focus-visible, .cta-btn:focus-visible {
  outline: 2px solid var(--logo-red);
  outline-offset: 2px;
}

/* ====== SECTIONS & LAYOUT ====== */
.section-edge,
.section-horizontal,
.pricing-section,
.cta-section,
.founder-quote {
  background: var(--section-bg);
  border-radius: 0.8rem;
  box-shadow: var(--shadow-light);
  max-width: 1100px;
  margin: 0 auto 2.2rem auto;
  padding: var(--section-padding);
  overflow: hidden;
  transition: var(--transition-smooth);
}
.section-edge:hover,
.section-horizontal:hover,
.pricing-section:hover {
  box-shadow: var(--shadow-medium);
  transform: translateY(-2px);
}
.section-edge {
  display: flex;
  flex-wrap: nowrap;
  min-height: 320px;
  align-items: stretch;
  background: var(--section-bg);
}
.section-edge.reverse { flex-direction: row-reverse; }
.section-img-col {
  flex: 1 1 45%;
  min-width: 240px;
  max-width: 50%;
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  padding: 0;
  box-sizing: border-box;
  background: none;
}
.section-edge.reverse .section-img-col {
  justify-content: flex-start;
}
.section-img-col img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  display: block;
  border-radius: var(--img-radius);
  background: #eee;
  box-shadow: var(--shadow-light);
  transition: var(--transition-smooth);
}
.section-img-col img:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-medium);
}
.section-content-col {
  flex: 1 1 55%;
  min-width: 240px;
  max-width: 50%;
  padding: 0 0 0 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
  background: var(--section-bg);
  align-items: flex-start;
}
.section-edge .section-content-col {
  padding-right: var(--section-padding);
  padding-left: 0;
}
.section-edge.reverse .section-content-col {
  padding-left: var(--section-padding);
  padding-right: 0;
}
.section-content-col h2 {
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  color: var(--logo-red);
  margin-bottom: 0.7rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.5px;
}
.section-content-col h3 {
  font-size: clamp(1rem, 2.5vw, 1.13rem);
  margin-bottom: 0.6rem;
  color: var(--logo-red);
  font-weight: 600;
  letter-spacing: -0.3px;
}
.section-content-col p {
  font-size: 1rem;
  color: var(--text-light);
  margin-bottom: 0.8rem;
  line-height: 1.7;
}
.section-content-col ul {
  font-size: 1rem;
  color: var(--text-dark);
  margin-bottom: 1.2rem;
  padding-left: 0rem;
}
.section-content-col ul li {
  margin-bottom: 0.6rem;
  line-height: 1.6;
  list-style-type: none;
}

.section-content-col .bi {
  color: var(--logo-red);
  font-size: 1.2em;
  margin-right: 0.7em;
  flex-shrink: 0;
}

.benefits-list {
  list-style: none;
  padding: 0;
  margin: 1.2rem 0 0 0;
}
.benefits-list li {
  position: relative;
  margin-bottom: 0.8rem;
  color: var(--text-dark);
  font-size: 1rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  transition: var(--transition-smooth);
}
.benefits-list li:hover {
  color: var(--logo-red);
  transform: translateX(5px);
}
.benefits-list .bi {
  color: var(--logo-red);
  font-size: 1.2em;
  margin-right: 0.7em;
  flex-shrink: 0;
}

/* ====== SECTION: WHY IT MATTERS (ENHANCED STATISTICS) ====== */
.section-horizontal {
  background: #fff;
  border-radius: 0.8rem;
  box-shadow: var(--shadow-light);
  max-width: 1100px;
  margin: 0 auto 2.2rem auto;
  padding: var(--section-padding);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  overflow: hidden;
}
.section-horizontal-content {
  width: 100%;
  padding: 0;
  text-align: center;
  align-items: center;
  display: flex;
  flex-direction: column;
}
.section-horizontal h2 {
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  color: var(--logo-red);
  margin-bottom: 1.2rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.5px;
  text-align: center;
}
.stats-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  justify-content: center;
  align-items: stretch;
  margin: 2rem 0 1.5rem 0;
  padding: 0;
  list-style: none;
  width: 100%;
}
.stats-bar li {
  background: #f7f6f3;
  color: var(--logo-red);
  border-radius: 1rem;
  padding: 2rem 1.5rem;
  margin: 0;
  text-align: center;
  /* Removed box-shadow and borders to fix weird lines */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}
.stats-bar li:hover {
  transform: translateY(-5px) scale(1.02);
  background: linear-gradient(135deg, #f7f6f3 0%, #ede9e1 100%);
}
.stats-icon {
  font-size: 2.5rem;
  color: var(--logo-red);
  margin-bottom: 1rem;
  transition: var(--transition-smooth);
}
.stats-bar li:hover .stats-icon {
  transform: scale(1.1) rotate(5deg);
}
.stat-number {
  font-size: 2.5rem;
  color: var(--logo-red);
  font-weight: 700;
  display: block;
  margin-bottom: 0.5rem;
  line-height: 1;
  text-shadow: 0 2px 4px rgba(209,30,27,0.1);
}
.stat-label {
  color: var(--text-dark);
  font-size: 0.95rem;
  font-weight: 500;
  display: block;
  line-height: 1.3;
  max-width: 140px;
}
.why-desc {
  margin-top: 1.5rem;
  color: var(--text-muted);
  font-size: 1rem;
  text-align: center;
  font-weight: 500;
}
.section-horizontal-img {
  width: 100%;
  margin-top: 0;
  border-radius: 0;
  overflow: hidden;
  padding: var(--section-padding) 0 0 0;
  box-sizing: border-box;
  background: none;
  display: flex;
  justify-content: center;
}
.section-horizontal-img img {
  width: 80%;
  max-width: 80%;
  -height: 250px;
  object-fit: cover;
  display: block;
  -border-radius: var(--img-radius);
  margin: 0;
  padding: 0;
  -background: #eee;
  -box-shadow: var(--shadow-light);
  transition: var(--transition-smooth);
}
.section-horizontal-img img:hover {
  transform: scale(1.02);
  -box-shadow: var(--shadow-medium);
}

/* ====== ENHANCED PRICING CARDS ====== */
.pricing-section {
  background: #fff;
  border-radius: 0.8rem;
  box-shadow: var(--shadow-light);
  margin: 0 auto 2.2rem auto;
  padding: 3rem 1rem;
  text-align: center;
}
.pricing-section h2 {
  color: var(--logo-red);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 2rem;
}
.pricing-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  justify-content: center;
  margin-top: 2rem;
  width: 100%;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}
.pricing-card {
  background: #fafafa;
  border-radius: 1rem;
  padding: 0;
  min-width: 280px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  /* Removed problematic borders that caused grey lines */
  border: none;
  position: relative;
  margin: 0;
  overflow: hidden;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-light);
}
.pricing-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}
.pricing-header {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 1.5rem;
  text-align: center;
  position: relative;
}
.pricing-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--logo-red);
  letter-spacing: -0.2px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.pricing-price {
  font-size: 2.5rem;
  color: var(--logo-red);
  font-weight: 700;
  margin: 1.5rem 0;
  padding: 0 1.5rem;
}
.pricing-price span {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 400;
}
.pricing-card ul {
  text-align: left;
  margin: 0;
  padding: 0 1.5rem 1.5rem 1.5rem;
  font-size: 0.95rem;
  color: var(--text-light);
  flex-grow: 1;
}
.pricing-card ul li {
  margin-bottom: 0.8rem;
  line-height: 1.5;
  position: relative;
  padding-left: 1.5rem;
  list-style-type: none;
}
.pricing-card ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--logo-red);
  font-weight: bold;
}

/* ====== FOUNDER QUOTE ====== */
.founder-quote {
  background: var(--alt-bg);
  border-radius: 0.8rem;
  box-shadow: var(--shadow-light);
  padding: 1.5rem 1rem;
  max-width: 600px;
  margin: 2rem auto 1.2rem auto;
  font-size: 1rem;
  color: var(--text-dark);
  position: relative;
  text-align: center;
}
.founder-quote .founder-name {
  font-weight: 700;
  color: var(--logo-red);
  margin-top: 1rem;
  font-size: 0.98rem;
}
.founder-quote .founder-title {
  font-size: 0.93rem;
  color: #666;
  margin-bottom: 0.5rem;
}

/* ====== CTA SECTION ====== */
.cta-section {
  padding: 2.2rem 1rem 2rem 1rem;
  text-align: center;
  background: var(--alt-bg);
  margin-top: 1.5rem;
  border-radius: 0.8rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.03);
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}
.cta-logo-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}
.cta-logo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(209,30,27,0.15);
  animation: pulse 3s ease-in-out infinite;
}
.cta-section h2 {
  color: var(--logo-red);
  margin-bottom: 0.8rem;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.3px;
}
.cta-section p {
  color: var(--text-light);
  font-size: 1rem;
  margin-bottom: 1.2rem;
  font-weight: 500;
}
.cta-buttons {
  margin-top: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  justify-content: center;
}

.cta-tile-img {
  background-image: url('img/checkerboard.png');
  background-repeat: repeat;
  background-size: 256px 256px; /* Control tile size */
  height: 256px;
}


/* ====== FOOTER ====== */
footer {
  background: var(--hero-bg);
  text-align: center;
  padding: 2rem 1rem 1rem 1rem;
  color: #555;
  font-size: 0.97rem;
  margin-top: 1.5rem;
}
.footer-social {
  margin-top: 1rem;
  font-size: 1.1rem;
}
.footer-social a {
  color: var(--logo-red);
  margin: 0 0.5rem;
  text-decoration: none;
  transition: var(--transition-smooth);
  font-size: 1.3em;
  vertical-align: middle;
  padding: 0.5rem;
  border-radius: 50%;
}
.footer-social a:hover {
  color: #000;
  background: rgba(209,30,27,0.1);
  transform: translateY(-2px);
}

/* ====== HERO SPLIT LAYOUT ====== */
.hero.hero-split {
  flex-direction: row;
  align-items: center;
  justify-content: center;
  text-align: left;
  min-height: 70vh;
  max-width: 1100px;
  margin: 0 auto 2.2rem auto;
  padding: 3.5rem 1rem 2rem 1rem;
  background-color: var(--hero-bg);
  box-sizing: border-box;
  display: flex;
  gap: 3rem;
}

.hero-content-col {
  flex: 1 1 55%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-width: 260px;
  max-width: 56%;
  padding-right: 2.5rem;
}

.hero-title-large {
  font-size: clamp(2.5rem, 6vw, 3.7rem);
  font-weight: 800;
  color: var(--logo-red);
  margin-bottom: 1.1rem;
  letter-spacing: -1.5px;
  line-height: 1.08;
}

.hero-img-col {
  flex: 1 1 45%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 220px;
  max-width: 44%;
}

.hero-cert-img {
  width: 100%;
  max-width: 100%;
  border-radius: var(--img-radius);
  -box-shadow: var(--shadow-medium);
  -background: #fff;
  display: block;
  object-fit: contain;
}

/* ====== RESPONSIVE & MOBILE ====== */
@media (max-width: 1100px) {
  .section-edge,
  .section-horizontal,
  .pricing-section {
    max-width: 100vw;
  }
}
@media (max-width: 900px) {
  body { padding-top: 62px; }
  .section-edge,
  .section-horizontal,
  .pricing-section,
  .cta-section,
  .founder-quote {
    padding: var(--section-padding-mobile);
    border-radius: 0.8rem;
    margin-left: var(--section-margin-mobile);
    margin-right: var(--section-margin-mobile);
    box-sizing: border-box;
    background: var(--section-bg);
  }

  .cta-logo {
    width: 60px;
    height: 60px;
  }

  .section-edge,
  .section-edge.reverse {
    flex-direction: column !important;
    align-items: center;
  }
  .section-img-col,
  .section-content-col {
    max-width: 100%;
    min-width: 0;
  }
  .section-img-col {
    width: 100%;
    padding: 0;
    order: 2;
    justify-content: center;
    align-items: center;
    margin-bottom: var(--section-gap-mobile);
  }
  .section-img-col img {
    height: 180px;
    max-width: 100%;
    margin-top: var(--section-gap-mobile);
    margin-bottom: 0;
  }
  .section-content-col {
    width: 100%;
    padding: 0;
    text-align: left;
    align-items: center;
    order: 1;
    margin-bottom: 0;
  }
  .section-content-col > *:not(:last-child) {
    margin-bottom: 1.1rem;
  }
  .section-content-col ul,
  .section-content-col .cta-buttons,
  .section-content-col p,
  .section-content-col h2,
  .section-content-col h3 {
    margin-left: 0;
    margin-right: 0;
  }
  .section-horizontal-content {
    padding: 0;
    text-align: left;
    align-items: center;
  }
  .section-horizontal-img {
    padding: 0;
  }
  .pricing-cards {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    width: 100%;
  }
  .pricing-card {
    max-width: 100%;
    min-width: 0;
    margin: 0;
  }
  .stats-bar {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
  }
  .stats-bar li {
    padding: 1.5rem 1rem;
  }
  .stat-number {
    font-size: 2rem;
  }
  .stats-icon {
    font-size: 2rem;
  }
  .founder-quote {
    padding: 1.1rem 0.5rem;
  }
  .cta-section {
    padding: 1.1rem 0.5rem 1.1rem 0.5rem;
  }
}
@media (max-width: 700px) {
  .section-edge,
  .section-horizontal,
  .pricing-section,
  .cta-section,
  .founder-quote {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    margin-left: 0.5rem;
    margin-right: 0.5rem;
  }

  .cta-logo {
    width: 50px;
    height: 50px;
  }

  .section-img-col {
    min-width: 100px;
    max-width: 100%;
    padding: 0;
    margin-bottom: 0.7rem;
  }
  .section-img-col img {
    height: 140px;
    margin-top: var(--section-gap-mobile);
  }
  .section-content-col {
    padding: 0;
  }
  .section-horizontal-content {
    padding: 0;
  }
  .section-horizontal-img {
    padding: 0;
  }
  .hero-logo { width: 120px; -height: 120px; }
  .section-horizontal-img img { -height: 90px; }
  .stats-bar {
    grid-template-columns: 1fr;
  }
  .stats-bar li {
    padding: 1.2rem 0.8rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .logo-wrapper, header.hero { animation: none !important; transition: none !important; }
  * { transition: none !important; }
}

@media (max-width: 900px) {
  .hero.hero-split {
    flex-direction: column;
    gap: 2rem;
    padding: 2.2rem 1rem 1.2rem 1rem;
    min-height: unset;
    text-align: left;
  }
  .hero-content-col, .hero-img-col {
    max-width: 100%;
    min-width: 0;
    padding-right: 0;
    align-items: center;
    text-align: left;
  }
  .hero-img-col {
    justify-content: center;
    margin-top: 1.2rem;
  }
  .hero-cert-img {
    max-width: 60%;
  }
}
@media (max-width: 600px) {
  .hero-title-large {
    font-size: 2rem;
  }
  .hero-cert-img {
    max-width: 80%;
  }
}
