/* ============================================
   RESET
============================================ */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  background-color: #ffffff;
  color: #111111;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ============================================
   TYPOGRAPHY
============================================ */

h1, h2, h3, h4 {
  font-weight: 600;
  line-height: 1.2;
}

h1 {
  font-size: 3.2rem;
  letter-spacing: -0.03em;
}

h2 {
  font-size: 2rem;
  letter-spacing: -0.02em;
}

h3 {
  font-size: 1.15rem;
}

p {
  color: #555555;
}

/* ============================================
   LAYOUT
============================================ */

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

.section--tinted {
  background-color: #f3f5f7;
  padding: 55px 0 60px;
}

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

.section__subtitle {
  max-width: 560px;
  margin: 7px auto 25px;
  color: #555;
}

/* ============================================
   HEADER (Tight)
============================================ */

.header {
  padding: 2px 0;
  background: #ffffff;
}

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

.header__logo img {
  height: 70px;
}

.header__nav {
  display: flex;
  gap: 28px;
}

.header__link {
  text-decoration: none;
  color: #111;
  font-size: 0.95rem;
}

/* ============================================
   HERO
============================================ */

.hero {
  padding: 90px 0 100px;
}

.hero--tight {
  padding: 65px 0 75px;
}

.hero--dark {
  background-color: #071a2f;
  color: #ffffff;
}

.hero--dark h1,
.hero--dark h2,
.hero--dark p {
  color: #ffffff;
}

.hero__inner {
  text-align: center;
}

.hero__eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  margin-bottom: 14px;
  opacity: 0.65;
}

.hero__title {
  margin-bottom: 14px;
}

.hero__subtitle {
  max-width: 560px;
  margin: 0 auto 18px;
  line-height: 1.65;
}

.hero__subtitle--tight {
  margin-bottom: 22px;
}

/* ============================================
   BUTTONS
============================================ */

.btn {
  display: inline-block;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 12px 28px;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.btn--primary {
  background: #ffffff;
  color: #071a2f;
}

.btn--outline {
  background: transparent;
  border: 1px solid #ffffff;
  color: #ffffff;
}

/* ============================================
   GLASS CARDS (Refined)
============================================ */

.glass-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px; /* slightly tighter */
}

.glass-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  border-radius: 16px;
  padding: 30px;

  border: 1px solid rgba(255, 255, 255, 0.6);

  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);

  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.glass-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.08);
}

.glass-card h3 {
  margin-bottom: 10px;
}
/* ============================================
   UNDERLINE (Revisit)
============================================ */

.underline {
  position: relative;
  display: inline-block;
}

.underline::after {
  content: "";
  width: 80px;
  height: 2px;
  background: #ffffff;
  display: block;
  margin: 2px auto 16px;
}

/* ============================================
   FOOTER (Structured + Tight)
============================================ */

.footer--tight {
  padding: 30px 0;
  background: #f2f2f2;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 24px;
}

.footer__logo {
  height: 60px;
  margin-bottom: 1px;
}

.footer h4 {
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.footer a {
  text-decoration: none;
  color: #111;
  font-size: 0.9rem;
}

.footer p {
  font-size: 0.9rem;
   margin: 4px 0 0 0;
}

/* ============================================
   RESPONSIVE
============================================ */

@media (max-width: 960px) {

  h1 {
    font-size: 2.4rem;
  }

  .glass-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 640px) {

  .hero {
    padding: 70px 0 80px;
  }

  .glass-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

}

/* ============================================
   REPEATR — The Problem Section Spacing
============================================ */

.problem-section {
  padding: 60px 0;
}

.problem-section .section__subtitle {
  margin: 22px auto 25px;
}
.problem-section h2 {
  margin-bottom: 20px;
}
/* ============================================
   REPEATR — HOW IT WORKS SECTION (REFINED)
============================================ */

/* Section background + tighter spacing */
.how-section {
  background-color: #e4e8ee;   /* darker separation from Problem section */
  padding: 60px 0 80px;       /* reduced top padding, balanced bottom */
}

/* Increase gap under heading slightly */
.how-section h2 {
  margin-bottom: 10px;
}

/* Control subtitle spacing */
.how-section .section__subtitle {
  margin: 0 auto 40px;
}

/* ============================================
   REPEATR — 4 STEP GRID FIX
============================================ */

.revisit-steps {
  grid-template-columns: repeat(4, 1fr);
}

/* Improve contrast slightly for this section */
.how-section .glass-card {
  background: rgba(255, 255, 255, 0.85);
}

/* ============================================
   RESPONSIVE SAFETY
============================================ */

@media (max-width: 1100px) {
  .revisit-steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .revisit-steps {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   REPEATR — INFRASTRUCTURE SECTION
============================================ */

.infra-section {
  padding: 80px 0 90px;
}

/* Heading size refinement */
.infra-section h2 {
  font-size: 2.2rem;   /* slightly larger than default */
  margin-bottom: 18px; /* increases gap under heading */
}

/* Subtitle spacing refinement */
.infra-subtitle {
  color: rgba(255,255,255,0.75);
  max-width: 620px;
  margin: 0 auto 50px; /* more breathing room below subtitle */
  line-height: 1.65;
}

/* Grid */
.infra-grid {
  grid-template-columns: repeat(3, 1fr);
}

/* Cards — refined glass for dark background */
.infra-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 32px;

  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Hover subtle lift */
.infra-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.25);
}

/* Correct text hierarchy for dark background */
.infra-card h3 {
  color: #ffffff;
  margin-bottom: 12px;
}

.infra-card p {
  color: rgba(255,255,255,0.75);
  line-height: 1.6;
}

/* ============================================
   RESPONSIVE SAFETY
============================================ */

@media (max-width: 960px) {
  .infra-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .infra-grid {
    grid-template-columns: 1fr;
  }

  .infra-section h2 {
    font-size: 1.8rem;
  }
}

/* ============================================
   REPEATR — FINAL CTA (REFINED)
============================================ */

.cta-section {
  background: #ffffff;
  padding: 60px 0 75px; /* slightly tighter */
  border-top: 1px solid #e6e6e6;
}

.cta-title {
  font-size: 2.2rem;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}

.cta-subtitle {
  max-width: 680px; /* allow cleaner wrapping */
  margin: 0 auto 22px; /* reduce gap above button */
  color: #555555;
  line-height: 1.6;
}

.btn--dark-cta {
  background: #071a2f;
  color: #ffffff;
  padding: 12px 32px; /* slightly stronger presence */
}

.btn--dark-cta:hover {
  opacity: 0.92;
}

@media (max-width: 640px) {
  .cta-title {
    font-size: 1.7rem;
  }

  .cta-subtitle {
    max-width: 92%;
  }
}

/* ============================================
   REPEATR — GLOBAL SECTION TIGHTENING (MORE COMPACT)
============================================ */

/* The Problem */
.problem-section {
  padding: 42px 0 48px;
}

/* How It Works */
.how-section {
  padding: 48px 0 60px;
}

/* Infrastructure */
.infra-section {
  padding: 60px 0 70px;
}

/* CTA */
.cta-section {
  padding: 42px 0 52px;
}
