/* ============================================
   REACHLY WEBSITE
   ============================================ */

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

:root {
  --indigo-50: #EEF2FF;
  --indigo-100: #E0E7FF;
  --indigo-500: #6366F1;
  --indigo-600: #4F46E5;
  --indigo-700: #4338CA;
  --gray-50: #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-400: #9CA3AF;
  --gray-500: #6B7280;
  --gray-600: #4B5563;
  --gray-700: #374151;
  --gray-800: #1F2937;
  --gray-900: #111827;
  --green-500: #10B981;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--gray-800);
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  text-decoration: none;
  border: none;
  transition: all 150ms ease;
  white-space: nowrap;
}
.btn--primary { background: var(--indigo-600); color: #fff; }
.btn--primary:hover { background: var(--indigo-700); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(79,70,229,.35); }
.btn--outline { background: #fff; color: var(--indigo-600); border: 1.5px solid var(--indigo-600); }
.btn--outline:hover { background: var(--indigo-50); }
.btn--white { background: #fff; color: var(--indigo-600); }
.btn--white:hover { background: var(--indigo-50); transform: translateY(-1px); }
.btn--sm { padding: 8px 16px; font-size: 13px; }
.btn--lg { padding: 14px 28px; font-size: 16px; border-radius: 10px; }
.btn--full { width: 100%; justify-content: center; }

/* ---- NAV ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-100);
  padding: 14px 0;
}
.nav__inner {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 17px;
  font-weight: 700;
  color: var(--gray-900);
  text-decoration: none;
}
.nav__links {
  display: flex;
  gap: 24px;
  margin-left: auto;
}
.nav__links a {
  color: var(--gray-500);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 150ms;
}
.nav__links a:hover { color: var(--gray-900); }

/* ---- HERO ---- */
.hero {
  padding: 80px 0 60px;
  background: linear-gradient(180deg, #fafafe 0%, #fff 100%);
  overflow: hidden;
}
.hero__inner { text-align: center; }
.hero__badge { margin-bottom: 20px; }
.badge {
  display: inline-block;
  background: var(--indigo-50);
  color: var(--indigo-600);
  border: 1px solid var(--indigo-100);
  border-radius: 999px;
  padding: 4px 14px;
  font-size: 13px;
  font-weight: 600;
}
.hero__headline {
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 800;
  line-height: 1.1;
  color: var(--gray-900);
  letter-spacing: -1.5px;
  margin-bottom: 20px;
}
.gradient-text {
  background: linear-gradient(135deg, #4F46E5 0%, #818CF8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero__sub {
  font-size: 18px;
  color: var(--gray-500);
  max-width: 520px;
  margin: 0 auto 36px;
  line-height: 1.65;
}
.hero__cta { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-bottom: 56px; }
.hero__cta-note { font-size: 13px; color: var(--gray-400); }

/* Browser mockup */
.hero__preview { display: flex; justify-content: center; }
.browser-mockup {
  width: 100%;
  max-width: 480px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 24px 64px rgba(0,0,0,.12), 0 1px 0 rgba(0,0,0,.04);
  overflow: hidden;
  border: 1px solid var(--gray-200);
}
.browser-mockup__bar {
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.browser-mockup__dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--gray-300);
}
.browser-mockup__dot:nth-child(1) { background: #FF5F57; }
.browser-mockup__dot:nth-child(2) { background: #FEBC2E; }
.browser-mockup__dot:nth-child(3) { background: #28C840; }
.browser-mockup__url {
  flex: 1;
  text-align: center;
  font-size: 12px;
  color: var(--gray-500);
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 6px;
  padding: 3px 10px;
}
.browser-mockup__body { padding: 24px; }

.ext-widget { background: #fff; border: 1px solid var(--gray-200); border-radius: 10px; padding: 16px; }
.ext-widget__header { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.ext-widget__avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4F46E5, #818CF8);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.ext-widget__name { font-weight: 600; font-size: 14px; }
.ext-widget__title { font-size: 12px; color: var(--gray-500); }
.ext-widget__result { background: var(--gray-50); border-radius: 8px; padding: 12px; }
.ext-widget__email {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 500; margin-bottom: 8px;
}
.ext-widget__conf { display: flex; gap: 6px; flex-wrap: wrap; }
.conf-badge {
  font-size: 11px; font-weight: 600;
  padding: 2px 8px; border-radius: 999px;
}
.conf-badge--high { background: #ECFDF5; color: #059669; }
.conf-badge--verified { background: var(--indigo-50); color: var(--indigo-600); }

/* ---- SOCIAL PROOF ---- */
.social-proof {
  padding: 32px 0;
  border-top: 1px solid var(--gray-100);
  border-bottom: 1px solid var(--gray-100);
}
.social-proof .container { text-align: center; }
.social-proof__label { font-size: 13px; color: var(--gray-400); font-weight: 500; margin-bottom: 16px; }
.social-proof__logos { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.platform-pill {
  display: flex; align-items: center; gap: 8px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-700);
}

/* ---- SECTION SHARED ---- */
.section-header { text-align: center; margin-bottom: 56px; }
.section-tag {
  font-size: 13px; font-weight: 600; color: var(--indigo-600);
  text-transform: uppercase; letter-spacing: .06em;
  margin-bottom: 10px;
}
.section-header h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  color: var(--gray-900);
  letter-spacing: -0.5px;
  margin-bottom: 14px;
}
.section-sub { font-size: 17px; color: var(--gray-500); max-width: 520px; margin: 0 auto; }

/* ---- FEATURES ---- */
.features { padding: 80px 0; }
.features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.feature-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 28px;
  transition: box-shadow 200ms, transform 200ms;
}
.feature-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.08); transform: translateY(-2px); }
.feature-card__icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.feature-card__icon--indigo { background: var(--indigo-50); color: var(--indigo-600); }
.feature-card__icon--green  { background: #ECFDF5; color: #059669; }
.feature-card__icon--blue   { background: #EFF6FF; color: #2563EB; }
.feature-card__icon--purple { background: #FAF5FF; color: #7C3AED; }
.feature-card__icon--orange { background: #FFF7ED; color: #EA580C; }
.feature-card__icon--pink   { background: #FFF1F2; color: #E11D48; }
.feature-card h3 { font-size: 16px; font-weight: 700; color: var(--gray-900); margin-bottom: 8px; }
.feature-card p  { font-size: 14px; color: var(--gray-500); line-height: 1.65; }

/* ---- HOW IT WORKS ---- */
.how-it-works {
  padding: 80px 0;
  background: var(--gray-50);
}
.steps {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}
.step {
  flex: 1;
  min-width: 220px;
  max-width: 280px;
  text-align: center;
  padding: 0 8px;
}
.step__num {
  width: 44px; height: 44px;
  background: var(--indigo-600);
  color: #fff;
  border-radius: 50%;
  font-size: 18px;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.step h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.step p  { font-size: 14px; color: var(--gray-500); line-height: 1.65; }
.step__arrow { font-size: 24px; color: var(--gray-300); padding-top: 10px; align-self: flex-start; margin-top: 24px; }

/* ---- PRICING ---- */
.pricing { padding: 80px 0; }
.pricing__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  align-items: start;
}
.plan-card {
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  padding: 32px;
  background: #fff;
  position: relative;
}
.plan-card--featured {
  border-color: var(--indigo-600);
  box-shadow: 0 0 0 3px rgba(79,70,229,.12), 0 16px 40px rgba(79,70,229,.1);
}
.plan-card__badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--indigo-600);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 14px;
  border-radius: 999px;
  white-space: nowrap;
}
.plan-card__header { margin-bottom: 24px; }
.plan-card__header h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.plan-card__header p  { font-size: 13px; color: var(--gray-500); margin-top: 4px; }
.plan-card__price { display: flex; align-items: baseline; gap: 4px; margin-bottom: 4px; }
.plan-card__amount { font-size: 40px; font-weight: 800; color: var(--gray-900); letter-spacing: -1px; }
.plan-card__period { font-size: 15px; color: var(--gray-500); }
.plan-card__features { list-style: none; margin-bottom: 28px; display: flex; flex-direction: column; gap: 10px; }
.plan-card__features li { font-size: 14px; color: var(--gray-600); display: flex; align-items: center; gap: 8px; }
.check { color: var(--green-500); font-weight: 700; flex-shrink: 0; }

/* ---- FAQ ---- */
.faq { padding: 80px 0; background: var(--gray-50); }
.faq__inner { max-width: 680px; margin: 0 auto; }
.faq__list { display: flex; flex-direction: column; gap: 12px; }
.faq__item {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  overflow: hidden;
}
.faq__item summary {
  padding: 18px 20px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--gray-900);
}
.faq__item summary::after { content: '+'; font-size: 20px; color: var(--gray-400); font-weight: 400; }
.faq__item[open] summary::after { content: '−'; }
.faq__item p { padding: 0 20px 18px; font-size: 14px; color: var(--gray-500); line-height: 1.7; }

/* ---- BOTTOM CTA ---- */
.bottom-cta {
  padding: 80px 0;
  background: linear-gradient(135deg, #4F46E5 0%, #6366F1 100%);
}
.bottom-cta__inner { text-align: center; }
.bottom-cta h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; color: #fff; margin-bottom: 12px; letter-spacing: -0.5px; }
.bottom-cta p  { font-size: 17px; color: rgba(255,255,255,.75); margin-bottom: 32px; }

/* ---- FOOTER ---- */
.footer {
  padding: 32px 0;
  border-top: 1px solid var(--gray-100);
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer__copy { font-size: 13px; color: var(--gray-400); }
.footer__links { display: flex; gap: 20px; }
.footer__links a { font-size: 13px; color: var(--gray-400); text-decoration: none; }
.footer__links a:hover { color: var(--gray-700); }

/* ============================================
   ANIMATIONS
   ============================================ */

/* Scroll-in base state */
.anim-ready {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 550ms cubic-bezier(.22,1,.36,1), transform 550ms cubic-bezier(.22,1,.36,1);
}
.anim-ready.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Nav shadow on scroll */
.nav--scrolled {
  box-shadow: 0 2px 16px rgba(0,0,0,.08);
}

/* Hero headline fade-up */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.hero__badge    { animation: fadeUp 600ms cubic-bezier(.22,1,.36,1) both; }
.hero__headline { animation: fadeUp 650ms 80ms cubic-bezier(.22,1,.36,1) both; }
.hero__sub      { animation: fadeUp 650ms 160ms cubic-bezier(.22,1,.36,1) both; }
.hero__cta      { animation: fadeUp 650ms 240ms cubic-bezier(.22,1,.36,1) both; }
.hero__preview  { animation: fadeUp 700ms 320ms cubic-bezier(.22,1,.36,1) both; }

/* Browser mockup float */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-8px); }
}
.browser-mockup {
  animation: float 5s ease-in-out infinite;
}
.browser-mockup:hover { animation-play-state: paused; }

/* Gradient shimmer on hero background */
@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.hero {
  background: linear-gradient(-45deg, #f5f3ff, #fafafe, #eef2ff, #f0f4ff);
  background-size: 400% 400%;
  animation: gradientShift 12s ease infinite;
}

/* Feature card hover lift */
.feature-card {
  transition: box-shadow 250ms ease, transform 250ms ease, opacity 550ms cubic-bezier(.22,1,.36,1);
}

/* Plan card hover */
.plan-card {
  transition: box-shadow 250ms ease, transform 250ms ease, opacity 550ms cubic-bezier(.22,1,.36,1);
}
.plan-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,.1);
}
.plan-card--featured:hover {
  box-shadow: 0 0 0 3px rgba(79,70,229,.2), 0 20px 48px rgba(79,70,229,.18);
}

/* Step number pulse on hover */
.step__num {
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.step:hover .step__num {
  transform: scale(1.1);
  box-shadow: 0 0 0 6px rgba(79,70,229,.15);
}

/* Logo icon spin on hover */
.nav__logo svg, .auth-logo svg {
  transition: transform 400ms cubic-bezier(.34,1.56,.64,1);
}
.nav__logo:hover svg, .auth-logo:hover svg {
  transform: rotate(20deg) scale(1.08);
}

/* Button improvements */
.btn {
  position: relative;
  overflow: hidden;
}
.btn--primary {
  box-shadow: 0 1px 3px rgba(79,70,229,.3);
}
.btn--primary:hover {
  box-shadow: 0 6px 20px rgba(79,70,229,.4);
}

/* Ripple keyframe */
@keyframes ripple {
  to { transform: scale(2.5); opacity: 0; }
}

/* Bottom CTA gradient animation */
.bottom-cta {
  background: linear-gradient(-45deg, #4338CA, #4F46E5, #6366F1, #4F46E5);
  background-size: 300% 300%;
  animation: gradientShift 8s ease infinite;
}

/* Section header slide-in */
.section-header {
  transition: opacity 600ms cubic-bezier(.22,1,.36,1), transform 600ms cubic-bezier(.22,1,.36,1);
}

/* FAQ item hover */
.faq__item {
  transition: box-shadow 200ms ease, transform 200ms ease, opacity 550ms cubic-bezier(.22,1,.36,1);
}
.faq__item:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,.07);
  transform: translateX(2px);
}

/* Platform pill hover */
.platform-pill {
  transition: background 150ms, transform 150ms, box-shadow 150ms;
}
.platform-pill:hover {
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
}

/* Confidence bar fill animation on mockup */
@keyframes barFill {
  from { width: 0%; }
}
.conf-badge--high {
  animation: fadeIn 800ms 1s both;
}
.conf-badge--verified {
  animation: fadeIn 800ms 1.2s both;
}
.ext-widget__email {
  animation: fadeIn 600ms 800ms both;
}

/* Pricing section enter */
.plan-card--featured {
  transition: box-shadow 300ms ease, transform 300ms ease, opacity 600ms 160ms cubic-bezier(.22,1,.36,1);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 640px) {
  .nav__links { display: none; }
  .steps { flex-direction: column; align-items: center; }
  .step__arrow { transform: rotate(90deg); margin: 0; }
  .footer__inner { flex-direction: column; text-align: center; }
}
