/* ===== Design tokens ===== */
:root {
  --bg: #050a14;
  --bg-elevated: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.08);
  --cyan: #00d4ff;
  --cyan-dim: rgba(0, 212, 255, 0.15);
  --blue: #0072ff;
  --green: #00e676;
  --text: #e8edf5;
  --text-muted: #8b9cb3;
  --serif: "DM Serif Display", Georgia, serif;
  --sans: "Inter", system-ui, sans-serif;
  --radius: 16px;
  --radius-lg: 24px;
  --nav-h: 72px;
  --gradient-btn: linear-gradient(90deg, #00d4ff 0%, #0072ff 100%);
  --gradient-cta: linear-gradient(135deg, #0a1628 0%, #0d2847 50%, #061018 100%);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

ul { list-style: none; }

img { max-width: 100%; display: block; }

/* ===== Background glows ===== */
.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
}
.bg-glow--1 {
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, rgba(0, 114, 255, 0.18) 0%, rgba(0, 114, 255, 0) 70%);
  top: -120px;
  right: 8%;
  animation: bgGlowDrift 14s ease-in-out infinite;
}
.bg-glow--2 {
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.12) 0%, rgba(0, 212, 255, 0) 70%);
  bottom: 15%;
  left: -8%;
  animation: bgGlowDrift 18s ease-in-out infinite reverse;
}

@keyframes bgGlowDrift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(20px, -16px) scale(1.05); }
}

/* ===== Glass ===== */
.glass {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn--primary {
  background: var(--gradient-btn);
  color: #050a14;
  box-shadow: 0 4px 24px rgba(0, 212, 255, 0.35);
}
.btn--primary:hover {
  box-shadow: 0 8px 32px rgba(0, 212, 255, 0.45);
}
.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(0, 114, 255, 0.5);
}
.btn--ghost-light {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.25);
}
.btn--outline {
  background: transparent;
  color: var(--cyan);
  border: 1px solid var(--cyan);
  padding: 12px 24px;
}
.btn--sm {
  padding: 10px 20px;
  font-size: 0.875rem;
}
.btn--icon {
  padding: 12px 14px;
}

/* ===== Nav ===== */
.nav {
  position: fixed;
  top: 16px;
  left: 0;
  right: 0;
  margin-left: auto;
  margin-right: auto;
  z-index: 1000;
  width: min(1200px, calc(100% - 32px));
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  border-radius: var(--radius-lg);
  pointer-events: auto;
  isolation: isolate;
}
.nav__logo {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
}
.nav__logo span {
  color: var(--cyan);
}
.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 28px);
  position: relative;
  z-index: 2;
  pointer-events: auto;
}
.nav__link {
  font-size: clamp(0.78rem, 1.1vw, 0.9rem);
  color: var(--text-muted);
  position: relative;
  z-index: 2;
  padding: 10px 6px;
  cursor: pointer;
  pointer-events: auto;
  white-space: nowrap;
  transition: color 0.2s;
}
.nav__link:hover,
.nav__link--active {
  color: var(--cyan);
}
.nav__link:hover {
  text-decoration: none;
}
.nav__link--active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--cyan);
  border-radius: 2px;
}
.nav__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 2;
  pointer-events: auto;
  flex-shrink: 0;
}
.nav__icon-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}
.nav__icon-btn:hover {
  color: var(--cyan);
  background: var(--cyan-dim);
}
.nav__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  border: 2px solid rgba(255, 255, 255, 0.2);
}
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav__burger span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
  max-width: 1200px;
  margin: 0 auto;
  padding: calc(var(--nav-h) + 48px) 24px 80px;
}
.hero__content {
  max-width: 560px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
.hero__content > .hero__visual {
  grid-column: 1;
  max-width: none;
  width: 100%;
  margin: 28px 0;
}
@media (min-width: 769px) {
  .hero__content {
    display: contents;
  }
  .hero .badge,
  .hero .hero__title,
  .hero .hero__subtitle,
  .hero .hero__ctas,
  .hero .hero__stats {
    grid-column: 1;
  }
  .hero .hero__visual {
    grid-column: 2;
    grid-row: 1 / span 5;
    align-self: center;
    margin: 0;
    max-width: none;
  }
}
.badge {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 100px;
  border: 1px solid var(--cyan);
  color: var(--cyan);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.hero__title {
  font-family: var(--serif);
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 20px;
}
.hero__title em {
  font-style: italic;
  color: var(--cyan);
}
.hero__subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 32px;
  max-width: 480px;
}
.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 40px;
}
.hero__stats {
  display: flex;
  gap: 48px;
}
.stat strong {
  display: block;
  font-size: 1.5rem;
  color: var(--text);
}
.stat span {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.hero__visual {
  position: relative;
  height: 520px;
  perspective: 1400px;
}
.hero__canvas {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.hero__canvas canvas,
.hero__webgl {
  display: block;
  width: 100% !important;
  height: 100% !important;
}
.hero__overlay-cards {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
}
.float-card {
  position: absolute;
  padding: 14px 20px;
  border-radius: 14px;
  font-size: 0.85rem;
  animation: float 6s ease-in-out infinite;
  border: 1px solid rgba(0, 212, 255, 0.2);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35), 0 0 24px rgba(0, 212, 255, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.float-card--status {
  top: 8%;
  right: -4%;
  animation-delay: 0s;
}
.float-card--amount {
  bottom: 20%;
  left: -4%;
  animation-delay: -2s;
}
.float-card--metric {
  top: 42%;
  right: -8%;
  animation-delay: -3.5s;
  padding: 12px 18px;
}
.float-card--metric strong {
  display: block;
  font-size: 1.15rem;
  color: var(--green);
  margin-top: 2px;
}
.float-card__dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
  margin-right: 8px;
  box-shadow: 0 0 8px var(--green);
}
.float-card--amount strong {
  display: block;
  font-size: 1.75rem;
  color: var(--cyan);
  margin-top: 4px;
}
.float-card__label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(1deg); }
}

/* ===== Sections ===== */
.section {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 24px;
}
.section__header {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 64px;
}
.section__header h2 {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin-bottom: 12px;
}
.section__header p {
  color: var(--text-muted);
}

/* ===== Features ===== */
.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  padding: 32px;
  border-radius: var(--radius-lg);
  position: relative;
  transition: transform 0.3s, border-color 0.3s;
}
.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 212, 255, 0.25);
}
.feature-card--highlight {
  border-color: rgba(0, 212, 255, 0.35);
  background: rgba(0, 212, 255, 0.06);
  box-shadow: 0 0 40px rgba(0, 212, 255, 0.08);
}
.feature-card__badge {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--cyan);
  background: var(--cyan-dim);
  padding: 4px 10px;
  border-radius: 100px;
}
.feature-card__icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cyan-dim);
  border-radius: 14px;
  color: var(--cyan);
  margin-bottom: 20px;
}
.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 16px;
}
.feature-card__list {
  margin-bottom: 24px;
}
.feature-card__list li {
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 6px 0 6px 24px;
  position: relative;
}
.feature-card__list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--cyan);
  font-weight: 700;
}

/* ===== Timeline / Process ===== */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}
.timeline__line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  transform: translateX(-50%);
  background: repeating-linear-gradient(
    to bottom,
    rgba(0, 212, 255, 0.2) 0,
    rgba(0, 212, 255, 0.2) 8px,
    transparent 8px,
    transparent 16px
  );
}
.timeline__line-fill {
  width: 100%;
  height: 0%;
  background: linear-gradient(to bottom, var(--cyan), var(--blue));
  transition: height 0.1s linear;
}
.timeline__step {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 32px;
  align-items: center;
  margin-bottom: 80px;
}
.timeline__step:last-child {
  margin-bottom: 0;
}
.timeline__content {
  padding: 8px 0;
}
.timeline__content--left {
  text-align: right;
}
.timeline__num {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--cyan);
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}
.timeline__content h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}
.timeline__content p {
  color: var(--text-muted);
  font-size: 0.9rem;
}
.timeline__visual {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  color: var(--cyan);
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.15);
  position: relative;
  z-index: 2;
}
.timeline__visual::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: inherit;
  border: 2px solid var(--cyan);
  opacity: 0.3;
}

/* ===== CTA ===== */
.cta__box {
  text-align: center;
  padding: 64px 48px;
  border-radius: var(--radius-lg);
  background: var(--gradient-cta);
  border: 1px solid rgba(0, 114, 255, 0.3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 24px 64px rgba(0, 0, 0, 0.4);
}
.cta__box h2 {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  margin-bottom: 12px;
}
.cta__box > p {
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 32px;
}
.cta__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

/* ===== Footer ===== */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 48px 24px 32px;
  max-width: 1200px;
  margin: 0 auto;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer__brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 16px 0 20px;
  max-width: 280px;
}
.footer__social {
  display: flex;
  gap: 12px;
}
.footer__social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: color 0.2s, border-color 0.2s;
}
.footer__social a:hover {
  color: var(--cyan);
  border-color: var(--cyan);
}
.footer__social-link--instagram:hover {
  color: #e1306c;
  border-color: rgba(225, 48, 108, 0.45);
}
.footer__social-link--whatsapp:hover {
  color: #25d366;
  border-color: rgba(37, 211, 102, 0.45);
}
.footer__col h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
  color: var(--text);
}
.footer__col ul li {
  margin-bottom: 10px;
}
.footer__col a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color 0.2s;
}
.footer__col a:hover {
  color: var(--cyan);
}
.footer__subscribe p {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 12px;
  line-height: 1.5;
}

.footer__contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.footer__contact-item:last-child {
  margin-bottom: 0;
}

.footer__contact-icon {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--cyan);
}

.footer__contact-item a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer__contact-item a:hover {
  color: var(--cyan);
}

.subscribe-form {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.subscribe-form input {
  flex: 1;
  min-width: 0;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
  line-height: 1.4;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.subscribe-form input::placeholder {
  color: rgba(139, 156, 179, 0.95);
  opacity: 1;
}
.subscribe-form input:hover {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
}
.subscribe-form input:focus {
  outline: none;
  border-color: var(--cyan);
  background: rgba(255, 255, 255, 0.09);
  box-shadow: 0 0 0 3px var(--cyan-dim);
}
.subscribe-form input:-webkit-autofill,
.subscribe-form input:-webkit-autofill:hover,
.subscribe-form input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--text);
  caret-color: var(--text);
  -webkit-box-shadow: 0 0 0 1000px rgba(12, 20, 34, 0.98) inset;
  box-shadow: 0 0 0 1000px rgba(12, 20, 34, 0.98) inset;
  border-color: rgba(255, 255, 255, 0.14);
  transition: background-color 5000s ease-in-out 0s;
}
.subscribe-form .btn--icon {
  flex-shrink: 0;
  min-width: 48px;
  min-height: 48px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.footer__copy {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

/* ===== Reveal animations ===== */
.reveal {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .hero {
    display: block;
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: calc(var(--nav-h) + 80px);
  }

  .landing-page .hero {
    min-height: auto !important;
    height: auto !important;
    padding: calc(var(--nav-h) + 28px) 16px 20px !important;
  }

  .hero__content {
    display: block;
    max-width: 100%;
    margin: 0 auto;
  }
  .hero__subtitle {
    margin-left: auto;
    margin-right: auto;
  }
  .hero__ctas,
  .hero__stats {
    justify-content: center;
  }
  .hero__visual {
    height: 380px;
    max-width: 520px;
    margin: 0 auto;
  }

  .landing-page .hero__visual,
  .landing-page .hero__visual--desktop,
  .landing-page .hero__visual-mobile {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    min-height: 0 !important;
    max-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
    opacity: 0 !important;
  }

  .landing-page .hero__content > .hero__visual,
  .landing-page .hero__content > .hero__visual-mobile {
    margin: 0 !important;
  }

  .landing-page .hero__canvas {
    display: none !important;
    height: 0 !important;
    min-height: 0 !important;
    overflow: hidden !important;
  }

  .float-card--status { right: 0; }
  .float-card--amount { left: 0; }
  .features__grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 1024px) {
  .nav__burger {
    display: flex;
  }
  .nav__links {
    display: none;
  }
  .nav__actions .nav__icon-btn,
  .nav__actions .btn--sm {
    display: none;
  }
  .nav.nav--open {
    flex-wrap: wrap;
    height: auto;
    padding-bottom: 16px;
  }
  .nav.nav--open .nav__links {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    order: 3;
    width: 100%;
    gap: 8px 16px;
    padding: 16px 8px 8px;
    position: relative;
    z-index: 2;
    background: rgba(5, 10, 20, 0.98);
    border-top: 1px solid var(--border);
    border-radius: 0 0 12px 12px;
  }
  .nav.nav--open .nav__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    order: 4;
    width: 100%;
    padding: 8px 8px 12px;
    gap: 12px;
    background: rgba(5, 10, 20, 0.98);
  }
  .nav.nav--open .nav__actions .nav__icon-btn,
  .nav.nav--open .nav__actions .btn--sm {
    display: inline-flex;
  }
}

@media (max-width: 768px) {
  .timeline__step {
    grid-template-columns: 1fr;
    text-align: center !important;
  }
  .timeline__content--left,
  .timeline__content--right {
    text-align: center;
  }
  .timeline__visual {
    margin: 0 auto;
    order: -1;
  }
  .timeline__line {
    left: 50%;
    transform: translateX(-50%);
  }
  .footer__grid {
    grid-template-columns: 1fr;
  }

  .nav.nav--open .nav__links {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  .nav.nav--open .nav__actions {
    flex-direction: column;
    align-items: stretch;
  }
}
