:root {
  --es-primary: #007281;
  --es-primary-deep: #005a66;
  --es-secondary: #FE5C17;
  --es-navy: #0B1625;
  --es-white: #ffffff;
  --es-soft: #e6f3f5;
  --es-muted: rgba(255, 255, 255, 0.72);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Manrope", system-ui, sans-serif;
}

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

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--es-white);
  background: var(--es-navy);
  overflow-x: hidden;
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── Atmosphere ── */
.bg-stage {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.bg-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 1.4s ease, transform 8s ease;
}

.bg-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.bg-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(11, 22, 37, 0.92) 0%, rgba(11, 22, 37, 0.72) 48%, rgba(0, 114, 129, 0.45) 100%),
    linear-gradient(180deg, rgba(11, 22, 37, 0.35) 0%, rgba(11, 22, 37, 0.82) 100%);
}

.bg-glow {
  position: absolute;
  width: 55vmax;
  height: 55vmax;
  right: -18vmax;
  top: -10vmax;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(254, 92, 23, 0.28) 0%, transparent 68%);
  animation: drift 14s ease-in-out infinite alternate;
}

.bg-grain {
  position: absolute;
  inset: 0;
  opacity: 0.08;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(-6%, 8%) scale(1.12); }
}

/* ── Header ── */
.topbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem clamp(1.25rem, 4vw, 3rem);
}

.brand {
  display: inline-flex;
  text-decoration: none;
}

.brand-logo {
  height: clamp(44px, 7vw, 58px);
  width: auto;
  max-width: min(280px, 70vw);
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.25));
  /* Keep teal mark readable; brighten wordmark on dark bg */
}

.launch-chip {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--es-muted);
}

.launch-chip strong {
  color: var(--es-white);
  font-weight: 700;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--es-secondary);
  box-shadow: 0 0 0 0 rgba(254, 92, 23, 0.55);
  animation: pulse 1.8s ease-out infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(254, 92, 23, 0.55); }
  70% { box-shadow: 0 0 0 12px rgba(254, 92, 23, 0); }
  100% { box-shadow: 0 0 0 0 rgba(254, 92, 23, 0); }
}

/* ── Hero ── */
.hero {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: clamp(1.5rem, 5vh, 3.5rem) 0 clamp(2rem, 6vh, 4rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: start;
}

@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    gap: clamp(2rem, 4vw, 3.5rem);
    align-items: center;
  }
}

.hero-copy {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 1rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #7fd4df;
}

h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.2rem, 5.5vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  max-width: 14ch;
}

h1 .accent {
  display: block;
  background: linear-gradient(105deg, #ffffff 10%, #7fd4df 45%, #FE5C17 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  margin: 1.25rem 0 0;
  max-width: 36rem;
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  line-height: 1.65;
  color: var(--es-muted);
  font-weight: 500;
}

/* ── Countdown ── */
.countdown {
  margin-top: clamp(1.75rem, 4vh, 2.75rem);
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0.65rem;
}

.count-card {
  min-width: 4.6rem;
  flex: 1 1 4.6rem;
  max-width: 7.5rem;
  padding: 1rem 0.75rem 0.85rem;
  border-radius: 18px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(14px);
  text-align: center;
}

.count-value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--es-white);
  font-variant-numeric: tabular-nums;
}

.count-label {
  display: block;
  margin-top: 0.45rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
}

.count-sep {
  display: none;
  align-self: center;
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: rgba(255, 255, 255, 0.35);
  padding-bottom: 0.9rem;
}

@media (min-width: 640px) {
  .count-sep {
    display: block;
  }
  .count-card {
    flex: 0 0 auto;
    min-width: 6.25rem;
  }
}

/* ── CTA ── */
.cta-row {
  margin-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.btn-whatsapp,
.btn-email {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border-radius: 999px;
  padding: 0.95rem 1.35rem;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.btn-whatsapp {
  color: var(--es-white);
  background: #25d366;
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.28);
}

.btn-whatsapp:hover {
  background: #1ebe57;
  transform: translateY(-1px);
}

.btn-email {
  color: var(--es-white);
  background: var(--es-primary);
  box-shadow: 0 12px 28px rgba(0, 114, 129, 0.35);
}

.btn-email:hover {
  background: var(--es-primary-deep);
  transform: translateY(-1px);
}

.wa-icon {
  width: 1.15rem;
  height: 1.15rem;
  flex-shrink: 0;
}

/* ── How it works ── */
.hiw-stack {
  display: grid;
  gap: 0.9rem;
  width: 100%;
  align-content: center;
}

.how-it-works {
  margin: 0;
  width: 100%;
  padding: 1.05rem 1.1rem 1.15rem;
  border-radius: 22px;
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(14px);
}

.how-it-works--vendor {
  border-color: rgba(0, 114, 129, 0.45);
  background:
    linear-gradient(165deg, rgba(0, 114, 129, 0.28), rgba(255, 255, 255, 0.05));
}

.hiw-badge {
  display: inline-flex;
  margin: 0 0 0.45rem;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: var(--es-secondary);
}

.hiw-badge--vendor {
  background: var(--es-primary);
}

.how-it-works h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hiw-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.hiw-steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
  padding: 0.7rem 0.85rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.hiw-num {
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--es-white);
  background: var(--es-secondary);
  box-shadow: 0 8px 18px rgba(254, 92, 23, 0.28);
}

.hiw-num--teal {
  background: var(--es-primary);
  box-shadow: 0 8px 18px rgba(0, 114, 129, 0.35);
}

.hiw-steps h3 {
  margin: 0 0 0.15rem;
  font-size: 0.9rem;
  font-weight: 700;
}

.hiw-steps p {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--es-muted);
}

.pillars {
  list-style: none;
  margin: 1.35rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.pillars li {
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.82);
}

/* ── Footer ── */
.site-footer {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem clamp(1.25rem, 4vw, 3rem) 1.5rem;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.85rem;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
}

.site-footer a:hover {
  color: #7fd4df;
}

.footer-contact {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

/* ── Motion ── */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.delay-1 { animation-delay: 0.12s; }
.delay-2 { animation-delay: 0.22s; }
.delay-3 { animation-delay: 0.34s; }
.delay-4 { animation-delay: 0.46s; }
.delay-5 { animation-delay: 0.58s; }

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.count-value.tick {
  animation: tick 0.28s ease;
}

@keyframes tick {
  0% { transform: translateY(6px); opacity: 0.35; }
  100% { transform: translateY(0); opacity: 1; }
}

@media (max-width: 560px) {
  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .cta-row {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-whatsapp,
  .btn-email {
    width: 100%;
  }

  h1 {
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .bg-slide,
  .bg-glow,
  .pulse-dot,
  .count-value.tick {
    animation: none !important;
    transition: none !important;
    opacity: 1;
    transform: none;
  }
}
