:root {
  --bg: #0a0c11;
  --bg2: #10131b;
  --surface: #141823;
  --surface2: #1a1f2d;
  --text: #eef1f7;
  --muted: #9aa3b5;
  --faint: #5f6880;
  --line: rgba(255, 255, 255, 0.08);
  --blue: #4f8cff;
  --violet: #9b6bff;
  --teal: #2ad4b0;
  --amber: #ffb547;
  --rose: #ff6b8a;
  --wa: #25d366;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  overflow-x: hidden;
}
a { color: var(--blue); }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* glow background */
.glow { position: absolute; inset: 0 0 auto 0; height: 1100px; pointer-events: none; z-index: 0; overflow: hidden; }
.glow::before, .glow::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(110px); opacity: 0.55;
}
.glow::before { width: 620px; height: 620px; background: #2b4dff; top: -220px; left: -160px; opacity: 0.35; }
.glow::after { width: 560px; height: 560px; background: #7a3cff; top: 120px; right: -200px; opacity: 0.28; }
.grid-bg {
  position: absolute; inset: 0 0 auto 0; height: 900px; pointer-events: none; z-index: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, #000 30%, transparent 75%);
  opacity: 0.6;
}
main, header, footer { position: relative; z-index: 1; }

/* nav */
header.top { padding: 22px 0; }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 750; font-size: 20px; color: var(--text); text-decoration: none; letter-spacing: -0.02em; }
.brand svg { width: 32px; height: 32px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 999px;
  font-weight: 600; font-size: 15px; text-decoration: none; border: 1px solid var(--line); color: var(--text);
  background: rgba(255, 255, 255, 0.04); transition: background .2s, transform .2s;
}
.btn:hover { background: rgba(255, 255, 255, 0.09); transform: translateY(-1px); }
.btn.primary { background: linear-gradient(135deg, var(--blue), var(--violet)); border-color: transparent; box-shadow: 0 8px 30px rgba(79, 140, 255, 0.35); }
.btn.primary:hover { filter: brightness(1.08); }

/* hero */
.hero { text-align: center; padding-top: 64px; padding-bottom: 40px; }
.pill {
  display: inline-flex; max-width: 100%; text-align: left; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
  border: 1px solid rgba(79, 140, 255, 0.35); background: rgba(79, 140, 255, 0.1);
  font-size: 13px; font-weight: 600; color: #b9cfff; margin-bottom: 26px;
}
.pill i { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px rgba(42, 212, 176, 0.2); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(42, 212, 176, 0); } }
.hero h1 {
  font-size: clamp(34px, 7vw, 76px); line-height: 1.02; letter-spacing: -0.035em; margin: 0 auto 22px; max-width: 13em; font-weight: 800;
}
.grad { background: linear-gradient(100deg, #8fb4ff 0%, #b79bff 45%, #5fe3c6 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: clamp(17px, 2.2vw, 20px); color: var(--muted); max-width: 36em; margin: 0 auto 32px; }
.cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* dashboard mock */
.stage { position: relative; margin: 56px auto 0; max-width: 1080px; perspective: 1800px; }
.window {
  position: relative; border-radius: 18px; background: var(--bg2); border: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 50px 120px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255,255,255,.03) inset, 0 -1px 0 rgba(255,255,255,.08) inset;
  transform: rotateX(8deg); transform-origin: 50% 0; overflow: hidden; text-align: left;
  animation: rise 1.1s cubic-bezier(.2,.7,.2,1) both;
}
@keyframes rise { from { opacity: 0; transform: rotateX(18deg) translateY(40px); } }
.chrome { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.02); }
.dots { display: flex; gap: 7px; }
.dots span { width: 11px; height: 11px; border-radius: 50%; background: #2a2f3d; }
.dots span:nth-child(1) { background: #ff5f57; } .dots span:nth-child(2) { background: #febc2e; } .dots span:nth-child(3) { background: #28c840; }
.url { flex: 1; max-width: 360px; margin: 0 auto; text-align: center; font-size: 13px; color: var(--muted); background: rgba(255,255,255,.05); border-radius: 8px; padding: 5px 12px; }
.url b { color: var(--text); font-weight: 600; }
.app { display: grid; grid-template-columns: 200px 1fr; min-height: 520px; }
.side { border-right: 1px solid var(--line); padding: 18px 12px; display: flex; flex-direction: column; gap: 4px; }
.side .biz { display: flex; align-items: center; gap: 10px; padding: 4px 8px 16px; font-weight: 700; font-size: 14px; }
.side .biz em { width: 28px; height: 28px; border-radius: 8px; background: linear-gradient(135deg, var(--teal), var(--blue)); display: grid; place-items: center; font-style: normal; font-size: 13px; }
.nav-i { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 9px; font-size: 14px; color: var(--muted); }
.nav-i svg { width: 16px; height: 16px; opacity: .8; }
.nav-i.on { background: rgba(79,140,255,.12); color: #cfe0ff; }
.content { padding: 20px 22px 24px; display: grid; gap: 16px; grid-template-columns: repeat(12, 1fr); align-content: start; }
.content .head { grid-column: 1 / -1; display: flex; align-items: end; justify-content: space-between; gap: 12px; }
.content .head h3 { margin: 0; font-size: 20px; letter-spacing: -0.01em; }
.content .head small { color: var(--faint); font-size: 13px; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.06); color: var(--muted); }
.chip.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.kpi { grid-column: span 3; }
.kpi .lbl { font-size: 12.5px; color: var(--muted); }
.kpi .val { font-size: 28px; font-weight: 750; letter-spacing: -0.02em; margin: 4px 0 2px; font-variant-numeric: tabular-nums; }
.kpi .delta { font-size: 12.5px; font-weight: 600; color: var(--teal); }
.kpi .delta.down { color: var(--rose); }
.kpi svg { display: block; width: 100%; height: 34px; margin-top: 8px; }
.chart { grid-column: span 7; display: flex; flex-direction: column; }
.chart .bars { flex: 1; min-height: 210px; }
.chart .t { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; font-size: 14px; font-weight: 650; }
.legend { display: flex; gap: 14px; font-size: 12px; color: var(--muted); font-weight: 500; }
.legend span::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; background: var(--c); }
.bars { position: relative; height: 240px; display: grid; grid-template-columns: repeat(7, 1fr); gap: 14px; align-items: end; padding: 0 4px; border-bottom: 1px solid var(--line); }
.bars .gl { position: absolute; left: 0; right: 0; border-top: 1px dashed rgba(255,255,255,.06); }
.bar { position: relative; display: flex; gap: 4px; align-items: end; height: 100%; }
.bar i { flex: 1; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, var(--blue), rgba(79,140,255,.35)); height: var(--h); transform-origin: bottom; animation: grow 1s cubic-bezier(.2,.8,.2,1) both; animation-delay: var(--d); }
.bar i + i { background: linear-gradient(180deg, var(--violet), rgba(155,107,255,.3)); }
@keyframes grow { from { transform: scaleY(0); } }
.bar.today i:first-child { box-shadow: 0 0 24px rgba(79,140,255,.6); }
.days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 14px; padding: 8px 4px 0; font-size: 12px; color: var(--faint); text-align: center; }
.days .on { color: var(--text); font-weight: 650; }
.line { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.line path { fill: none; stroke: var(--teal); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 900; stroke-dashoffset: 900; animation: draw 1.6s .5s ease forwards; filter: drop-shadow(0 0 6px rgba(42,212,176,.6)); }
@keyframes draw { to { stroke-dashoffset: 0; } }
.today-card { grid-column: span 5; display: flex; flex-direction: column; }
.today-card .t { font-size: 14px; font-weight: 650; margin-bottom: 10px; display: flex; justify-content: space-between; }
.slot { display: grid; grid-template-columns: 46px 1fr auto; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.slot:first-of-type { border-top: 0; }
.slot time { color: var(--faint); font-variant-numeric: tabular-nums; font-size: 12.5px; }
.slot b { font-weight: 600; display: block; }
.slot small { color: var(--faint); font-size: 12px; }
.st { font-size: 11.5px; font-weight: 650; padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.st.ok { color: #7ff0c9; background: rgba(42,212,176,.12); }
.st.wait { color: #ffd38a; background: rgba(255,181,71,.12); }
.st.mv { color: #c6b2ff; background: rgba(155,107,255,.14); }
.alert { grid-column: span 6; display: flex; gap: 14px; align-items: flex-start; border-color: rgba(255,181,71,.25); background: linear-gradient(135deg, rgba(255,181,71,.08), var(--surface) 60%); }
.alert .ic { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,181,71,.15); color: var(--amber); }
.alert b { display: block; font-size: 14px; margin-bottom: 2px; }
.alert p { margin: 0; font-size: 13px; color: var(--muted); }
.occ { grid-column: span 6; }
.occ .t { font-size: 14px; font-weight: 650; margin-bottom: 12px; }
.row { display: grid; grid-template-columns: 90px 1fr 40px; align-items: center; gap: 10px; font-size: 13px; margin: 8px 0; color: var(--muted); }
.track { height: 8px; border-radius: 99px; background: rgba(255,255,255,.06); overflow: hidden; }
.track i { display: block; height: 100%; width: var(--w); border-radius: 99px; background: linear-gradient(90deg, var(--teal), var(--blue)); animation: fill 1.2s .3s cubic-bezier(.2,.8,.2,1) both; }
@keyframes fill { from { width: 0; } }
.row span:last-child { text-align: right; color: var(--text); font-variant-numeric: tabular-nums; }

/* floating WhatsApp bubble */
.wa {
  position: absolute; left: -48px; bottom: 48px; width: 280px; z-index: 3;
  background: #0f1a16; border: 1px solid rgba(37,211,102,.25); border-radius: 16px; padding: 14px;
  box-shadow: 0 30px 70px rgba(0,0,0,.55), 0 0 40px rgba(37,211,102,.12);
  animation: float 6s ease-in-out infinite, pop .7s 1.2s cubic-bezier(.2,.9,.3,1.3) both;
  text-align: left;
}
@keyframes float { 50% { transform: translateY(-10px); } }
@keyframes pop { from { opacity: 0; transform: scale(.85) translateY(20px); } }
.wa .who { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 650; color: #b8f5d0; margin-bottom: 8px; }
.wa .who em { width: 22px; height: 22px; border-radius: 50%; background: var(--wa); display: grid; place-items: center; }
.wa .msg { background: #1c2c25; border-radius: 4px 12px 12px 12px; padding: 10px 12px; font-size: 13px; line-height: 1.45; color: #e4f4ea; }
.wa .msg small { display: block; text-align: right; color: #7fa58f; font-size: 11px; margin-top: 4px; }
.wa .acts { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 6px; }
.wa .acts span { text-align: center; font-size: 12.5px; font-weight: 600; color: #53bdeb; background: #1c2c25; border-radius: 8px; padding: 7px 0; }
.wa .acts span.ok { color: #7ff0c9; }

/* features */
.features { padding: 110px 0 40px; }
.features h2 { text-align: center; font-size: clamp(28px, 4vw, 42px); letter-spacing: -0.03em; margin: 0 0 12px; }
.features > .wrap > p { text-align: center; color: var(--muted); max-width: 34em; margin: 0 auto 44px; font-size: 18px; }
.fgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.f { background: linear-gradient(180deg, var(--surface), var(--bg2)); border: 1px solid var(--line); border-radius: 18px; padding: 26px; }
.f .ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 16px; background: rgba(79,140,255,.14); color: var(--blue); }
.f:nth-child(2) .ic { background: rgba(155,107,255,.14); color: var(--violet); }
.f:nth-child(3) .ic { background: rgba(42,212,176,.14); color: var(--teal); }
.f h3 { margin: 0 0 8px; font-size: 19px; letter-spacing: -0.01em; }
.f p { margin: 0; color: var(--muted); font-size: 15.5px; }

.closing { text-align: center; padding: 90px 0 110px; }
.closing h2 { font-size: clamp(28px, 4vw, 44px); letter-spacing: -0.03em; margin: 0 0 14px; }
.closing p { color: var(--muted); margin: 0 0 28px; font-size: 18px; }

footer { border-top: 1px solid var(--line); padding: 26px 0 40px; color: var(--faint); font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--text); }

/* legal pages */
.legal { max-width: 760px; padding: 24px 20px 80px; }
.legal h1 { font-size: clamp(30px, 5vw, 42px); letter-spacing: -0.03em; line-height: 1.1; margin: 24px 0 8px; }
.legal h2 { font-size: 20px; margin: 36px 0 8px; letter-spacing: -0.01em; }
.legal p, .legal li { color: #c9cfdb; }
.legal .meta { color: var(--faint); margin: 0 0 28px; }

/* responsive */
@media (max-width: 980px) {
  .wa { left: auto; right: 12px; bottom: -60px; }
  .stage { margin-bottom: 80px; }
  .kpi { grid-column: span 6; }
  .chart, .today-card, .alert, .occ { grid-column: 1 / -1; }
  .fgrid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .app { grid-template-columns: 1fr; }
  .side { display: none; }
  .window { transform: none; }
  .content { padding: 14px; gap: 12px; }
  .kpi .val { font-size: 22px; }
  .bars { height: 160px; gap: 8px; }
  .days { gap: 8px; }
  .wa { position: relative; left: auto; right: auto; bottom: auto; width: auto; max-width: 320px; margin: -30px 16px 0 auto; }
  .stage { margin-bottom: 0; }
  .hide-sm { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .line path { stroke-dashoffset: 0; }
}
