/* ============ Tokens ============ */
:root {
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 16px;
  --radius-sm: 10px;
  --header-h: 72px;
  --container: 1160px;
  --transition: 0.25s ease;

  --primary: #7c3aed;
  --primary-strong: #6d28d9;
  --primary-soft: rgba(124, 58, 237, 0.1);
  --accent: #8b5cf6;
  --whatsapp: #25d366;
  --whatsapp-dark: #1ebe5d;

  --bg: #f6f8fc;
  --bg-alt: #eef2f9;
  --text: #16233b;
  --text-muted: #5b6b82;
  --card: #ffffff;
  --card-border: #e4eaf3;
  --shadow: 0 10px 30px rgba(22, 35, 59, 0.08);
  --shadow-lg: 0 24px 60px rgba(22, 35, 59, 0.14);
  --header-bg: rgba(255, 255, 255, 0.85);
  --chip-bg: #ffffff;
  --receipt-bg: #ffffff;
  --receipt-border: #e2e8f0;
  --device-body: #1e293b;
  --device-edge: #334155;
  --device-screen: #0b1220;
  --device-key: #334155;
  --band-bg: linear-gradient(120deg, #6d28d9, #a855f7);
  --hero-glow: rgba(124, 58, 237, 0.14);
}

[data-theme="dark"] {
  --primary: #8b5cf6;
  --primary-strong: #a78bfa;
  --primary-soft: rgba(139, 92, 246, 0.16);
  --bg: #0b1120;
  --bg-alt: #0e1628;
  --text: #e8eefb;
  --text-muted: #9aa9c0;
  --card: #131c31;
  --card-border: #22304d;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.5);
  --header-bg: rgba(11, 17, 32, 0.85);
  --chip-bg: #131c31;
  --receipt-bg: #f8fafc;
  --receipt-border: #cbd5e1;
  --band-bg: linear-gradient(120deg, #5b21b6, #7e22ce);
  --hero-glow: rgba(139, 92, 246, 0.18);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  transition: background var(--transition), color var(--transition);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--primary);
  text-decoration: none;
}

h1,
h2,
h3 {
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 800;
  letter-spacing: -0.02em;
}

p {
  margin: 0 0 1em;
}

.container {
  width: min(var(--container), 100% - 48px);
  margin-inline: auto;
}

.container.narrow {
  max-width: 820px;
}

section {
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.section {
  padding: 88px 0;
}

.section.alt {
  background: var(--bg-alt);
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  font-family: inherit;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition), border-color var(--transition);
}

.btn svg {
  width: 20px;
  height: 20px;
  flex: none;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 10px 24px rgba(124, 58, 237, 0.35);
}

.btn-primary:hover {
  background: var(--primary-strong);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--card-border);
}

.btn-ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-whatsapp {
  background: var(--whatsapp);
  color: #fff;
  box-shadow: 0 10px 24px rgba(37, 211, 102, 0.35);
}

.btn-whatsapp:hover {
  background: var(--whatsapp-dark);
}

.btn.big {
  padding: 18px 36px;
  font-size: 17px;
}

.btn.big svg {
  width: 24px;
  height: 24px;
}

/* ============ Header ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.site-header.scrolled {
  border-bottom-color: var(--card-border);
  box-shadow: var(--shadow);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--primary);
  color: #fff;
  flex: none;
}

.brand-mark svg {
  width: 22px;
  height: 22px;
}

.brand-text em {
  font-style: normal;
  font-weight: 600;
  color: var(--primary);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav a {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 15px;
  transition: color var(--transition);
}

.main-nav a:hover {
  color: var(--primary);
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-toggle {
  display: inline-flex;
  background: var(--primary-soft);
  border-radius: 999px;
  padding: 3px;
}

.lang-toggle button {
  border: 0;
  background: transparent;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}

.lang-toggle button.active {
  background: var(--primary);
  color: #fff;
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--card-border);
  background: var(--card);
  color: var(--text);
  cursor: pointer;
  transition: border-color var(--transition), color var(--transition), background var(--transition);
}

.icon-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.icon-btn svg {
  width: 20px;
  height: 20px;
}

[data-theme="light"] .icon-moon { display: none; }
[data-theme="dark"] .icon-sun { display: none; }

.nav-burger {
  display: none;
}

.nav-burger .icon-close {
  display: none;
}

.site-header.nav-open .nav-burger .icon-menu {
  display: none;
}

.site-header.nav-open .nav-burger .icon-close {
  display: block;
}

/* ============ Hero ============ */
.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 96px;
  background:
    radial-gradient(600px 400px at 85% 10%, var(--hero-glow), transparent 70%),
    radial-gradient(500px 380px at 5% 90%, var(--hero-glow), transparent 70%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.badge {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(38px, 5.4vw, 60px);
  margin-bottom: 18px;
}

.hero .lead {
  font-size: 19px;
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 24px;
}

.hero-chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 0 0 32px;
}

.hero-chips li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--chip-bg);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-muted);
}

.hero-chips li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--whatsapp);
  flex: none;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* Device visual */
.hero-visual {
  display: grid;
  place-items: center;
}

.device-stage {
  position: relative;
  width: min(420px, 100%);
}

.device {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 30px 50px rgba(15, 23, 42, 0.25));
}

.float-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--chip-bg);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-lg);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
  animation: floaty 5s ease-in-out infinite;
}

.float-chip svg {
  width: 18px;
  height: 18px;
  color: var(--primary);
}

.fc-wifi {
  top: 16%;
  right: -6%;
  animation-delay: 0s;
}

.fc-battery {
  top: 46%;
  left: -10%;
  animation-delay: 1.4s;
}

.fc-card {
  bottom: 8%;
  right: -4%;
  animation-delay: 2.6s;
}

@keyframes floaty {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* ============ Section heads ============ */
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}

.section-head.center {
  margin-bottom: 32px;
}

.kicker {
  display: inline-block;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary);
  margin-bottom: 12px;
}

.section-head h2 {
  font-size: clamp(28px, 3.6vw, 40px);
  margin-bottom: 16px;
}

.section-lead {
  color: var(--text-muted);
  font-size: 17px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ============ Cards ============ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card-grid.three {
  grid-template-columns: repeat(3, 1fr);
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--primary-soft);
  color: var(--primary);
  margin-bottom: 18px;
}

.feature-icon svg {
  width: 26px;
  height: 26px;
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 15px;
  margin: 0;
}

/* ============ Stats band ============ */
.stats-band {
  background: var(--band-bg);
  color: #fff;
  padding: 48px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-value {
  display: block;
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.stat-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  opacity: 0.85;
  margin-top: 4px;
}

/* ============ Highlights ============ */
.highlight-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.highlight-card {
  position: relative;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
}

.highlight-card::after {
  content: "";
  position: absolute;
  inset: auto -60px -60px auto;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: var(--primary-soft);
  pointer-events: none;
}

.highlight-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--primary);
  color: #fff;
  margin-bottom: 20px;
}

.highlight-icon svg {
  width: 28px;
  height: 28px;
}

.highlight-card h3 {
  font-size: 22px;
  margin-bottom: 10px;
}

.highlight-card p {
  color: var(--text-muted);
  margin: 0;
  position: relative;
  z-index: 1;
}

/* ============ FAQ ============ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-list details {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: border-color var(--transition);
}

.faq-list details[open] {
  border-color: var(--primary);
}

.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  cursor: pointer;
  font-weight: 700;
  font-size: 15.5px;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list .chev {
  width: 20px;
  height: 20px;
  flex: none;
  color: var(--primary);
  transition: transform var(--transition);
}

.faq-list details[open] .chev {
  transform: rotate(180deg);
}

.faq-list details p {
  padding: 0 22px 20px;
  margin: 0;
  color: var(--text-muted);
  font-size: 15px;
}

/* ============ Testimonial ============ */
.testimonial {
  margin: 0;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px;
  text-align: center;
}

.testimonial blockquote {
  margin: 0 0 24px;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.7;
}

.testimonial figcaption {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.avatar {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  font-size: 16px;
  flex: none;
}

.who {
  text-align: left;
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.who small {
  color: var(--text-muted);
  font-weight: 600;
}

/* ============ About ============ */
.about-body {
  color: var(--text-muted);
  font-size: 16px;
}

.about-body p {
  margin-bottom: 1.2em;
}

/* ============ Contact ============ */
.contact-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: calc(var(--radius) + 8px);
  box-shadow: var(--shadow-lg);
  padding: 64px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.contact-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 6px;
  background: var(--band-bg);
}

.contact-phone {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.02em;
  margin: 24px 0 6px;
}

.contact-note {
  color: var(--text-muted);
  margin: 0;
}

/* ============ Footer ============ */
.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--card-border);
  padding: 48px 0 24px;
}

.footer-grid {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-brand p {
  color: var(--text-muted);
  margin: 14px 0 0;
  font-size: 14.5px;
}

.footer-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
}

.footer-meta p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14.5px;
  font-weight: 600;
}

.social {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--card-border);
  background: var(--card);
  color: var(--text-muted);
  transition: color var(--transition), border-color var(--transition);
}

.social:hover {
  color: var(--primary);
  border-color: var(--primary);
}

.social svg {
  width: 18px;
  height: 18px;
}

.footer-bottom {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--card-border);
  text-align: center;
}

.footer-bottom p {
  margin: 0;
  color: var(--text-muted);
  font-size: 13.5px;
}

/* ============ WhatsApp float ============ */
.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 60;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--whatsapp);
  color: #fff;
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.45);
  transition: transform var(--transition), background var(--transition);
}

.whatsapp-float:hover {
  transform: scale(1.08);
  background: var(--whatsapp-dark);
}

.whatsapp-float svg {
  width: 30px;
  height: 30px;
}

/* ============ Responsive ============ */
@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .hero-copy {
    text-align: center;
  }

  .hero .lead {
    margin-inline: auto;
  }

  .hero-chips,
  .hero-cta {
    justify-content: center;
  }

  .card-grid,
  .card-grid.three {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }

  .highlight-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .section {
    padding: 64px 0;
  }

  .nav-burger {
    display: grid;
  }

  .main-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--header-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--card-border);
    box-shadow: var(--shadow);
    padding: 8px 24px 16px;
    display: none;
  }

  .site-header.nav-open .main-nav {
    display: flex;
  }

  .main-nav a {
    padding: 14px 4px;
    border-bottom: 1px solid var(--card-border);
    font-size: 16px;
  }

  .main-nav a:last-child {
    border-bottom: 0;
  }

  .brand-text em {
    display: none;
  }

  .card-grid,
  .card-grid.three {
    grid-template-columns: 1fr;
  }

  .float-chip {
    padding: 8px 12px;
    font-size: 12px;
  }

  .fc-wifi {
    right: 0;
  }

  .fc-battery {
    left: 0;
  }

  .fc-card {
    right: 0;
  }

  .contact-card {
    padding: 48px 24px;
  }

  .footer-meta {
    align-items: flex-start;
  }

  .footer-grid {
    flex-direction: column;
  }
}

/* ============ Reduced motion ============ */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .float-chip {
    animation: none;
  }

  .btn,
  .feature-card,
  .whatsapp-float {
    transition: none;
  }
}
