/* ============================================================
   EnVisionAI — landing page
   Palette:  bg #060d14 · panels #0b1622 / #081018
             accents #55b2cb #319ac8 #277fa5 #7cc7dd
   Font:     Poppins
   ============================================================ */

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

:root {
  --bg: #060d14;
  --panel: #0b1622;
  --panel-alt: #081018;
  --text: #e8f1f7;
  --muted: #a9c0cf;
  --muted-2: #c9dae5;
  --dim: #5f7889;
  --accent: #55b2cb;
  --accent-2: #319ac8;
  --accent-3: #277fa5;
  --accent-hi: #7cc7dd;
  --border: rgba(85,178,203,.12);
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Poppins, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hi); }

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

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-thumb { background: #1d3242; border-radius: 5px; }
::-webkit-scrollbar-track { background: var(--panel-alt); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent-3), var(--accent-2));
  color: #fff;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
  box-shadow: 0 0 34px rgba(49,154,200,.45);
}
.btn:hover { color: #fff; transform: translateY(-1px); filter: brightness(1.06); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 3px; }

.btn--sm  { padding: 10px 20px; border-radius: 8px; font-size: 13px;
            background: var(--accent-3); box-shadow: 0 0 22px rgba(49,154,200,.35); }
.btn--lg  { padding: 15px 30px; font-size: 15px; }
.btn--xl  { padding: 17px 38px; font-size: 16px; box-shadow: 0 0 40px rgba(49,154,200,.5); }

.btn--ghost {
  padding: 15px 26px;
  background: none;
  border: 1px solid rgba(85,178,203,.3);
  color: var(--accent-hi);
  font-weight: 500;
  font-size: 15px;
  box-shadow: none;
}
.btn--ghost:hover { color: var(--accent-hi); border-color: rgba(85,178,203,.55); transform: translateY(-1px); filter: none; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 44px;
  background: rgba(6,13,20,.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(85,178,203,.12);
}
.nav__brand { display: flex; align-items: center; gap: 11px; }
.nav__logo { width: 34px; height: auto; }
.nav__name { font-size: 17px; font-weight: 600; letter-spacing: .2px; color: var(--text); }
.nav__right { display: flex; align-items: center; gap: 22px; }

.langpills { display: flex; gap: 4px; font-size: 11px; font-weight: 600; }
.langpills__btn {
  padding: 5px 9px;
  border: none;
  border-radius: 6px;
  background: none;
  color: #8fa9ba;
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: background .18s ease, color .18s ease;
}
.langpills__btn:hover { color: var(--accent-hi); }
.langpills__btn.is-active { background: rgba(85,178,203,.15); color: var(--accent-hi); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 70px 80px 90px;
  background-image: radial-gradient(rgba(85,178,203,.10) 1px, transparent 1px);
  background-size: 28px 28px;
  overflow: hidden;
}
.hero__glow {
  position: absolute;
  top: 120px;
  left: 50%;
  transform: translateX(-50%);
  width: min(560px, 90vw);
  height: min(560px, 90vw);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(49,154,200,.22), transparent 65%);
  animation: pulseGlow 5s ease-in-out infinite;
  pointer-events: none;
}
.hero__logo {
  position: relative;
  width: 92px;
  height: auto;
  margin-bottom: 28px;
  animation: floaty 6s ease-in-out infinite;
  filter: drop-shadow(0 0 26px rgba(85,178,203,.55));
}
.hero__body { position: relative; max-width: 720px; }

.badge {
  display: inline-block;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid rgba(85,178,203,.35);
  color: var(--accent-hi);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 2.2px;
  margin-bottom: 28px;
}
.hero__pre {
  margin: 0 0 8px;
  font-size: clamp(38px, 7vw, 64px);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -1px;
}
.hero__rotator {
  position: relative;
  display: inline-block;
  font-size: clamp(38px, 7vw, 64px);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 22px;
}
.hero__rot {
  position: absolute;
  left: 0; right: 0; top: 0;
  opacity: 0;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: wordcycle 9s ease infinite;
}
.hero__rot:nth-child(1) { animation-delay: 0s; }
.hero__rot:nth-child(2) { animation-delay: 2.25s; }
.hero__rot:nth-child(3) { animation-delay: 4.5s; }
.hero__rot:nth-child(4) { animation-delay: 6.75s; }
.hero__rot-sizer { visibility: hidden; }

.hero__sub {
  margin: 0 auto 36px;
  max-width: 560px;
  font-size: 18px;
  line-height: 1.65;
  font-weight: 300;
  color: var(--muted);
  text-wrap: pretty;
}
.hero__cta { display: flex; gap: 16px; justify-content: center; align-items: center; flex-wrap: wrap; }
.hero__note { margin-top: 26px; font-size: 12.5px; color: var(--dim); font-weight: 400; }

/* ---------- Generic section ---------- */
.section {
  position: relative;
  padding: 100px 80px;
  border-top: 1px solid rgba(85,178,203,.08);
}
.section--alt { background: var(--panel-alt); }
.section__head { text-align: center; margin-bottom: 56px; }
.kicker {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2.2px;
  color: var(--accent);
  margin-bottom: 12px;
}
.section__title {
  margin: 0;
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 600;
  letter-spacing: -.5px;
}

/* ---------- Pain points ---------- */
.pains__list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 720px;
  margin: 0 auto;
}
.pain {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 30px;
  border-radius: 12px;
  background: var(--panel);
  border: 1px solid rgba(85,178,203,.1);
}
.pain__text {
  position: relative;
  font-size: 19px;
  font-weight: 400;
  color: var(--muted-2);
}
.pain__strike {
  position: absolute;
  left: 0;
  top: 55%;
  height: 2px;
  width: 0;
  background: var(--accent);
  transition: width .5s ease .9s;
}
.pain__tag {
  flex: none;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--accent);
  border: 1px solid rgba(85,178,203,.4);
  border-radius: 999px;
  padding: 6px 14px;
  opacity: 0;
  transition: opacity .5s ease 1.3s;
}
/* pain reveal choreography */
.pain.is-visible .pain__strike { width: 100%; }
.pain.is-visible .pain__tag { opacity: 1; }
.pains__outro {
  text-align: center;
  margin-top: 34px;
  font-size: 24px;
  font-weight: 500;
  color: var(--accent-hi);
}

/* ---------- How it works ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  max-width: 1000px;
  margin: 0 auto;
}
.step {
  padding: 34px 30px;
  border-radius: 14px;
  background: var(--panel);
  border: 1px solid var(--border);
}
.step__num { font-size: 13px; font-weight: 700; color: var(--accent-2); margin-bottom: 14px; }
.step__title { font-size: 21px; font-weight: 600; margin-bottom: 10px; }
.step__desc { margin: 0; font-size: 14.5px; line-height: 1.7; font-weight: 300; color: var(--muted); }

/* ---------- Chips ---------- */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  max-width: 820px;
  margin: 0 auto 40px;
}
.chip {
  padding: 13px 24px;
  border-radius: 999px;
  background: var(--panel);
  border: 1px solid rgba(85,178,203,.2);
  font-size: 15px;
  font-weight: 400;
  color: var(--muted-2);
}
.powered {
  text-align: center;
  font-size: 12.5px;
  color: var(--dim);
  letter-spacing: .5px;
}

/* ---------- Local / Orlando ---------- */
.local__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
  max-width: 1000px;
  margin: 0 auto;
}
.local__title { margin: 0 0 14px; font-size: clamp(28px, 4.5vw, 36px); font-weight: 600; letter-spacing: -.5px; }
.local__sub { margin: 0; font-size: 15.5px; line-height: 1.7; font-weight: 300; color: var(--muted); max-width: 420px; }
.local__cities {
  flex: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14.5px;
  color: var(--accent-hi);
  font-weight: 500;
  text-align: right;
}
.local__etc { color: var(--dim); font-weight: 300; }

/* ---------- Final CTA ---------- */
.final { text-align: center; padding: 120px 80px; overflow: hidden; }
.final__glow {
  position: absolute;
  bottom: -260px;
  left: 50%;
  transform: translateX(-50%);
  width: min(700px, 95vw);
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(49,154,200,.25), transparent 65%);
  pointer-events: none;
}
.final__inner { position: relative; }
.final__title { margin: 0 0 16px; font-size: clamp(30px, 5.5vw, 44px); font-weight: 600; letter-spacing: -.5px; }
.final__sub { margin: 0 0 34px; font-size: 16px; font-weight: 300; color: var(--muted); }
.final__note { margin-top: 24px; font-size: 12.5px; color: var(--dim); }

/* ---------- Footer ---------- */
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 26px 44px;
  border-top: 1px solid rgba(85,178,203,.1);
  font-size: 12px;
  color: var(--dim);
}
.footer__brand { display: flex; align-items: center; gap: 9px; }
.footer__logo { width: 20px; height: auto; opacity: .7; }

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }
/* stagger children of a group when they reveal in sequence */
.pains__list .pain:nth-child(2) { transition-delay: .1s; }
.pains__list .pain:nth-child(3) { transition-delay: .2s; }
.pains__list .pain:nth-child(4) { transition-delay: .3s; }
.steps .step:nth-child(2) { transition-delay: .12s; }
.steps .step:nth-child(3) { transition-delay: .24s; }

/* ---------- Keyframes ---------- */
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes pulseGlow {
  0%, 100% { opacity: .45; }
  50% { opacity: .9; }
}
@keyframes wordcycle {
  0%   { opacity: 0; transform: translateY(14px); }
  5%   { opacity: 1; transform: translateY(0); }
  22%  { opacity: 1; transform: translateY(0); }
  28%  { opacity: 0; transform: translateY(-14px); }
  100% { opacity: 0; }
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav { padding: 14px 20px; }
  .nav__right { gap: 14px; }
  .hero { padding: 60px 24px 70px; min-height: 82vh; }
  .section { padding: 72px 24px; }
  .final { padding: 90px 24px; }
  .steps { grid-template-columns: 1fr; max-width: 460px; }
  .local__inner { flex-direction: column; align-items: flex-start; gap: 28px; }
  .local__cities { text-align: left; align-items: flex-start; }
  .pain { padding: 20px 22px; gap: 16px; }
  .pain__text { font-size: 17px; }
  .footer { flex-direction: column; align-items: flex-start; gap: 10px; padding: 24px 20px; }
}
@media (max-width: 480px) {
  .nav__name { font-size: 15px; }
  .hero__sub { font-size: 16px; }
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { width: 100%; }
  .badge { letter-spacing: 1.4px; font-size: 10.5px; }
  .pains__outro { font-size: 20px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__logo, .hero__glow { animation: none; }
  .hero__rot { animation: none; }
  /* show the last word statically when motion is off */
  .hero__rot:nth-child(4) { opacity: 1; position: relative; }
  .hero__rot:nth-child(1),
  .hero__rot:nth-child(2),
  .hero__rot:nth-child(3) { display: none; }
  .hero__rot-sizer { display: none; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none; }
  .pain__strike { transition: none; }
  .pain__tag { transition: none; }
}
