:root {
  --fg-rgb: 255, 255, 255;
  --nav-bg: rgba(11, 11, 20, .8);
  --nav-bg-solid: rgba(11, 11, 20, .97);
  --chip-bg: rgba(30, 30, 49, .9);
  --bg: #0b0b14;
  --bg-alt: #11111d;
  --surface: #171726;
  --surface-2: #1e1e31;
  --border: rgba(var(--fg-rgb), 0.08);
  --text: #f2f2f8;
  --muted: #a3a3bd;
  --primary: #7c5cff;
  --primary-2: #22d3ee;
  --accent: #f472b6;
  --grad: linear-gradient(120deg, #a78bfa 0%, #7c5cff 35%, #22d3ee 100%);
  --radius: 18px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --font-head: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }
.hidden { display: none; }
.muted { color: var(--muted); }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px; border-radius: 999px; border: 1px solid transparent;
  font: 600 15px var(--font-body); cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 8px 30px rgba(124, 92, 255, .4); }
.btn-primary:hover { box-shadow: 0 12px 40px rgba(124, 92, 255, .6); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: rgba(var(--fg-rgb), .25); background: rgba(var(--fg-rgb), .04); }
.btn-sm { padding: 10px 18px; font-size: 14px; }

/* Navegação */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background .3s, border-color .3s; border-bottom: 1px solid transparent; }
.nav.scrolled { background: var(--nav-bg); backdrop-filter: blur(14px); border-color: var(--border); }
.nav-inner { display: flex; align-items: center; gap: 32px; height: 72px; }
.logo { font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; display: flex; align-items: center; gap: 10px; }
.logo-dot { width: 22px; height: 22px; border-radius: 7px; background: var(--grad); box-shadow: 0 0 20px rgba(124,92,255,.6); }
.logo-sep { color: var(--primary-2); }
.nav-links { display: flex; gap: 28px; margin-left: auto; }
.nav-links a { color: var(--muted); font-size: 15px; transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; width: 40px; height: 40px; padding: 10px; margin-left: auto; }
.nav-toggle span { display: block; height: 2px; background: var(--text); margin: 5px 0; transition: transform .3s; }
.nav-toggle.open span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav-toggle.open span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* Hero */
.hero { position: relative; padding: 150px 0 0; overflow: hidden; }
.hero-glow {
  position: absolute; inset: -20% -10% auto; height: 900px; pointer-events: none;
  background:
    radial-gradient(600px 400px at 75% 30%, rgba(124, 92, 255, .35), transparent 70%),
    radial-gradient(500px 350px at 20% 10%, rgba(34, 211, 238, .18), transparent 70%),
    radial-gradient(400px 300px at 90% 70%, rgba(244, 114, 182, .15), transparent 70%);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(var(--fg-rgb), .03) 1px, transparent 1px), linear-gradient(90deg, rgba(var(--fg-rgb), .03) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px; border-radius: 999px;
  background: rgba(var(--fg-rgb), .05); border: 1px solid var(--border); color: var(--muted); font-size: 14px; margin-bottom: 24px;
}
.pulse { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 0 rgba(52,211,153,.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(52,211,153,0); } 100% { box-shadow: 0 0 0 0 rgba(52,211,153,0); } }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 540px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 32px 0 28px; }
.hero-points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--muted); font-size: 14px; }

/* Visual do hero */
.hero-visual { position: relative; height: 480px; }
.device { position: absolute; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); }
.browser { width: 88%; right: 0; top: 30px; border-radius: 16px; overflow: hidden; animation: float 7s ease-in-out infinite; }
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 12px 14px; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(var(--fg-rgb), .15); }
.browser-bar span { margin-left: 12px; font-size: 12px; color: var(--muted); background: rgba(0,0,0,.25); padding: 3px 12px; border-radius: 6px; }
.browser-body { display: flex; height: 290px; }
.b-side { width: 56px; border-right: 1px solid var(--border); padding: 16px 12px; display: flex; flex-direction: column; gap: 12px; }
.b-side b { height: 30px; border-radius: 8px; background: rgba(var(--fg-rgb), .06); }
.b-side b:first-child { background: var(--primary); }
.b-main { flex: 1; padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.b-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.b-card { padding: 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); }
.b-card small { display: block; color: var(--muted); font-size: 12px; }
.b-card strong { font-family: var(--font-head); font-size: 1.6rem; }
.b-card.c1 strong { color: #a78bfa; }
.b-card.c2 strong { color: var(--primary-2); }
.b-chart { flex: 1; display: flex; align-items: flex-end; gap: 10px; padding: 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); }
.b-chart span { flex: 1; height: var(--h); border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, #7c5cff, rgba(124,92,255,.25)); animation: grow 1.2s ease-out both; }
.b-chart span:nth-child(2n) { background: linear-gradient(180deg, #22d3ee, rgba(34,211,238,.2)); }
@keyframes grow { from { height: 0; } }

.phone { width: 200px; height: 400px; left: 0; top: 70px; border-radius: 34px; padding: 10px; background: #0f0f1a; border: 1px solid rgba(var(--fg-rgb), .12); animation: float 6s ease-in-out infinite reverse; }
.phone-notch { width: 70px; height: 18px; border-radius: 0 0 12px 12px; background: #000; margin: 0 auto 8px; }
.phone-body { height: calc(100% - 26px); border-radius: 24px; background: var(--surface); padding: 16px 12px; display: flex; flex-direction: column; gap: 10px; }
.p-head { font-family: var(--font-head); font-weight: 600; font-size: 16px; margin-bottom: 4px; }
.p-item { display: flex; gap: 10px; align-items: center; padding: 10px; border-radius: 12px; background: var(--surface-2); }
.p-item b { display: block; font-size: 12.5px; font-weight: 600; }
.p-item small { color: var(--muted); font-size: 11px; }
.p-ico { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: rgba(124,92,255,.2); font-size: 15px; flex-shrink: 0; }
.p-btn { margin-top: auto; text-align: center; padding: 11px; border-radius: 12px; background: var(--grad); font-size: 13px; font-weight: 600; }

.float-chip { position: absolute; padding: 10px 16px; border-radius: 12px; background: var(--chip-bg); backdrop-filter: blur(8px); border: 1px solid var(--border); font-size: 13px; font-weight: 500; box-shadow: var(--shadow); white-space: nowrap; }
.chip-1 { top: 0; left: 30%; animation: float 5s ease-in-out infinite; }
.chip-2 { bottom: 10px; right: 6%; animation: float 5.5s ease-in-out infinite reverse; }
@keyframes float { 50% { transform: translateY(-12px); } }

/* Faixa */
.marquee { position: relative; margin-top: 90px; padding: 22px 0; border-block: 1px solid var(--border); background: rgba(var(--fg-rgb), .015); overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 14px; width: max-content; animation: scroll 60s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { padding: 8px 18px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--muted); font-size: 14px; white-space: nowrap; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* Secções */
.section { padding: 110px 0; position: relative; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--border); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--primary-2); margin-bottom: 14px; }

/* Filtros + ideias */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 40px; }
.filter { padding: 9px 18px; border-radius: 999px; border: 1px solid var(--border); background: transparent; color: var(--muted); font: 500 14px var(--font-body); cursor: pointer; transition: all .2s; }
.filter:hover { color: var(--text); border-color: rgba(var(--fg-rgb), .2); }
.filter.active { background: var(--text); color: var(--bg); border-color: var(--text); }
.ideas-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.idea {
  position: relative; padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border);
  transition: transform .25s, border-color .25s, background .25s; overflow: hidden; animation: pop .4s ease both;
}
.idea::after { content: ""; position: absolute; inset: 0; background: radial-gradient(300px 150px at var(--x, 50%) var(--y, 0%), rgba(124,92,255,.15), transparent 70%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.idea:hover { transform: translateY(-4px); border-color: rgba(124,92,255,.4); }
.idea:hover::after { opacity: 1; }
.idea-ico { font-size: 28px; margin-bottom: 14px; }
.idea h3 { font-size: 1.08rem; margin-bottom: 6px; }
.idea p { color: var(--muted); font-size: 14.5px; margin: 0; }
.idea-tag { display: inline-block; margin-top: 14px; font-size: 12px; color: var(--primary-2); }
@keyframes pop { from { opacity: 0; transform: translateY(12px); } }
.ideas-cta { margin-top: 56px; text-align: center; }
.ideas-cta p { color: var(--muted); font-size: 1.1rem; }

/* Serviços */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.service { padding: 32px 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); transition: transform .25s, border-color .25s; }
.service:hover { transform: translateY(-4px); border-color: rgba(34,211,238,.35); }
.service-ico { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; font-size: 26px; background: linear-gradient(135deg, rgba(124,92,255,.25), rgba(34,211,238,.15)); margin-bottom: 20px; }
.service p { color: var(--muted); font-size: 15px; margin: 0; }

/* Passos */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: s; }
.step { position: relative; padding: 30px 26px; border-radius: var(--radius); border: 1px solid var(--border); background: linear-gradient(180deg, var(--surface), transparent); }
.step-n { display: block; font-family: var(--font-head); font-size: 2.6rem; font-weight: 700; margin-bottom: 14px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.step p { color: var(--muted); font-size: 15px; margin: 0; }

/* Porquê */
.why { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.why-text p { color: var(--muted); font-size: 1.08rem; margin-bottom: 28px; }
.why-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.why-list li { padding: 20px 24px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); }
.why-list b { display: block; margin-bottom: 2px; }
.why-list span { color: var(--muted); font-size: 15px; }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details { border-radius: 14px; background: var(--surface); border: 1px solid var(--border); padding: 0 24px; transition: border-color .2s; }
.faq details[open] { border-color: rgba(124,92,255,.4); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 0; font-weight: 600; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; color: var(--primary-2); transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 20px; margin: 0; }

/* Formulário */
.section-form { background: radial-gradient(700px 400px at 50% 0%, rgba(124,92,255,.18), transparent 70%), var(--bg-alt); border-top: 1px solid var(--border); }
.quote, .success { background: var(--surface); border: 1px solid var(--border); border-radius: 24px; padding: 40px; box-shadow: var(--shadow); }
.progress { height: 6px; border-radius: 99px; background: rgba(var(--fg-rgb), .07); overflow: hidden; }
.progress-bar { height: 100%; width: 20%; background: var(--grad); border-radius: 99px; transition: width .4s ease; }
.step-count { color: var(--muted); font-size: 13px; margin: 12px 0 24px; }
.q { border: 0; padding: 0; margin: 0; display: none; min-width: 0; }
.q.active { display: block; animation: pop .35s ease both; }
.q legend { font-family: var(--font-head); font-size: 1.5rem; font-weight: 600; margin-bottom: 18px; padding: 0; }
.hint { color: var(--muted); font-size: 14.5px; margin-top: -8px; }
.options { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.opt { position: relative; cursor: pointer; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt span { display: block; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface-2); transition: all .2s; font-weight: 500; }
.opt:hover span { border-color: rgba(var(--fg-rgb), .22); }
.opt input:checked + span { border-color: var(--primary); background: rgba(124,92,255,.15); box-shadow: 0 0 0 3px rgba(124,92,255,.2); }
.opt input:focus-visible + span { outline: 2px solid var(--primary-2); outline-offset: 2px; }
textarea, .field input {
  width: 100%; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface-2);
  color: var(--text); font: 15px var(--font-body); resize: vertical; transition: border-color .2s, box-shadow .2s;
}
textarea:focus, .field input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(124,92,255,.2); }
textarea::placeholder { color: #6e6e88; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field span { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; }
.field em { color: var(--muted); font-style: normal; font-weight: 400; }
.form-error { color: #fb7185; font-size: 14px; min-height: 1.4em; margin: 16px 0 0; }
.form-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; }
.form-nav .btn-primary { margin-left: auto; }
.success { text-align: center; }
.success-ico { font-size: 54px; margin-bottom: 10px; }
.success p { color: var(--muted); margin: 0; }

/* Rodapé */
.footer { padding: 48px 0; border-top: 1px solid var(--border); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.footer p { margin: 0; color: var(--muted); font-size: 14px; }

/* Revelar ao fazer scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* Responsivo */
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { height: 440px; max-width: 560px; width: 100%; margin: 0 auto; }
  .services, .steps { grid-template-columns: 1fr 1fr; }
  .why { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 760px) {
  .container { padding: 0 16px; }
  .nav-links {
    position: fixed; top: 72px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--nav-bg-solid); backdrop-filter: blur(14px); border-bottom: 1px solid var(--border);
    padding: 8px 16px 16px; transform: translateY(-120%); transition: transform .3s; z-index: -1;
  }
  .nav-links.open { transform: none; }
  .nav-links a { padding: 14px 0; border-bottom: 1px solid var(--border); font-size: 16px; }
  .nav-cta { display: none; }
  .nav-toggle { display: block; }
  .hero { padding-top: 120px; }
  .hero-visual { height: 380px; }
  .phone { width: 170px; height: 340px; top: 50px; }
  .browser { width: 82%; }
  .browser-body { height: 240px; }
  .float-chip { font-size: 12px; padding: 8px 12px; }
  .chip-1 { left: 22%; }
  .section { padding: 80px 0; }
  .services, .steps, .fields { grid-template-columns: 1fr; }
  .quote, .success { padding: 26px 20px; }
  .q legend { font-size: 1.3rem; }
  .options { grid-template-columns: 1fr; }
}
/* =====================================================================
   TEMA CLARO
   ===================================================================== */
:root[data-theme="light"] {
  --fg-rgb: 20, 20, 50;
  --nav-bg: rgba(255, 255, 255, .8);
  --nav-bg-solid: rgba(255, 255, 255, .98);
  --chip-bg: rgba(255, 255, 255, .95);
  --bg: #fbfbfe;
  --bg-alt: #f3f3fa;
  --surface: #ffffff;
  --surface-2: #f4f4fb;
  --text: #15152b;
  --muted: #5c5c78;
  --primary: #6d4cff;
  --primary-2: #0e7490;
  --grad: linear-gradient(120deg, #7c3aed 0%, #6d4cff 40%, #0891b2 100%);
  --shadow: 0 20px 50px rgba(40, 40, 90, .12);
}
:root[data-theme="light"] .hero-glow { opacity: .55; }
:root[data-theme="light"] .phone,
:root[data-theme="light"] .demo-phone { background: #15152b; }
:root[data-theme="light"] .browser-bar span { background: rgba(var(--fg-rgb), .06); }
:root[data-theme="light"] textarea::placeholder { color: #9a9ab0; }
body, .nav, .idea, .service, .step, .faq details, .quote { transition: background-color .3s, border-color .3s, color .3s; }

.theme-toggle {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border); background: transparent;
  cursor: pointer; font-size: 17px; display: grid; place-items: center; transition: background .2s, transform .3s;
}
.theme-toggle:hover { background: rgba(var(--fg-rgb), .06); transform: rotate(20deg); }

/* =====================================================================
   NÍVEIS DE COMPLEXIDADE
   ===================================================================== */
.idea-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 14px; }
.idea-top .idea-ico { margin: 0; }
.lvl { font-style: normal; font-size: 11.5px; font-weight: 600; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.lvl-1 { color: #047857; background: rgba(16, 185, 129, .14); }
.lvl-2 { color: #0369a1; background: rgba(14, 165, 233, .14); }
.lvl-3 { color: #a21caf; background: rgba(217, 70, 239, .14); }
:root[data-theme="dark"] .lvl-1 { color: #34d399; }
:root[data-theme="dark"] .lvl-2 { color: #38bdf8; }
:root[data-theme="dark"] .lvl-3 { color: #e879f9; }
.lvl-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; margin: -16px 0 36px; color: var(--muted); font-size: 13.5px; }
.lvl-legend .lvl { margin-right: 6px; }

/* =====================================================================
   DEMOS INTERATIVAS
   ===================================================================== */
.demo-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 44px; }
.demo-tab {
  padding: 11px 20px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface);
  color: var(--muted); font: 600 15px var(--font-body); cursor: pointer; transition: all .2s;
}
.demo-tab:hover { color: var(--text); border-color: rgba(var(--fg-rgb), .2); }
.demo-tab.active { color: #fff; background: var(--primary); border-color: var(--primary); box-shadow: 0 8px 26px rgba(124, 92, 255, .35); }
.demo-stage { display: grid; grid-template-columns: auto 1fr; gap: 64px; align-items: center; max-width: 960px; margin: 0 auto; }
.demo-phone {
  position: relative; width: 300px; height: 600px; border-radius: 46px; padding: 12px;
  background: #0f0f1a; border: 1px solid rgba(var(--fg-rgb), .14); box-shadow: var(--shadow);
}
.demo-phone .phone-notch { position: absolute; left: 50%; top: 12px; transform: translateX(-50%); z-index: 3; width: 96px; height: 24px; margin: 0; }
.demo-screen { height: 100%; border-radius: 36px; overflow: hidden; background: #f6f6fb; color: #15152b; cursor: pointer; }
.s-screen { height: 100%; padding: 50px 18px 18px; display: flex; flex-direction: column; gap: 10px; animation: screenIn .45s cubic-bezier(.2, .8, .2, 1) both; font-size: 14px; line-height: 1.4; }
@keyframes screenIn { from { opacity: 0; transform: translateX(26px); } }

/* "toque" do dedo */
.tap { position: absolute; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; pointer-events: none; opacity: 0; z-index: 4;
  background: rgba(124, 92, 255, .35); border: 2px solid rgba(124, 92, 255, .9); }
.tap.show { animation: tap 1s ease forwards; }
@keyframes tap { 0% { opacity: 0; transform: scale(1.6); } 30% { opacity: 1; transform: scale(1); } 55% { transform: scale(.8); } 100% { opacity: 0; transform: scale(1.4); } }

/* Componentes dos ecrãs */
.s-head small { display: block; color: #6b6b85; font-size: 12px; }
.s-head b { display: block; font-family: var(--font-head); font-size: 20px; line-height: 1.2; margin-bottom: 6px; }
.s-item, .s-check-row { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; background: #fff; border: 1px solid #ececf4; }
.s-item > span { width: 38px; height: 38px; border-radius: 11px; background: #f0edff; display: grid; place-items: center; font-size: 18px; flex-shrink: 0; }
.s-item div, .s-check-row div { flex: 1; min-width: 0; }
.s-item b, .s-check-row b { display: block; font-size: 14px; }
.s-item small, .s-check-row small { color: #6b6b85; font-size: 12px; }
.s-item em { font-style: normal; font-weight: 700; color: #6d4cff; }
.s-item em.plus { width: 28px; height: 28px; border-radius: 50%; background: #6d4cff; color: #fff; display: grid; place-items: center; }
.s-receipt { align-self: center; width: 88%; padding: 18px 16px; background: #fff; font-family: ui-monospace, "Courier New", monospace; font-size: 13px; color: #15152b;
  box-shadow: 0 10px 30px rgba(20, 20, 50, .12); animation: printOut 1s ease both .2s;
  -webkit-mask: radial-gradient(6px at 50% 100%, #0000 98%, #000) 50% / 14px 100%; mask: radial-gradient(6px at 50% 100%, #0000 98%, #000) 50% / 14px 100%; }
@keyframes printOut { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
.s-receipt b { display: block; text-align: center; font-size: 26px; letter-spacing: .05em; }
.s-receipt small { display: block; text-align: center; color: #6b6b85; font-size: 11.5px; }
.s-receipt hr { border: 0; border-top: 1px dashed #b8b8c8; margin: 10px 0; }
.s-receipt p { margin: 4px 0; }
.s-receipt .obs { font-weight: 700; }
.s-tables { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.s-tables span { aspect-ratio: 1; border-radius: 14px; background: #fff; border: 1px solid #ececf4; display: flex; flex-direction: column; align-items: center; justify-content: center; font-family: var(--font-head); font-weight: 700; font-size: 20px; color: #9a9ab0; }
.s-tables small { font-family: var(--font-body); font-size: 10.5px; }
.s-tables .busy, .s-legend2 .busy { background: #fef3c7; border-color: #fcd34d; color: #92400e; }
.s-tables .due, .s-legend2 .due { background: #fee2e2; border-color: #fca5a5; color: #991b1b; }
.s-tables .paid, .s-legend2 .paid { background: #10b981; border-color: #10b981; color: #fff; animation: popIn .5s cubic-bezier(.3, 1.6, .5, 1) both .4s; }
.s-legend2 { display: flex; justify-content: space-between; font-size: 11px; color: #6b6b85; }
.s-legend2 span { display: flex; align-items: center; gap: 5px; }
.s-legend2 i { width: 10px; height: 10px; border-radius: 3px; border: 1px solid; animation: none; }
.s-num { font-family: var(--font-head); font-size: 84px; font-weight: 700; line-height: 1; background: linear-gradient(120deg, #7c3aed, #0891b2); -webkit-background-clip: text; background-clip: text; color: transparent; animation: popIn .5s cubic-bezier(.3, 1.6, .5, 1) both .15s; }
.s-nfc { margin: auto 0; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.s-nfc-ico { position: relative; width: 120px; height: 120px; display: grid; place-items: center; font-size: 46px; margin-bottom: 14px; }
.s-nfc-ico span { position: absolute; inset: 0; border-radius: 50%; border: 2px solid #6d4cff; opacity: 0; animation: nfcWave 1.8s ease-out infinite; }
.s-nfc-ico span:nth-child(2) { animation-delay: .6s; }
.s-nfc-ico span:nth-child(3) { animation-delay: 1.2s; }
@keyframes nfcWave { from { transform: scale(.4); opacity: .9; } to { transform: scale(1.3); opacity: 0; } }
.s-nfc b { font-family: var(--font-head); font-size: 20px; animation: toastIn .5s ease both 1s; }
.s-nfc small { color: #6b6b85; animation: toastIn .5s ease both 1.2s; }
.s-me { margin: auto 0; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.s-me-ico { width: 104px; height: 104px; border-radius: 28px; display: grid; place-items: center; font-family: var(--font-head); font-size: 52px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, #f472b6, #7c3aed 60%, #0891b2); box-shadow: 0 16px 40px rgba(124, 58, 237, .35); margin-bottom: 10px; animation: popIn .6s cubic-bezier(.3, 1.6, .5, 1) both .1s; }
.s-me b { font-family: var(--font-head); font-size: 22px; animation: toastIn .5s ease both .6s; }
.s-me small { color: #6b6b85; animation: toastIn .5s ease both .8s; }
.s-habit { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; background: #fff; border: 1px solid #ececf4; }
.s-habit > i { width: 24px; height: 24px; border-radius: 50%; border: 2px solid #d0d0e0; flex-shrink: 0; display: grid; place-items: center; font-style: normal; font-size: 13px; color: #fff; }
.s-habit.done > i { background: #10b981; border-color: #10b981; }
.s-habit.done b { color: #6b6b85; text-decoration: line-through; }
.s-habit div { flex: 1; min-width: 0; }
.s-habit b { display: block; font-size: 13.5px; }
.s-habit small { color: #6b6b85; font-size: 12px; }
.s-mini { display: block; height: 6px; border-radius: 99px; background: #e8e8f2; margin-top: 6px; overflow: hidden; }
.s-mini span { display: block; height: 100%; width: var(--w); background: #0891b2; border-radius: 99px; animation: fill 1s ease both .3s; }
.s-item em.sold { font-size: 11px; color: #fff; background: #ef4444; padding: 3px 9px; border-radius: 99px; }
.hl { border-color: #6d4cff !important; box-shadow: 0 0 0 3px rgba(109, 76, 255, .15); }
.s-btn { margin-top: auto; text-align: center; padding: 14px; border-radius: 14px; background: linear-gradient(120deg, #7c3aed, #6d4cff 50%, #0891b2); color: #fff; font-weight: 600; }
.s-days { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.s-days span { text-align: center; padding: 8px 0; border-radius: 12px; background: #fff; border: 1px solid #ececf4; font-size: 12px; color: #6b6b85; }
.s-days b { display: block; font-size: 17px; color: #15152b; }
.s-days .on { background: #6d4cff; border-color: #6d4cff; color: #e0d9ff; }
.s-days .on b { color: #fff; }
.s-times { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.s-times span { text-align: center; padding: 10px 0; border-radius: 10px; background: #fff; border: 1px solid #ececf4; font-weight: 600; font-size: 13px; }
.s-times .off { color: #c3c3d3; text-decoration: line-through; }
.s-times .on { background: #6d4cff; color: #fff; border-color: #6d4cff; }
.s-done { margin: auto 0; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.s-check { width: 76px; height: 76px; border-radius: 50%; background: #10b981; color: #fff; font-size: 38px; display: grid; place-items: center; animation: popIn .5s cubic-bezier(.3, 1.6, .5, 1) both .15s; }
@keyframes popIn { from { transform: scale(0); } }
.s-done b { font-family: var(--font-head); font-size: 20px; }
.s-done small { color: #6b6b85; line-height: 1.5; }
.s-note { padding: 10px 12px; border-radius: 12px; background: #f0edff; color: #4c34c9; font-size: 12.5px; text-align: center; }
.s-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px; border-radius: 12px; background: #fff; border: 1px solid #ececf4; font-size: 13.5px; }
.s-row time { font-weight: 700; }
.s-row.total { background: transparent; border: 0; border-top: 1px dashed #d8d8e6; border-radius: 0; font-size: 15px; }
.s-row.new, .s-ticket.new { border-color: #10b981; background: #ecfdf5; animation: popIn .4s ease both .3s; }
.s-row i, .s-ticket i { font-style: normal; font-size: 11px; font-weight: 700; color: #fff; background: #10b981; padding: 2px 8px; border-radius: 99px; }
.s-toast { margin-top: auto; padding: 12px 14px; border-radius: 14px; background: #15152b; color: #fff; font-size: 13px; font-weight: 500; animation: toastIn .5s cubic-bezier(.2, .8, .2, 1) both .9s; }
@keyframes toastIn { from { opacity: 0; transform: translateY(20px); } }
.s-cart { margin-top: auto; padding: 13px; border-radius: 14px; background: #15152b; color: #fff; text-align: center; font-weight: 600; font-size: 13.5px; }
.s-pay { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.s-pay span { text-align: center; padding: 10px 0; border-radius: 10px; border: 1px solid #ececf4; background: #fff; font-size: 12px; font-weight: 600; }
.s-pay .on { border-color: #6d4cff; color: #6d4cff; background: #f0edff; }
.s-track { list-style: none; margin: 6px 0; padding: 0 0 0 6px; }
.s-track li { position: relative; padding: 0 0 22px 28px; color: #9a9ab0; font-weight: 500; }
.s-track li::before { content: ""; position: absolute; left: 0; top: 3px; width: 14px; height: 14px; border-radius: 50%; border: 2px solid #d8d8e6; background: #fff; box-sizing: border-box; }
.s-track li::after { content: ""; position: absolute; left: 6px; top: 19px; bottom: 2px; width: 2px; background: #e4e4ee; }
.s-track li:last-child::after { display: none; }
.s-track .done { color: #15152b; }
.s-track .done::before { background: #10b981; border-color: #10b981; }
.s-track .now { color: #6d4cff; font-weight: 700; }
.s-track .now::before { border-color: #6d4cff; box-shadow: 0 0 0 4px rgba(109, 76, 255, .2); }
.s-ticket { position: relative; padding: 12px 14px; border-radius: 14px; background: #fff; border: 1px solid #ececf4; }
.s-ticket b { display: block; font-size: 14px; padding-right: 52px; }
.s-ticket small { color: #6b6b85; font-size: 12.5px; line-height: 1.5; }
.s-ticket i { position: absolute; top: 12px; right: 12px; }
.s-check-row i { width: 22px; height: 22px; border-radius: 7px; border: 2px solid #d0d0e0; flex-shrink: 0; }
.s-stepper { display: flex; align-items: center; justify-content: space-between; padding: 14px; border-radius: 16px; background: #fff; border: 1px solid #ececf4; margin: 10px 0; }
.s-stepper span { width: 42px; height: 42px; border-radius: 12px; background: #f0edff; color: #6d4cff; font-size: 22px; font-weight: 700; display: grid; place-items: center; }
.s-stepper b { font-family: var(--font-head); font-size: 30px; }
.s-stepper.sm { margin: 0; padding: 8px 14px; }
.s-stepper.sm span { width: 32px; height: 32px; font-size: 18px; }
.s-stepper.sm b { font-size: 20px; }
.s-bars { flex: 1; max-height: 230px; display: flex; align-items: flex-end; gap: 7px; padding: 14px; border-radius: 16px; background: #fff; border: 1px solid #ececf4; }
.s-bars span { flex: 1; height: var(--h); border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, #6d4cff, #b9a8ff); animation: grow .9s cubic-bezier(.2, .8, .2, 1) both; }
.s-bars span:last-child { background: linear-gradient(180deg, #10b981, #6ee7b7); }
.s-legend { display: flex; justify-content: space-between; color: #6b6b85; font-size: 11.5px; }
.s-msg { max-width: 85%; padding: 10px 14px; border-radius: 18px 18px 18px 4px; background: #fff; border: 1px solid #ececf4; font-size: 13.5px; animation: toastIn .4s ease both .6s; }
.s-msg.me { align-self: flex-end; background: #6d4cff; color: #fff; border: 0; border-radius: 18px 18px 4px 18px; animation-delay: .1s; }
.s-event { padding: 22px 16px; border-radius: 18px; background: linear-gradient(135deg, #7c3aed, #0891b2); color: #fff; font-size: 30px; }
.s-event b { display: block; font-family: var(--font-head); font-size: 21px; margin-top: 6px; }
.s-event small { font-size: 12.5px; opacity: .85; }
.s-qr { align-self: center; padding: 14px; border-radius: 16px; background: #fff; border: 1px solid #ececf4; margin: 8px 0; }
.qr { display: grid; grid-template-columns: repeat(21, 8px); grid-auto-rows: 8px; }
.qr i.on { background: #15152b; border-radius: 1.5px; }
.s-scan { flex: 1; margin: -50px -18px 0; background: #1b1b2e; display: grid; place-items: center; }
.s-scan-frame { position: relative; padding: 14px; border-radius: 12px; background: #fff; outline: 3px solid #10b981; outline-offset: 10px; transform: scale(.9); }
.s-laser { position: absolute; left: -6px; right: -6px; height: 3px; background: #10b981; box-shadow: 0 0 12px #10b981; top: 10%; animation: laser 1.6s ease-in-out infinite alternate; }
@keyframes laser { to { top: 90%; } }
.s-ok { padding: 14px; border-radius: 14px; background: #10b981; color: #fff; font-weight: 600; text-align: center; animation: popIn .4s ease both 1s; }
.s-big { font-family: var(--font-head); font-size: 54px; font-weight: 700; line-height: 1; }
.s-big small { font-size: 20px; color: #6b6b85; }
.s-progress { height: 12px; border-radius: 99px; background: #e8e8f2; overflow: hidden; margin-bottom: 6px; }
.s-progress span { display: block; height: 100%; width: var(--w); background: linear-gradient(90deg, #6d4cff, #0891b2); border-radius: 99px; animation: fill 1.2s ease both .2s; }
@keyframes fill { from { width: 0; } }

/* Lado direito: título, descrição e passos */
.demo-info h3 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.demo-info > p { color: var(--muted); font-size: 1.08rem; margin-bottom: 26px; }
.demo-steps { list-style: none; padding: 0; margin: 0 0 30px; display: grid; gap: 8px; }
.demo-steps li { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 14px; border: 1px solid transparent; color: var(--muted); cursor: pointer; transition: all .25s; }
.demo-steps li:hover { background: rgba(var(--fg-rgb), .04); }
.demo-steps li span { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; font-size: 13px; font-weight: 700; border: 1px solid var(--border); transition: all .25s; }
.demo-steps li.done span { background: rgba(124, 92, 255, .15); border-color: transparent; color: var(--primary); }
.demo-steps li.active { color: var(--text); background: var(--surface); border-color: var(--border); box-shadow: var(--shadow); font-weight: 600; }
.demo-steps li.active span { background: var(--primary); border-color: var(--primary); color: #fff; }
.demo-controls { display: flex; flex-wrap: wrap; gap: 12px; }

.btn, .nav-links a { white-space: nowrap; }
@media (max-width: 980px) {
  .nav-inner { gap: 12px; }
  .nav-links {
    position: fixed; top: 72px; left: 0; right: 0; flex-direction: column; gap: 0; margin: 0;
    background: var(--nav-bg-solid); backdrop-filter: blur(14px); border-bottom: 1px solid var(--border);
    padding: 8px 16px 16px; transform: translateY(-120%); transition: transform .3s; z-index: -1;
  }
  .nav-links.open { transform: none; }
  .nav-links a { padding: 14px 0; border-bottom: 1px solid var(--border); font-size: 16px; }
  .nav-toggle { display: block; margin-left: 0; }
  .theme-toggle { margin-left: auto; }
}
@media (max-width: 860px) {
  .demo-stage { grid-template-columns: 1fr; gap: 36px; justify-items: center; }
  .demo-info { text-align: center; max-width: 520px; width: 100%; }
  .demo-steps li { text-align: left; }
  .demo-controls { justify-content: center; }
}
@media (max-width: 760px) {
  .demo-phone { width: 280px; height: 560px; }
  .qr { grid-template-columns: repeat(21, 7px); grid-auto-rows: 7px; }
  .demo-tab { padding: 9px 14px; font-size: 14px; }
  .nav-inner { gap: 12px; }
  .theme-toggle { margin-left: auto; }
  .nav-toggle { margin-left: 0; }
}

/* =====================================================================
   DEMO EM ECRÃ DE COMPUTADOR (plataformas)
   ===================================================================== */
.demo-stage.wide { max-width: 1180px; gap: 44px; }
.demo-phone.is-browser { width: 660px; height: 450px; border-radius: 16px; padding: 34px 0 0; background: #e6e6ef; }
.demo-phone.is-browser .phone-notch { display: none; }
.demo-phone.is-browser::after { content: ""; position: absolute; top: 13px; left: 16px; width: 9px; height: 9px; border-radius: 50%; background: #ff5f57; box-shadow: 15px 0 #febc2e, 30px 0 #28c840; }
.demo-phone.is-browser::before { content: "app.aminhaconstrutora.pt"; position: absolute; top: 8px; left: 50%; transform: translateX(-50%); padding: 2px 18px; border-radius: 6px; background: #fff; font-size: 11px; color: #6b6b85; }
.demo-phone.is-browser .demo-screen { border-radius: 0 0 16px 16px; }
.demo-phone.is-browser .s-screen { padding: 18px 22px; gap: 12px; font-size: 12.5px; }
.w-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.w-top b { font-family: var(--font-head); font-size: 17px; }
.w-badge { font-size: 11.5px; font-weight: 600; padding: 3px 10px; border-radius: 99px; background: #f0edff; color: #4c34c9; white-space: nowrap; }
.w-btn { font-size: 12px; font-weight: 600; padding: 7px 14px; border-radius: 9px; background: #6d4cff; color: #fff; white-space: nowrap; }
.w-table { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border: 1px solid #ececf4; border-radius: 12px; overflow: hidden; font-size: 12px; }
.w-table th { text-align: left; font-weight: 600; color: #6b6b85; background: #f7f7fb; padding: 8px 10px; font-size: 11px; text-transform: uppercase; letter-spacing: .03em; }
.w-table td { padding: 9px 10px; border-top: 1px solid #f0f0f6; vertical-align: middle; }
.w-table .hl-row td { background: #f5f2ff; }
.w-table .warn-row td { background: #fff7ed; }
.w-table .tot td { font-weight: 700; background: #f7f7fb; }
.w-table .best { color: #047857; font-weight: 700; }
.w-table .bad { color: #b91c1c; font-weight: 700; background: #fef2f2; }
.w-table .red { color: #b91c1c; }
.chip { display: inline-block; font-style: normal; font-size: 10.5px; font-weight: 600; padding: 2px 7px; border-radius: 6px; margin: 1px 3px 1px 0; }
.c1 { background: #e0f2fe; color: #075985; } .c2 { background: #fef3c7; color: #92400e; } .c3 { background: #ede9fe; color: #5b21b6; }
.c4 { background: #dcfce7; color: #166534; } .c5 { background: #fee2e2; color: #991b1b; } .c6 { background: #e0e7ff; color: #3730a3; }
.st { font-style: normal; font-size: 11px; font-weight: 600; padding: 2px 9px; border-radius: 99px; white-space: nowrap; }
.st.ok { background: #dcfce7; color: #166534; } .st.new { background: #fee2e2; color: #991b1b; }
.w-note { color: #6b6b85; font-size: 12px; }
.w-alert { padding: 10px 14px; border-radius: 10px; background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; font-weight: 500; animation: toastIn .5s ease both .6s; }
.w-ok { padding: 12px 14px; border-radius: 10px; background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; font-weight: 600; animation: toastIn .5s ease both .5s; }
.w-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.w-kpis div { padding: 12px; border-radius: 12px; background: #fff; border: 1px solid #ececf4; border-top: 3px solid #6d4cff; }
.w-kpis small { display: block; color: #6b6b85; font-size: 11px; }
.w-kpis b { font-family: var(--font-head); font-size: 19px; }
.w-kpis b.ac { color: #6d4cff; }
.w-list { display: grid; gap: 8px; }
.w-list div { padding: 10px 14px; border-radius: 10px; background: #fff; border: 1px solid #ececf4; border-left: 4px solid; display: flex; justify-content: space-between; gap: 12px; }
.w-list span { color: #6b6b85; white-space: nowrap; }
.w-list .r { border-left-color: #ef4444; } .w-list .y { border-left-color: #f59e0b; } .w-list .g { border-left-color: #10b981; }
.w-chart { flex: 1; display: flex; align-items: flex-end; justify-content: space-around; padding: 14px 14px 6px; background: #fff; border: 1px solid #ececf4; border-radius: 12px; min-height: 0; }
.w-chart > div { height: 100%; display: flex; align-items: flex-end; gap: 4px; position: relative; padding-bottom: 18px; }
.w-chart span { width: 22px; height: var(--h); border-radius: 4px 4px 0 0; background: #6d4cff; animation: grow .9s cubic-bezier(.2, .8, .2, 1) both; }
.w-chart span.g { background: #10b981; }
.w-chart small { position: absolute; bottom: 0; left: 0; right: 0; text-align: center; color: #6b6b85; font-size: 10.5px; }
.w-legend { display: flex; gap: 18px; color: #6b6b85; font-size: 11.5px; }
.w-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: #6d4cff; margin-right: 6px; }
.w-legend i.g { background: #10b981; }
@media (max-width: 1150px) {
  .demo-stage.wide { grid-template-columns: 1fr; justify-items: center; }
  .demo-stage.wide .demo-info { text-align: center; max-width: 620px; }
  .demo-stage.wide .demo-controls { justify-content: center; }
}
@media (max-width: 720px) {
  .demo-phone.is-browser { width: 100%; height: 470px; }
  .demo-phone.is-browser::before { display: none; }
  .demo-phone.is-browser .s-screen { padding: 12px; font-size: 11px; overflow: hidden; }
  .w-table { font-size: 10.5px; }
  .w-table th, .w-table td { padding: 6px 5px; }
  .w-table th:nth-child(3), .w-table td:nth-child(3) { display: none; }
  .w-kpis { grid-template-columns: 1fr 1fr; }
  .w-list div { flex-direction: column; gap: 2px; }
  .w-top b { font-size: 14px; }
}

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