:root {
  --night: #0b1030;
  --deep: #070a20;
  --tile: #141a33;
  --tile-2: #1b2142;
  --line: rgba(194, 179, 246, 0.14);
  --ink: #f5f5fd;
  --ink-2: #b7b9d6;
  --ink-3: #8082a8;
  --lilac: #c2b3f6;
  --violet: #a78bfa;
  --glow: #4b3fa0;
  --ok: #7ee2b0;
  --warn: #ffb86b;
  --radius: 28px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background:
    radial-gradient(1200px 700px at 50% -10%, #1a2150 0%, transparent 60%),
    linear-gradient(180deg, var(--night) 0%, var(--deep) 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }

:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 3px;
  border-radius: 8px;
}

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  background: var(--ink);
  color: var(--night);
  padding: 10px 16px;
  border-radius: 10px;
  z-index: 100;
  transition: top 0.2s;
}
.skip:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(11, 16, 48, 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom-color: var(--line);
}
.nav-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.01em;
}
.brand img { border-radius: 8px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 15px;
  color: var(--ink-2);
}
.nav-links a { transition: color 0.2s; }
.nav-links a:hover { color: var(--ink); }
.nav-links .nav-cta {
  color: var(--night);
  background: var(--ink);
  padding: 8px 18px;
  border-radius: 999px;
  font-weight: 600;
}
.nav-links .nav-cta:hover { color: var(--night); background: var(--lilac); }

.burger {
  display: none;
  width: 44px;
  height: 44px;
  background: none;
  border: 0;
  cursor: pointer;
  position: relative;
}
.burger span {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s, top 0.3s;
}
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  padding: 15px 28px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s, box-shadow 0.3s, border-color 0.2s;
}
.btn-primary {
  color: var(--night);
  background: linear-gradient(180deg, #ffffff 0%, #e6e0fd 100%);
  box-shadow: 0 0 0 0 rgba(167, 139, 250, 0), 0 10px 40px -8px rgba(167, 139, 250, 0.55);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 6px rgba(167, 139, 250, 0.16), 0 16px 50px -8px rgba(167, 139, 250, 0.75);
}
.btn-primary:active { transform: translateY(0); }
.btn-ghost {
  color: var(--ink);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.03);
}
.btn-ghost:hover { border-color: var(--lilac); background: rgba(194, 179, 246, 0.08); }
.btn-lg { font-size: 19px; padding: 18px 36px; }
.btn-privacy {
  color: var(--ink);
  background: rgba(194, 179, 246, 0.12);
  border-color: rgba(194, 179, 246, 0.4);
  padding: 12px 22px;
  font-size: 15px;
}
.btn-privacy:hover { background: rgba(194, 179, 246, 0.22); border-color: var(--lilac); }

.hero {
  padding: 150px 0 110px;
  overflow: hidden;
}
.hero-in {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.6rem, 5.6vw, 4.6rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 700;
  text-wrap: balance;
}
.lead {
  margin-top: 24px;
  font-size: 1.2rem;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 34em;
}
.hero-actions {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.hero-note {
  margin-top: 18px;
  font-size: 14px;
  color: var(--ink-3);
}

.stage {
  position: relative;
  height: 640px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.glow {
  position: absolute;
  width: 520px;
  height: 360px;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(110, 90, 220, 0.75), rgba(75, 63, 160, 0.3) 55%, transparent 100%);
  filter: blur(40px);
  animation: breathe 6s ease-in-out infinite;
}
@keyframes breathe {
  0%, 100% { opacity: 0.8; transform: translateX(-50%) scale(1); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.08); }
}

.phone {
  position: relative;
  width: 290px;
  height: 590px;
  border-radius: 48px;
  padding: 10px;
  background: linear-gradient(160deg, #2a3162, #0f1430 50%, #232a58);
  box-shadow:
    0 0 0 1px rgba(194, 179, 246, 0.25),
    0 40px 80px -20px rgba(0, 0, 0, 0.7),
    0 0 90px -10px rgba(110, 90, 220, 0.55);
  z-index: 2;
}
.phone-island {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 86px;
  height: 25px;
  background: #000;
  border-radius: 20px;
  z-index: 3;
}
.screen {
  height: 100%;
  border-radius: 40px;
  background: linear-gradient(180deg, #141a33, #0d1128);
  padding: 58px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow: hidden;
}
.app-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.app-title { font-size: 26px; font-weight: 700; letter-spacing: -0.03em; }
.sync {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--ok);
  background: rgba(126, 226, 176, 0.1);
  padding: 4px 9px;
  border-radius: 999px;
}
.sync i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ok);
  animation: ping 2.4s ease-out infinite;
}
@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgba(126, 226, 176, 0.7); }
  100% { box-shadow: 0 0 0 8px rgba(126, 226, 176, 0); }
}
.search {
  font-size: 13px;
  color: var(--ink-3);
  background: rgba(255, 255, 255, 0.06);
  padding: 10px 14px;
  border-radius: 12px;
}
.items { display: flex; flex-direction: column; gap: 10px; flex: 1; }
.items li {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--tile-2);
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid rgba(194, 179, 246, 0.08);
}
.thumb {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  flex: none;
  position: relative;
}
.thumb::after {
  content: "";
  position: absolute;
  inset: 11px 9px 9px;
  background: #f5f5fd;
  clip-path: polygon(30% 0, 70% 0, 100% 22%, 86% 40%, 78% 34%, 78% 100%, 22% 100%, 22% 34%, 14% 40%, 0 22%);
}
.t1 { background: linear-gradient(135deg, #5a49b8, #a78bfa); }
.t2 { background: linear-gradient(135deg, #22264a, #3a3f73); }
.t3 { background: linear-gradient(135deg, #1e3a8a, #3b82f6); }
.t4 { background: linear-gradient(135deg, #4a4f6a, #9a9eb8); }
.t2::after { background: #23274d; box-shadow: 0 0 0 1px rgba(255,255,255,0.25); }
.meta { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.meta b { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.meta em { font-style: normal; font-size: 12px; color: var(--ink-3); }
.qty {
  font-size: 18px;
  font-weight: 700;
  min-width: 34px;
  text-align: center;
  padding: 4px 8px;
  border-radius: 10px;
  background: rgba(194, 179, 246, 0.14);
  color: var(--lilac);
}
.qty.low { background: rgba(255, 184, 107, 0.16); color: var(--warn); animation: tick 5s ease-in-out infinite; }
@keyframes tick {
  0%, 70%, 100% { transform: scale(1); }
  76% { transform: scale(1.18); }
  82% { transform: scale(1); }
}
.app-tab {
  display: flex;
  justify-content: space-around;
  font-size: 12px;
  color: var(--ink-3);
  background: rgba(255, 255, 255, 0.05);
  padding: 10px;
  border-radius: 18px;
}
.app-tab .on { color: var(--ink); font-weight: 600; }

.sheet-card {
  position: absolute;
  right: -10px;
  top: 90px;
  width: 250px;
  z-index: 3;
  background: rgba(20, 26, 51, 0.82);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.7);
  font-size: 12px;
  transform: rotate(3deg);
}
.sheet-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.04);
}
.sheet-bar span { width: 8px; height: 8px; border-radius: 50%; background: rgba(194, 179, 246, 0.35); }
.sheet-bar b { margin-left: 8px; font-weight: 600; color: var(--ink-2); }
.sheet-row {
  display: grid;
  grid-template-columns: 1fr 34px 34px;
  gap: 8px;
  padding: 8px 12px;
  border-top: 1px solid rgba(194, 179, 246, 0.08);
  color: var(--ink-2);
}
.sheet-row span:nth-child(n+2) { text-align: right; }
.sheet-row.head { color: var(--ink-3); font-size: 11px; }
.sheet-row.flash { animation: flash 5s ease-in-out infinite; }
@keyframes flash {
  0%, 70%, 100% { background: transparent; color: var(--ink-2); }
  76%, 90% { background: rgba(167, 139, 250, 0.25); color: var(--ink); }
}

.section { padding: 120px 0; }
.section-alt {
  background: linear-gradient(180deg, transparent, rgba(20, 26, 51, 0.6) 20%, rgba(20, 26, 51, 0.6) 80%, transparent);
}
.section-head { max-width: 720px; margin-bottom: 64px; }
.section h2, .final h2 {
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 700;
  text-wrap: balance;
}
.section-head p {
  margin-top: 20px;
  font-size: 1.15rem;
  color: var(--ink-2);
  max-width: 36em;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature {
  background: linear-gradient(160deg, var(--tile-2), var(--tile));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  transition: border-color 0.3s, transform 0.3s;
}
.feature:hover { border-color: rgba(194, 179, 246, 0.4); }
.feature h3 { font-size: 1.25rem; letter-spacing: -0.02em; line-height: 1.25; margin-bottom: 10px; }
.feature p { color: var(--ink-2); font-size: 1rem; }
.feature-big {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 48px;
  background:
    radial-gradient(500px 260px at 100% 100%, rgba(110, 90, 220, 0.35), transparent 70%),
    linear-gradient(160deg, var(--tile-2), var(--tile));
}
.feature-big h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.12; letter-spacing: -0.03em; }
.feature-big p { font-size: 1.08rem; }
.ico {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  color: var(--lilac);
  background: rgba(194, 179, 246, 0.12);
  border: 1px solid rgba(194, 179, 246, 0.22);
}
.ico svg { width: 24px; height: 24px; }

.feature-viz {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: rgba(7, 10, 32, 0.55);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px;
}
.pulse-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink-2);
  font-size: 15px;
}
.pulse-row b { font-size: 18px; color: var(--ink); }
.pulse-row.live { animation: flash 5s ease-in-out infinite; }

.compare {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(11, 16, 48, 0.6);
}
.compare-row {
  display: grid;
  grid-template-columns: 0.8fr 1.1fr 1.1fr;
  gap: 24px;
  padding: 22px 32px;
  border-top: 1px solid rgba(194, 179, 246, 0.1);
  align-items: start;
  color: var(--ink-2);
  font-size: 1rem;
}
.compare-row:first-child { border-top: 0; }
.compare-row [role="rowheader"] { color: var(--ink); font-weight: 600; }
.compare-row .us { color: var(--ink); }
.compare-head {
  font-size: 14px;
  color: var(--ink-3);
  padding-top: 18px;
  padding-bottom: 18px;
}
.compare-head .us { color: var(--lilac); font-weight: 700; }
.compare-row:not(.compare-head) .us {
  position: relative;
  padding-left: 28px;
}
.compare-row:not(.compare-head) .us::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--violet) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.3l2.3 2.3 4.7-4.9' fill='none' stroke='%230b1030' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}

.platforms {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.platforms-copy p { margin-top: 20px; font-size: 1.12rem; color: var(--ink-2); }
.ticks { margin-top: 28px; display: grid; gap: 14px; }
.ticks li {
  position: relative;
  padding-left: 34px;
  color: var(--ink);
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(194, 179, 246, 0.16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.3l3 3 6-6.2' fill='none' stroke='%23c2b3f6' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}

.devices {
  position: relative;
  height: 400px;
}
.devices::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 80%;
  height: 160px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(110, 90, 220, 0.6), transparent);
  filter: blur(36px);
}
.dev { position: absolute; }
.dev-screen {
  background: linear-gradient(180deg, #151b38, #0d1128);
  border: 1px solid rgba(194, 179, 246, 0.28);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.7);
  display: flex;
  overflow: hidden;
  padding: 14px;
  gap: 12px;
}
.dev-label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -28px;
  text-align: center;
  font-size: 13px;
  color: var(--ink-3);
}
.dev-mac { left: 0; top: 30px; width: 74%; }
.dev-mac .dev-screen { height: 230px; border-radius: 14px; border-width: 5px; border-color: #262d5e; }
.dev-ipad { right: 0; top: 130px; width: 40%; }
.dev-ipad .dev-screen { height: 200px; border-radius: 18px; border-width: 6px; border-color: #262d5e; }
.dev-iphone { left: 46%; top: 190px; width: 17%; z-index: 2; }
.dev-iphone .dev-screen { height: 170px; border-radius: 16px; border-width: 4px; border-color: #2d3570; padding: 10px 8px; }
.mac-side { width: 22%; display: grid; gap: 8px; align-content: start; }
.mac-side i { height: 10px; border-radius: 5px; background: rgba(194, 179, 246, 0.14); }
.mac-main { flex: 1; display: grid; gap: 10px; align-content: start; }
.mac-line { height: 16px; border-radius: 8px; background: rgba(255, 255, 255, 0.08); }
.mac-line.accent { background: linear-gradient(90deg, var(--violet), var(--lilac)); }
.w40 { width: 40%; } .w60 { width: 60%; } .w75 { width: 75%; } .w90 { width: 90%; }

.final {
  padding: 130px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.final::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -160px;
  width: 760px;
  height: 380px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(110, 90, 220, 0.6), transparent);
  filter: blur(50px);
}
.final-in { position: relative; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.final-icon {
  border-radius: 24px;
  box-shadow: 0 0 60px rgba(110, 90, 220, 0.6);
  margin-bottom: 8px;
}
.final p { font-size: 1.2rem; color: var(--ink-2); max-width: 30em; }
.final .btn { margin-top: 12px; }

.footer {
  border-top: 1px solid var(--line);
  padding: 40px 0 calc(40px + env(safe-area-inset-bottom, 0px));
  background: rgba(7, 10, 32, 0.7);
}
.footer-in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.footer-brand img { border-radius: 7px; }
.copy { color: var(--ink-3); font-size: 14px; width: 100%; order: 3; }
.footer-legal { margin-top: 18px; }
.footer-legal p { font-size: 12px; color: var(--ink-3); max-width: 60em; line-height: 1.6; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 960px) {
  .hero { padding-top: 120px; }
  .hero-in { grid-template-columns: 1fr; gap: 24px; }
  .hero-copy { text-align: center; }
  .lead { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .stage { height: 620px; }
  .sheet-card { right: 0; }
  .features { grid-template-columns: 1fr 1fr; }
  .feature-big { grid-template-columns: 1fr; padding: 32px; }
  .platforms { grid-template-columns: 1fr; gap: 56px; }
  .section { padding: 90px 0; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .burger { display: block; }
  .nav-links {
    position: fixed;
    inset: calc(64px + env(safe-area-inset-top, 0px)) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(11, 16, 48, 0.96);
    -webkit-backdrop-filter: blur(24px);
    backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--line);
    padding: 8px 24px 24px;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
    font-size: 18px;
  }
  .nav-links.open { opacity: 1; transform: none; visibility: visible; }
  .nav-links a { padding: 14px 0; border-bottom: 1px solid rgba(194, 179, 246, 0.1); }
  .nav-links .nav-cta { margin-top: 16px; text-align: center; border: 0; padding: 14px; }
  .nav.menu-open { background: rgba(11, 16, 48, 0.96); }
  .features { grid-template-columns: 1fr; }
  .stage { height: 600px; }
  .sheet-card { display: none; }
  .compare-head { display: none; }
  .compare-row { grid-template-columns: 1fr; gap: 8px; padding: 22px; }
  .compare-row [role="rowheader"] { font-size: 1.05rem; }
  .compare-row [role="cell"]:not(.us)::before {
    content: "Tradicional: ";
    color: var(--ink-3);
  }
  .compare-row .us { padding-top: 2px; }
  .devices { height: 330px; }
  .dev-mac .dev-screen { height: 180px; }
  .dev-ipad .dev-screen { height: 160px; }
  .dev-iphone .dev-screen { height: 130px; }
  .dev-iphone { top: 160px; }
  .dev-ipad { top: 100px; }
  .final { padding: 100px 0; }
  .footer-in { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
