/* =========================================================
   Mettric — Design System (light · premium · matched to mettric.cloud)
   Fonts: Geist + Inter Tight + Geist Mono
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Geist:wght@300;400;500;600;700;800&family=Geist+Mono:wght@400;500;600&family=Inter+Tight:wght@400;500;600;700&family=Noto+Sans+SC:wght@300;400;500;600;700&display=swap');

:root {
  /* Surfaces — light premium */
  --bg-0: #FAFAFA;
  --bg-1: #FFFFFF;
  --bg-2: #F4F4F5;
  --bg-3: #E4E4E7;
  --surface: #FFFFFF;
  --surface-soft: #FAFAFA;
  --surface-hover: #F4F4F5;

  /* Borders */
  --border: rgba(0, 0, 0, 0.06);
  --border-strong: rgba(0, 0, 0, 0.10);
  --border-bright: rgba(0, 0, 0, 0.18);
  --border-focus: rgba(220, 38, 38, 0.40);

  /* Text */
  --text: #09090B;
  --text-secondary: #27272A;
  --text-muted: #52525B;
  --text-dim: #71717A;
  --text-faint: #A1A1AA;
  --text-inverse: #FAFAFA;

  /* Brand — Mettric official palette (from Branding Book v1)
     #8A2387 (roxo)  → criatividade
     #E94057 (vermelho) → poder
     #F27121 (laranja) → equilíbrio */
  --brand-purple: #8A2387;
  --brand-red:    #E94057;
  --brand-orange: #F27121;

  /* Aliases (legacy var names mapped to official palette) */
  --brand-1: var(--brand-purple);
  --brand-2: var(--brand-red);
  --brand-3: var(--brand-orange);

  --brand-grad: linear-gradient(135deg, #8A2387 0%, #E94057 50%, #F27121 100%);
  --brand-grad-soft: linear-gradient(135deg, rgba(138, 35, 135, 0.06) 0%, rgba(242, 113, 33, 0.06) 100%);
  --brand-grad-glow: radial-gradient(60% 60% at 50% 0%, rgba(233, 64, 87, 0.22) 0%, rgba(138, 35, 135, 0.10) 45%, transparent 75%);

  /* Primary CTA = vermelho da marca */
  --accent-red: #E94057;
  --accent-red-hover: #D6324A;
  --accent-purple: #8A2387;
  --accent-purple-hover: #6E1B6C;
  --accent-orange: #F27121;
  --accent-orange-hover: #D85F12;

  /* Soft tints for icons — derivados das 3 cores oficiais */
  --tint-purple-soft: rgba(138, 35, 135, 0.10);
  --tint-purple:      #F4E5F3;
  --tint-red-soft:    rgba(233, 64, 87, 0.10);
  --tint-red:         #FCE3E7;
  --tint-orange-soft: rgba(242, 113, 33, 0.10);
  --tint-orange:      #FDE8D6;

  /* Status (semantic, fora da paleta da marca — usado só no badge "operational") */
  --status-green: #10B981;

  /* Typography — matched to mettric.cloud (Geist + Inter Tight) */
  --font-geist: "Geist", "Geist Sans";
  --font-geist-mono: "Geist Mono";
  --font-inter-tight: "Inter Tight";
  --font-sans: var(--font-geist), var(--font-inter-tight), "Noto Sans SC",
               ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  --font-display: var(--font-geist), var(--font-inter-tight), var(--font-sans);
  --font-mono: var(--font-geist-mono), ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* Layout */
  --container: 1200px;
  --container-wide: 1320px;
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-2xl: 28px;

  /* Shadows */
  --shadow-1: 0 1px 2px rgba(15, 23, 42, .04), 0 1px 3px rgba(15, 23, 42, .04);
  --shadow-2: 0 4px 12px rgba(15, 23, 42, .04), 0 2px 4px rgba(15, 23, 42, .03);
  --shadow-3: 0 12px 32px rgba(15, 23, 42, .08), 0 4px 8px rgba(15, 23, 42, .04);
  --shadow-glow: 0 0 60px rgba(255, 92, 61, 0.18);
  --shadow-card-hover: 0 16px 48px rgba(15, 23, 42, .08), 0 4px 12px rgba(15, 23, 42, .04);

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quad: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body, h1, h2, h3, h4, h5, h6, p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; padding: 0; }
a { color: inherit; text-decoration: none; }

html, body {
  background: var(--bg-0);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  font-feature-settings: "ss01", "ss03", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

html[lang="zh"] body { font-family: "Noto Sans SC", var(--font-sans); }

::selection { background: rgba(255, 92, 61, 0.20); color: var(--text); }

/* Scrollbar (subtle) */
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--bg-0); }
::-webkit-scrollbar-thumb {
  background: var(--bg-3);
  border-radius: 8px;
  border: 3px solid var(--bg-0);
}
::-webkit-scrollbar-thumb:hover { background: var(--text-faint); }

/* Container */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.container-wide {
  max-width: var(--container-wide);
}

/* Background grid (subtle) */
.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(0,0,0,0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0,0,0,0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 30%, transparent 80%);
  pointer-events: none;
  z-index: 0;
}

/* =========================================================
   Header / Navigation
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  background: rgba(255, 255, 255, 0.78);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease-out), background .25s var(--ease-out);
}
.site-header.is-scrolled {
  border-bottom-color: var(--border);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 1px 0 rgba(0,0,0,.02);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
  gap: 32px;
}
.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  transition: opacity .2s ease;
  line-height: 1;
  flex-shrink: 0;
}
.nav-brand:hover { opacity: .85; }
.nav-brand img,
.nav-brand .brand-mark {
  height: 52px;
  width: 52px;
  display: block;
  flex-shrink: 0;
}
.nav-brand .brand-text {
  font-weight: 700;
  font-size: 26px;
  letter-spacing: -0.025em;
  white-space: nowrap;
}
.nav-brand .domain {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.78em;
  letter-spacing: -0.012em;
  margin-left: 1px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 36px;
}
.nav-links a {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 8px;
  transition: all .18s var(--ease-out);
}
.nav-links a:hover { color: var(--text); background: var(--bg-2); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

/* Language switcher */
.lang-switch { position: relative; }
.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  font-size: 13px;
  color: var(--text-secondary);
  border-radius: 8px;
  border: 1px solid transparent;
  transition: all .18s var(--ease-out);
}
.lang-btn:hover { background: var(--bg-2); }
.lang-btn .globe { width: 15px; height: 15px; }
.lang-btn .chev { width: 12px; height: 12px; opacity: .6; transition: transform .2s ease; }
.lang-switch.is-open .lang-btn .chev { transform: rotate(180deg); }

.lang-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 200px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  padding: 6px;
  box-shadow: var(--shadow-3);
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .18s var(--ease-out), transform .22s var(--ease-out), visibility .18s;
}
.lang-switch.is-open .lang-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.lang-menu button {
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  font-size: 14px;
  color: var(--text-secondary);
  border-radius: 8px;
  transition: all .15s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.lang-menu button:hover { background: var(--bg-2); color: var(--text); }
.lang-menu button.is-active { color: var(--text); background: var(--bg-2); font-weight: 500; }
.lang-menu button .flag { font-size: 16px; }
.lang-menu button .check { opacity: 0; color: var(--accent-red); font-weight: 700; }
.lang-menu button.is-active .check { opacity: 1; }

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  width: 40px; height: 40px;
  border-radius: 8px;
  align-items: center;
  justify-content: center;
  color: var(--text);
  transition: background .15s;
}
.menu-toggle:hover { background: var(--bg-2); }
.menu-toggle svg { width: 20px; height: 20px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 9px;
  transition: all .18s var(--ease-out);
  white-space: nowrap;
  border: 1px solid transparent;
  letter-spacing: -0.005em;
  position: relative;
  font-family: var(--font-sans);
}
.btn-primary {
  background: var(--accent-red);
  color: #fff;
  box-shadow: 0 1px 2px rgba(220,38,38,.20), 0 0 0 1px rgba(0,0,0,.04);
}
.btn-primary:hover {
  background: var(--accent-red-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(220,38,38,.20);
}
.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-1);
}
.btn-secondary:hover {
  background: var(--bg-2);
  border-color: var(--border-bright);
  transform: translateY(-1px);
}
.btn-ghost {
  color: var(--text-secondary);
  padding: 8px 14px;
}
.btn-ghost:hover { color: var(--text); background: var(--bg-2); }
.btn-link {
  color: var(--text-secondary);
  font-weight: 500;
  padding: 8px 0;
}
.btn-link:hover { color: var(--text); }
.btn-lg { padding: 14px 22px; font-size: 15px; border-radius: 10px; }
.btn .arrow { transition: transform .2s var(--ease-spring); }
.btn:hover .arrow { transform: translateX(3px); }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  padding: 100px 0 80px;
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 1400px;
  height: 1000px;
  background: var(--brand-grad-glow);
  pointer-events: none;
  z-index: -1;
  opacity: .9;
  animation: float-glow 14s ease-in-out infinite;
}
@keyframes float-glow {
  0%, 100% { transform: translate(-50%, 0) scale(1); }
  50% { transform: translate(-50%, 30px) scale(1.05); }
}

.hero-content {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}
.hero-content .hero-title,
.hero-content .hero-sub { margin-left: auto; margin-right: auto; }
.hero-content .hero-chips,
.hero-content .hero-cta { justify-content: center; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 100px;
  margin-bottom: 28px;
  letter-spacing: 0.005em;
  box-shadow: var(--shadow-1);
}
.hero-eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--brand-red);
  box-shadow: 0 0 0 3px rgba(233, 64, 87, .18);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(233, 64, 87, .18); }
  50% { box-shadow: 0 0 0 6px rgba(233, 64, 87, .08); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 5.6vw, 72px);
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--text);
}
.hero-title .grad {
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

.hero-sub {
  margin-top: 24px;
  font-size: clamp(16px, 1.2vw, 19px);
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 540px;
  font-weight: 400;
}
.hero-sub strong { color: var(--text); font-weight: 600; }

.hero-chips {
  margin-top: 28px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  box-shadow: var(--shadow-1);
}
.chip svg { width: 14px; height: 14px; color: var(--brand-red); }

.hero-cta {
  margin-top: 36px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-stats {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}
.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.hero-stat-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  font-family: var(--font-mono);
}
.hero-stat-label svg { width: 13px; height: 13px; color: var(--text-muted); }
.hero-stat-value {
  font-size: clamp(22px, 2vw, 30px);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text);
  font-family: var(--font-display);
  font-feature-settings: "tnum";
}
.hero-stat-foot { font-size: 12.5px; color: var(--text-dim); }

/* Hero visual / gradient blob */
.hero-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 520px;
  margin-left: auto;
  width: 100%;
}
.hero-orb {
  position: relative;
  width: 100%;
  height: 100%;
  isolation: isolate;
}
.hero-orb-bg {
  position: absolute;
  top: 8%; left: 8%;
  width: 84%; aspect-ratio: 1/1;
  border-radius: 50%;
  background: var(--brand-grad);
  filter: blur(50px);
  opacity: .55;
  animation: spin 24s linear infinite;
  z-index: 1;
}
@keyframes spin { to { transform: rotate(360deg); } }

.hero-orb-mark {
  position: absolute;
  top: 14%; left: 14%;
  width: 72%; aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: linear-gradient(180deg, #FFFFFF 0%, #FAFAFA 100%);
  border: 1px solid rgba(255,255,255,1);
  box-shadow:
    0 40px 80px rgba(233, 64, 87, .25),
    0 0 0 1px rgba(0,0,0,.05),
    inset 0 1px 0 rgba(255,255,255,.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.hero-orb-mark img { width: 60%; height: auto; animation: floaty 6s ease-in-out infinite; }
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.hero-orb-card {
  position: absolute;
  bottom: 8%;
  right: -4%;
  z-index: 3;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 18px;
  box-shadow: var(--shadow-3);
  min-width: 200px;
  animation: floaty 5s ease-in-out infinite reverse;
}
.hero-orb-card .label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin-bottom: 4px;
}
.hero-orb-card .value {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}
.hero-orb-card .value small { font-size: 13px; color: var(--text-muted); margin-left: 4px; }
.hero-orb-card .bars {
  display: flex; align-items: flex-end; gap: 3px; height: 22px; margin-top: 8px;
}
.hero-orb-card .bars span {
  flex: 1; background: var(--brand-grad); border-radius: 2px;
  animation: bar 1.4s ease-in-out infinite;
}
.hero-orb-card .bars span:nth-child(2)  { animation-delay: .1s; }
.hero-orb-card .bars span:nth-child(3)  { animation-delay: .2s; }
.hero-orb-card .bars span:nth-child(4)  { animation-delay: .3s; }
.hero-orb-card .bars span:nth-child(5)  { animation-delay: .4s; }
.hero-orb-card .bars span:nth-child(6)  { animation-delay: .5s; }
.hero-orb-card .bars span:nth-child(7)  { animation-delay: .6s; }
.hero-orb-card .bars span:nth-child(8)  { animation-delay: .7s; }
.hero-orb-card .bars span:nth-child(9)  { animation-delay: .8s; }
.hero-orb-card .bars span:nth-child(10) { animation-delay: .9s; }
.hero-orb-card .bars span:nth-child(11) { animation-delay: 1s; }
.hero-orb-card .bars span:nth-child(12) { animation-delay: 1.1s; }
@keyframes bar {
  0%, 100% { height: 30%; }
  50% { height: 100%; }
}

.hero-orb-card-top {
  position: absolute;
  top: 6%;
  left: -6%;
  z-index: 3;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px 14px;
  display: flex; align-items: center; gap: 10px;
  box-shadow: var(--shadow-3);
  animation: floaty 7s ease-in-out infinite;
}
.hero-orb-card-top .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--status-green);
  box-shadow: 0 0 0 3px rgba(16,185,129,.18);
  animation: pulse-green 2s ease-in-out infinite;
}
@keyframes pulse-green {
  0%, 100% { box-shadow: 0 0 0 3px rgba(16,185,129,.18); }
  50% { box-shadow: 0 0 0 6px rgba(16,185,129,.08); }
}
.hero-orb-card-top .text { font-size: 13px; font-weight: 500; color: var(--text); }

/* =========================================================
   Section base
   ========================================================= */
.section {
  position: relative;
  padding: 100px 0;
}
.section + .section { border-top: 1px solid var(--border); }
.section-soft { background: var(--bg-2); }

.section-header {
  max-width: 720px;
  margin: 0 auto 56px;
  text-align: center;
}
.section-header.left {
  margin-left: 0;
  margin-right: auto;
  text-align: left;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-red);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
  font-family: var(--font-mono);
}
.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-red);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
}
.section-title .grad {
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.section-sub {
  margin-top: 16px;
  font-size: 17px;
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.6;
  margin-left: auto; margin-right: auto;
}
.section-header.left .section-sub { margin-left: 0; margin-right: 0; }

/* =========================================================
   Stats grid
   ========================================================= */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-2);
}
.stat {
  padding: 36px 28px;
  border-right: 1px solid var(--border);
  position: relative;
  transition: background .25s ease;
}
.stat:hover { background: var(--bg-2); }
.stat:last-child { border-right: 0; }
.stat-icon {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--bg-2);
  border-radius: 8px;
  margin-bottom: 14px;
  color: var(--accent-red);
}
.stat-icon svg { width: 18px; height: 18px; }
.stat-value {
  font-family: var(--font-display);
  font-size: clamp(26px, 2.6vw, 34px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  font-feature-settings: "tnum";
  line-height: 1.1;
}
.stat-value .grad {
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-value small { font-size: 60%; font-weight: 600; }
.stat-label {
  margin-top: 6px;
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.005em;
}

/* =========================================================
   Cards (what we do, why, audience)
   ========================================================= */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.cards-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cards-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  position: relative;
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  transition: border-color .25s var(--ease-out), transform .35s var(--ease-out), box-shadow .25s var(--ease-out);
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--brand-grad);
  opacity: 0;
  transition: opacity .3s ease;
}
.card:hover {
  border-color: var(--border-bright);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}
.card:hover::before { opacity: 1; }
.card > * { position: relative; z-index: 1; }

.card-icon {
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 11px;
  margin-bottom: 20px;
  transition: transform .35s var(--ease-spring);
}
.card:hover .card-icon { transform: scale(1.08) rotate(-3deg); }
.card-icon svg { width: 22px; height: 22px; }

/* tinted icon variants — só cores da marca */
.card-icon.t-purple { background: var(--tint-purple); color: var(--accent-purple); }
.card-icon.t-red    { background: var(--tint-red);    color: var(--accent-red); }
.card-icon.t-orange { background: var(--tint-orange); color: var(--accent-orange); }
.card-icon.t-grad {
  background: var(--brand-grad);
  color: #fff;
}

/* legacy aliases (mantém compat com classes antigas) */
.card-icon.t-blue,
.card-icon.t-cyan { background: var(--tint-purple); color: var(--accent-purple); }
.card-icon.t-green,
.card-icon.t-amber { background: var(--tint-orange); color: var(--accent-orange); }
.card-icon.t-pink { background: var(--tint-red); color: var(--accent-red); }

.card-title {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.018em;
  margin-bottom: 8px;
  color: var(--text);
}
.card-desc {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* =========================================================
   Ecosystem grid
   ========================================================= */
.eco-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.eco-card {
  position: relative;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all .25s var(--ease-out);
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 172px;
  cursor: pointer;
  text-decoration: none;
  overflow: hidden;
}
.eco-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--brand-grad-soft);
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
}
.eco-card:hover {
  border-color: var(--border-bright);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
}
.eco-card:hover::after { opacity: 1; }
.eco-card > * { position: relative; z-index: 1; }

.eco-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.eco-icon {
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px;
  font-size: 18px;
  background: var(--bg-2);
  color: var(--text);
  transition: transform .35s var(--ease-spring);
}
.eco-icon svg { width: 20px; height: 20px; }
.eco-card:hover .eco-icon { transform: scale(1.06) rotate(-3deg); }

.eco-arrow {
  width: 30px; height: 30px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 8px;
  color: var(--text-faint);
  transition: all .25s var(--ease-out);
  background: transparent;
}
.eco-card:hover .eco-arrow {
  color: var(--accent-red);
  background: var(--bg-2);
  transform: translate(2px, -2px);
}

.eco-name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.012em;
}
.eco-desc {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.55;
}

/* =========================================================
   Stack logos grid
   ========================================================= */
.stack-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
}
.stack-cell {
  padding: 26px 12px;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  transition: background .2s ease, transform .2s ease;
  color: var(--text-secondary);
  font-size: 12.5px;
  font-weight: 500;
  text-align: center;
  letter-spacing: -0.005em;
}
.stack-cell:hover { background: var(--bg-2); }
.stack-cell svg { width: 28px; height: 28px; }

/* =========================================================
   Support strip
   ========================================================= */
.support {
  position: relative;
  padding: 120px 0;
  text-align: center;
  isolation: isolate;
  overflow: hidden;
}
.support::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(255, 154, 28, 0.10) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 50% 100%, rgba(255, 45, 122, 0.10) 0%, transparent 60%);
  z-index: -1;
}
.support h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.035em;
  max-width: 820px;
  margin: 0 auto;
  color: var(--text);
}
.support h2 .grad {
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.support p {
  margin-top: 20px;
  font-size: 17px;
  color: var(--text-muted);
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.support .btn { margin-top: 36px; }

/* =========================================================
   Final CTA
   ========================================================= */
.cta-final {
  padding: 120px 0;
  text-align: center;
}
.cta-final-card {
  position: relative;
  background: linear-gradient(180deg, var(--bg-2) 0%, var(--surface) 100%);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-2xl);
  padding: 80px 40px;
  overflow: hidden;
  isolation: isolate;
}
.cta-final-card::before {
  content: "";
  position: absolute;
  inset: -1px -1px auto -1px;
  height: 240px;
  background: radial-gradient(60% 100% at 50% 0%, rgba(255,92,61,.16) 0%, transparent 70%);
  z-index: -1;
}
.cta-final h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.4vw, 56px);
  line-height: 1.04;
  font-weight: 700;
  letter-spacing: -0.035em;
  max-width: 820px;
  margin: 0 auto;
  color: var(--text);
}
.cta-final h2 .grad {
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.cta-final p {
  margin-top: 18px;
  font-size: 17px;
  color: var(--text-muted);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.cta-final .actions {
  margin-top: 36px;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  padding: 80px 0 40px;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--border-strong);
}
.footer-brand img { height: 28px; margin-bottom: 16px; }
.footer-brand p { font-size: 14px; color: var(--text-muted); line-height: 1.6; max-width: 360px; margin-top: 8px; }
.footer-social { margin-top: 20px; display: flex; gap: 8px; }
.footer-social a {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 9px;
  color: var(--text-muted);
  transition: all .18s var(--ease-out);
}
.footer-social a:hover { color: var(--text); border-color: var(--border-bright); transform: translateY(-2px); }
.footer-social svg { width: 16px; height: 16px; }

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  margin-bottom: 16px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  font-size: 14px;
  color: var(--text-muted);
  transition: color .18s ease;
  display: inline-flex; align-items: center; gap: 6px;
}
.footer-col a:hover { color: var(--text); }
.footer-col a .ext { width: 12px; height: 12px; opacity: .5; }

.footer-bottom {
  margin-top: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 16px;
}
.footer-bottom .links { display: flex; gap: 20px; flex-wrap: wrap; }

/* =========================================================
   Responsive
   ========================================================= */
/* Hero é sempre 1 coluna agora — sem orb */
@media (max-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat { border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
  .stat:nth-child(2n) { border-right: 0; }
  .stat:nth-last-child(-n+2):not(:nth-last-child(odd)) { border-bottom: 0; }

  .eco-grid { grid-template-columns: repeat(2, 1fr); }
  .stack-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-top { grid-template-columns: 1.2fr 1fr 1fr; gap: 32px; }
  .footer-col:nth-child(4) { grid-column: span 3; padding-top: 32px; border-top: 1px solid var(--border); }
  .cards-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .nav { height: 64px; }
  .nav-links { display: none; }
  .menu-toggle { display: inline-flex; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .hero { padding: 60px 0 60px; }
  .section { padding: 70px 0; }
  .cards-grid, .cards-grid.cols-3, .cards-grid.cols-4 { grid-template-columns: 1fr; }
  .eco-grid { grid-template-columns: 1fr; }
  .stack-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-col { padding-top: 0 !important; border-top: 0 !important; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--border); }
  .stat:last-child { border-bottom: 0; }
  .support { padding: 80px 0; }
  .cta-final { padding: 80px 0; }
  .cta-final-card { padding: 56px 24px; border-radius: var(--radius-xl); }
  .nav-brand .domain { display: none; }
  .nav-brand .divider { display: none; }
  .btn-link.show-md { display: none; }
}

@media (max-width: 480px) {
  .hero-cta .btn-secondary { display: none; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
}

/* Mobile menu drawer */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--surface);
  z-index: 60;
  padding: 80px 24px 24px;
  transform: translateX(100%);
  transition: transform .35s var(--ease-out);
  overflow-y: auto;
  visibility: hidden;
}
.mobile-menu.is-open {
  transform: translateX(0);
  visibility: visible;
}
.mobile-menu nav { display: flex; flex-direction: column; gap: 4px; }
.mobile-menu nav a {
  font-size: 18px;
  font-weight: 500;
  padding: 14px 0;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}
.mobile-menu .btn { margin-top: 24px; width: 100%; }
.mobile-menu-close {
  position: absolute;
  top: 20px; right: 20px;
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 8px;
  color: var(--text);
}
.mobile-menu-close:hover { background: var(--bg-2); }
.mobile-menu-close svg { width: 22px; height: 22px; }

/* =========================================================
   Reveal animations (IntersectionObserver)
   ========================================================= */
.io-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}
.io-reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Marquee (optional decorative element) */
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* =========================================================
   Retina / high-DPI image rendering
   ========================================================= */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  img, .nav-brand img, .footer-brand img {
    image-rendering: -webkit-optimize-contrast;
  }
}

/* Print */
@media print {
  .site-header, .site-footer, .hero-orb, .hero-orb-card, .hero-orb-card-top { display: none; }
  body { background: #fff; }
}
