/* =============================================================
   style.css — Avelo landing page
   Palette: #4F6FAE brand blue, #F6F8FB bg, #EEF3F8 section, #1F2937 text
   Font: Inter (Google Fonts)
============================================================= */

/* --- Variables --- */
:root {
  --blue:        #4F6FAE;   /* brand blue — only muted, no electric */
  --blue-dark:   #3d5a96;
  --blue-light:  #EEF3F8;   /* light section background */
  --bg:          #F6F8FB;   /* main page background */
  --dark:        #0f1117;   /* kept only for footer */
  --text:        #1F2937;   /* main text */
  --text-soft:   #4B5563;   /* secondary text */
  --text-muted:  #9CA3AF;   /* muted / labels */
  --white:       #ffffff;
  --border:      #E2E8F0;
  --card-shadow: 0 2px 16px rgba(0,0,0,0.06);
  --radius:      14px;
  --radius-sm:   8px;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* --- Typography --- */
h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; line-height: 1.15; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); font-weight: 700; line-height: 1.25; }
h3 { font-size: 1.1rem; font-weight: 700; }
p  { font-size: 1rem; }

/* =============================================================
   TOP BAR — minimal floating layer over hero
============================================================= */
.top-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 32px 52px;
  pointer-events: none;
}
.top-bar__logo,
.lang-switcher { pointer-events: auto; }

/* Wordmark — large, clean, lowercase */
.top-bar__logo {
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--blue);
  text-decoration: none;
  line-height: 1;
}

/* Language switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 5px;
  padding: 2px;
}
.lang-btn {
  background: none;
  border: none;
  color: #6B7280;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.7px;
  padding: 4px 9px;
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  font-family: inherit;
}
.lang-btn:hover { color: var(--text); }
.lang-btn.active {
  background: rgba(255,255,255,0.9);
  color: var(--blue);
}

/* After hero: top-bar goes fixed with white bg (set via JS) */

/* =============================================================
   HERO
============================================================= */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-image: url('../img/hero-bg.jpg');
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  background-color: #d6e8f5;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(255,255,255,0.84) 0%,
    rgba(255,255,255,0.60) 45%,
    rgba(255,255,255,0.0) 75%
  );
}

.hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 120px 52px 80px;
}

.hero__content { max-width: 500px; }

.hero__eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 18px;
}

.hero__title {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.1;
  color: #0f1117;
  margin-bottom: 18px;
  letter-spacing: -0.5px;
}

.hero__sub {
  font-size: 1rem;
  line-height: 1.75;
  color: #4B5563;
  margin-bottom: 36px;
  max-width: 420px;
}

.hero__ctas {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.btn-hero-primary {
  display: inline-block;
  background: var(--blue);
  color: var(--white);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.2px;
  transition: background 0.2s, transform 0.1s;
  white-space: nowrap;
}
.btn-hero-primary:hover  { background: var(--blue-dark); }
.btn-hero-primary:active { transform: scale(0.98); }

.btn-hero-secondary {
  display: inline-block;
  font-size: 0.88rem;
  font-weight: 500;
  color: #4B5563;
  padding: 12px 0;
  border-bottom: 1px solid rgba(75,85,99,0.35);
  transition: color 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.btn-hero-secondary:hover {
  color: var(--blue);
  border-color: var(--blue);
}

/* =============================================================
   SECTION COMMON
============================================================= */
.section-heading {
  text-align: center;
  margin-bottom: 52px;
}
.section-heading h2 { color: var(--text); }

/* =============================================================
   PAIN — white bg
============================================================= */
.pain {
  background: var(--white);
  padding: 88px 24px;
}
.pain__inner { max-width: 1100px; margin: 0 auto; }

.pain__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.pain-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.pain-card:hover {
  box-shadow: var(--card-shadow);
  transform: translateY(-2px);
}
.pain-card__icon { font-size: 1.6rem; margin-bottom: 14px; }
.pain-card h3 { margin-bottom: 8px; color: var(--text); font-size: 1rem; }
.pain-card p  { color: var(--text-soft); font-size: 0.93rem; line-height: 1.65; }

/* =============================================================
   SOLUTION — light blue bg
============================================================= */
.solution {
  background: var(--blue-light);
  padding: 88px 24px;
}
.solution__inner { max-width: 1100px; margin: 0 auto; }

.solution__steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.step {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: box-shadow 0.2s;
}
.step:hover { box-shadow: var(--card-shadow); }
.step h3 {
  color: var(--blue);
  margin-bottom: 10px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.2px;
}
.step p { color: var(--text-soft); font-size: 0.93rem; line-height: 1.65; }

/* =============================================================
   CASE — light bg with blue accents on numbers only
============================================================= */
.case {
  background: var(--white);
  padding: 88px 24px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.case__inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.case__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 40px;
}

.case__stat-num {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  color: var(--blue);
  display: block;
  margin-bottom: 4px;
}
.case__stat-label {
  font-size: 0.88rem;
  color: var(--text-muted);
}
.case__text {
  font-size: 1rem;
  color: var(--text-soft);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.75;
}

/* =============================================================
   PRICING — light blue bg
============================================================= */
.pricing {
  background: var(--blue-light);
  padding: 88px 24px;
}
.pricing__inner { max-width: 1100px; margin: 0 auto; }

.pricing__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: start;
}

.pricing-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.pricing-card:hover {
  box-shadow: var(--card-shadow);
  transform: translateY(-2px);
}
.pricing-card.featured {
  border-color: var(--blue);
  position: relative;
}
.featured-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--blue);
  color: var(--white);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.7px;
  padding: 3px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  white-space: nowrap;
}

.pricing-card__name {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 4px;
}
.pricing-card__desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.pricing-card__features {
  list-style: none;
  margin-bottom: 24px;
}
.pricing-card__features li {
  padding: 5px 0;
  font-size: 0.9rem;
  color: var(--text-soft);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.pricing-card__features li::before {
  content: "✓";
  color: var(--blue);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}
.pricing-card__price {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 20px;
}
.btn-pricing {
  display: block;
  text-align: center;
  padding: 11px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  border: 1.5px solid var(--blue);
  color: var(--blue);
  transition: background 0.2s, color 0.2s;
}
.btn-pricing:hover,
.pricing-card.featured .btn-pricing {
  background: var(--blue);
  color: var(--white);
}

/* =============================================================
   FORM — light blue bg
============================================================= */
.form-section {
  background: var(--blue-light);
  padding: 88px 24px;
}
.form-section__inner {
  max-width: 560px;
  margin: 0 auto;
}
.form-section__sub {
  text-align: center;
  color: var(--text-soft);
  margin-bottom: 40px;
  font-size: 0.93rem;
}

.form__group { margin-bottom: 14px; }
.form__label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-soft);
  margin-bottom: 5px;
  letter-spacing: 0.2px;
}
.form__input,
.form__select,
.form__textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.93rem;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
  font-family: inherit;
}
.form__input::placeholder,
.form__textarea::placeholder { color: var(--text-muted); }
.form__input:focus,
.form__select:focus,
.form__textarea:focus { border-color: var(--blue); }
.form__select { appearance: none; cursor: pointer; }
.form__textarea { resize: vertical; min-height: 96px; }

.form__submit {
  display: block;
  width: 100%;
  margin-top: 22px;
  padding: 14px;
  background: var(--blue);
  color: var(--white);
  font-size: 0.93rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  font-family: inherit;
  letter-spacing: 0.2px;
}
.form__submit:hover  { background: var(--blue-dark); }
.form__submit:active { transform: scale(0.98); }
.form__submit:disabled { opacity: 0.6; cursor: not-allowed; }

.form__guarantee {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 12px;
}
.form__error {
  display: none;
  color: #dc2626;
  font-size: 0.85rem;
  margin-top: 10px;
  text-align: center;
}
.form__success { display: none; text-align: center; padding: 40px 0; }
.form__success h2 { color: var(--blue); font-size: 1.5rem; margin-bottom: 10px; }
.form__success p  { color: var(--text-soft); }

/* =============================================================
   FOOTER
============================================================= */
.footer {
  background: var(--blue-light);
  border-top: 1px solid rgba(79, 111, 174, 0.12);
  padding: 40px 24px;
}
.footer__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.footer__logo {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: 0.3px;
}
.footer__tagline { font-size: 0.85rem; margin-top: 4px; color: var(--text-soft); }
.footer__links {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.footer__links a {
  font-size: 0.85rem;
  color: var(--text-soft);
  transition: color 0.2s;
}
.footer__links a:hover { color: var(--blue); }
.footer__copy {
  font-size: 0.78rem;
  width: 100%;
  text-align: center;
  margin-top: 8px;
  color: var(--text-muted);
}

/* =============================================================
   RESPONSIVE
============================================================= */
@media (max-width: 768px) {
  .top-bar { padding: 20px 20px; }
  .top-bar__logo { font-size: 1.45rem; }

  .hero { min-height: 70vh; }
  .hero__inner { padding: 88px 24px 60px; }
  .hero__content { max-width: 100%; }
  .hero__title { font-size: 2rem; }
  .hero__overlay {
    background: linear-gradient(
      to bottom,
      rgba(255,255,255,0.88) 0%,
      rgba(255,255,255,0.72) 60%,
      rgba(255,255,255,0.3) 100%
    );
  }
  .hero__bg { background-position: 70% center; }

  .pain { padding: 56px 20px; }
  .solution { padding: 56px 20px; }
  .case { padding: 56px 20px; }
  .pricing { padding: 56px 20px; }
  .form-section { padding: 56px 20px; }

  .pain__grid,
  .solution__steps,
  .pricing__grid { grid-template-columns: 1fr; }

  .case__stats { grid-template-columns: 1fr; gap: 20px; }

  .footer__inner { flex-direction: column; align-items: flex-start; }
  .footer__copy  { text-align: left; }
}

@media (max-width: 480px) {
  .lang-btn { padding: 4px 6px; font-size: 0.65rem; }
}
