/* =========================================================
   Urafiki — corporate site
   Design system: "Ink & Aurora"
   Teal (trust/growth) + Violet (technology) + Amber (Revendedor+)
   ========================================================= */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
img, svg, video { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }

/* ---------- Tokens ---------- */
:root {
  color-scheme: light;

  /* palette – light */
  --bg:            #ffffff;
  --bg-soft:       #f5f8f8;
  --bg-deep:       #0b1116;
  --surface:       #ffffff;
  --surface-2:     #f1f5f5;
  --surface-3:     #e8eeee;
  --border:        rgba(10, 22, 28, .11);
  --border-strong: rgba(10, 22, 28, .20);

  --text:          #0a1016;
  --text-2:        #3c4a55;
  --text-muted:    #5c6b76;
  --text-invert:   #ffffff;

  --brand:         #0d9e8a;
  --brand-2:       #0b8b7a;
  --brand-ink:     #06584e;
  --brand-soft:    rgba(13, 158, 138, .10);
  --brand-line:    rgba(13, 158, 138, .28);
  --on-brand:      #ffffff;

  --violet:        #6152e0;
  --violet-soft:   rgba(97, 82, 224, .10);

  --amber:         #c9760a;
  --amber-2:       #a95f04;
  --amber-soft:    rgba(201, 118, 10, .10);
  --amber-line:    rgba(201, 118, 10, .30);
  --on-amber:      #ffffff;

  --glass:         rgba(255, 255, 255, .72);
  --glass-brd:     rgba(255, 255, 255, .55);

  --shadow-1: 0 1px 2px rgba(9, 22, 30, .05), 0 2px 6px rgba(9, 22, 30, .05);
  --shadow-2: 0 2px 4px rgba(9, 22, 30, .05), 0 10px 24px -6px rgba(9, 22, 30, .12);
  --shadow-3: 0 4px 8px rgba(9, 22, 30, .06), 0 24px 48px -12px rgba(9, 22, 30, .20);
  --shadow-brand: 0 10px 30px -8px rgba(13, 158, 138, .45);
  --shadow-amber: 0 10px 30px -8px rgba(201, 118, 10, .40);

  /* type */
  --font-display: 'Sora', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;

  /* spacing scale */
  --s-1: .25rem; --s-2: .5rem;  --s-3: .75rem; --s-4: 1rem;
  --s-5: 1.5rem; --s-6: 2rem;   --s-7: 2.5rem; --s-8: 3.5rem;
  --s-9: 5rem;   --s-10: 7rem;

  --r-sm: 10px; --r-md: 14px; --r-lg: 20px; --r-xl: 28px; --r-pill: 999px;

  --shell: 1200px;
  --header-h: 72px;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* dark – system default (only when user has not forced light) */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg:            #070b10;
    --bg-soft:       #0b1118;
    --bg-deep:       #05080c;
    --surface:       #0e151d;
    --surface-2:     #131c25;
    --surface-3:     #1a2531;
    --border:        rgba(150, 190, 205, .14);
    --border-strong: rgba(150, 190, 205, .26);

    --text:          #eef4f6;
    --text-2:        #b7c5cf;
    --text-muted:    #8b9dab;
    --text-invert:   #06090f;

    --brand:         #2ad4b8;
    --brand-2:       #17bda3;
    --brand-ink:     #d6fff6;
    --brand-soft:    rgba(42, 212, 184, .12);
    --brand-line:    rgba(42, 212, 184, .30);
    --on-brand:      #04211d;

    --violet:        #9b8cff;
    --violet-soft:   rgba(155, 140, 255, .14);

    --amber:         #f6b33f;
    --amber-2:       #e09a22;
    --amber-soft:    rgba(246, 179, 63, .13);
    --amber-line:    rgba(246, 179, 63, .32);
    --on-amber:      #2a1a00;

    --glass:         rgba(14, 21, 29, .70);
    --glass-brd:     rgba(150, 190, 205, .16);

    --shadow-1: 0 1px 2px rgba(0, 0, 0, .40);
    --shadow-2: 0 2px 6px rgba(0, 0, 0, .40), 0 12px 28px -8px rgba(0, 0, 0, .60);
    --shadow-3: 0 6px 12px rgba(0, 0, 0, .45), 0 28px 56px -14px rgba(0, 0, 0, .75);
    --shadow-brand: 0 12px 34px -10px rgba(42, 212, 184, .40);
    --shadow-amber: 0 12px 34px -10px rgba(246, 179, 63, .35);
  }
}

/* dark – explicit toggle */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg:            #070b10;
  --bg-soft:       #0b1118;
  --bg-deep:       #05080c;
  --surface:       #0e151d;
  --surface-2:     #131c25;
  --surface-3:     #1a2531;
  --border:        rgba(150, 190, 205, .14);
  --border-strong: rgba(150, 190, 205, .26);

  --text:          #eef4f6;
  --text-2:        #b7c5cf;
  --text-muted:    #8b9dab;
  --text-invert:   #06090f;

  --brand:         #2ad4b8;
  --brand-2:       #17bda3;
  --brand-ink:     #d6fff6;
  --brand-soft:    rgba(42, 212, 184, .12);
  --brand-line:    rgba(42, 212, 184, .30);
  --on-brand:      #04211d;

  --violet:        #9b8cff;
  --violet-soft:   rgba(155, 140, 255, .14);

  --amber:         #f6b33f;
  --amber-2:       #e09a22;
  --amber-soft:    rgba(246, 179, 63, .13);
  --amber-line:    rgba(246, 179, 63, .32);
  --on-amber:      #2a1a00;

  --glass:         rgba(14, 21, 29, .70);
  --glass-brd:     rgba(150, 190, 205, .16);

  --shadow-1: 0 1px 2px rgba(0, 0, 0, .40);
  --shadow-2: 0 2px 6px rgba(0, 0, 0, .40), 0 12px 28px -8px rgba(0, 0, 0, .60);
  --shadow-3: 0 6px 12px rgba(0, 0, 0, .45), 0 28px 56px -14px rgba(0, 0, 0, .75);
  --shadow-brand: 0 12px 34px -10px rgba(42, 212, 184, .40);
  --shadow-amber: 0 12px 34px -10px rgba(246, 179, 63, .35);
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.nav-open { overflow: hidden; }

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; letter-spacing: -.02em; font-weight: 700; color: var(--text); }
h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); letter-spacing: -.035em; font-weight: 800; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.85rem); letter-spacing: -.03em; }
h3 { font-size: clamp(1.15rem, 1.9vw, 1.45rem); }
h4 { font-size: 1.05rem; }
p  { color: var(--text-2); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.shell { width: 100%; max-width: var(--shell); margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2.5rem); }

.icon { width: 22px; height: 22px; flex: none; stroke: currentColor; fill: none; }
.icon-sm { width: 17px; height: 17px; }
.icon-xs { width: 14px; height: 14px; }

/* focus */
:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: fixed; top: 10px; left: 10px; z-index: 2000;
  transform: translateY(-160%);
  background: var(--brand); color: var(--on-brand);
  padding: .7rem 1.1rem; border-radius: var(--r-sm); font-weight: 600;
  transition: transform .2s var(--ease);
}
.skip-link:focus { transform: translateY(0); }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--brand);
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .82rem 1.4rem;
  border-radius: var(--r-pill);
  font-weight: 600; font-size: .95rem; letter-spacing: -.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), background .22s var(--ease), border-color .22s var(--ease), color .22s var(--ease);
  white-space: nowrap;
}
.btn-sm { padding: .58rem 1.05rem; font-size: .875rem; }
.btn-lg { padding: .95rem 1.7rem; font-size: 1rem; }
.btn-block { width: 100%; }

.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: var(--on-brand);
  box-shadow: var(--shadow-brand);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 38px -10px rgba(13,158,138,.55); }
.btn-primary:active { transform: translateY(0); }

.btn-amber {
  background: linear-gradient(135deg, var(--amber), var(--amber-2));
  color: var(--on-amber);
  box-shadow: var(--shadow-amber);
}
.btn-amber:hover { transform: translateY(-2px); }

.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-1);
}
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-2px); }
.btn-ghost .icon { transition: transform .22s var(--ease); }
.btn-ghost:hover .icon { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 900;
  height: var(--header-h);
  display: flex; align-items: center;
  background: transparent;
  transition: background .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: var(--glass);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  backdrop-filter: blur(16px) saturate(180%);
  border-bottom-color: var(--border);
  box-shadow: 0 1px 20px rgba(8, 20, 28, .06);
}
.header-inner { display: flex; align-items: center; gap: 1rem; }

.brand { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--font-display); font-weight: 800; letter-spacing: -.02em; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px; flex: none;
  display: grid; place-items: center;
  background: linear-gradient(140deg, var(--brand), var(--violet));
  color: var(--bg-deep);
  box-shadow: var(--shadow-brand);
}
.brand-mark svg { width: 26px; height: 26px; }
.brand-word { font-size: 1.12rem; letter-spacing: .06em; }

.nav-desktop { display: flex; gap: .3rem; margin-left: auto; }
.nav-desktop a {
  position: relative; padding: .5rem .8rem; border-radius: var(--r-sm);
  font-size: .93rem; font-weight: 500; color: var(--text-2);
  transition: color .2s var(--ease), background .2s var(--ease);
}
.nav-desktop a::after {
  content: ""; position: absolute; left: .8rem; right: .8rem; bottom: .28rem; height: 2px;
  background: var(--brand); border-radius: 2px; transform: scaleX(0); transform-origin: left;
  transition: transform .28s var(--ease);
}
.nav-desktop a:hover { color: var(--text); }
.nav-desktop a:hover::after, .nav-desktop a.active::after { transform: scaleX(1); }
.nav-desktop a.active { color: var(--text); }

.header-actions { display: flex; align-items: center; gap: .45rem; margin-left: auto; }
.nav-desktop + .header-actions { margin-left: 1rem; }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .35rem;
  height: 40px; min-width: 40px; padding: 0 .6rem;
  border-radius: var(--r-pill);
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-2);
  cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.icon-btn:hover { color: var(--text); border-color: var(--border-strong); transform: translateY(-1px); }

/* theme toggle */
.theme-btn .moon { display: none; }
:root[data-theme="dark"] .theme-btn .sun { display: none; }
:root[data-theme="dark"] .theme-btn .moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-btn .sun { display: none; }
  :root:not([data-theme="light"]) .theme-btn .moon { display: block; }
}

/* language */
.lang { position: relative; }
.lang-code { font-size: .82rem; font-weight: 600; letter-spacing: .04em; }
.lang-btn .chev { transition: transform .22s var(--ease); }
.lang-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }

.lang-menu {
  position: absolute; top: calc(100% + 10px); right: 0; z-index: 950;
  min-width: 208px; padding: .4rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-3);
  animation: pop .18s var(--ease);
}
.lang-menu[hidden] { display: none; }
@keyframes pop { from { opacity: 0; transform: translateY(-6px) scale(.98); } }
.lang-menu li {
  display: flex; align-items: center; gap: .65rem;
  padding: .55rem .65rem; border-radius: var(--r-sm);
  font-size: .92rem; cursor: pointer; color: var(--text-2);
  transition: background .16s var(--ease), color .16s var(--ease);
}
.lang-menu li:hover, .lang-menu li:focus-visible { background: var(--surface-2); color: var(--text); }
.lang-menu li[aria-selected="true"] { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.lang-menu .flag { font-size: 1.05rem; line-height: 1; }
.lang-menu .lname { flex: 1; }
.lang-menu .lcode { font-size: .72rem; letter-spacing: .08em; opacity: .6; font-weight: 600; }

.burger { display: none; }
.burger .close { display: none; }
.burger[aria-expanded="true"] .open { display: none; }
.burger[aria-expanded="true"] .close { display: block; }

.scroll-progress {
  position: absolute; left: 0; bottom: -1px; height: 2px; width: 0%;
  background: linear-gradient(90deg, var(--brand), var(--violet));
  transition: width .1s linear;
}

/* ---------- Mobile nav ---------- */
.mobile-nav {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 890;
  background: var(--bg);
  padding: 1.6rem clamp(1.1rem, 4vw, 2.5rem) 2.5rem;
  overflow-y: auto;
  display: flex; flex-direction: column; gap: 1.4rem;
  animation: slideDown .26s var(--ease);
}
.mobile-nav[hidden] { display: none; }
@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } }
.mobile-nav nav { display: flex; flex-direction: column; }
.mobile-nav nav a {
  font-family: var(--font-display); font-size: 1.18rem; font-weight: 600;
  padding: .72rem 0; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.mobile-nav nav a:active { color: var(--brand); }
.mobile-langs { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin-top: auto; }
.mobile-langs button {
  padding: .7rem .6rem; border-radius: var(--r-sm);
  background: var(--surface-2); border: 1px solid var(--border);
  color: var(--text-2); font-size: .88rem; text-align: left; cursor: pointer;
}
.mobile-langs button[aria-current="true"] { background: var(--brand-soft); border-color: var(--brand-line); color: var(--brand); font-weight: 600; }

/* ---------- Shared section bits ---------- */
.section { padding: clamp(4rem, 9vw, 7.5rem) 0; position: relative; }
.section.alt { background: var(--bg-soft); }

.section-head { max-width: 760px; margin: 0 auto clamp(2.5rem, 5vw, 4rem); text-align: center; }
.section-lead { font-size: clamp(1rem, 1.3vw, 1.12rem); color: var(--text-muted); margin-top: 1rem; }
.section-lead.left { margin-inline: 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--brand);
  background: var(--brand-soft);
  border: 1px solid var(--brand-line);
  padding: .4rem .85rem; border-radius: var(--r-pill);
  margin-bottom: 1.1rem;
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 22%, transparent); }
.eyebrow.amber { color: var(--amber); background: var(--amber-soft); border-color: var(--amber-line); }

.grad {
  background: linear-gradient(100deg, var(--brand) 0%, var(--violet) 55%, var(--amber) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

.sub-head { text-align: center; margin: clamp(3rem, 6vw, 4.5rem) 0 2rem; font-size: clamp(1.3rem, 2.4vw, 1.85rem); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); }
.reveal.in { opacity: 1; transform: none; transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0ms); }
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: calc(var(--header-h) + clamp(3rem, 7vw, 6rem)) 0 clamp(3.5rem, 8vw, 6.5rem);
  overflow: hidden;
  isolation: isolate;
}
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; opacity: .55; }
.hero-mesh { position: absolute; inset: -20% -10% auto -10%; height: 130%; z-index: -3; filter: blur(70px); opacity: .55; }
:root[data-theme="dark"] .hero-mesh { opacity: .42; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hero-mesh { opacity: .42; } }
.blob { position: absolute; border-radius: 50%; }
.blob.b1 { width: 46vw; height: 46vw; left: 46%; top: 2%;  background: radial-gradient(circle, var(--brand), transparent 66%); animation: drift1 22s ease-in-out infinite; }
.blob.b2 { width: 40vw; height: 40vw; left: 62%; top: 26%; background: radial-gradient(circle, var(--violet), transparent 66%); animation: drift2 27s ease-in-out infinite; }
.blob.b3 { width: 32vw; height: 32vw; left: 2%;  top: 34%; background: radial-gradient(circle, var(--amber), transparent 68%); opacity: .55; animation: drift3 31s ease-in-out infinite; }
@keyframes drift1 { 50% { transform: translate3d(-6%, 8%, 0) scale(1.12); } }
@keyframes drift2 { 50% { transform: translate3d(8%, -7%, 0) scale(.92); } }
@keyframes drift3 { 50% { transform: translate3d(5%, 6%, 0) scale(1.15); } }

.hero-grid-lines {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(to right, var(--border) 1px, transparent 1px),
    linear-gradient(to bottom, var(--border) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 65% at 50% 30%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 65% at 50% 30%, #000 20%, transparent 75%);
  opacity: .7;
}

.hero-inner {
  display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr);
  gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
}
.hero-copy h1 { margin-bottom: 1.2rem; }
.hero-copy h1 span { display: block; }
.hero-copy .lead { font-size: clamp(1.03rem, 1.35vw, 1.2rem); color: var(--text-muted); max-width: 33em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.hero-note { margin-top: 1.1rem; font-size: .87rem; color: var(--text-muted); }

/* device mock */
.hero-visual { position: relative; display: grid; place-items: center; min-height: 460px; }
.device {
  position: relative; width: min(290px, 74vw); aspect-ratio: 9 / 18.6;
  border-radius: 40px; padding: 10px;
  background: linear-gradient(160deg, var(--surface-3), var(--surface));
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-3), 0 0 0 1px var(--border) inset;
  animation: floaty 7s ease-in-out infinite;
}
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
.device-notch {
  position: absolute; top: 16px; left: 50%; transform: translateX(-50%);
  width: 92px; height: 20px; border-radius: var(--r-pill); background: var(--bg-deep); opacity: .85; z-index: 3;
}
.device-screen {
  height: 100%; border-radius: 32px; overflow: hidden;
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--border);
  padding: 2.6rem .95rem 1rem;
  display: flex; flex-direction: column; gap: .7rem;
}
.dv-top { display: flex; align-items: center; gap: .55rem; }
.dv-avatar { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(140deg, var(--brand), var(--violet)); flex: none; }
.dv-lines { display: grid; gap: 5px; flex: 1; }
.dv-lines i { display: block; height: 7px; border-radius: 4px; background: var(--surface-3); width: 68%; }
.dv-lines i.short { width: 40%; height: 6px; opacity: .7; }
.dv-balance {
  border-radius: var(--r-md); padding: .9rem;
  background: linear-gradient(140deg, var(--brand), var(--violet));
  color: #fff; display: grid; gap: .15rem; position: relative; overflow: hidden;
  box-shadow: var(--shadow-2);
}
.dv-balance::after { content: ""; position: absolute; right: -30px; top: -30px; width: 110px; height: 110px; border-radius: 50%; background: rgba(255,255,255,.14); }
.dv-label { font-size: .66rem; letter-spacing: .06em; text-transform: uppercase; opacity: .85; }
.dv-amount { font-family: var(--font-display); font-size: 1.32rem; font-weight: 700; letter-spacing: -.02em; }
.dv-amount small { font-size: .62rem; opacity: .8; font-weight: 500; }
.dv-chip { justify-self: start; display: inline-flex; align-items: center; gap: .25rem; font-size: .68rem; font-weight: 600; background: rgba(255,255,255,.2); padding: .12rem .45rem; border-radius: var(--r-pill); margin-top: .2rem; }
.dv-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: .45rem; }
.dv-act { display: grid; place-items: center; aspect-ratio: 1; border-radius: var(--r-sm); background: var(--surface-2); border: 1px solid var(--border); color: var(--brand); }
.dv-list { display: grid; gap: .45rem; margin-top: .1rem; }
.dv-row { display: flex; align-items: center; gap: .5rem; padding: .48rem .55rem; border-radius: var(--r-sm); background: var(--surface-2); border: 1px solid var(--border); }
.dv-ic { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--brand-soft); color: var(--brand); flex: none; }
.dv-bars { flex: 1; display: grid; gap: 4px; }
.dv-bars i { display: block; height: 6px; border-radius: 3px; background: var(--surface-3); width: 72%; }
.dv-bars i.mid { width: 56%; }
.dv-bars i.short { width: 34%; opacity: .7; }
.dv-val { font-size: .68rem; font-weight: 700; color: var(--text-muted); }
.dv-val.up { color: var(--brand); }

.float-card {
  position: absolute; display: flex; align-items: center; gap: .55rem;
  padding: .6rem .85rem; border-radius: var(--r-md);
  background: var(--glass);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  backdrop-filter: blur(14px) saturate(180%);
  border: 1px solid var(--glass-brd);
  box-shadow: var(--shadow-2);
  font-size: .8rem; font-weight: 600; white-space: nowrap;
}
.float-card .fc-s { font-size: .68rem; color: var(--text-muted); font-weight: 500; }
.fc-ic { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--brand-soft); color: var(--brand); flex: none; }
.fc-ic.amber { background: var(--amber-soft); color: var(--amber); }
.fc-pay { top: 6%; left: -3%; animation: floaty 6s ease-in-out infinite .6s; }
.fc-com { bottom: 15%; right: -4%; animation: floaty 8s ease-in-out infinite 1.2s; }

/* ---------- Stats ---------- */
.stats { padding: clamp(2rem, 4vw, 3rem) 0; border-block: 1px solid var(--border); background: var(--bg-soft); }
.stats-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem, 3vw, 2.5rem); }
.stat { text-align: center; padding: .5rem; }
.stat + .stat { border-left: 1px solid var(--border); }
.stat-num {
  display: block; font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -.04em; line-height: 1;
  background: linear-gradient(135deg, var(--brand), var(--violet));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
}
.stat-label { display: block; margin-top: .6rem; font-size: .87rem; color: var(--text-muted); }

/* ---------- Products ---------- */
.prod-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: clamp(1rem, 2vw, 1.5rem); }
.prod-card {
  position: relative; display: flex; flex-direction: column;
  padding: clamp(1.4rem, 2.2vw, 1.9rem);
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-1);
  overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.prod-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--violet));
  opacity: 0; transition: opacity .3s var(--ease);
}
.prod-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-3); border-color: var(--brand-line); }
.prod-card:hover::before { opacity: 1; }
.prod-card.accent::before { background: linear-gradient(90deg, var(--amber), var(--brand)); opacity: 1; }
.prod-card.accent { border-color: var(--amber-line); }
.prod-card.muted { background: var(--surface-2); }

.prod-top { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: 1.1rem; }
.prod-ic {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px;
  background: var(--brand-soft); color: var(--brand); border: 1px solid var(--brand-line);
  transition: transform .3s var(--ease);
}
.prod-card:hover .prod-ic { transform: scale(1.06) rotate(-4deg); }
.prod-card.accent .prod-ic { background: var(--amber-soft); color: var(--amber); border-color: var(--amber-line); }
.prod-tag {
  font-size: .68rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  color: var(--violet); background: var(--violet-soft); padding: .3rem .6rem; border-radius: var(--r-pill);
}
.prod-tag.amber { color: var(--amber); background: var(--amber-soft); }
.prod-tagline { font-weight: 600; color: var(--brand); margin: .25rem 0 .6rem; font-size: .93rem; }
.prod-card.accent .prod-tagline { color: var(--amber); }
.prod-card p { font-size: .95rem; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; margin: 1.1rem 0 1.3rem; }
.chips li {
  font-size: .76rem; font-weight: 500; color: var(--text-muted);
  background: var(--surface-2); border: 1px solid var(--border);
  padding: .25rem .6rem; border-radius: var(--r-pill);
}
.prod-card.muted .chips li { background: var(--surface); }
.prod-link {
  margin-top: auto; display: inline-flex; align-items: center; gap: .45rem;
  font-weight: 600; font-size: .9rem; color: var(--brand); align-self: flex-start;
}
.prod-card.accent .prod-link { color: var(--amber); }
.prod-link .icon { transition: transform .22s var(--ease); }
.prod-link:hover .icon { transform: translateX(4px); }

/* ---------- Revendedor+ ---------- */
.reseller { background: var(--bg-soft); overflow: hidden; }
.reseller-glow {
  position: absolute; top: -10%; left: 50%; transform: translateX(-50%);
  width: min(1100px, 120%); height: 480px; z-index: 0; pointer-events: none;
  background: radial-gradient(ellipse at center, var(--amber-soft), transparent 68%);
  filter: blur(30px);
}
.reseller .shell { position: relative; z-index: 1; }

.res-quote {
  max-width: 860px; margin: 0 auto clamp(2.5rem, 5vw, 3.5rem);
  padding: clamp(1.5rem, 3vw, 2.2rem) clamp(1.4rem, 3vw, 2.6rem);
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--amber-line);
  border-left: 4px solid var(--amber);
  box-shadow: var(--shadow-2);
  text-align: center;
}
.res-quote p { font-family: var(--font-display); font-size: clamp(1.1rem, 2.1vw, 1.5rem); font-weight: 600; color: var(--text); line-height: 1.45; letter-spacing: -.02em; }
.res-quote cite { display: block; margin-top: .9rem; font-style: normal; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--amber); font-weight: 600; }

.res-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.res-intro h3 { margin-bottom: .9rem; }
.res-intro p + p { margin-top: .9rem; }
.res-bullets { display: grid; gap: .8rem; }
.res-bullets li {
  display: flex; gap: .9rem; align-items: flex-start;
  padding: 1rem 1.1rem; border-radius: var(--r-md);
  background: var(--surface); border: 1px solid var(--border);
  box-shadow: var(--shadow-1);
  transition: transform .25s var(--ease), border-color .25s var(--ease);
}
.res-bullets li:hover { transform: translateX(4px); border-color: var(--amber-line); }
.res-bullets div { display: grid; gap: .15rem; }
.res-bullets strong { font-size: .97rem; }
.res-bullets span { font-size: .89rem; color: var(--text-muted); }
.rb-ic { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--amber-soft); color: var(--amber); flex: none; }

.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: clamp(1rem, 2vw, 1.5rem); align-items: stretch; }
.tier {
  position: relative; display: flex; flex-direction: column;
  padding: clamp(1.5rem, 2.4vw, 2rem);
  border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--border);
  box-shadow: var(--shadow-1);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.tier:hover { transform: translateY(-5px); box-shadow: var(--shadow-3); }
.tier.featured {
  border-color: var(--amber); box-shadow: var(--shadow-2);
  background: linear-gradient(180deg, var(--amber-soft), var(--surface) 30%);
}
.tier-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--amber), var(--amber-2)); color: var(--on-amber);
  font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: .3rem .8rem; border-radius: var(--r-pill); white-space: nowrap;
  box-shadow: var(--shadow-amber);
}
.tier-ic { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--amber-soft); color: var(--amber); border: 1px solid var(--amber-line); margin-bottom: 1rem; }
.tier h4 { font-family: var(--font-display); font-size: 1.3rem; }
.tier-for { font-size: .85rem; color: var(--amber); font-weight: 600; margin-bottom: .8rem; }
.tier p { font-size: .93rem; }
.tier ul { margin-top: 1.1rem; display: grid; gap: .55rem; }
.tier ul li { position: relative; padding-left: 1.6rem; font-size: .9rem; color: var(--text-2); }
.tier ul li::before {
  content: ""; position: absolute; left: 0; top: .35em; width: 15px; height: 15px; border-radius: 50%;
  background: var(--amber-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c9760a' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4.5 12.4 4.8 4.8 10.2-10.4'/%3E%3C/svg%3E") center/10px no-repeat;
}
:root[data-theme="dark"] .tier ul li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f6b33f' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4.5 12.4 4.8 4.8 10.2-10.4'/%3E%3C/svg%3E"); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .tier ul li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f6b33f' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4.5 12.4 4.8 4.8 10.2-10.4'/%3E%3C/svg%3E"); }
}

/* steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: clamp(1rem, 2vw, 1.5rem); counter-reset: step; }
.steps li { position: relative; padding: 1.5rem 1.3rem 1.4rem; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-1); }
.steps li::after {
  content: ""; position: absolute; top: 2.4rem; right: -1rem; width: 1rem; height: 1px;
  background: linear-gradient(90deg, var(--amber-line), transparent);
}
.steps li:last-child::after { display: none; }
.step-n {
  display: inline-block; font-family: var(--font-display); font-size: 1.6rem; font-weight: 800;
  letter-spacing: -.04em; margin-bottom: .5rem;
  background: linear-gradient(135deg, var(--amber), var(--brand));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
}
.steps h4 { margin-bottom: .35rem; }
.steps p { font-size: .9rem; }

.res-cta {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: clamp(1.6rem, 3vw, 2.4rem);
  border-radius: var(--r-xl);
  background: var(--surface); border: 1px solid var(--amber-line);
  box-shadow: var(--shadow-2);
}
.res-cta h3 { margin-bottom: .4rem; }
.res-cta p { font-size: .95rem; }
.res-cta-actions { display: flex; flex-wrap: wrap; gap: .7rem; }

/* ---------- Ecosystem ---------- */
.eco-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.eco-copy .section-lead { margin-left: 0; }
.eco-points { display: grid; gap: .9rem; margin-top: 2rem; }
.eco-points li { display: flex; gap: .9rem; align-items: flex-start; }
.eco-points div { display: grid; gap: .15rem; }
.eco-points strong { font-size: .98rem; }
.eco-points span { font-size: .9rem; color: var(--text-muted); }
.ep-ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); border: 1px solid var(--brand-line); flex: none; }

.eco-diagram { position: relative; width: 100%; max-width: 520px; margin-inline: auto; aspect-ratio: 1; }
.eco-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.eco-lines line { stroke: var(--brand-line); stroke-width: .4; stroke-dasharray: 2 1.6; animation: dash 3s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -7.2; } }
.eco-hub {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 34%; aspect-ratio: 1; border-radius: 50%;
  display: grid; place-content: center; justify-items: center; gap: .1rem; text-align: center;
  background: linear-gradient(150deg, var(--brand), var(--violet));
  color: #fff; box-shadow: var(--shadow-brand), var(--shadow-2);
}
.eco-hub::after {
  content: ""; position: absolute; inset: -10%; border-radius: 50%;
  border: 1px solid var(--brand-line); animation: pulse 3.4s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { transform: scale(1); opacity: .8; } 50% { transform: scale(1.09); opacity: .25; } }
.eco-hub-mark { width: 26px; height: 26px; opacity: .95; }
.eco-hub strong { font-family: var(--font-display); font-size: clamp(.8rem, 1.7vw, 1rem); letter-spacing: .02em; color: #fff; }
.eco-hub span { font-size: clamp(.6rem, 1.1vw, .72rem); opacity: .85; }

.eco-node {
  position: absolute; transform: translate(-50%, -50%);
  width: 27%; padding: .7rem .3rem; border-radius: var(--r-md);
  display: grid; justify-items: center; gap: .3rem; text-align: center;
  background: var(--surface); border: 1px solid var(--border);
  box-shadow: var(--shadow-2); color: var(--brand);
  transition: transform .3s var(--ease), border-color .3s var(--ease);
}
.eco-node:hover { transform: translate(-50%, -50%) scale(1.07); border-color: var(--brand); }
.eco-node span { font-size: clamp(.62rem, 1.15vw, .78rem); font-weight: 600; color: var(--text); letter-spacing: -.01em; }
.eco-node.n1 { left: 50%;   top: 12%; }
.eco-node.n2 { left: 86%;   top: 38%; }
.eco-node.n3 { left: 72%;   top: 81%; }
.eco-node.n4 { left: 28%;   top: 81%; }
.eco-node.n5 { left: 14%;   top: 38%; }

/* ---------- Why ---------- */
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: clamp(1rem, 2vw, 1.5rem); }
.why {
  padding: 1.6rem 1.5rem; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--border);
  box-shadow: var(--shadow-1);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.why:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: var(--brand-line); }
.why-ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; background: var(--brand-soft); color: var(--brand); border: 1px solid var(--brand-line); margin-bottom: 1rem; }
.why h3 { font-size: 1.1rem; margin-bottom: .45rem; }
.why p { font-size: .92rem; }

/* ---------- Vision ---------- */
.vision-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.2rem, 2.5vw, 2rem); }
.vis { padding: 1.6rem 1.4rem; border-radius: var(--r-lg); border: 1px solid var(--border); background: linear-gradient(180deg, var(--surface), var(--bg)); }
.vis-ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; background: var(--violet-soft); color: var(--violet); margin-bottom: 1rem; }
.vis h3 { font-size: 1.08rem; margin-bottom: .45rem; }
.vis p { font-size: .92rem; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; padding: clamp(4rem, 8vw, 6.5rem) 0; background: var(--bg-deep); overflow: hidden; isolation: isolate; }
.cta-glow {
  position: absolute; inset: -50% -10% auto -10%; height: 160%; z-index: -1;
  background:
    radial-gradient(ellipse 40% 45% at 25% 60%, rgba(42,212,184,.35), transparent 70%),
    radial-gradient(ellipse 42% 45% at 72% 40%, rgba(120,100,255,.32), transparent 70%),
    radial-gradient(ellipse 30% 34% at 55% 90%, rgba(246,179,63,.20), transparent 70%);
  filter: blur(20px);
}
.cta-inner { text-align: center; max-width: 780px; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(232, 243, 246, .78); font-size: clamp(1rem, 1.3vw, 1.12rem); margin-top: 1rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; margin-top: 2rem; }
.cta-band .btn-ghost { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.24); color: #fff; }
.cta-band .btn-ghost:hover { background: rgba(255,255,255,.14); border-color: #fff; color: #fff; }
.cta-note { font-size: .85rem !important; margin-top: 1.4rem !important; color: rgba(232,243,246,.55) !important; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-soft); border-top: 1px solid var(--border); padding-top: clamp(3rem, 6vw, 4.5rem); }
.footer-top {
  display: grid; grid-template-columns: 1.6fr repeat(4, 1fr);
  gap: clamp(1.6rem, 3vw, 2.5rem);
  padding-bottom: clamp(2rem, 4vw, 3rem);
}
.footer-brand p { font-size: .9rem; color: var(--text-muted); margin-top: 1rem; max-width: 32ch; }
.footer-tagline { color: var(--brand) !important; font-weight: 600; }
.footer-col h2 { font-family: var(--font-display); font-size: .82rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text); margin-bottom: 1rem; }
.footer-col a, .contact-line {
  display: flex; align-items: flex-start; gap: .5rem;
  font-size: .9rem; color: var(--text-muted); padding: .3rem 0;
  transition: color .2s var(--ease);
}
.footer-col .icon { margin-top: .2em; }
.footer-col a:hover { color: var(--brand); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 1.3rem 0 1.6rem;
  display: flex; flex-wrap: wrap; gap: .6rem; justify-content: space-between;
  font-size: .84rem; color: var(--text-muted);
}
.footer-bottom p { color: inherit; font-size: inherit; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1080px) {
  .hero-inner { grid-template-columns: 1fr; text-align: left; }
  .hero-visual { min-height: 0; margin-top: 1rem; }
  .eco-inner { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .nav-desktop { display: none; }
  .nav-cta { display: none; }
  .burger { display: inline-flex; }
  .res-intro { grid-template-columns: 1fr; }
  .stats-inner { grid-template-columns: 1fr 1fr; gap: 1.5rem 1rem; }
  .stat:nth-child(3) { border-left: none; }
  .stat + .stat { border-left: 1px solid var(--border); }
  .stat:nth-child(odd) { border-left: none; }
  .steps li::after { display: none; }
}

@media (max-width: 640px) {
  .lang-btn .lang-code { display: none; }
  .lang-btn .chev { display: none; }
  .float-card { font-size: .74rem; padding: .5rem .65rem; }
  .fc-pay { left: -1%; top: 8%; }
  .fc-com { right: -1%; bottom: 10%; }
  .res-cta { flex-direction: column; align-items: flex-start; }
  .res-cta-actions { width: 100%; }
  .res-cta-actions .btn { flex: 1; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .vision-grid { grid-template-columns: 1fr; }
  .cta-actions .btn { width: 100%; }
  .hero-actions .btn { flex: 1 1 auto; }
}

@media (max-width: 420px) {
  .stats-inner { gap: 1.2rem .6rem; }
  .stat-label { font-size: .78rem; }
  .mobile-langs button { font-size: .82rem; padding: .6rem .5rem; }
  .eco-node span { font-size: .58rem; }
}

@media print {
  .site-header, .mobile-nav, .hero-canvas, .hero-mesh, .skip-link { display: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
