/* ===========================================================
   BlueKith — Site institucional · v2 "Nocturne"
   Tema escuro premium, vidro, aurora animada, grafo-constelação.
   O device (iPhone) reseta os tokens para a paleta CLARA do app.
   =========================================================== */
:root {
  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-ui: "Hanken Grotesk", -apple-system, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", monospace;

  /* acento (mais brilhante p/ fundo escuro) */
  --accent: #7b73ff;
  --accent-2: #9a93ff;
  --accent-deep: #5a52e0;
  --accent-soft: oklch(0.34 0.09 285);
  --accent-ink: oklch(0.86 0.07 285);

  /* superfícies escuras quentes-violáceas */
  --bg: oklch(0.165 0.014 285);
  --bg-2: oklch(0.195 0.015 285);
  --surface: oklch(0.225 0.014 285 / 0.72);
  --surface-solid: oklch(0.225 0.014 285);
  --surface-2: oklch(0.26 0.014 285);
  --line: oklch(1 0 0 / 0.10);
  --line-strong: oklch(1 0 0 / 0.18);
  --sep: oklch(1 0 0 / 0.08);

  --ink: oklch(0.97 0.004 285);
  --ink-2: oklch(0.78 0.01 285);
  --ink-3: oklch(0.62 0.012 285);

  /* tipos de entidade — brilhantes p/ escuro */
  --k-person: oklch(0.66 0.16 274);
  --k-person-soft: oklch(0.34 0.07 274);
  --k-company: oklch(0.74 0.14 64);
  --k-company-soft: oklch(0.34 0.06 64);
  --k-place: oklch(0.72 0.12 188);
  --k-place-soft: oklch(0.33 0.05 188);
  --k-city: oklch(0.67 0.17 14);
  --k-city-soft: oklch(0.34 0.07 14);
  --k-event: oklch(0.68 0.16 322);
  --k-event-soft: oklch(0.34 0.07 322);

  --radius: 16px;
  --radius-sm: 11px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.3), 0 1px 3px oklch(0 0 0 / 0.25);
  --shadow-md: 0 8px 26px oklch(0 0 0 / 0.4), 0 2px 8px oklch(0 0 0 / 0.3);
  --shadow-lg: 0 24px 60px oklch(0 0 0 / 0.5), 0 8px 20px oklch(0 0 0 / 0.35);
  --shadow-xl: 0 50px 110px oklch(0 0 0 / 0.6), 0 16px 40px oklch(0 0 0 / 0.4);
  --glow: 0 0 0 1px oklch(1 0 0 / 0.05), 0 18px 50px color-mix(in oklch, var(--accent) 22%, transparent);

  --maxw: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font-ui);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  letter-spacing: -0.012em;
  line-height: 1.5;
  overflow-x: hidden;
}
/* aurora de fundo global */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(1100px 720px at 78% -8%, color-mix(in oklch, var(--accent) 24%, transparent), transparent 60%),
    radial-gradient(900px 680px at 4% 12%, color-mix(in oklch, var(--k-event) 18%, transparent), transparent 58%),
    radial-gradient(1000px 800px at 50% 108%, color-mix(in oklch, var(--accent-deep) 20%, transparent), transparent 60%);
  opacity: 0.9;
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.4;
  background-image: radial-gradient(circle at 1px 1px, oklch(1 0 0 / 0.05) 1px, transparent 0);
  background-size: 34px 34px;
  -webkit-mask-image: radial-gradient(900px 600px at 50% 0%, #000, transparent 75%);
  mask-image: radial-gradient(900px 600px at 50% 0%, #000, transparent 75%);
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
img, svg { display: block; }
::selection { background: color-mix(in oklch, var(--accent) 45%, transparent); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.ic { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ===================== NAV ===================== */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklch, var(--bg) 62%, transparent);
  backdrop-filter: saturate(160%) blur(20px);
  -webkit-backdrop-filter: saturate(160%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, background .25s;
}
.nav.scrolled { border-bottom-color: var(--line); background: color-mix(in oklch, var(--bg) 80%, transparent); }
.nav-inner { display: flex; align-items: center; gap: 14px; height: 70px; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px; flex: none;
  overflow: hidden;
  display: grid; place-items: center;
  box-shadow: 0 4px 16px color-mix(in oklch, var(--accent) 55%, transparent);
}
.brand-mark img { width: 100%; height: 100%; object-fit: cover; display: block; }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 19px; letter-spacing: -0.03em; }
.brand-name span { color: var(--ink-3); font-weight: 700; }
.nav-links { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav-links a.link {
  font-size: 14.5px; font-weight: 500; color: var(--ink-2);
  padding: 8px 13px; border-radius: 10px; transition: color .15s, background .15s;
}
.nav-links a.link:hover { color: var(--ink); background: oklch(1 0 0 / 0.06); }
.nav-cta { display: flex; align-items: center; gap: 8px; margin-left: 8px; }
.nav-toggle { display: none; }

/* ===================== BOTÕES ===================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 13px;
  font-size: 15px; font-weight: 600; border: 1px solid transparent;
  letter-spacing: -0.01em; white-space: nowrap;
  transition: transform .08s, filter .16s, background .16s, border-color .16s, box-shadow .16s;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary {
  background: linear-gradient(180deg, var(--accent-2), var(--accent-deep)); color: #fff;
  box-shadow: 0 8px 24px color-mix(in oklch, var(--accent) 40%, transparent), inset 0 1px 0 oklch(1 0 0 / 0.25);
}
.btn-primary:hover { filter: brightness(1.07); box-shadow: 0 12px 34px color-mix(in oklch, var(--accent) 52%, transparent), inset 0 1px 0 oklch(1 0 0 / 0.25); }
.btn-ghost { background: oklch(1 0 0 / 0.05); color: var(--ink); border-color: var(--line-strong); backdrop-filter: blur(8px); }
.btn-ghost:hover { background: oklch(1 0 0 / 0.09); border-color: oklch(1 0 0 / 0.28); }
.btn-quiet { background: none; color: var(--ink); padding: 10px 12px; }
.btn-quiet:hover { color: var(--accent-2); }
.btn-lg { padding: 15px 27px; font-size: 16.5px; border-radius: 14px; }
.btn-sm { padding: 9px 15px; font-size: 14px; border-radius: 11px; }
.btn-white { background: #fff; color: #2a2640; }
.btn-white:hover { filter: brightness(1.02); }

/* ===================== SEÇÕES ===================== */
section { position: relative; }
.section { padding: 104px 0; }
.section-sm { padding: 64px 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 12px; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent-ink);
  background: color-mix(in oklch, var(--accent) 16%, transparent); padding: 6px 13px; border-radius: 999px;
  border: 1px solid color-mix(in oklch, var(--accent) 28%, transparent);
}
.section-head { max-width: 700px; margin: 0 auto 60px; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.section-head h2 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(32px, 5vw, 54px); letter-spacing: -0.04em; line-height: 1.0;
  margin: 20px 0 16px;
}
.section-head p { font-size: clamp(16px, 1.7vw, 19px); color: var(--ink-2); margin: 0; line-height: 1.55; }

/* ===================== HERO ===================== */
.hero { padding: 60px 0 44px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: 40px; align-items: center; }
.hero-copy { max-width: 580px; }
.hero h1 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(44px, 6.6vw, 78px); line-height: 0.97; letter-spacing: -0.045em;
  margin: 24px 0 0;
}
.hero h1 .grad {
  background: linear-gradient(104deg, var(--accent-2) 8%, var(--k-event) 92%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { font-size: clamp(17px, 1.9vw, 20px); color: var(--ink-2); line-height: 1.55; margin: 24px 0 0; max-width: 510px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-note { display: flex; align-items: center; gap: 8px; margin-top: 20px; font-size: 13.5px; color: var(--ink-3); }
.hero-note .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--k-place); box-shadow: 0 0 0 4px color-mix(in oklch, var(--k-place) 26%, transparent); }

.hero-visual { position: relative; display: grid; place-items: center; min-height: 580px; }
.hero-visual::before {
  content: ""; position: absolute; width: 460px; height: 460px; border-radius: 50%; z-index: 0;
  background: radial-gradient(circle, color-mix(in oklch, var(--accent) 50%, transparent), transparent 66%);
  filter: blur(30px); animation: pulseGlow 7s ease-in-out infinite;
}
@keyframes pulseGlow { 0%, 100% { opacity: .55; transform: scale(1); } 50% { opacity: .85; transform: scale(1.07); } }
@media (prefers-reduced-motion: reduce) { .hero-visual::before { animation: none; } }

/* chips flutuantes (vidro escuro) */
.float-chip {
  position: absolute; z-index: 3;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px 8px 9px; border-radius: 999px;
  background: oklch(0.26 0.014 285 / 0.7);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line-strong); box-shadow: var(--shadow-md);
  font-size: 13px; font-weight: 600; color: var(--ink);
  animation: floaty 6s ease-in-out infinite;
}
.float-chip .avatar-xs { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 11px; flex: none; }
.fc-1 { top: 5%; left: -5%; animation-delay: 0s; }
.fc-2 { top: 29%; right: -9%; animation-delay: -1.4s; }
.fc-3 { bottom: 19%; left: -9%; animation-delay: -2.8s; }
.fc-4 { bottom: 3%; right: -3%; animation-delay: -4.1s; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-11px); } }
@media (prefers-reduced-motion: reduce) { .float-chip { animation: none; } }

/* ===================== DEVICE — escopo CLARO ===================== */
.device {
  /* reset para a paleta clara do app, independente do tema escuro */
  --bg: oklch(0.97 0.004 95);
  --surface: oklch(1 0 0);
  --surface-2: oklch(0.975 0.005 95);
  --line: oklch(0.91 0.006 95);
  --line-strong: oklch(0.85 0.008 95);
  --sep: oklch(0.55 0.01 280 / 0.13);
  --ink: oklch(0.24 0.012 280);
  --ink-2: oklch(0.46 0.012 280);
  --ink-3: oklch(0.60 0.01 280);
  --accent: #5a52e0;
  --accent-soft: color-mix(in oklch, #5a52e0 13%, white);
  --k-person: oklch(0.54 0.15 274); --k-person-soft: oklch(0.95 0.03 274);
  --k-company: oklch(0.62 0.13 64); --k-company-soft: oklch(0.95 0.035 70);
  --k-place: oklch(0.58 0.10 188); --k-place-soft: oklch(0.95 0.03 188);
  --k-city: oklch(0.59 0.14 14); --k-city-soft: oklch(0.95 0.03 18);
  --k-event: oklch(0.56 0.13 322); --k-event-soft: oklch(0.95 0.03 322);
  --shadow-sm: 0 1px 2px oklch(0.2 0.02 280 / 0.06), 0 1px 3px oklch(0.2 0.02 280 / 0.05);

  position: relative; width: 314px; flex: none; z-index: 2;
  border-radius: 52px; padding: 12px;
  background: linear-gradient(160deg, oklch(0.32 0.012 285), oklch(0.14 0.01 285));
  box-shadow: var(--shadow-xl), var(--glow), inset 0 0 0 2px oklch(0.45 0.01 285 / .5);
}
.device-screen {
  position: relative; border-radius: 42px; overflow: hidden;
  background: var(--bg); aspect-ratio: 314 / 664;
  box-shadow: inset 0 0 0 1px oklch(0 0 0 / .35);
}
.device-notch {
  position: absolute; top: 11px; left: 50%; transform: translateX(-50%); z-index: 20;
  width: 104px; height: 30px; border-radius: 999px; background: #07070b;
}
.statusbar {
  position: absolute; top: 0; left: 0; right: 0; z-index: 15;
  height: 50px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 26px; font-size: 13px; font-weight: 650; color: var(--ink);
}
.statusbar .sb-r { display: flex; align-items: center; gap: 6px; }
.sb-bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 11px; }
.sb-bars i { width: 3px; border-radius: 1px; background: var(--ink); }
.sb-batt { width: 22px; height: 11px; border-radius: 3px; border: 1.3px solid var(--ink); position: relative; padding: 1.5px; }
.sb-batt::after { content: ""; position: absolute; right: -3px; top: 3px; width: 2px; height: 5px; border-radius: 0 2px 2px 0; background: var(--ink); }
.sb-batt i { display: block; height: 100%; width: 72%; border-radius: 1px; background: var(--ink); }

.app { position: absolute; inset: 0; display: flex; flex-direction: column; font-size: 14px; color: var(--ink); }
.app-header { padding: 50px 18px 8px; background: color-mix(in oklch, var(--bg) 74%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.app-title { font-family: var(--font-display); font-weight: 800; font-size: 25px; letter-spacing: -0.03em; line-height: 1.05; }
.app-title .sub { display: block; font-family: var(--font-ui); font-weight: 400; font-size: 13px; color: var(--ink-3); letter-spacing: -0.01em; margin-top: 3px; }
.app-body { flex: 1; overflow: hidden; padding: 6px 16px 0; display: flex; flex-direction: column; gap: 11px; }
.app-list-head { font-size: 11.5px; font-weight: 700; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.03em; margin: 10px 2px 0; }
.mini-card { display: flex; align-items: center; gap: 11px; background: var(--surface); border-radius: 15px; padding: 12px 13px; box-shadow: var(--shadow-sm); }
.mini-ava { width: 38px; height: 38px; border-radius: 11px; flex: none; display: grid; place-items: center; color: #fff; }
.mini-ava.round { border-radius: 50%; font-family: var(--font-display); font-weight: 700; font-size: 14px; }
.mini-main { min-width: 0; flex: 1; }
.mini-name { font-weight: 650; font-size: 14.5px; letter-spacing: -0.01em; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-meta { font-size: 12px; color: var(--ink-3); margin-top: 2px; display: flex; align-items: center; gap: 6px; }
.mini-meta .pipe { opacity: .4; }
.kchip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px 3px 7px; border-radius: 999px; font-size: 11px; font-weight: 600; }
.kdot { width: 8px; height: 8px; border-radius: 3px; flex: none; }
.app-input { margin: 6px 0 12px; display: flex; align-items: center; gap: 9px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 13px; padding: 11px 13px; box-shadow: var(--shadow-sm); }
.app-input .ph { color: var(--ink-3); font-size: 13.5px; flex: 1; }
.mic-btn { width: 30px; height: 30px; border-radius: 9px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex: none; }
.app-tabbar { height: 64px; flex: none; margin-top: auto; display: grid; grid-template-columns: 1fr 1fr 60px 1fr 1fr; align-items: center; border-top: 0.5px solid var(--sep); background: color-mix(in oklch, var(--bg) 80%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); position: relative; padding-bottom: 6px; }
.tabi { display: flex; flex-direction: column; align-items: center; gap: 3px; color: var(--ink-3); font-size: 9.5px; font-weight: 600; }
.tabi.on { color: var(--accent); }
.tab-fab { position: absolute; left: 50%; top: -16px; transform: translateX(-50%); width: 52px; height: 52px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; border: 4px solid var(--bg); box-shadow: 0 8px 20px color-mix(in oklch, var(--accent) 45%, transparent); }
.conf { display: flex; align-items: center; gap: 8px; }
.conf-bar { flex: 1; height: 6px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.conf-bar > span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--accent), var(--k-event)); }
.conf-val { font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-3); font-weight: 600; }
.pill-new { font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--k-place-soft); color: color-mix(in oklch, var(--k-place) 75%, black); }

/* ===================== MARQUEE de tipos ===================== */
.marquee { overflow: hidden; padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 14px; width: max-content; animation: scrollX 32s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes scrollX { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }
.mq-chip { display: inline-flex; align-items: center; gap: 9px; padding: 9px 17px 9px 11px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 14.5px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.mq-chip .nd { width: 14px; height: 14px; border-radius: 5px; flex: none; }

/* ===================== COMO FUNCIONA ===================== */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 30px 28px 32px; box-shadow: var(--shadow-md);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); overflow: hidden;
}
.step::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 1px; background: linear-gradient(90deg, transparent, oklch(1 0 0 / 0.18), transparent); }
.step-num { font-family: var(--font-mono); font-size: 12.5px; font-weight: 600; color: var(--accent-2); letter-spacing: 0.06em; }
.step h3 { font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: -0.02em; margin: 14px 0 8px; }
.step p { color: var(--ink-2); font-size: 15px; margin: 0; line-height: 1.55; }
.step-visual { margin-top: 22px; border-radius: 16px; border: 1px solid var(--line); background: oklch(0 0 0 / 0.18); padding: 16px; min-height: 134px; display: flex; flex-direction: column; gap: 9px; justify-content: center; }
.bubble { align-self: flex-start; max-width: 92%; font-size: 13px; line-height: 1.5; background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px 14px 14px 5px; padding: 10px 13px; box-shadow: var(--shadow-sm); color: var(--ink); }
.extract-row { display: flex; align-items: center; gap: 8px; }
.extract-row .kchip { box-shadow: var(--shadow-sm); }
.kchip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px 3px 7px; border-radius: 999px; font-size: 11px; font-weight: 600; }
.kdot { width: 8px; height: 8px; border-radius: 3px; flex: none; }
.mic-btn { width: 30px; height: 30px; border-radius: 9px; background: var(--accent-soft); color: var(--accent-2); display: grid; place-items: center; flex: none; }
.pill-new { font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--k-place-soft); color: color-mix(in oklch, var(--k-place) 88%, white); }
.conf { display: flex; align-items: center; gap: 8px; }
.conf-bar { flex: 1; height: 6px; border-radius: 999px; background: oklch(0 0 0 / 0.3); overflow: hidden; }
.conf-bar > span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--accent), var(--k-event)); }
.conf-val { font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-3); font-weight: 600; }
.minigraph { position: relative; height: 116px; }
.mininode { position: absolute; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 6px; background: var(--surface-2); border: 1.5px solid var(--line-strong); border-radius: 999px; padding: 4px 10px 4px 4px; box-shadow: var(--shadow-sm); font-size: 11px; font-weight: 600; color: var(--ink); }
.mininode .nd { width: 18px; height: 18px; border-radius: 50%; flex: none; }

/* ===================== RECURSOS (bento) ===================== */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px; box-shadow: var(--shadow-md); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: transform .22s, box-shadow .22s, border-color .22s; overflow: hidden;
}
.feature:hover { transform: translateY(-4px); border-color: color-mix(in oklch, var(--accent) 40%, var(--line)); box-shadow: var(--shadow-lg), 0 0 50px color-mix(in oklch, var(--accent) 14%, transparent); }
.feature.wide { grid-column: span 2; }
.f-ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px; border: 1px solid oklch(1 0 0 / 0.08); }
.feature h3 { font-family: var(--font-display); font-weight: 700; font-size: 19px; letter-spacing: -0.02em; margin: 0 0 7px; }
.feature p { color: var(--ink-2); font-size: 14.5px; margin: 0; line-height: 1.55; }

/* ===================== GRAFO (constelação) ===================== */
.graph-section { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: oklch(0.15 0.014 285 / 0.5); }
.graph-canvas { position: relative; height: 470px; margin-top: 14px; border-radius: var(--radius-lg); overflow: hidden; }
.graph-canvas .edge { stroke: oklch(1 0 0 / 0.16); }
.graph-canvas .edge.glow { animation: edgePulse 3.5s ease-in-out infinite; }
@keyframes edgePulse { 0%, 100% { stroke: oklch(1 0 0 / 0.12); } 50% { stroke: color-mix(in oklch, var(--accent) 60%, transparent); } }
@media (prefers-reduced-motion: reduce) { .graph-canvas .edge.glow { animation: none; } }
.gnode {
  position: absolute; transform: translate(-50%, -50%); z-index: 2;
  display: flex; align-items: center; gap: 9px;
  background: oklch(0.24 0.014 285 / 0.82); border: 1.5px solid var(--line-strong); border-radius: 999px;
  padding: 7px 15px 7px 7px; box-shadow: var(--shadow-md); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  max-width: 220px;
}
.gnode.self { background: linear-gradient(180deg, color-mix(in oklch, var(--accent) 34%, var(--surface-solid)), var(--surface-solid)); border-color: color-mix(in oklch, var(--accent) 55%, transparent); box-shadow: var(--shadow-md), 0 0 36px color-mix(in oklch, var(--accent) 35%, transparent); }
.gnode .gava { width: 30px; height: 30px; border-radius: 50%; flex: none; display: grid; place-items: center; color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 12px; }
.gnode .gtxt { min-width: 0; }
.gnode .gname { font-weight: 650; font-size: 13.5px; line-height: 1.15; white-space: nowrap; letter-spacing: -0.01em; }
.gnode .gsub { font-size: 10.5px; color: var(--ink-3); line-height: 1.2; }
.gbadge { position: absolute; top: -10px; left: 50%; transform: translateX(-50%); background: var(--accent); color: #fff; font-size: 9.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px; box-shadow: 0 4px 12px color-mix(in oklch, var(--accent) 50%, transparent); }
.glegend { position: absolute; right: 16px; bottom: 16px; z-index: 5; background: oklch(0.22 0.014 285 / 0.82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid var(--line-strong); border-radius: 14px; padding: 12px 14px; box-shadow: var(--shadow-md); display: grid; gap: 7px; }
.glegend .lr { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 550; color: var(--ink-2); }

/* ===================== HERO · REDE INTERATIVA ===================== */
.netgraph { position: absolute; inset: 0; z-index: 2; }
.net-edges { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 1; }
.net-edge { stroke: oklch(1 0 0 / 0.18); stroke-width: 1.6; fill: none; transition: stroke .3s ease, opacity .3s ease, stroke-width .3s ease; }
.net-edge.dashed { stroke-dasharray: 4 6; }
.net-edge.hot { stroke: color-mix(in oklch, var(--accent-2) 92%, transparent); stroke-width: 2.6; opacity: 1 !important; filter: drop-shadow(0 0 6px color-mix(in oklch, var(--accent) 55%, transparent)); }
.netgraph .gnode { cursor: pointer; max-width: 188px; will-change: transform; backface-visibility: hidden; transition: opacity .3s ease, filter .3s ease, box-shadow .25s ease, border-color .25s ease; }
.netgraph.focus .gnode:not(.hot) { opacity: .26; filter: saturate(.5); }
.netgraph.focus .net-edge:not(.hot) { opacity: .1; }
.netgraph .gnode.hot { border-color: color-mix(in oklch, var(--accent) 55%, transparent); box-shadow: var(--shadow-md), 0 0 34px color-mix(in oklch, var(--accent) 32%, transparent); }
.net-hint { position: absolute; left: 2px; top: 2px; z-index: 4; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.02em; color: var(--ink-3); display: inline-flex; align-items: center; gap: 7px; pointer-events: none; opacity: .85; }
.net-hint .ring { width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid var(--accent-2); box-shadow: 0 0 0 3px color-mix(in oklch, var(--accent) 22%, transparent); }
@media (max-width: 940px) { .netgraph .gnode { max-width: 172px; } }

/* ===================== PRIVACIDADE ===================== */
.privacy-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: center; }
.privacy-points { display: grid; gap: 6px; margin-top: 28px; }
.ppoint { display: flex; gap: 14px; padding: 18px 0; border-top: 1px solid var(--line); }
.ppoint:last-child { border-bottom: 1px solid var(--line); }
.ppoint .pic { width: 40px; height: 40px; border-radius: 12px; flex: none; display: grid; place-items: center; background: color-mix(in oklch, var(--accent) 20%, transparent); color: var(--accent-2); border: 1px solid color-mix(in oklch, var(--accent) 30%, transparent); }
.ppoint h4 { margin: 0 0 4px; font-size: 16px; font-weight: 650; letter-spacing: -0.01em; }
.ppoint p { margin: 0; color: var(--ink-2); font-size: 14.5px; line-height: 1.5; }
.privacy-card {
  background: linear-gradient(165deg, color-mix(in oklch, var(--accent) 60%, black), color-mix(in oklch, var(--accent-deep) 70%, black));
  border-radius: var(--radius-lg); padding: 42px; color: #fff; box-shadow: var(--shadow-lg), var(--glow);
  position: relative; overflow: hidden; min-height: 330px; display: flex; flex-direction: column; justify-content: center;
  border: 1px solid oklch(1 0 0 / 0.12);
}
.privacy-card::after { content: ""; position: absolute; right: -80px; top: -80px; width: 300px; height: 300px; border-radius: 50%; background: radial-gradient(circle, color-mix(in oklch, white 24%, transparent), transparent 70%); }
.privacy-card .lock { width: 58px; height: 58px; border-radius: 16px; background: oklch(1 0 0 / 0.16); display: grid; place-items: center; margin-bottom: 22px; border: 1px solid oklch(1 0 0 / 0.2); }
.privacy-card h3 { font-family: var(--font-display); font-weight: 800; font-size: 29px; letter-spacing: -0.03em; margin: 0 0 12px; line-height: 1.08; }
.privacy-card p { font-size: 16px; line-height: 1.6; color: color-mix(in oklch, white 88%, transparent); margin: 0; max-width: 380px; }

/* ===================== FAQ ===================== */
.faq { max-width: 780px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; background: none; border: none; padding: 25px 4px; text-align: left; font-size: 18px; font-weight: 650; color: var(--ink); letter-spacing: -0.015em; }
.faq-q .chev { flex: none; color: var(--ink-3); transition: transform .25s, color .25s; }
.faq-item.open .faq-q .chev { transform: rotate(90deg); color: var(--accent-2); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a-inner { padding: 0 4px 25px; color: var(--ink-2); font-size: 15.5px; line-height: 1.6; max-width: 660px; }

/* ===================== CTA FINAL ===================== */
.cta-final { text-align: center; }
.cta-box {
  position: relative; overflow: hidden;
  background: linear-gradient(150deg, var(--accent) 0%, var(--accent-deep) 55%, color-mix(in oklch, var(--accent-deep) 60%, black) 100%);
  border-radius: 32px; padding: 78px 40px; color: #fff; box-shadow: var(--shadow-xl), var(--glow);
  border: 1px solid oklch(1 0 0 / 0.14);
}
.cta-box::before { content: ""; position: absolute; inset: 0; z-index: 0; opacity: .55; background: radial-gradient(440px 300px at 16% 10%, color-mix(in oklch, var(--k-event) 70%, transparent), transparent 60%), radial-gradient(480px 320px at 90% 92%, color-mix(in oklch, var(--k-place) 55%, transparent), transparent 60%); }
.cta-box > * { position: relative; z-index: 1; }
.cta-box h2 { font-family: var(--font-display); font-weight: 800; font-size: clamp(32px, 4.8vw, 56px); letter-spacing: -0.04em; line-height: 1.0; margin: 0 0 16px; }
.cta-box p { font-size: clamp(16px, 2vw, 19px); color: color-mix(in oklch, white 90%, transparent); margin: 0 auto 34px; max-width: 500px; }

/* ===================== RODAPÉ ===================== */
.footer { padding: 70px 0 44px; border-top: 1px solid var(--line); }
.footer-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer-brand { max-width: 320px; }
.footer-brand p { color: var(--ink-3); font-size: 14px; line-height: 1.55; margin: 16px 0 0; }
.footer-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-col h5 { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-3); margin: 0 0 14px; }
.footer-col a { display: block; font-size: 14.5px; color: var(--ink-2); padding: 6px 0; transition: color .15s; }
.footer-col a:hover { color: var(--accent-2); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 50px; padding-top: 28px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-3); }
.footer-bottom .mono { font-family: var(--font-mono); }

/* ===================== REVEAL ===================== */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.3,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ===================== RESPONSIVO ===================== */
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; gap: 52px; }
  .hero-copy { max-width: 620px; }
  .hero-visual { min-height: 560px; }
  .steps { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr 1fr; }
  .feature.wide { grid-column: span 2; }
  .privacy-grid { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 720px) {
  .wrap { padding: 0 20px; }
  .section { padding: 76px 0; }
  .nav-links { display: none; }
  .nav-toggle { display: grid; place-items: center; margin-left: auto; width: 42px; height: 42px; border-radius: 11px; border: 1px solid var(--line-strong); background: oklch(1 0 0 / 0.05); color: var(--ink); }
  .nav.menu-open .nav-links { display: flex; flex-direction: column; align-items: stretch; gap: 4px; position: absolute; top: 70px; left: 0; right: 0; background: color-mix(in oklch, var(--bg) 92%, transparent); backdrop-filter: blur(20px); border-bottom: 1px solid var(--line); padding: 16px 20px 22px; }
  .nav.menu-open .nav-links a.link { padding: 12px 14px; font-size: 16px; }
  .nav.menu-open .nav-cta { margin: 8px 0 0; }
  .nav.menu-open .nav-cta .btn { flex: 1; }
  .features { grid-template-columns: 1fr; }
  .feature.wide { grid-column: span 1; }
  .footer-cols { gap: 40px; }
  .cta-box { padding: 56px 26px; }
  .graph-canvas { height: 540px; }
}
@media (max-width: 420px) { .device { width: 282px; } }

/* ===================== SELETOR DE IDIOMA ===================== */
/* Portado de apps/app/src/components/LanguageSwitcher.vue (mesmos tokens). */
.lang-select {
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--ink-2);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  min-height: 36px;
  cursor: pointer;
  transition: color .15s, border-color .15s;
}
.lang-select:hover { color: var(--ink); border-color: oklch(1 0 0 / 0.28); }
.lang-select:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
/* dropdown nativo: garante legibilidade no tema escuro (navegadores que respeitam) */
.lang-select option { background: var(--surface-solid); color: var(--ink); }
@media (max-width: 720px) {
  .nav.menu-open .nav-cta { flex-wrap: wrap; }
  .nav.menu-open .lang-select { flex: 1 1 100%; }
}

/* ===================== RTL (árabe) ===================== */
/* dir="rtl" espelha o fluxo de texto; propriedades físicas precisam de override. */
[dir="rtl"] .nav-links { margin-left: 0; margin-right: auto; }
[dir="rtl"] .nav-cta { margin-left: 0; margin-right: 8px; }
[dir="rtl"] .nav-toggle { margin-left: 0; margin-right: auto; }
[dir="rtl"] .faq-q { text-align: right; }
[dir="rtl"] .faq-q .chev { transform: scaleX(-1); }
[dir="rtl"] .faq-item.open .faq-q .chev { transform: rotate(90deg); }
[dir="rtl"] .bubble { border-radius: 14px 14px 5px 14px; }
[dir="rtl"] .legal-prose { text-align: right; }
[dir="rtl"] .legal-prose ul, [dir="rtl"] .legal-prose ol { padding-left: 0; padding-right: 22px; }

/* ===================== PÁGINAS LEGAIS (privacy/terms) ===================== */
.legal { padding: 64px 0 72px; }
.legal-prose { max-width: 768px; margin: 0 auto; }
.legal-prose h1 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(30px, 4.4vw, 46px); letter-spacing: -0.035em; line-height: 1.06; margin: 14px 0 6px;
}
.legal-meta { font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-3); letter-spacing: 0.02em; margin: 0 0 18px; }
.legal-lead { font-size: 17px; color: var(--ink-2); line-height: 1.6; margin: 12px 0 6px; }
.legal-prose h2 {
  font-family: var(--font-display); font-weight: 700; font-size: 22px;
  letter-spacing: -0.02em; line-height: 1.2; margin: 40px 0 10px;
}
.legal-prose h3 { font-weight: 650; font-size: 16.5px; color: var(--ink); margin: 22px 0 6px; }
.legal-prose p { color: var(--ink-2); font-size: 15.5px; line-height: 1.7; margin: 10px 0; }
.legal-prose ul, .legal-prose ol { color: var(--ink-2); font-size: 15.5px; line-height: 1.7; padding-left: 22px; margin: 10px 0; }
.legal-prose li { margin: 6px 0; }
.legal-prose a { color: var(--accent-2); text-decoration: underline; text-underline-offset: 2px; }
.legal-prose strong { color: var(--ink); font-weight: 650; }
.legal-prose .ph {
  color: var(--accent-ink); font-family: var(--font-mono); font-size: 0.9em;
  background: color-mix(in oklch, var(--accent) 16%, transparent);
  padding: 1px 6px; border-radius: 6px; white-space: nowrap;
}
.legal-note {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px; margin: 22px 0; font-size: 14.5px; color: var(--ink-2); line-height: 1.65;
}
.legal-note strong { color: var(--ink); }
/* blocos por idioma: sem JS mostra só EN; o i18n.js alterna via display inline. */
.lang-block { display: none; }
.lang-block[data-lang="en"] { display: block; }
