:root {
  --brand: #ff6b35;
  --brand-dark: #d1491b;
  --bg: #0d0d15;
  --card: #161622;
  --text: #f0f0f8;
  --dim: #a0a0b8;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.container {
  width: min(1000px, 90%);
  margin: 0 auto;
}

/* Topbar de demonstração */
.demo-topbar {
  background: #05050a;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 10px 0;
}

.demo-topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.demo-topbar span {
  font-size: 0.75rem;
  color: var(--dim);
}

.demo-topbar a {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--brand);
  text-decoration: none;
  border: 1px solid var(--brand);
  padding: 5px 12px;
  border-radius: 20px;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}

.demo-topbar a:hover {
  background: var(--brand);
  color: #fff;
}

/* Barra de navegação do demo */
.demo-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 13, 21, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.demo-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.demo-logo {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--brand);
}

.demo-logo b {
  color: var(--text);
}

.demo-menu {
  display: flex;
  gap: 24px;
  align-items: center;
}

.demo-menu a {
  color: var(--dim);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: color 0.2s;
}

.demo-menu a:hover {
  color: var(--brand);
}

.demo-cta {
  background: var(--brand);
  color: #fff !important;
  padding: 8px 18px;
  border-radius: 8px;
  font-weight: 600 !important;
  transition: transform 0.2s, box-shadow 0.2s !important;
}

.demo-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px color-mix(in srgb, var(--brand) 40%, transparent);
}

/* Hero */
.demo-hero {
  padding: 90px 0;
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--brand) 18%, transparent), transparent 55%),
    var(--bg);
}

.demo-hero h1 {
  font-size: clamp(2.2rem, 5.5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.15;
  max-width: 640px;
  margin: 0 auto 18px;
}

.demo-hero h1 span {
  color: var(--brand);
}

.demo-hero p {
  color: var(--dim);
  font-size: clamp(1rem, 2vw, 1.15rem);
  max-width: 520px;
  margin: 0 auto 30px;
}

.btn {
  display: inline-block;
  background: var(--brand);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  padding: 14px 30px;
  border-radius: 10px;
  font-size: 0.95rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px color-mix(in srgb, var(--brand) 45%, transparent);
}

/* Seções */
.demo-section {
  padding: 70px 0;
}

.demo-section h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  text-align: center;
  margin-bottom: 12px;
}

.demo-section .sec-sub {
  text-align: center;
  color: var(--dim);
  margin-bottom: 40px;
}

/* Cards genéricos */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
}

.card-demo {
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  padding: 22px;
  text-align: center;
}

.card-demo .emoji {
  font-size: 2.2rem;
  display: block;
  margin-bottom: 10px;
}

.card-demo h3 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.card-demo p {
  color: var(--dim);
  font-size: 0.85rem;
}

.card-demo .price {
  display: block;
  margin-top: 10px;
  font-weight: 800;
  color: var(--brand);
}

/* CTA final */
.demo-final {
  text-align: center;
  padding: 70px 0;
  background:
    radial-gradient(circle at 50% 100%, color-mix(in srgb, var(--brand) 15%, transparent), transparent 60%),
    var(--bg);
}

.demo-final h2 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  margin-bottom: 14px;
}

.demo-final p {
  color: var(--dim);
  margin-bottom: 26px;
}

/* Footer demo */
.demo-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 30px 0;
  text-align: center;
  color: var(--dim);
  font-size: 0.8rem;
}

/* WhatsApp float demo */
.wa-demo {
  position: fixed;
  bottom: 22px;
  right: 22px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
  transition: transform 0.2s;
}

.wa-demo:hover {
  transform: scale(1.1);
}

.wa-demo svg {
  width: 28px;
  height: 28px;
  fill: #fff;
}

/* Simulador de app (mobile frame) */
.phone-wrap {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

.phone-frame {
  width: 300px;
  border-radius: 30px;
  border: 3px solid #333;
  background: var(--bg);
  padding: 16px;
  box-shadow: 0 20px 60px color-mix(in srgb, var(--brand) 25%, transparent);
}

.phone-frame .screen {
  border-radius: 18px;
  overflow: hidden;
}

.app-header-bar {
  padding: 18px 16px 12px;
  background: var(--card);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.app-header-bar .demo-logo {
  font-size: 1rem;
}

.app-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.app-greeting {
  font-size: 0.8rem;
  color: var(--dim);
}

.app-greeting b {
  color: var(--text);
  font-size: 1.1rem;
  display: block;
}

.app-chart {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 70px;
  padding: 10px;
  background: var(--card);
  border-radius: 12px;
}

.app-chart i {
  flex: 1;
  border-radius: 4px 4px 0 0;
  background: color-mix(in srgb, var(--brand) 45%, #222);
}

.app-chart i:nth-child(1) { height: 35%; }
.app-chart i:nth-child(2) { height: 60%; }
.app-chart i:nth-child(3) { height: 45%; }
.app-chart i:nth-child(4) { height: 80%; }
.app-chart i:nth-child(5) { height: 55%; }
.app-chart i:nth-child(6) { height: 100%; background: var(--brand); }

.app-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--card);
  border-radius: 10px;
  padding: 10px 12px;
}

.app-row .emoji {
  font-size: 1.4rem;
}

.app-row .row-text {
  flex: 1;
}

.app-row .row-text b {
  font-size: 0.85rem;
  display: block;
}

.app-row .row-text span {
  font-size: 0.75rem;
  color: var(--dim);
}

.app-row .row-check {
  color: var(--brand);
  font-weight: 800;
}

/* Responsivo */
@media (max-width: 640px) {
  .demo-menu a:not(.demo-cta) {
    display: none;
  }
}
