:root {
  --navy-900: #050a1c;
  --navy-800: #070d24;
  --navy-700: #0c1640;
  --blue: #1f55e0;
  --blue-light: #4f80ff;
  --gold: #f2b33d;
  --gold-deep: #c98a17;
  --ink: #0f1733;
  --muted: #5a6382;
  --line: #e4e7f0;
  --soft: #f5f6fa;
  --white: #ffffff;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(7, 13, 36, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: Montserrat, Inter, sans-serif; line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; letter-spacing: -.01em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.12rem; font-weight: 700; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.gold { color: var(--gold); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .85em 1.6em; border-radius: 999px; font-weight: 700;
  font-family: Montserrat, sans-serif; font-size: .95rem; letter-spacing: .02em;
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: linear-gradient(135deg, #ffd27a, var(--gold) 45%, var(--gold-deep)); color: var(--navy-900); box-shadow: 0 6px 20px rgba(242, 179, 61, .35); }
.btn-ghost { border-color: rgba(255, 255, 255, .35); color: var(--white); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-sm { padding: .55em 1.2em; font-size: .85rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px);
  border-bottom: 3px solid var(--gold);
  box-shadow: 0 4px 18px rgba(7, 13, 36, .12);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { height: 38px; width: auto; mix-blend-mode: multiply; }
.brand-card { background: var(--white); padding: 10px 16px; border-radius: 12px; }
.nav-links { display: flex; align-items: center; gap: 1.8rem; }
.nav-links a { color: var(--navy-700); text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav-links a:not(.btn):hover { color: var(--gold-deep); }
.nav-links .btn { color: var(--navy-900); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; margin: 5px 0; background: var(--navy-800); transition: .2s; }

/* Hero */
.hero {
  color: var(--white);
  background:
    radial-gradient(900px 500px at 85% 10%, rgba(242, 179, 61, .18), transparent 60%),
    radial-gradient(800px 600px at 10% 90%, rgba(31, 85, 224, .35), transparent 60%),
    linear-gradient(180deg, var(--navy-900), var(--navy-700));
  padding: clamp(48px, 8vw, 96px) 0;
  overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: .7rem; text-transform: uppercase; letter-spacing: .3em; font-size: .78rem; font-weight: 600; color: rgba(255, 255, 255, .8); margin: 0 0 1.2rem; }
.eyebrow i { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); display: inline-block; }
.lead { font-size: 1.1rem; color: rgba(255, 255, 255, .78); max-width: 34em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-art { margin: 0; }
.hero-art img { border-radius: 20px; border: 1px solid rgba(242, 179, 61, .4); box-shadow: 0 30px 80px rgba(0, 0, 0, .5); height: auto; }

/* Sections */
.section { padding: clamp(64px, 9vw, 104px) 0; scroll-margin-top: 64px; }
.section-soft { background: var(--soft); }
.section-dark { background: linear-gradient(180deg, var(--navy-800), var(--navy-700)); color: var(--white); }
.section-dark .sub { color: rgba(255, 255, 255, .72); }
.kicker { text-transform: uppercase; letter-spacing: .22em; font-size: .78rem; font-weight: 700; color: var(--gold-deep); margin: 0 0 .7rem; }
.section-dark .kicker { color: var(--gold); }
.sub { color: var(--muted); font-size: 1.05rem; max-width: 40em; margin: 0 0 2.4rem; }

.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px; box-shadow: var(--shadow); transition: transform .2s, border-color .2s;
}
.card:hover { transform: translateY(-4px); border-color: var(--gold); }
.card p { color: var(--muted); margin: 0; font-size: .96rem; }
.ico, .pill-ico {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: var(--navy-800); border: 2px solid var(--gold); margin-bottom: 18px; flex: none;
}
.ico svg, .pill-ico svg { width: 24px; height: 24px; fill: none; stroke: var(--gold); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 30px; color: rgba(255, 255, 255, .85); }
.ticks li::before { content: ""; position: absolute; left: 0; top: .35em; width: 18px; height: 18px; border-radius: 50%; background: var(--gold); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0a12 12 0 100 24 12 12 0 000-24zm-1.5 17L5 11.5l1.8-1.8 3.7 3.7 6.7-6.7L19 8.5z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0a12 12 0 100 24 12 12 0 000-24zm-1.5 17L5 11.5l1.8-1.8 3.7 3.7 6.7-6.7L19 8.5z'/%3E%3C/svg%3E") center / contain no-repeat; }
.ticks b { color: var(--white); }

.pillars { display: grid; gap: 16px; }
.pillar { display: flex; gap: 18px; align-items: flex-start; padding: 22px; border-radius: var(--radius); background: rgba(255, 255, 255, .04); border: 1px solid rgba(242, 179, 61, .25); }
.pillar .pill-ico { margin: 0; }
.pillar h3 { color: var(--gold); text-transform: uppercase; letter-spacing: .15em; font-size: .95rem; }
.pillar p { margin: 0; color: rgba(255, 255, 255, .75); font-size: .96rem; }

.partner-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 2rem; }
.partner { padding: 24px; border-left: 3px solid var(--gold); background: var(--soft); border-radius: 0 var(--radius) var(--radius) 0; }
.partner p { margin: 0; color: var(--muted); font-size: .96rem; }

.leaders { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.leader { text-align: center; background: var(--white); border-radius: var(--radius); padding: 36px 24px; box-shadow: var(--shadow); border-top: 4px solid var(--gold); }
.avatar {
  width: 84px; height: 84px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(160deg, var(--navy-700), var(--navy-900)); color: var(--gold);
  font-family: Montserrat, sans-serif; font-weight: 800; font-size: 1.5rem; border: 3px solid var(--gold);
}
.leader .role { color: var(--muted); margin: 0 0 .8rem; font-size: .9rem; text-transform: uppercase; letter-spacing: .12em; }
.leader a { font-weight: 600; color: var(--blue); text-decoration: none; }

/* Contact */
.contact { align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: 18px; }
.contact-list li { display: flex; gap: 14px; color: rgba(255, 255, 255, .85); }
.contact-list svg { width: 22px; height: 22px; flex: none; margin-top: 2px; fill: none; stroke: var(--gold); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.contact-list a { text-decoration: none; }
.contact-list a:hover, .map-link:hover { color: var(--gold); }
.map-link { color: var(--gold); font-weight: 600; text-decoration: none; }

.form { background: var(--white); color: var(--ink); border-radius: 20px; padding: 28px; display: grid; gap: 16px; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 6px; font-size: .85rem; font-weight: 600; color: var(--ink); }
.form input, .form select, .form textarea {
  font: inherit; font-weight: 400; font-size: 1rem; padding: .7em .85em; border-radius: 10px;
  border: 1.5px solid var(--line); background: var(--soft); color: var(--ink); width: 100%;
}
.form textarea { resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--blue); background: var(--white); box-shadow: 0 0 0 3px rgba(31, 85, 224, .15); }
.form .invalid { border-color: #d93a3a; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 0; font-size: .95rem; min-height: 1.4em; }
.form-status.ok { color: #13834b; font-weight: 600; }
.form-status.err { color: #c62828; font-weight: 600; }

/* Footer */
.footer { background: var(--navy-900); color: rgba(255, 255, 255, .7); padding: 14px 0 12px; border-top: 1px solid rgba(242, 179, 61, .25); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 8px 24px; flex-wrap: wrap; }
.footer p { margin: 0; }
.footer .fine { font-size: .82rem; }
.footer .brand-card { padding: 4px 10px; border-radius: 8px; }
.footer .brand-card img { height: 26px; }
.disclaimer { margin-top: 10px !important; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .72rem; line-height: 1.5; color: rgba(255, 255, 255, .5); }
.disclaimer b { color: rgba(255, 255, 255, .7); font-weight: 600; }

/* Responsive */
@media (max-width: 1000px) {
  .cards, .partner-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .hero-grid, .split { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .leaders { grid-template-columns: 1fr; }
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    gap: 0; padding: 8px 16px 16px; background: var(--white); border-bottom: 3px solid var(--gold);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; }
  .nav-links .btn { margin-top: 8px; }
}
@media (max-width: 560px) {
  .brand img { height: 32px; }
  .cards, .partner-grid { grid-template-columns: 1fr; }
  .form .row { grid-template-columns: 1fr; }
  .form { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ---------- Conversion additions ---------- */
.btn-wa { background: #25d366; color: #06301a; gap: .5em; box-shadow: 0 6px 20px rgba(37, 211, 102, .3); }
.btn-wa svg { width: 20px; height: 20px; fill: currentColor; }

.who { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 22px; font-size: .9rem; color: rgba(255, 255, 255, .65); }
.who a { color: var(--white); text-decoration: none; padding: .35em .9em; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .25); transition: border-color .15s, color .15s, background .15s; }
.who a:hover { border-color: var(--gold); color: var(--gold); background: rgba(242, 179, 61, .08); }

.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: clamp(36px, 6vw, 64px); padding-top: 28px; border-top: 1px solid rgba(242, 179, 61, .25); }
.trust div { display: grid; gap: 2px; align-content: start; }
.trust b { font-family: Montserrat, sans-serif; color: var(--gold); font-size: 1rem; }
.trust span { color: rgba(255, 255, 255, .7); font-size: .88rem; }

.card { display: flex; flex-direction: column; }
.card p { flex: 1; }
.more { margin-top: 16px; font-weight: 600; font-size: .92rem; color: var(--blue); text-decoration: none; }
.more:hover { color: var(--gold-deep); }

.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.why { background: var(--white); border-radius: var(--radius); padding: 28px 24px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.why-num { font-family: Montserrat, sans-serif; font-weight: 900; font-size: 2.6rem; line-height: 1; background: linear-gradient(180deg, var(--gold), var(--gold-deep)); -webkit-background-clip: text; background-clip: text; color: transparent; display: block; margin-bottom: 14px; }
.why p { margin: 0; color: var(--muted); font-size: .96rem; }

.steps { list-style: none; padding: 0; margin: 2.4rem 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; position: relative; }
.steps::before { content: ""; position: absolute; top: 26px; left: 12%; right: 12%; height: 2px; background: linear-gradient(90deg, var(--gold), var(--blue)); opacity: .5; }
.steps li { text-align: center; position: relative; }
.steps li > span { width: 54px; height: 54px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center; font-family: Montserrat, sans-serif; font-weight: 800; font-size: 1.2rem; color: var(--gold); background: var(--navy-800); border: 2px solid var(--gold); position: relative; }
.steps p { margin: 0; color: var(--muted); font-size: .95rem; }

.built-by { margin: 22px 0 0; font-size: .88rem; color: rgba(255, 255, 255, .6); }
.built-by a { color: var(--gold); font-weight: 700; letter-spacing: .08em; text-decoration: none; }

a.partner { text-decoration: none; color: inherit; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
a.partner p { flex: 1; }
a.partner span { margin-top: 14px; font-weight: 600; font-size: .92rem; color: var(--blue); }
a.partner:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

.leader-actions { display: flex; justify-content: center; gap: 8px; margin-bottom: 10px; }
.chip { display: inline-block; padding: .45em 1.1em; border-radius: 999px; font-weight: 600; font-size: .88rem; text-decoration: none; border: 1.5px solid var(--navy-700); color: var(--navy-700) !important; }
.chip:hover { background: var(--navy-700); color: var(--white) !important; }
.chip-wa { border-color: #25d366; color: #128c4a !important; }
.chip-wa:hover { background: #25d366; color: #06301a !important; }
.leader .num { display: block; font-size: .9rem; color: var(--muted) !important; font-weight: 500 !important; }

.faq-wrap { display: grid; grid-template-columns: 1fr 1.5fr; gap: 48px; align-items: start; }
.faq-wrap .sub a { color: var(--blue); font-weight: 600; }
.faq { display: grid; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: 12px; padding: 0 20px; background: var(--white); transition: border-color .2s, box-shadow .2s; }
.faq details[open] { border-color: var(--gold); box-shadow: var(--shadow); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 28px 18px 0; font-weight: 600; font-family: Montserrat, sans-serif; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--gold-deep); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { margin: 0 0 18px; color: var(--muted); }

.cta-band { background: linear-gradient(120deg, var(--gold-deep), var(--gold) 45%, #ffd27a); padding: clamp(40px, 6vw, 64px) 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { color: var(--navy-900); margin-bottom: .3em; }
.cta-band p { margin: 0; color: rgba(5, 10, 28, .75); font-size: 1.05rem; }
.cta-band .hero-cta { margin: 0; }
.cta-band .btn-gold { background: var(--navy-900); color: var(--white); box-shadow: 0 6px 20px rgba(5, 10, 28, .3); }
.cta-band .btn-ghost { border-color: var(--navy-900); color: var(--navy-900); }
.cta-band .btn-ghost:hover { background: var(--navy-900); color: var(--gold); }

.form-head h3 { margin: 0; font-size: 1.25rem; }
.form-head p { margin: 2px 0 0; color: var(--muted); font-size: .9rem; }
.form-note { margin: -4px 0 0; font-size: .8rem; color: var(--muted); text-align: center; }
.form.flash { animation: flash 1.2s ease; }
@keyframes flash { 0%, 100% { box-shadow: none; } 30% { box-shadow: 0 0 0 4px rgba(242, 179, 61, .55); } }

.footer .credit a { color: var(--gold); font-weight: 700; letter-spacing: .08em; text-decoration: none; }
.footer .credit a:hover { text-decoration: underline; }

.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 60; width: 58px; height: 58px; border-radius: 50%; background: #25d366; display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); transition: transform .2s; }
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }
.mobile-bar { display: none; }

/* Scroll reveal (only when JS is running) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

@media (max-width: 1000px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .trust { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 32px; }
  .steps::before { display: none; }
  .faq-wrap { grid-template-columns: 1fr; gap: 8px; }
  .wa-float { display: none; }
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr 1.2fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: var(--white); border-top: 3px solid var(--gold); box-shadow: 0 -6px 20px rgba(7, 13, 36, .15);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .mobile-bar a { text-align: center; padding: 14px 0; font-weight: 700; font-family: Montserrat, sans-serif; text-decoration: none; color: var(--navy-800); font-size: .95rem; }
  .mobile-bar a:nth-child(2) { color: #128c4a; border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
  .mobile-bar .primary { background: var(--gold); color: var(--navy-900); }
  body { padding-bottom: 52px; }
}
@media (max-width: 560px) {
  .why-grid, .steps { grid-template-columns: 1fr; }
  .cta-inner .btn { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; }
}


/* ---------- Product tour ---------- */
.split-tech { grid-template-columns: .85fr 1.25fr; gap: 48px; }
.demo {
  --d-bg: #0b1638; --d-panel: rgba(255, 255, 255, .045); --d-line: rgba(255, 255, 255, .09); --d-text: #e8ecf8; --d-mute: rgba(232, 236, 248, .58);
  position: relative; border-radius: 20px; overflow: hidden; color: var(--d-text);
  background: radial-gradient(600px 300px at 80% -10%, rgba(242, 179, 61, .14), transparent 60%), linear-gradient(165deg, #12205a, var(--d-bg) 55%);
  border: 1px solid rgba(242, 179, 61, .35);
  box-shadow: 0 40px 100px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .03) inset;
}
.demo-bar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--d-line); background: rgba(0, 0, 0, .18); }
.dots { display: flex; gap: 6px; }
.dots i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; } .dots i:nth-child(2) { background: #febc2e; } .dots i:nth-child(3) { background: #28c840; }
.demo-url { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-size: .78rem; color: var(--d-mute); background: rgba(255, 255, 255, .06); border-radius: 8px; padding: 5px 10px; max-width: 280px; margin: 0 auto; }
.demo-url svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2; }
.demo-live { display: inline-flex; align-items: center; gap: 6px; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #4ade80; }
.demo-live i { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 0 rgba(74, 222, 128, .6); animation: live 1.8s infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 8px rgba(74, 222, 128, 0); } 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); } }

.demo-body { display: grid; grid-template-columns: 182px 1fr; min-height: 380px; }
.demo-tabs { display: flex; flex-direction: column; gap: 4px; padding: 14px 10px; border-right: 1px solid var(--d-line); background: rgba(0, 0, 0, .12); }
.demo-tabs button {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: 0; border-radius: 10px; cursor: pointer;
  background: transparent; color: var(--d-mute); font: 600 .82rem Inter, sans-serif; text-align: left; white-space: nowrap; transition: background .2s, color .2s;
}
.demo-tabs button svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.demo-tabs button:hover { color: var(--d-text); background: rgba(255, 255, 255, .05); }
.demo-tabs button.on { color: var(--navy-900); background: linear-gradient(135deg, #ffd27a, var(--gold)); box-shadow: 0 6px 18px rgba(242, 179, 61, .3); }

.demo-screens { position: relative; padding: 18px 20px 14px; }
.screen { display: none; }
.screen.on { display: block; animation: screenIn .5s cubic-bezier(.2, .7, .2, 1); }
@keyframes screenIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.screen header { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.screen h4 { margin: 0; font: 700 1rem Montserrat, sans-serif; }
.pill { font-size: .72rem; font-weight: 700; padding: .35em .8em; border-radius: 999px; white-space: nowrap; }
.pill-green { color: #4ade80; background: rgba(74, 222, 128, .12); }
.pill-gold { color: #ffd27a; background: rgba(242, 179, 61, .15); }
.pill-blue { color: #8fb0ff; background: rgba(79, 128, 255, .16); }

.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.kpis-2 { grid-template-columns: 1fr 1fr; margin-top: 12px; }
.kpis > div { background: var(--d-panel); border: 1px solid var(--d-line); border-radius: 12px; padding: 10px 12px; display: grid; align-content: start; }
.kpis small { font-size: .7rem; color: var(--d-mute); }
.kpis b { font: 800 1.35rem Montserrat, sans-serif; color: var(--white); line-height: 1.3; }
.kpis em { font-style: normal; font-size: .68rem; color: var(--d-mute); }
.ring-tile { display: flex !important; align-items: center; gap: 10px; }
.ring-tile > div { display: grid; }
.ring { width: 46px; height: 46px; flex: none; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 5; stroke: rgba(255, 255, 255, .1); }
.ring .ring-val { stroke: #4ade80; stroke-linecap: round; stroke-dasharray: 113.1; stroke-dashoffset: 113.1; }
.screen.on .ring-val { animation: ring 1.4s .2s cubic-bezier(.2, .7, .2, 1) forwards; }
@keyframes ring { to { stroke-dashoffset: 0; } }

.chart { position: relative; margin-top: 14px; height: 140px; }
.chart svg { width: 100%; height: 100%; display: block; overflow: visible; }
.chart .grid path { stroke: rgba(255, 255, 255, .06); stroke-width: 1; }
.chart .target { stroke: var(--gold); stroke-width: 1.5; stroke-dasharray: 6 6; vector-effect: non-scaling-stroke; }
.chart .area { fill: url(#ga); opacity: 0; }
.chart .line { fill: none; stroke: #6c95ff; stroke-width: 3; stroke-linejoin: round; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1; }
.chart .proj { fill: none; stroke: #ffd27a; stroke-width: 2.5; stroke-dasharray: 2 7; stroke-linecap: round; vector-effect: non-scaling-stroke; opacity: 0; }
.chart .today { stroke: rgba(255, 255, 255, .25); stroke-width: 1; stroke-dasharray: 3 4; vector-effect: non-scaling-stroke; opacity: 0; }
.chart .dot { fill: #fff; stroke: #6c95ff; stroke-width: 4; opacity: 0; vector-effect: non-scaling-stroke; }
.screen.on .chart .line { animation: draw 1.6s .15s ease-out forwards; }
.screen.on .chart .area { animation: fade .8s 1.2s forwards; }
.screen.on .chart .proj, .screen.on .chart .today, .screen.on .chart .dot, .screen.on .chart .tag { animation: fade .6s 1.6s forwards; }
.screen.on .chart .dot { animation: fade .3s 1.6s forwards, pulse 1.6s 2s infinite; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }
@keyframes pulse { 50% { r: 9; } }
.tag { position: absolute; font-size: .66rem; font-weight: 700; padding: 2px 7px; border-radius: 6px; opacity: 0; white-space: nowrap; }
.tag-today { left: 80%; top: 0; transform: translateX(-50%); background: rgba(255, 255, 255, .12); color: var(--d-text); }
.tag-target { left: 0; top: calc(45 / 190 * 100% - 22px); background: rgba(242, 179, 61, .18); color: #ffd27a; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 10px; font-size: .7rem; color: var(--d-mute); }
.legend span::before { content: ""; display: inline-block; width: 14px; height: 3px; border-radius: 2px; margin-right: 6px; vertical-align: middle; }
.l-actual::before { background: #6c95ff; }
.l-proj::before { background: repeating-linear-gradient(90deg, #ffd27a 0 3px, transparent 3px 6px); }
.l-target::before { background: repeating-linear-gradient(90deg, var(--gold) 0 5px, transparent 5px 9px); }
.l-now::before { background: linear-gradient(90deg, #6c95ff, #ffd27a); }

.bars { display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px; align-items: end; height: 200px; margin-top: 16px; padding-bottom: 20px; border-bottom: 1px solid var(--d-line); }
.bar { position: relative; height: var(--h); border-radius: 8px 8px 3px 3px; background: linear-gradient(180deg, #6c95ff, #2f5ce0); transform-origin: bottom; transform: scaleY(0); }
.bar.now { background: linear-gradient(180deg, #6c95ff 0 55%, #ffd27a 55%); }
.bar.proj { background: repeating-linear-gradient(135deg, rgba(255, 210, 122, .55) 0 6px, rgba(255, 210, 122, .25) 6px 12px); border: 1.5px dashed #ffd27a; }
.bar .range { position: absolute; left: 50%; top: -14px; width: 2px; height: 22px; margin-left: -1px; background: #ffd27a; opacity: .8; }
.bar .range::before, .bar .range::after { content: ""; position: absolute; left: -4px; width: 10px; height: 2px; background: #ffd27a; }
.bar .range::before { top: 0; } .bar .range::after { bottom: 0; }
.bar span { position: absolute; top: -22px; left: 50%; transform: translateX(-50%); font-size: .62rem; font-weight: 700; color: var(--d-text); white-space: nowrap; opacity: 0; }
.bar.proj span { top: -34px; color: #ffd27a; }
.bar i { position: absolute; bottom: -20px; left: 0; right: 0; text-align: center; font-style: normal; font-size: .66rem; color: var(--d-mute); }
.screen.on .bar { animation: grow .8s cubic-bezier(.2, .7, .2, 1) forwards; }
.screen.on .bar span { animation: fade .4s 1s forwards; }
.screen.on .bar:nth-child(2) { animation-delay: .06s; } .screen.on .bar:nth-child(3) { animation-delay: .12s; }
.screen.on .bar:nth-child(4) { animation-delay: .18s; } .screen.on .bar:nth-child(5) { animation-delay: .24s; }
.screen.on .bar:nth-child(6) { animation-delay: .3s; } .screen.on .bar:nth-child(7) { animation-delay: .5s; }
.screen.on .bar:nth-child(8) { animation-delay: .6s; }
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }

.stock { width: 100%; border-collapse: separate; border-spacing: 0 6px; font-size: .8rem; }
.stock th { text-align: left; font-weight: 600; font-size: .68rem; color: var(--d-mute); text-transform: uppercase; letter-spacing: .06em; padding: 0 10px; }
.stock td { background: var(--d-panel); padding: 9px 10px; }
.stock td:first-child { border-radius: 10px 0 0 10px; font-weight: 600; }
.stock td:last-child { border-radius: 0 10px 10px 0; text-align: center; }
.stock td b { display: inline-block; min-width: 34px; padding: 2px 8px; border-radius: 8px; background: linear-gradient(135deg, #ffd27a, var(--gold)); color: var(--navy-900); font-weight: 800; }
.stock s { text-decoration: none; display: inline-grid; place-items: center; width: 24px; height: 22px; margin-right: 4px; border-radius: 6px; font-size: .7rem; font-weight: 700; }
.stock s.ok { background: rgba(74, 222, 128, .16); color: #4ade80; }
.stock s.low { background: rgba(254, 188, 46, .16); color: #febc2e; }
.stock s.out { background: rgba(255, 95, 87, .16); color: #ff7a73; }
.screen.on .stock tbody tr { opacity: 0; animation: rowIn .5s forwards; }
.screen.on .stock tbody tr:nth-child(2) { animation-delay: .12s; } .screen.on .stock tbody tr:nth-child(3) { animation-delay: .24s; } .screen.on .stock tbody tr:nth-child(4) { animation-delay: .36s; }
@keyframes rowIn { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: none; } }
.health { margin-top: 12px; }
.health small { font-size: .7rem; color: var(--d-mute); }
.health-bar { display: flex; height: 26px; margin-top: 6px; border-radius: 8px; overflow: hidden; font-size: .66rem; font-weight: 700; }
.health-bar span { width: 0; display: grid; place-items: center; white-space: nowrap; overflow: hidden; color: var(--navy-900); }
.health-bar .fast { background: #4ade80; } .health-bar .steady { background: #8fb0ff; } .health-bar .slow { background: #ff7a73; }
.screen.on .health-bar span { animation: widen 1s .5s cubic-bezier(.2, .7, .2, 1) forwards; }
@keyframes widen { to { width: var(--w); } }

.board { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.board li { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 12px; background: var(--d-panel); border-radius: 12px; padding: 8px 12px; }
.av { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: .72rem; font-weight: 800; color: var(--navy-900); background: linear-gradient(135deg, #ffd27a, var(--gold)); }
.board li:not(:first-child) .av { background: rgba(255, 255, 255, .14); color: var(--d-text); }
.board b { font-size: .82rem; display: flex; align-items: center; gap: 8px; }
.crown { font-style: normal; font-size: .62rem; font-weight: 800; color: var(--navy-900); background: var(--gold); padding: 1px 7px; border-radius: 6px; }
.track { height: 6px; border-radius: 4px; background: rgba(255, 255, 255, .08); margin-top: 6px; overflow: hidden; }
.track i { display: block; height: 100%; width: 0; border-radius: 4px; background: linear-gradient(90deg, #2f5ce0, #6c95ff); }
.board li:first-child .track i { background: linear-gradient(90deg, var(--gold-deep), #ffd27a); }
.screen.on .track i { animation: widen 1.1s .2s cubic-bezier(.2, .7, .2, 1) forwards; }
.board strong { font: 700 .85rem Montserrat, sans-serif; }

.closing { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.closing li { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-radius: 10px; background: var(--d-panel); font-size: .85rem; }
.closing li:first-child { background: rgba(79, 128, 255, .14); }
.closing li b { font: 700 .9rem Montserrat, sans-serif; display: inline-flex; align-items: center; gap: 8px; }
.closing .total { background: rgba(74, 222, 128, .12); color: #4ade80; }
.tick { width: 20px; height: 20px; fill: none; stroke: #4ade80; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 24; stroke-dashoffset: 24; }
.screen.on .tick { animation: draw .6s 1.3s forwards; }
.screen.on .closing li { opacity: 0; animation: rowIn .4s forwards; }
.screen.on .closing li:nth-child(2) { animation-delay: .1s; } .screen.on .closing li:nth-child(3) { animation-delay: .2s; }
.screen.on .closing li:nth-child(4) { animation-delay: .3s; } .screen.on .closing li:nth-child(5) { animation-delay: .4s; }
.screen.on .closing li:nth-child(6) { animation-delay: .7s; }
.closed-by { margin: 10px 0 0; font-size: .72rem; color: var(--d-mute); }

.demo-progress { height: 3px; background: rgba(255, 255, 255, .06); }
.demo-progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold-deep), #ffd27a); }
.demo-note { margin: 0; padding: 8px 16px 10px; font-size: .7rem; color: var(--d-mute); text-align: right; }

@media (max-width: 1100px) { .split-tech { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .demo-body { grid-template-columns: 1fr; }
  .demo-tabs { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--d-line); padding: 10px; scrollbar-width: none; }
  .demo-tabs::-webkit-scrollbar { display: none; }
  .demo-tabs button { width: auto; flex: none; padding: 8px 12px; }
  .demo-screens { padding: 14px; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .kpis > div:last-child:nth-child(3) { grid-column: 1 / -1; }
  .kpis b { font-size: 1.1rem; }
  .bars { gap: 5px; }
  .bar span { font-size: .55rem; }
  .stock td:nth-child(2) s { width: 20px; margin-right: 2px; }
  .demo-url { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .screen.on, .screen.on * { animation: none !important; }
  .ring .ring-val { stroke-dashoffset: 0; } .chart .line { stroke-dashoffset: 0; }
  .chart .area, .chart .proj, .chart .today, .chart .dot, .tag, .bar span { opacity: 1; }
  .bar { transform: none; } .health-bar span, .track i { width: var(--w); }
  .screen.on .stock tbody tr, .screen.on .closing li { opacity: 1 !important; } .tick { stroke-dashoffset: 0; }
}
