/* =========================================================
   AXIA.AI — Deck horizontal de slides
   Dark · editorial · pro-tech
   ========================================================= */

:root {
  --bg:          #0a0a0f;
  --bg-2:        #0c0c14;
  --surface:     #12121a;
  --surface-2:   #171723;
  --violet:      #7c3aed;
  --violet-lt:   #a78bfa;
  --cyan:        #06b6d4;
  --cyan-lt:     #67e8f9;
  --text:        #e2e8f0;
  --muted:       #64748b;
  --muted-lt:    #94a3b8;
  --border:      rgba(124, 58, 237, 0.20);
  --border-soft: rgba(148, 163, 184, 0.10);

  --grad-vc: linear-gradient(135deg, var(--violet) 0%, var(--cyan) 100%);
  --grad-text: linear-gradient(120deg, #a78bfa 0%, #67e8f9 100%);

  --radius: 14px;
  --radius-sm: 9px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --slide-ease: cubic-bezier(0.65, 0.02, 0.25, 1);

  --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'SFMono-Regular', monospace;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html, body { height: 100%; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;            /* deck is the scroll surface */
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; color: inherit; background: none; border: none; }
ul { list-style: none; padding: 0; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.06; letter-spacing: -0.02em; }
.gradient-text { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ===================== Ambient background ===================== */
.bg-grid {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(124, 58, 237, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 58, 237, 0.05) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(ellipse 100% 90% at 50% 40%, #000 35%, transparent 80%);
}
.bg-orb {
  position: fixed; z-index: 0; pointer-events: none; border-radius: 50%;
  filter: blur(60px); opacity: 0.55;
  animation: drift 26s ease-in-out infinite alternate;
}
.orb-1 { width: 620px; height: 620px; top: -180px; left: -120px;
  background: radial-gradient(circle, rgba(124,58,237,0.45), transparent 70%); }
.orb-2 { width: 560px; height: 560px; bottom: -200px; right: -140px;
  background: radial-gradient(circle, rgba(6,182,212,0.30), transparent 70%);
  animation-delay: -12s; }
@keyframes drift { from { transform: translate(0,0); } to { transform: translate(50px, 40px); } }

/* ===================== Top progress bar ===================== */
.deck-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 120; background: rgba(255,255,255,0.04); }
.deck-progress span { display: block; height: 100%; width: 0; background: var(--grad-vc); transition: width .5s var(--ease); box-shadow: 0 0 12px rgba(124,58,237,0.7); }

/* ===================== Top bar ===================== */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 70px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(20px, 4vw, 48px);
  background: linear-gradient(180deg, rgba(10,10,15,0.85), rgba(10,10,15,0));
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.brand { display: inline-flex; align-items: center; gap: 9px; }
.brand-mark { height: 30px; width: 30px; }
.brand-word { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; letter-spacing: .5px; color: var(--text); line-height: 1; }
.brand-ai { color: var(--violet-lt); }

.top-nav { display: flex; align-items: center; gap: 30px; }
.top-nav button { font-size: 0.92rem; color: var(--muted-lt); transition: color .2s; position: relative; padding: 4px 0; }
.top-nav button:hover { color: var(--text); }
.top-nav button::after { content: ""; position: absolute; left: 0; bottom: -4px; height: 2px; width: 0; background: var(--grad-vc); transition: width .25s var(--ease); }
.top-nav button:hover::after { width: 100%; }

.top-right { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; padding: 6px; color: var(--text); }
.nav-toggle svg { width: 26px; height: 26px; }

.mobile-menu {
  position: fixed; inset: 70px 0 auto 0; z-index: 99;
  background: rgba(10,10,15,0.97); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border); padding: 20px; display: none; flex-direction: column; gap: 4px;
}
.mobile-menu.open { display: flex; }
.mobile-menu button { text-align: left; padding: 14px 8px; font-size: 1.05rem; color: var(--text); border-bottom: 1px solid var(--border-soft); }
.mobile-menu .btn { margin-top: 14px; justify-content: center; }

/* ===================== Buttons ===================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-weight: 600; font-size: 0.95rem; padding: 12px 22px; border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: transform .2s var(--ease), box-shadow .25s var(--ease), background .25s, border-color .25s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-sm { padding: 9px 16px; font-size: 0.88rem; }
.btn-lg { padding: 14px 28px; font-size: 1rem; }
.btn-primary { background: var(--grad-vc); color: #fff; box-shadow: 0 10px 30px -10px rgba(124,58,237,0.7); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -10px rgba(124,58,237,0.95); }
.btn-ghost { background: rgba(255,255,255,0.02); border-color: var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--violet-lt); background: rgba(124,58,237,0.10); transform: translateY(-2px); }
.whatsapp { background: linear-gradient(135deg, #25d366, #128c7e); color: #fff; box-shadow: 0 10px 30px -10px rgba(37,211,102,0.5); }
.whatsapp:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -10px rgba(37,211,102,0.7); }

/* ===================== Shared bits ===================== */
.eyebrow {
  display: inline-block; max-width: 100%;
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--violet-lt); background: rgba(124,58,237,0.10); border: 1px solid var(--border);
  padding: 7px 14px; border-radius: 999px; text-align: center; line-height: 1.5; white-space: normal;
}
.eyebrow svg { display: inline-block; width: 13px; height: 13px; vertical-align: -2px; margin-right: 7px; }

/* ===================== Deck mechanics ===================== */
.deck { position: relative; z-index: 1; height: 100vh; height: 100svh; overflow: hidden; }
.track { display: flex; height: 100%; will-change: transform; transition: transform .7s var(--slide-ease); }
.slide { position: relative; flex: 0 0 100vw; width: 100vw; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; overflow-y: auto; overflow-x: hidden; }
/* column flex + vertical auto margins: centers short content, but top-aligns
   (scrollable, never clipped under the fixed header) when content is taller
   than the viewport. This is the robust pattern across browsers/devices. */
.slide-inner {
  width: 100%; max-width: 1180px; margin: auto 0;
  padding: 92px clamp(22px, 5vw, 56px) 120px;
}
.slide-inner.center { text-align: center; }
.slide-inner.center > * { max-width: 100%; }
.hero-logo { display: flex; justify-content: center; }
.slide-inner.wide-inner { max-width: 1240px; }

/* split layout (copy + visual) */
.split { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.copy .eyebrow { margin-bottom: 20px; }
.copy h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); margin-bottom: 18px; }
.copy > p { color: var(--muted-lt); font-size: clamp(1rem, 1.4vw, 1.12rem); max-width: 52ch; }

.slide-head { max-width: 720px; margin: 0 auto 44px; }
.slide-head h2 { font-size: clamp(2rem, 4.4vw, 3rem); margin: 16px 0 14px; }
.slide-head p { color: var(--muted-lt); font-size: 1.05rem; }

/* ===================== Slide 1 · Hero ===================== */
.slide-hero .slide-inner { padding-top: 80px; }
.hero-logo { display: flex; justify-content: center; align-items: center; gap: 14px; margin-bottom: 28px; }
.hero-logo img { height: 52px; width: 52px; }
.hero-logo span { font-family: var(--font-display); font-weight: 700; font-size: 2.4rem; letter-spacing: .5px; }
.slide-hero h1 { font-size: clamp(2.6rem, 6.6vw, 5rem); margin: 22px 0; max-width: 16ch; }
.hero-sub { font-size: clamp(1.05rem, 2vw, 1.3rem); color: var(--muted-lt); max-width: 620px; margin: 0 auto 34px; }
.hero-ctas { display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; }
.hero-micro { margin-top: 22px; font-family: var(--font-mono); font-size: 0.76rem; color: var(--muted); letter-spacing: 0.04em; }

/* ===================== Slide 2 · stat cards ===================== */
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stat-card {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 26px 24px;
  transition: transform .25s var(--ease), border-color .25s, box-shadow .3s;
}
.stat-card:hover { transform: translateY(-4px); border-color: var(--border); box-shadow: 0 20px 50px -28px rgba(124,58,237,0.6); }
.stat-card .v { font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 3.4vw, 2.8rem); line-height: 1; }
.stat-card .l { font-family: var(--font-mono); font-size: 0.72rem; color: var(--muted-lt); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 10px; }
.stat-card.wide { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.stat-card.wide .l { margin-top: 0; }
.stat-card.wide .v { font-size: clamp(1.5rem, 2.6vw, 2rem); }

/* ===================== Slide 3 · tool grid ===================== */
.tool-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.tool {
  background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius);
  padding: 18px 16px; transition: transform .25s var(--ease), border-color .25s, box-shadow .3s;
}
.tool:hover { transform: translateY(-4px); border-color: var(--border); box-shadow: 0 18px 44px -26px rgba(124,58,237,0.65); }
.tool svg { width: 24px; height: 24px; color: var(--violet-lt); margin-bottom: 12px; }
.tool b { display: block; font-family: var(--font-display); font-size: 0.98rem; margin-bottom: 3px; }
.tool span { font-size: 0.78rem; color: var(--muted); }

/* ===================== check list ===================== */
.check-list { margin-top: 24px; }
.check-list li { display: flex; gap: 11px; align-items: flex-start; margin-bottom: 13px; color: var(--muted-lt); font-size: 0.97rem; }
.check-list svg { width: 19px; height: 19px; color: var(--cyan); flex-shrink: 0; margin-top: 2px; }
.check-list strong { color: var(--text); font-weight: 600; }

/* ===================== Slide 4 · chat ===================== */
.chat { background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--border); border-radius: 16px; padding: 22px; box-shadow: 0 30px 80px -36px rgba(124,58,237,0.55); }
.chat-head { display: flex; align-items: center; gap: 11px; padding-bottom: 16px; border-bottom: 1px solid var(--border-soft); margin-bottom: 16px; }
.chat-avatar { width: 38px; height: 38px; border-radius: 10px; background: var(--grad-vc); display: grid; place-items: center; color: #fff; }
.chat-avatar svg { width: 20px; height: 20px; }
.chat-head .meta b { font-family: var(--font-display); font-size: 0.98rem; }
.chat-head .meta span { display: block; font-family: var(--font-mono); font-size: 0.66rem; color: var(--muted); }
.chat-head .live { margin-left: auto; display: flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 0.64rem; color: #4ade80; }
.chat-head .pulse { width: 7px; height: 7px; border-radius: 50%; background: #4ade80; animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(74,222,128,0.5);} 70% { box-shadow: 0 0 0 8px rgba(74,222,128,0);} 100% { box-shadow: 0 0 0 0 rgba(74,222,128,0);} }
.bubble { max-width: 86%; padding: 11px 14px; border-radius: 13px; font-size: 0.88rem; margin-bottom: 11px; }
.bubble.user { margin-left: auto; background: var(--grad-vc); color: #fff; border-bottom-right-radius: 4px; }
.bubble.bot { background: var(--surface-2); border: 1px solid var(--border-soft); color: var(--muted-lt); border-bottom-left-radius: 4px; }
.bubble.bot b { color: var(--text); }
.chat-input { display: flex; align-items: center; gap: 10px; margin-top: 4px; padding: 11px 14px; background: var(--bg); border: 1px solid var(--border-soft); border-radius: 10px; }
.chat-input span:first-child { flex: 1; font-size: 0.84rem; color: var(--muted); }
.chat-input .send { width: 30px; height: 30px; border-radius: 8px; background: var(--grad-vc); display: grid; place-items: center; color: #fff; }
.chat-input .send svg { width: 15px; height: 15px; }

/* ===================== Slide 5 · mock ===================== */
.mock { background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; box-shadow: 0 30px 90px -40px rgba(124,58,237,0.55); }
.mock-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--border-soft); background: rgba(255,255,255,0.015); }
.mock-dot { width: 10px; height: 10px; border-radius: 50%; background: #2a2a3a; }
.mock-dot:nth-child(1){background:#ef4444aa;} .mock-dot:nth-child(2){background:#eab308aa;} .mock-dot:nth-child(3){background:#22c55eaa;}
.mock-url { margin-left: 12px; font-family: var(--font-mono); font-size: 0.72rem; color: var(--muted); }
.mock-body { padding: 18px; }
.mock-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 14px; }
.kpi { border: 1px solid var(--border-soft); border-radius: 10px; padding: 13px 11px; background: rgba(255,255,255,0.015); }
.kpi .v { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; line-height: 1; }
.kpi .l { font-family: var(--font-mono); font-size: 0.58rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 7px; }
.kpi.v-violet .v { color: var(--violet-lt); } .kpi.v-cyan .v { color: var(--cyan-lt); } .kpi.v-green .v { color: #4ade80; } .kpi.v-amber .v { color: #fbbf24; }
.mock-panel { border: 1px solid var(--border-soft); border-radius: 10px; padding: 16px; background: rgba(255,255,255,0.015); }
.mock-panel h4 { font-family: var(--font-mono); font-size: 0.66rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 14px; font-weight: 500; }
.bar-item { margin-bottom: 12px; }
.bar-item:last-child { margin-bottom: 0; }
.bar-item .top { display: flex; justify-content: space-between; font-size: 0.78rem; margin-bottom: 6px; color: var(--muted-lt); }
.bar-track { height: 7px; border-radius: 4px; background: rgba(148,163,184,0.10); overflow: hidden; }
.bar-fill { height: 100%; border-radius: 4px; background: var(--grad-vc); }

/* ===================== Slide 6 · flow ===================== */
.flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; position: relative; width: 100%; }
.flow-line { position: absolute; top: 27px; left: 8%; right: 8%; height: 2px; background: linear-gradient(90deg, var(--violet), var(--cyan)); opacity: 0.4; z-index: 0; }
.flow-step { position: relative; z-index: 1; text-align: center; padding: 0 6px; }
.flow-num { width: 56px; height: 56px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); border: 1px solid var(--border); font-family: var(--font-mono); font-weight: 700; font-size: 1.1rem; color: var(--violet-lt); box-shadow: 0 0 0 7px var(--bg), 0 0 28px -8px rgba(124,58,237,0.7); }
.flow-step h4 { font-family: var(--font-display); font-size: 1.02rem; margin-bottom: 7px; }
.flow-step p { font-size: 0.83rem; color: var(--muted); }

/* ===================== Slide 7 · use cards ===================== */
.use-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; width: 100%; }
.use-card { background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 28px; text-align: left; transition: transform .25s var(--ease), border-color .25s, box-shadow .3s; }
.use-card:hover { transform: translateY(-4px); border-color: var(--border); box-shadow: 0 20px 50px -28px rgba(6,182,212,0.45); }
.use-card .role { font-family: var(--font-mono); font-size: 0.66rem; color: var(--cyan-lt); text-transform: uppercase; letter-spacing: 0.1em; }
.use-card h3 { font-size: 1.18rem; margin: 9px 0 16px; }
.use-card ul li { display: flex; gap: 9px; align-items: flex-start; font-size: 0.87rem; color: var(--muted-lt); margin-bottom: 10px; }
.use-card ul svg { width: 16px; height: 16px; color: var(--violet-lt); flex-shrink: 0; margin-top: 3px; }

/* ===================== Slide 8 · diff cards ===================== */
.diff-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; width: 100%; }
.diff-card { padding: 26px; border: 1px solid var(--border-soft); border-radius: var(--radius); background: linear-gradient(180deg, var(--surface), rgba(18,18,26,0.4)); text-align: left; transition: transform .25s var(--ease), border-color .25s; }
.diff-card:hover { transform: translateY(-4px); border-color: var(--border); }
.diff-card .ico { width: 42px; height: 42px; border-radius: 11px; background: rgba(6,182,212,0.10); border: 1px solid rgba(6,182,212,0.25); display: grid; place-items: center; color: var(--cyan-lt); margin-bottom: 16px; }
.diff-card .ico svg { width: 20px; height: 20px; }
.diff-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.diff-card p { font-size: 0.87rem; color: var(--muted); }

/* ===================== Slide 9 · contact ===================== */
.contact-list { margin: 26px 0 22px; }
.contact-list li { display: flex; gap: 13px; align-items: flex-start; margin-bottom: 16px; }
.contact-list .ci { width: 40px; height: 40px; flex-shrink: 0; border-radius: 10px; background: rgba(124,58,237,0.10); border: 1px solid var(--border); display: grid; place-items: center; color: var(--violet-lt); }
.contact-list .ci svg { width: 18px; height: 18px; }
.contact-list b { display: block; font-size: 0.72rem; color: var(--muted); font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 2px; }
.contact-list span, .contact-list a { color: var(--text); font-size: 0.95rem; }
.contact-list a:hover { color: var(--violet-lt); }
.socials { display: flex; gap: 11px; }
.socials a { width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--border-soft); display: grid; place-items: center; color: var(--muted-lt); transition: all .2s; }
.socials a:hover { color: var(--text); border-color: var(--violet-lt); background: rgba(124,58,237,0.1); transform: translateY(-2px); }
.socials svg { width: 19px; height: 19px; }

.contact-card { background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--border); border-radius: 16px; padding: 34px; box-shadow: 0 30px 80px -40px rgba(124,58,237,0.5); }
.cc-mark { width: 52px; height: 52px; border-radius: 13px; background: rgba(124,58,237,0.12); border: 1px solid var(--border); display: grid; place-items: center; margin-bottom: 18px; }
.cc-mark img { width: 30px; height: 30px; }
.contact-card h3 { font-size: 1.5rem; margin-bottom: 10px; }
.contact-card > p { color: var(--muted-lt); margin-bottom: 24px; font-size: 0.95rem; }
.contact-card .btn { width: 100%; }
.contact-card .or { text-align: center; color: var(--muted); font-size: 0.78rem; margin: 14px 0; font-family: var(--font-mono); }
.cc-credit { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--border-soft); font-size: 0.82rem; color: var(--muted); text-align: center; }
.cc-credit a { color: var(--violet-lt); }
.cc-credit a:hover { text-decoration: underline; }

/* ===================== Deck controls ===================== */
.deck-controls {
  position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 110;
  display: flex; align-items: center; gap: 14px;
  padding: 9px 14px; border-radius: 999px;
  background: rgba(18,18,26,0.7); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-soft); box-shadow: 0 16px 40px -16px rgba(0,0,0,0.6);
}
.nav-arrow { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: var(--text); border: 1px solid var(--border-soft); transition: all .2s var(--ease); }
.nav-arrow:hover:not(:disabled) { background: rgba(124,58,237,0.18); border-color: var(--violet-lt); transform: scale(1.06); }
.nav-arrow:disabled { opacity: 0.3; cursor: default; }
.nav-arrow svg { width: 19px; height: 19px; }
.counter { font-family: var(--font-mono); font-size: 0.78rem; color: var(--muted-lt); display: flex; gap: 3px; min-width: 52px; justify-content: center; }
.counter #cur { color: var(--violet-lt); }
.counter .sep { opacity: 0.5; }
.dots { display: flex; align-items: center; gap: 8px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(148,163,184,0.30); transition: all .25s var(--ease); cursor: pointer; padding: 0; border: none; }
.dot:hover { background: var(--muted-lt); }
.dot.active { width: 26px; border-radius: 5px; background: var(--grad-vc); }

/* hint */
.hint { position: fixed; right: 26px; bottom: 32px; z-index: 105; display: flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: 0.72rem; color: var(--muted); transition: opacity .4s; }
.hint svg { width: 15px; height: 15px; animation: nudge 1.6s ease-in-out infinite; }
@keyframes nudge { 0%,100% { transform: translateX(0); } 50% { transform: translateX(4px); } }
.hint.hidden { opacity: 0; pointer-events: none; }

/* ===================== Entrance animations ===================== */
.anim { opacity: 0; transform: translateY(22px); }
.slide.is-active .anim { opacity: 1; transform: none; transition: opacity .65s var(--ease), transform .65s var(--ease); }
.slide.is-active .anim[data-delay="1"] { transition-delay: .08s; }
.slide.is-active .anim[data-delay="2"] { transition-delay: .16s; }
.slide.is-active .anim[data-delay="3"] { transition-delay: .24s; }
.slide.is-active .anim[data-delay="4"] { transition-delay: .32s; }
.slide.is-active .anim[data-delay="5"] { transition-delay: .40s; }

/* ===================== Responsive ===================== */
@media (max-width: 1024px) {
  .split { grid-template-columns: 1fr; gap: 32px; }
  .copy { text-align: center; }
  .copy > p, .check-list { max-width: 560px; margin-left: auto; margin-right: auto; }
  .check-list li { text-align: left; }
  .diff-grid { grid-template-columns: repeat(2, 1fr); }
  .slide-contact .split { grid-template-columns: 1fr; }
  /* 6 nav links get cramped below ~1100px -> use the hamburger menu */
  .top-nav, .top-demo { display: none; }
  .nav-toggle { display: block; }
}
@media (max-width: 860px) {
  .use-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .flow { grid-template-columns: 1fr 1fr; gap: 26px 14px; }
  .flow-line { display: none; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .slide-inner { padding: 84px 22px 110px; }
  .tool-grid { grid-template-columns: 1fr 1fr; }
  .mock-kpis { grid-template-columns: 1fr 1fr; }
  .hint { display: none; }
  .deck-controls { gap: 10px; padding: 8px 12px; }
  .counter { display: none; }
}
@media (max-width: 480px) {
  .flow { grid-template-columns: 1fr; max-width: 280px; margin: 0 auto; }
  .stat-grid { grid-template-columns: 1fr; }
  .tool-grid { grid-template-columns: 1fr 1fr; }
  .hero-logo span { font-size: 1.9rem; }
  .nav-arrow { width: 34px; height: 34px; }
  .eyebrow { font-size: 0.62rem; letter-spacing: 0.08em; }
}

/* short viewport: tighten hero */
@media (max-height: 720px) {
  .slide-inner { padding-top: 80px; padding-bottom: 100px; }
  .slide-hero h1 { margin: 16px 0; }
  .hero-logo { margin-bottom: 18px; }
}

/* ===================== Reduced motion ===================== */
@media (prefers-reduced-motion: reduce) {
  .track { transition: none !important; }
  .bg-orb, .hint svg, .chat-head .pulse { animation: none !important; }
  .anim { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* =========================================================
   Theme toggle button
   ========================================================= */
.theme-toggle {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  color: var(--text); border: 1px solid var(--border-soft); background: rgba(124,58,237,0.06);
  transition: all .2s var(--ease);
}
.theme-toggle:hover { border-color: var(--violet-lt); background: rgba(124,58,237,0.14); transform: scale(1.06); }
.theme-toggle svg { width: 18px; height: 18px; }
/* show moon in dark (switch to light), sun in light (switch to dark) */
.theme-toggle .icon-light { display: none; }
:root[data-theme="light"] .theme-toggle .icon-dark { display: none; }
:root[data-theme="light"] .theme-toggle .icon-light { display: inline-flex; }

.mm-theme { display: flex; align-items: center; gap: 8px; text-align: left; padding: 14px 8px; font-size: 1.05rem; color: var(--text); border-bottom: 1px solid var(--border-soft); }
.mm-theme span { display: inline-flex; align-items: center; gap: 8px; }
.mm-theme svg { width: 19px; height: 19px; color: var(--violet-lt); }
.mm-theme .icon-light { display: none; }
:root[data-theme="light"] .mm-theme .icon-dark { display: none; }
:root[data-theme="light"] .mm-theme .icon-light { display: inline-flex; }

/* smooth cross-fade between themes (only after first paint) */
html.theme-ready body,
html.theme-ready .topbar, html.theme-ready .mobile-menu,
html.theme-ready .deck-controls, html.theme-ready .stat-card,
html.theme-ready .tool, html.theme-ready .use-card, html.theme-ready .diff-card,
html.theme-ready .mock, html.theme-ready .chat, html.theme-ready .contact-card,
html.theme-ready .kpi, html.theme-ready .mock-panel, html.theme-ready .bubble {
  transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
}

/* =========================================================
   LIGHT THEME — paleta luminosa AXIA
   ========================================================= */
:root[data-theme="light"] {
  --bg:          #f6f7fb;
  --bg-2:        #ffffff;
  --surface:     #ffffff;
  --surface-2:   #f4f5fc;
  --violet:      #7c3aed;
  --violet-lt:   #6d28d9;
  --cyan:        #0891b2;
  --cyan-lt:     #0e7490;
  --text:        #0f172a;
  --muted:       #64748b;
  --muted-lt:    #475569;
  --border:      rgba(124, 58, 237, 0.22);
  --border-soft: rgba(15, 23, 42, 0.10);
  --grad-text:   linear-gradient(120deg, #7c3aed 0%, #0891b2 100%);
}
:root[data-theme="light"] body { background: var(--bg); }
/* ambient: softer washes on white */
:root[data-theme="light"] .bg-grid {
  background-image:
    linear-gradient(rgba(124, 58, 237, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 58, 237, 0.05) 1px, transparent 1px);
}
:root[data-theme="light"] .bg-orb { opacity: 0.32; filter: blur(70px); }
:root[data-theme="light"] .orb-1 { background: radial-gradient(circle, rgba(124,58,237,0.30), transparent 70%); }
:root[data-theme="light"] .orb-2 { background: radial-gradient(circle, rgba(6,182,212,0.24), transparent 70%); }

/* topbar / menus */
:root[data-theme="light"] .topbar { background: linear-gradient(180deg, rgba(246,247,251,0.92), rgba(246,247,251,0)); }
:root[data-theme="light"] .mobile-menu { background: rgba(255,255,255,0.98); border-bottom-color: var(--border); }

/* buttons */
:root[data-theme="light"] .btn-ghost { background: rgba(124,58,237,0.05); border-color: var(--border); }
:root[data-theme="light"] .btn-ghost:hover { background: rgba(124,58,237,0.10); }
:root[data-theme="light"] .theme-toggle { background: rgba(124,58,237,0.05); }

/* deck controls + progress */
:root[data-theme="light"] .deck-progress { background: rgba(15,23,42,0.08); }
:root[data-theme="light"] .deck-controls { background: rgba(255,255,255,0.82); border-color: var(--border-soft); box-shadow: 0 14px 36px -16px rgba(15,23,42,0.25); }
:root[data-theme="light"] .dot { background: rgba(100,116,139,0.35); }

/* cards: lift with soft slate shadow instead of pure glow */
:root[data-theme="light"] .stat-card:hover,
:root[data-theme="light"] .tool:hover,
:root[data-theme="light"] .feature-card:hover { box-shadow: 0 20px 44px -26px rgba(124,58,237,0.45); }
:root[data-theme="light"] .use-card:hover { box-shadow: 0 20px 44px -26px rgba(8,145,178,0.40); }

/* inner mock / chat surfaces (were near-white overlays in dark) */
:root[data-theme="light"] .mock-bar,
:root[data-theme="light"] .kpi,
:root[data-theme="light"] .mock-panel { background: #f7f8fc; border-color: var(--border-soft); }
:root[data-theme="light"] .chat-input { background: #f7f8fc; }
:root[data-theme="light"] .bubble.bot { background: #f4f5fc; }
:root[data-theme="light"] .bar-track { background: rgba(15,23,42,0.08); }

/* KPI accent colors need more contrast on white */
:root[data-theme="light"] .kpi.v-green .v { color: #16a34a; }
:root[data-theme="light"] .kpi.v-amber .v { color: #d97706; }
:root[data-theme="light"] .chat-head .live { color: #16a34a; }
:root[data-theme="light"] .chat-head .pulse { background: #16a34a; }
/* diff-card has a hardcoded dark gradient stop -> make it clean white in light */
:root[data-theme="light"] .diff-card { background: linear-gradient(180deg, #ffffff 0%, #f4f5fc 100%); }

/* =========================================================
   Slide · Diseñador de Informes (report builder)
   ========================================================= */
.builder {
  width: 100%; max-width: 1060px; margin: 0 auto; text-align: left;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border); border-radius: 16px; padding: 14px;
  box-shadow: 0 30px 80px -40px rgba(124,58,237,0.5);
  display: grid; grid-template-columns: 240px 1fr; gap: 14px;
}
.builder-cap { text-align: center; margin-top: 18px; font-family: var(--font-mono); font-size: 0.72rem; color: var(--muted); }
.builder-cap svg { width: 14px; height: 14px; vertical-align: -2px; color: var(--violet-lt); }

/* object panel */
.bd-panel { background: var(--bg); border: 1px solid var(--border-soft); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 4px; }
.bd-search { display: flex; align-items: center; gap: 8px; padding: 8px 10px; background: var(--surface); border: 1px solid var(--border-soft); border-radius: 8px; color: var(--muted); font-size: 0.78rem; margin-bottom: 6px; }
.bd-search svg { width: 14px; height: 14px; }
.bd-cat { font-family: var(--font-mono); font-size: 0.58rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin: 8px 0 4px; }
.bd-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.dz-chip { display: inline-flex; align-items: center; gap: 7px; padding: 6px 10px; background: var(--surface); border: 1px solid var(--border-soft); border-radius: 7px; font-size: 0.76rem; color: var(--text); cursor: grab; transition: all .15s var(--ease); user-select: none; }
.dz-chip:hover { border-color: var(--violet-lt); transform: translateY(-1px); box-shadow: 0 6px 16px -8px rgba(124,58,237,.5); }
.dz-chip:active { cursor: grabbing; }
.dz-chip .dot { width: 7px; height: 7px; border-radius: 2px; flex-shrink: 0; }
.dz-chip[data-type="attr"] .dot { background: var(--violet); }
.dz-chip[data-type="ind"] .dot { background: #10b981; }
.dz-chip.used { opacity: .35; pointer-events: none; }

/* canvas */
.bd-canvas { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.bd-toolbar { display: flex; align-items: center; gap: 8px; }
.bd-title { flex: 1; padding: 7px 11px; background: var(--bg); border: 1px solid var(--border-soft); border-radius: 8px; font-size: 0.78rem; color: var(--muted-lt); }
.bd-btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; border-radius: 8px; font-size: 0.74rem; border: 1px solid var(--border-soft); color: var(--muted-lt); white-space: nowrap; }
.bd-btn svg { width: 13px; height: 13px; }
.bd-btn.run { background: var(--grad-vc); color: #fff; border-color: transparent; }
.bd-filter { display: flex; align-items: center; gap: 8px; padding: 8px 11px; background: var(--bg); border: 1px solid var(--border-soft); border-radius: 8px; font-size: 0.72rem; color: var(--muted); }
.bd-filter .tk { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; background: rgba(124,58,237,.12); border: 1px solid var(--border); border-radius: 6px; color: var(--violet-lt); font-size: 0.7rem; }

.bd-zones { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.dropzone { background: var(--bg); border: 1.5px dashed var(--border); border-radius: 10px; padding: 10px; min-height: 78px; transition: all .2s var(--ease); }
.dropzone .dz-label { font-family: var(--font-mono); font-size: 0.56rem; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.dropzone.over { border-color: var(--violet-lt); background: rgba(124,58,237,.08); transform: translateY(-2px); }
.dropzone.datos.empty { border-color: rgba(6,182,212,.55); }
.dz-tokens { display: flex; flex-wrap: wrap; gap: 6px; }
.dz-tokens:not(:empty) ~ .dz-placeholder { display: none; }
.dz-placeholder { font-size: 0.72rem; color: var(--muted); opacity: .7; }
.dz-token { display: inline-flex; align-items: center; gap: 7px; padding: 5px 9px; background: var(--grad-vc); color: #fff; border-radius: 7px; font-size: 0.73rem; animation: tokenIn .25s var(--ease); }
.dz-token.ind { background: linear-gradient(135deg, #10b981, #06b6d4); }
.dz-token .x { cursor: pointer; opacity: .8; font-size: 0.9rem; line-height: 1; }
.dz-token .x:hover { opacity: 1; }
@keyframes tokenIn { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: none; } }

.bd-result { border: 1px solid var(--border-soft); border-radius: 10px; overflow: hidden; }
.bd-result .rhead { padding: 8px 12px; font-size: 0.68rem; color: var(--muted); border-bottom: 1px solid var(--border-soft); display: flex; justify-content: space-between; font-family: var(--font-mono); }
.bd-empty { padding: 20px; text-align: center; font-size: 0.8rem; color: var(--muted); }
.bd-empty svg { width: 16px; height: 16px; vertical-align: -3px; color: var(--cyan); margin-right: 4px; }
table.bd-table { width: 100%; border-collapse: collapse; font-size: 0.75rem; }
.bd-table th, .bd-table td { padding: 8px 12px; text-align: right; border-bottom: 1px solid var(--border-soft); }
.bd-table th:first-child, .bd-table td:first-child { text-align: left; color: var(--muted-lt); }
.bd-table thead th { font-weight: 600; color: var(--muted); font-size: 0.64rem; text-transform: uppercase; letter-spacing: 0.04em; }
.bd-table tbody tr:last-child td { border-bottom: none; }
.bd-table .tot { font-weight: 700; color: var(--violet-lt); }
.bd-tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.bd-result .bd-tablewrap { display: none; }
.builder.ready .bd-result .bd-tablewrap { display: block; }
.builder.ready .bd-result .bd-empty { display: none; }
.bd-table { min-width: 380px; }

@media (max-width: 860px) {
  .builder { grid-template-columns: 1fr; }
  .bd-panel { flex-direction: row; flex-wrap: wrap; align-items: flex-start; }
  .bd-zones { grid-template-columns: 1fr; }
}

/* ---- Export: glowing button + dropdown ---- */
.bd-stage { position: relative; }
.bd-export-menu { position: relative; }
.bd-export-btn {
  border-color: var(--violet); color: var(--violet-lt); cursor: pointer;
  animation: exportGlow 2.6s ease-in-out infinite;
}
.bd-export-btn .caret { width: 12px !important; height: 12px !important; transition: transform .2s var(--ease); }
.bd-export-btn[aria-expanded="true"] { color: #fff; background: var(--grad-vc); border-color: transparent; animation: none; }
.bd-export-btn[aria-expanded="true"] .caret { transform: rotate(180deg); }
@keyframes exportGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(124,58,237,0); }
  50% { box-shadow: 0 0 16px -2px rgba(124,58,237,0.65); }
}
.bd-menu {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 30;
  min-width: 230px; padding: 6px;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 11px;
  box-shadow: 0 20px 50px -16px rgba(0,0,0,0.55);
  display: none; flex-direction: column; gap: 2px;
}
.bd-menu.open { display: flex; animation: menuIn .18s var(--ease); }
@keyframes menuIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.bd-menu-item {
  display: flex; align-items: center; gap: 10px; text-align: left;
  padding: 10px 12px; border-radius: 7px; font-size: 0.82rem; color: var(--text);
  transition: background .15s var(--ease);
}
.bd-menu-item svg { width: 16px; height: 16px; color: var(--violet-lt); }
.bd-menu-item:hover { background: rgba(124,58,237,0.14); }

/* ---- Export preview panel (occupies the builder's space) ---- */
.bd-export {
  position: absolute; inset: 0; z-index: 20; display: none;
  flex-direction: column;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border); border-radius: 16px; overflow: hidden;
  box-shadow: 0 30px 80px -40px rgba(124,58,237,0.5);
}
.bd-stage.exporting .bd-export { display: flex; animation: menuIn .22s var(--ease); }
.bd-stage.exporting .builder { visibility: hidden; }
.bd-export-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; border-bottom: 1px solid var(--border-soft); flex-shrink: 0;
}
.bd-export-title { display: flex; align-items: center; gap: 9px; font-family: var(--font-display); font-weight: 600; font-size: 0.98rem; }
.bd-export-title svg { width: 18px; height: 18px; color: var(--violet-lt); }
.bd-export-close {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  padding: 7px 13px; border-radius: 8px; font-size: 0.82rem; color: var(--text);
  border: 1px solid var(--border-soft); transition: all .2s var(--ease);
}
.bd-export-close svg { width: 15px; height: 15px; }
.bd-export-close:hover { border-color: var(--violet-lt); background: rgba(124,58,237,0.1); }

.bd-export-body { flex: 1; display: grid; grid-template-columns: 1.5fr 1fr; gap: 16px; padding: 16px; min-height: 0; overflow: auto; }
.bd-preview { background: rgba(0,0,0,0.18); border: 1px solid var(--border-soft); border-radius: 10px; padding: 18px; display: flex; justify-content: center; align-items: flex-start; overflow: auto; }
:root[data-theme="light"] .bd-preview { background: #e9edf5; }

/* the printed "page" — always a light sheet, like a real print/export preview */
.bd-page {
  width: 100%; max-width: 460px; background: #fff; color: #1e293b;
  border-radius: 4px; padding: 22px 24px; box-shadow: 0 8px 26px -8px rgba(0,0,0,0.4);
  font-size: 0.74rem;
}
.bd-page-brand { font-family: var(--font-display); font-weight: 700; font-size: 0.9rem; color: #7c3aed; margin-bottom: 12px; }
.bd-page-brand span { color: #06b6d4; }
.bd-page-title { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: #0f172a; }
.bd-page-meta { color: #64748b; font-size: 0.66rem; margin: 4px 0 16px; }
.bd-page-tablewrap { overflow-x: auto; }
.bd-page-table { width: 100%; border-collapse: collapse; font-size: 0.72rem; }
.bd-page-table th, .bd-page-table td { padding: 7px 8px; text-align: right; border-bottom: 1px solid #e2e8f0; white-space: nowrap; }
.bd-page-table th:first-child, .bd-page-table td:first-child { text-align: left; }
.bd-page-table thead th { color: #94a3b8; font-weight: 600; font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.04em; border-bottom: 1px solid #cbd5e1; }
.bd-page-table tbody tr:last-child td { border-bottom: none; }
.bd-page-table .tot, .bd-page-table tr.grand td { font-weight: 700; color: #0f172a; }
.bd-page-table tr.grand td { border-top: 2px solid #cbd5e1; }
/* excel flavor: spreadsheet gridlines + green accent */
.bd-page.is-excel { font-family: var(--font-mono); border-top: 3px solid #16a34a; }
.bd-page.is-excel .bd-page-table th, .bd-page.is-excel .bd-page-table td { border: 1px solid #e2e8f0; text-align: right; }
.bd-page.is-excel .bd-page-table th:first-child, .bd-page.is-excel .bd-page-table td:first-child { text-align: left; }

.bd-settings { display: flex; flex-direction: column; gap: 14px; }
.bd-set-row { display: flex; flex-direction: column; gap: 6px; }
.bd-set-row label { font-size: 0.74rem; color: var(--muted); }
.bd-select { display: flex; align-items: center; gap: 8px; padding: 9px 12px; background: var(--bg); border: 1px solid var(--border-soft); border-radius: 8px; font-size: 0.82rem; color: var(--text); }
.bd-select svg { width: 15px; height: 15px; color: var(--violet-lt); }
.bd-set-more { display: flex; align-items: center; justify-content: space-between; padding: 9px 2px; font-size: 0.8rem; color: var(--muted-lt); border-top: 1px solid var(--border-soft); margin-top: 2px; }
.bd-set-more svg { width: 15px; height: 15px; }
.bd-set-actions { display: flex; gap: 10px; margin-top: auto; padding-top: 6px; }
.bd-set-actions .btn { flex: 1; }

/* toast */
.bd-toast {
  position: absolute; left: 50%; bottom: 84px; transform: translate(-50%, 14px);
  display: inline-flex; align-items: center; gap: 8px; z-index: 40;
  padding: 11px 18px; border-radius: 999px; font-size: 0.85rem; font-weight: 600; color: #fff;
  background: linear-gradient(135deg, #16a34a, #06b6d4); box-shadow: 0 14px 34px -12px rgba(6,182,212,0.6);
  opacity: 0; pointer-events: none; transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.bd-toast svg { width: 17px; height: 17px; }
.bd-toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 860px) {
  .bd-export-body { grid-template-columns: 1fr; }
  .bd-menu { right: auto; left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .bd-export-btn { animation: none; }
}
