/* ============================================
   RESET & BASE
   ============================================ */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px; /* nav height */
}

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: clamp(1rem, 1vw + 0.75rem, 1.125rem);
  line-height: 1.6;
  color: #374151;
  background-color: #F8FAFC;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3, h4, h5, h6 {
  color: #1B2A4A;
  font-weight: 600;
}


/* ============================================
   DESIGN TOKENS
   ============================================ */

:root {
  /* Brand colours */
  --navy: #1B2A4A;
  --dark-blue: #234578;
  --mid-blue: #2D6FAF;
  --accent-blue: #3B8DD6;
  --teal: #12886A;
  --light-teal: #7ECDB8;

  /* Neutrals */
  --text: #374151;
  --text-subtle: #6B7280;
  --gray-light: #E5E7EB;
  --bg: #F8FAFC;
  --white: #FFFFFF;

  /* Spacing */
  --section-py: 6rem;
  --section-py-mobile: 4rem;
  --container-max: 1200px;
  --container-px: 1.5rem;

  /* Nav */
  --nav-height: 72px;
}


/* ============================================
   UTILITIES
   ============================================ */

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--container-px);
  padding-right: var(--container-px);
}

.overline {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.75rem;
}

.section__header {
  text-align: center;
  max-width: 65ch;
  margin: 0 auto 3rem;
}

.section__header h2 {
  font-size: clamp(1.75rem, 3vw + 0.5rem, 2.75rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
}

.section__subheadline {
  font-size: clamp(1rem, 1vw + 0.75rem, 1.125rem);
  color: var(--text-subtle);
  max-width: 55ch;
  margin: 0 auto;
}


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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.9375rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 150ms ease-out, transform 80ms ease;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.98);
}

.btn--primary {
  background-color: var(--teal);
  color: var(--white);
  padding: 12px 28px;
}

.btn--primary:hover {
  background-color: #0f7359;
}

.btn--lg {
  padding: 16px 36px;
  font-size: 1.0625rem;
}


/* ============================================
   NAVIGATION
   ============================================ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background-color: rgba(248, 250, 252, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 250ms ease-out, background-color 250ms ease-out;
}

.nav--scrolled {
  border-bottom-color: var(--gray-light);
  background-color: rgba(255, 255, 255, 0.95);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.nav__logo-icon {
  height: 36px;
  width: auto;
  object-fit: contain;
}

.nav__logo-text {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: -0.01em;
}

.footer__logo img {
  height: 40px;
  width: auto;
  object-fit: contain;
}


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

.hero {
  padding-top: calc(var(--nav-height) + 3rem);
  padding-bottom: 3rem;
  background: linear-gradient(180deg, var(--bg) 0%, var(--white) 100%);
}

.hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero__content {
  max-width: 700px;
}

.hero__headline {
  font-size: clamp(2rem, 3vw + 0.75rem, 3rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.hero__headline--accent {
  color: var(--teal);
}

.hero__subheadline {
  font-size: clamp(1.05rem, 1vw + 0.75rem, 1.2rem);
  color: var(--text-subtle);
  line-height: 1.6;
  max-width: 50ch;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2rem;
}

.hero__cta-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.hero__microcopy {
  font-size: 0.875rem;
  color: var(--text-subtle);
}

.hero__screenshot {
  width: 100%;
  max-width: 520px;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(27, 42, 74, 0.12), 0 2px 8px rgba(27, 42, 74, 0.08);
}

.hero__showcase {
  width: 100%;
  max-width: 700px;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(27, 42, 74, 0.12), 0 2px 8px rgba(27, 42, 74, 0.08);
  pointer-events: none;
}

.hero__showcase-iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}


/* ============================================
   PAIN POINTS
   ============================================ */

.pain-points {
  padding: var(--section-py) 0;
  background-color: var(--white);
}

.pain-points__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.pain-card {
  background-color: var(--bg);
  border-left: 3px solid var(--teal);
  padding: 1.5rem 1.75rem;
  border-radius: 0 8px 8px 0;
}

.pain-card p {
  font-size: clamp(0.95rem, 1vw + 0.5rem, 1.0625rem);
  font-style: italic;
  color: var(--navy);
  line-height: 1.5;
}


/* ============================================
   PHILOSOPHY
   ============================================ */

.philosophy {
  padding: var(--section-py) 0;
  background-color: var(--bg);
}

.philosophy__diagram {
  margin-bottom: 3rem;
}

.diagram__img {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  display: block;
}

.philosophy__details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.philosophy__card {
  background-color: var(--white);
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid var(--gray-light);
}

.philosophy__card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

.philosophy__card p {
  color: var(--text-subtle);
  font-size: 0.9375rem;
  line-height: 1.6;
}


/* ============================================
   OUTCOMES
   ============================================ */

.outcomes {
  padding: var(--section-py) 0;
  background-color: var(--white);
}

.outcomes__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.outcome-card {
  background-color: var(--bg);
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid var(--gray-light);
  transition: box-shadow 150ms ease-out, transform 150ms ease-out;
}

.outcome-card:hover {
  box-shadow: 0 4px 24px rgba(27, 42, 74, 0.08);
  transform: translateY(-2px);
}

.outcome-card__icon {
  margin-bottom: 1rem;
}

.outcome-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

.outcome-card p {
  color: var(--text-subtle);
  font-size: 0.9375rem;
  line-height: 1.6;
}


/* ============================================
   FEATURES
   ============================================ */

.features {
  padding: var(--section-py) 0;
  background: linear-gradient(180deg, var(--navy) 0%, var(--dark-blue) 100%);
  color: var(--white);
}

.features .overline {
  color: var(--light-teal);
}

.features .section__header h2 {
  color: var(--white);
}

.features .section__subheadline {
  color: rgba(255, 255, 255, 0.7);
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background-color: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.75rem;
  border-radius: 12px;
  transition: background-color 200ms ease-out;
}

.feature-card:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.feature-card h3 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 0.625rem;
}

.feature-card p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9375rem;
  line-height: 1.6;
}


/* ============================================
   INTEGRATION
   ============================================ */

.integration {
  padding: var(--section-py) 0;
  background-color: var(--bg);
}

.integration__content {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.integration__content h2 {
  font-size: clamp(1.75rem, 3vw + 0.5rem, 2.75rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 1.5rem;
}

.integration__content .overline {
  margin-bottom: 0.5rem;
}

.integration__content p {
  color: var(--text-subtle);
  margin-bottom: 1rem;
  max-width: 60ch;
  margin-left: auto;
  margin-right: auto;
}

.integration__content p:last-child {
  margin-bottom: 0;
}


/* ============================================
   BENEFITS
   ============================================ */

.benefits {
  padding: var(--section-py) 0;
  background-color: var(--white);
}

.benefits__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.benefit-card {
  text-align: center;
  padding: 2.5rem 2rem;
  border-radius: 12px;
  border: 1px solid var(--gray-light);
  background-color: var(--bg);
}

.benefit-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
  color: var(--teal);
}

.benefit-card p {
  color: var(--text-subtle);
  font-size: 0.9375rem;
  line-height: 1.6;
}


/* ============================================
   CTA SECTION
   ============================================ */

.cta-section {
  padding: var(--section-py) 0;
  background: linear-gradient(135deg, var(--teal) 0%, #0f7359 100%);
  color: var(--white);
}

.cta-section__content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.cta-section__content h2 {
  color: var(--white);
  font-size: clamp(1.75rem, 3vw + 0.5rem, 2.75rem);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.cta-section__content p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2rem;
}

.cta-section .btn--primary {
  background-color: var(--white);
  color: var(--teal);
  font-weight: 700;
}

.cta-section .btn--primary:hover {
  background-color: rgba(255, 255, 255, 0.9);
}

.cta-section__microcopy {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 1rem;
  margin-bottom: 0;
}


/* ============================================
   FOOTER
   ============================================ */

.footer {
  background-color: var(--navy);
  color: rgba(255, 255, 255, 0.8);
  padding: 3rem 0 1.5rem;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__tagline {
  font-size: 0.9375rem;
  font-style: italic;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 0.75rem;
}

.footer__contact p {
  font-size: 0.875rem;
  line-height: 1.8;
}

.footer__contact a {
  color: var(--light-teal);
  transition: color 150ms ease-out;
}

.footer__contact a:hover {
  color: var(--white);
}

.footer__bottom {
  padding-top: 1.5rem;
  text-align: center;
}

.footer__bottom p {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.4);
}


/* ============================================
   PLACEHOLDERS (remove when assets are added)
   ============================================ */

.placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: var(--gray-light);
  border: 2px dashed #CBD5E1;
  border-radius: 12px;
  color: var(--text-subtle);
  text-align: center;
}

.placeholder--logo {
  width: 160px;
  height: 44px;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
}

.placeholder--light {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.6);
}

.placeholder--showcase {
  width: 100%;
  aspect-ratio: 4 / 3;
  max-width: 520px;
}

.placeholder__label {
  font-size: 0.9375rem;
  font-weight: 500;
}

.placeholder__sublabel {
  font-size: 0.75rem;
  max-width: 200px;
  line-height: 1.4;
}

.placeholder--diagram {
  width: 100%;
  max-width: 800px;
  height: 300px;
  margin: 0 auto;
}

.placeholder--icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  font-size: 1.5rem;
  border: none;
  background-color: rgba(18, 136, 106, 0.1);
}

/* SVG line icons in outcome cards */
.outcome-card__icon svg {
  color: var(--teal);
}


/* ============================================
   SCROLL REVEAL
   ============================================ */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 400ms ease-out, transform 400ms ease-out;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children in grids */
.reveal:nth-child(2) { transition-delay: 50ms; }
.reveal:nth-child(3) { transition-delay: 100ms; }
.reveal:nth-child(4) { transition-delay: 150ms; }
.reveal:nth-child(5) { transition-delay: 200ms; }
.reveal:nth-child(6) { transition-delay: 250ms; }
.reveal:nth-child(7) { transition-delay: 300ms; }
.reveal:nth-child(8) { transition-delay: 350ms; }


/* ============================================
   REDUCED MOTION
   ============================================ */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}


/* ============================================
   FOCUS STYLES (accessibility)
   ============================================ */

:focus-visible {
  outline: 2px solid var(--accent-blue);
  outline-offset: 2px;
}


/* ============================================
   RESPONSIVE — TABLET (< 1024px)
   ============================================ */

@media (max-width: 1024px) {
  .hero__content {
    max-width: 100%;
  }


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

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

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


/* ============================================
   RESPONSIVE — MOBILE (< 640px)
   ============================================ */

@media (max-width: 640px) {
  :root {
    --section-py: 4rem;
    --container-px: 1.25rem;
  }

  .hero {
    padding-top: calc(var(--nav-height) + 3rem);
    padding-bottom: 2rem;
  }

  .hero__headline {
    font-size: clamp(2rem, 7vw, 2.75rem);
  }

  .pain-points__grid {
    grid-template-columns: 1fr;
  }

  .nav__logo-text {
    display: none;
  }

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

  .footer__inner {
    flex-direction: column;
    gap: 2rem;
  }

  .placeholder--showcase {
    aspect-ratio: 3 / 2;
  }

  .placeholder--diagram {
    height: 200px;
  }
}


/* ============================================
   MOBILE STICKY CTA
   ============================================ */

.mobile-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  padding: 12px var(--container-px);
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--gray-light);
  transform: translateY(100%);
  transition: transform 300ms ease-out;
}

.mobile-cta.visible {
  transform: translateY(0);
}

.mobile-cta .btn {
  width: 100%;
}

@media (max-width: 640px) {
  .mobile-cta {
    display: block;
  }
}
