:root {
  --teal: #1FA89E;
  --teal-dark: #178A82;
  --teal-soft: #E6F6F4;
  --navy: #1B3A5C;
  --navy-soft: #3D5A7A;
  --yellow: #F5C842;
  --yellow-dark: #E0B22F;
  --bg: #FDFBF6;
  --bg-alt: #F4F1EA;
  --text: #1B3A5C;
  --text-muted: #5C6F85;
  --border: #E5DFD3;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 6px 24px rgba(27, 58, 92, 0.08);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3 {
  color: var(--navy);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); text-wrap: balance; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); margin-bottom: 1em; }
h3 { font-size: 1.2rem; }

p {
  margin: 0 0 1em;
}

a {
  color: var(--teal-dark);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--navy);
}

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 1rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.site-nav a {
  color: var(--navy);
  font-weight: 600;
  font-size: 0.95rem;
}

.site-nav a:hover {
  color: var(--teal-dark);
}

.nav-app {
  background: var(--navy);
  color: var(--bg) !important;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius);
  transition: background 0.15s ease;
}

.nav-app:hover {
  background: var(--teal-dark);
  color: var(--bg) !important;
}

/* Hero */
.hero {
  padding: 1.5rem 2rem 3rem;
}

.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-dark);
  margin: 0 0 0.85rem;
}

.accent-word {
  position: relative;
  white-space: nowrap;
  background-image: linear-gradient(transparent 70%, rgba(245, 200, 66, 0.55) 70%);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  padding: 0 0.05em;
}

.hero-logo {
  display: block;
  flex-shrink: 0;
  width: 560px;
  max-width: 50%;
  height: auto;
}

.hero-text {
  flex: 1;
  min-width: 0;
}

.lede {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--text-muted);
  margin: 0.75rem 0 1.5rem;
  max-width: 60ch;
}

.cta-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.cta-sub {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--teal);
  color: white !important;
  box-shadow: 0 4px 14px rgba(31, 168, 158, 0.35);
}

.btn-primary:hover {
  background: var(--teal-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(31, 168, 158, 0.45);
}

.btn:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}

.btn-ghost {
  background: transparent;
  color: var(--navy) !important;
  border: 2px solid var(--navy);
}

.btn-ghost:hover {
  background: var(--navy);
  color: var(--bg) !important;
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

/* Features */
.features {
  padding: 2rem 2rem 3rem;
  max-width: 1100px;
  margin: 0 auto;
}

.features h2,
.how > h2 {
  text-align: center;
  margin-bottom: 0.5em;
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
}

.features h2::after,
.how > h2::after {
  content: "";
  display: block;
  width: 48px;
  height: 4px;
  background: var(--yellow);
  border-radius: 2px;
  margin: 0.55rem auto 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.feature {
  background: white;
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.feature:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(27, 58, 92, 0.14);
  border-color: rgba(31, 168, 158, 0.35);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.feature-icon-teal {
  background: var(--teal-soft);
  color: var(--teal-dark);
}

.feature-icon-navy {
  background: rgba(27, 58, 92, 0.08);
  color: var(--navy);
}

.feature-icon-yellow {
  background: rgba(245, 200, 66, 0.18);
  color: #B8881D;
}

.feature-icon svg {
  width: 26px;
  height: 26px;
}

.feature p {
  color: var(--text-muted);
  margin: 0;
}

/* How */
.how {
  background: var(--bg-alt);
  padding: 4rem 2rem;
}

.steps {
  list-style: none;
  padding: 0;
  margin: 2.5rem auto 0;
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.steps li {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  background: white;
  padding: 1.5rem 1.75rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.step-num {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--navy);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.steps h3 {
  margin-top: 0.25rem;
}

.steps p {
  color: var(--text-muted);
  margin: 0;
}

/* CTA band */
.cta-band {
  padding: 5rem 2rem;
  text-align: center;
}

.cta-band-inner {
  max-width: 640px;
  margin: 0 auto;
  background: var(--navy);
  padding: 3.5rem 2rem;
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}

.cta-band-inner::before {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 160px;
  height: 160px;
  background: var(--yellow);
  border-radius: 50%;
  opacity: 0.15;
}

.cta-band-inner h2 {
  color: white;
  position: relative;
}

.cta-band-inner p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2rem;
  position: relative;
}

.cta-band-inner .btn {
  position: relative;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem;
  margin-top: 2rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.footer-logo {
  height: 40px;
  width: auto;
}

.footer-inner p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Tablet — collapse hero to stacked layout where side-by-side gets cramped */
@media (max-width: 820px) {
  .hero-inner {
    flex-direction: column;
    text-align: center;
    gap: 1.25rem;
  }

  .hero-logo {
    width: 320px;
    max-width: 70%;
  }

  .lede {
    margin-left: auto;
    margin-right: auto;
  }

  .cta-row {
    justify-content: center;
  }

  .accent-word {
    white-space: normal;
  }
}

/* Mobile */
@media (max-width: 640px) {
  .site-header {
    padding: 0.75rem 1rem;
  }

  .site-nav {
    gap: 1rem;
  }

  .site-nav a:not(.nav-app) {
    display: none;
  }

  .hero {
    padding: 1.5rem 1.25rem 2.5rem;
  }

  .features,
  .how,
  .cta-band {
    padding: 3rem 1.25rem;
  }

  .feature {
    padding: 1.5rem;
  }

  .cta-band-inner {
    padding: 2.5rem 1.5rem;
  }

  .steps li {
    padding: 1.25rem;
  }
}
