:root {
  --bg: #000;
  --text: #f0f0f0;
  --muted: #a1a4a5;
  --border: rgba(255, 255, 255, 0.1);
  --border-soft: rgba(255, 255, 255, 0.06);
  --surface: rgba(255, 255, 255, 0.03);
  --surface-hover: rgba(255, 255, 255, 0.07);
  --header-bg: rgba(0, 0, 0, 0.6);
  --nav-mobile-bg: rgba(0, 0, 0, 0.97);
  --dropdown-bg: #0a0a0a;
  --dropdown-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
  --btn-bg: rgba(255, 255, 255, 0.08);
  --btn-bg-hover: rgba(255, 255, 255, 0.14);
  --btn-border: rgba(255, 255, 255, 0.07);
  --btn-border-hover: rgba(255, 255, 255, 0.14);
  --btn-text: #fff;
  --input-placeholder: #6b6e70;
  --input-focus-border: rgba(255, 255, 255, 0.35);
  --hero-glow: rgba(0, 212, 255, 0.4);
  --hero-grad-from: #fff;
  --hero-grad-to: rgba(255, 255, 255, 0.5);
  --pill-bg: rgba(255, 255, 255, 0.02);
  --pill-bg-hover: rgba(255, 255, 255, 0.07);
  --card-hover-border: rgba(255, 255, 255, 0.18);
  --tag-hl-text: #fff;
  --preview-base: #050505;
  --preview-grid: rgba(255, 255, 255, 0.035);
  --panel-solid: #0a0a0a;
  --radius: 16px;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --display: var(--serif);
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}

[data-theme="light"] {
  --bg: #f7f7f5;
  --text: #111111;
  --muted: #5c5f61;
  --border: rgba(0, 0, 0, 0.1);
  --border-soft: rgba(0, 0, 0, 0.06);
  --surface: #ffffff;
  --surface-hover: rgba(0, 0, 0, 0.04);
  --header-bg: rgba(247, 247, 245, 0.85);
  --nav-mobile-bg: rgba(247, 247, 245, 0.98);
  --dropdown-bg: #ffffff;
  --dropdown-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  --btn-bg: rgba(0, 0, 0, 0.06);
  --btn-bg-hover: rgba(0, 0, 0, 0.1);
  --btn-border: rgba(0, 0, 0, 0.1);
  --btn-border-hover: rgba(0, 0, 0, 0.18);
  --btn-text: #111111;
  --input-placeholder: #8a8d90;
  --input-focus-border: rgba(0, 0, 0, 0.35);
  --hero-glow: rgba(0, 180, 255, 0.32);
  --hero-grad-from: #111111;
  --hero-grad-to: rgba(17, 17, 17, 0.55);
  --pill-bg: rgba(0, 0, 0, 0.03);
  --pill-bg-hover: rgba(0, 0, 0, 0.06);
  --card-hover-border: rgba(0, 0, 0, 0.18);
  --tag-hl-text: #111111;
  --preview-base: #ecece8;
  --preview-grid: rgba(0, 0, 0, 0.05);
  --panel-solid: #ffffff;
  color-scheme: light;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }

/* HEADER */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 78px;
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.header-inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 64px 0 24px; /* espaço à direita pro theme-toggle */
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.logo {
  position: absolute;
  left: 24px;
  display: flex;
  align-items: center;
  text-decoration: none;
}
.logo-mark {
  height: 28px;
  width: auto;
  display: block;
}
/* Dark theme (default): white mark; light theme: black mark */
.logo-mark--light { display: none; }
[data-theme="light"] .logo-mark--dark { display: none; }
[data-theme="light"] .logo-mark--light { display: block; }

/* MENU HAMBÚRGUER — só aparece em mobile (ver @media 720px) */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
  width: 40px;
  height: 40px;
  position: relative;
  z-index: 101;
}
.menu-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 200ms ease, opacity 150ms ease;
}
.menu-toggle.is-open .menu-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.is-open .menu-toggle-bar:nth-child(2) { opacity: 0; }
.menu-toggle.is-open .menu-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* THEME TOGGLE */
.theme-toggle {
  position: absolute;
  right: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  z-index: 101;
  transition: background 150ms, border-color 150ms;
}
.theme-toggle:hover { background: var(--surface-hover); border-color: var(--border); }
.theme-toggle svg { width: 16px; height: 16px; display: block; }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
.theme-toggle.is-light .icon-sun { display: block; }
.theme-toggle.is-light .icon-moon { display: none; }


.nav { display: flex; align-items: center; gap: 4px; list-style: none; }

.nav button {
  background: none;
  border: 0;
  color: var(--text);
  font: 400 15px var(--sans);
  padding: 8px 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  border-radius: 8px;
  transition: color 150ms;
}

.nav button:hover { color: var(--muted); }
.nav svg { width: 10px; height: 10px; opacity: 0.6; }

.nav li { position: relative; }
.nav .dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 180px;
  padding: 8px;
  /* sem margin-top: um gap aqui tira o mouse do hover antes de alcançar o card.
     o respiro visual vem do padding-top, que ainda conta como área "dentro" do dropdown. */
  padding-top: 14px;
  margin-top: -6px;
  background: var(--dropdown-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--dropdown-shadow);
  z-index: 110;
}
.nav li.has-dropdown.open .dropdown { display: block; }
.nav .dropdown a {
  display: block;
  padding: 9px 12px;
  border-radius: 8px;
  font: 400 14px var(--sans);
  color: var(--text);
  transition: background 150ms;
}
.nav .dropdown a:hover { background: var(--surface-hover); }

/* MEGA MENU (estilo resend.com: card translúcido com lista + previews) */
.nav .dropdown.mega {
  display: none;
  min-width: 520px;
  padding: 12px;
  padding-top: 18px;
  background: var(--dropdown-bg);
  /* opaco de propósito: blur não substitui opacidade — o hero não deve vazar por baixo */
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  z-index: 110;
}
.nav li.has-dropdown.open .dropdown.mega { display: flex; }
.mega-list {
  width: 150px;
  flex: none;
  border-right: 1px solid var(--border-soft);
  padding-right: 8px;
  margin-right: 8px;
}
.mega-list a {
  display: block;
  padding: 9px 12px;
  border-radius: 8px;
  font: 400 14px var(--sans);
  color: var(--text);
  transition: background 150ms;
}
.mega-list a:hover, .mega-list a.active { background: var(--surface-hover); }
.mega-cards {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.mega-card {
  display: block;
  padding: 12px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  transition: background 150ms, border-color 150ms;
}
.mega-card:hover { background: var(--surface-hover); border-color: var(--border); }
.mega-card h4 { font: 500 14px var(--sans); color: var(--text); margin-bottom: 4px; }
.mega-card p { font: 400 13px var(--sans); color: var(--muted); line-height: 1.4; }
.mega-list-label {
  display: block;
  padding: 9px 12px;
  border-radius: 8px;
  font: 400 14px var(--sans);
  color: var(--muted);
}

/* DISABLED NAV ITEMS (empty / placeholder destinations) */
.nav button.nav-disabled,
.nav .nav-disabled {
  color: color-mix(in srgb, var(--muted) 72%, var(--bg));
  cursor: not-allowed;
  opacity: 0.72;
}
.nav button.nav-disabled:hover,
.nav .nav-disabled:hover {
  color: color-mix(in srgb, var(--muted) 72%, var(--bg));
  background: transparent;
}
.nav button.nav-disabled:focus {
  outline: none;
}
.mega-card.nav-disabled {
  display: block;
  padding: 12px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  color: color-mix(in srgb, var(--muted) 80%, var(--bg));
  cursor: not-allowed;
  opacity: 0.7;
  pointer-events: none;
  transition: none;
}
.mega-card.nav-disabled:hover {
  background: var(--surface);
  border-color: var(--border-soft);
}
.mega-card.nav-disabled h4 {
  font: 500 14px var(--sans);
  color: color-mix(in srgb, var(--muted) 85%, var(--text));
  margin-bottom: 4px;
}
.mega-card.nav-disabled p {
  font: 400 13px var(--sans);
  color: color-mix(in srgb, var(--muted) 70%, var(--bg));
  line-height: 1.4;
}
.btn-text.nav-disabled,
span.nav-disabled.btn-text {
  color: color-mix(in srgb, var(--muted) 72%, var(--bg));
  cursor: not-allowed;
  opacity: 0.72;
  pointer-events: none;
}
.btn-text.nav-disabled:hover {
  color: color-mix(in srgb, var(--muted) 72%, var(--bg));
}

/* BOTÕES */
.btn {
  display: inline-flex;
  align-items: center;
  height: 42px;
  padding: 0 20px;
  border-radius: var(--radius);
  border: 2px solid var(--btn-border);
  background: var(--btn-bg);
  color: var(--btn-text);
  font: 600 15px var(--sans);
  cursor: pointer;
  transition: background 150ms, border-color 150ms;
}

.btn:hover { background: var(--btn-bg-hover); border-color: var(--btn-border-hover); }
.btn-text {
  color: var(--muted);
  font: 500 15px var(--sans);
  padding: 0 12px;
  min-height: 42px;
  height: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  max-width: min(100%, 280px);
  text-align: center;
  line-height: 1.35;
  white-space: normal;
  transition: color 150ms;
}
.btn-text:hover { color: var(--text); }

/* HERO */
.hero { position: relative; overflow: hidden; }


/* Full-bleed neon data river — structural mid-hero band (not photo overlay)
   Dark: glow #004D66, core #006680; particles #33BBDD / #66CCEE
   Light: graphite packets (#5B6470 / #374151) + soft blue-gray canal; wider edge fade (~36% each side)
   Dark soft edge fade ~18–24% each side; --neon-boost / --neon-jx|--neon-jy from JS */
.hero-neon-river {
  --neon-boost: 1;
  --neon-glow: #004D66;
  --neon-core: #006680;
  --neon-particle: #33BBDD;
  --neon-particle-hi: #66CCEE;
  position: absolute;
  left: 50%;
  top: 46%;
  width: 100vw;
  height: 140px;
  transform: translateX(-50%) rotate(9deg);
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 0, 0, 0.08) 6%,
    rgba(0, 0, 0, 0.28) 12%,
    rgba(0, 0, 0, 0.62) 18%,
    #000 24%,
    #000 76%,
    rgba(0, 0, 0, 0.62) 82%,
    rgba(0, 0, 0, 0.28) 88%,
    rgba(0, 0, 0, 0.08) 94%,
    transparent 100%
  );
  mask-image: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 0, 0, 0.08) 6%,
    rgba(0, 0, 0, 0.28) 12%,
    rgba(0, 0, 0, 0.62) 18%,
    #000 24%,
    #000 76%,
    rgba(0, 0, 0, 0.62) 82%,
    rgba(0, 0, 0, 0.28) 88%,
    rgba(0, 0, 0, 0.08) 94%,
    transparent 100%
  );
}

/* Light mode: graphite packets (soft blue-gray canal glow) + wider soft edge fade */
[data-theme="light"] .hero-neon-river {
  --neon-glow: #6B7280;      /* soft graphite glow */
  --neon-core: #4B5563;
  --neon-particle: #5B6470;
  --neon-particle-hi: #374151; /* grafite */
  /* Wider softer side fade (~36% each side) so rotated overflow:hidden tips disappear */
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 0, 0, 0.03) 8%,
    rgba(0, 0, 0, 0.12) 16%,
    rgba(0, 0, 0, 0.32) 24%,
    rgba(0, 0, 0, 0.62) 30%,
    #000 36%,
    #000 64%,
    rgba(0, 0, 0, 0.62) 70%,
    rgba(0, 0, 0, 0.32) 76%,
    rgba(0, 0, 0, 0.12) 84%,
    rgba(0, 0, 0, 0.03) 92%,
    transparent 100%
  );
  mask-image: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 0, 0, 0.03) 8%,
    rgba(0, 0, 0, 0.12) 16%,
    rgba(0, 0, 0, 0.32) 24%,
    rgba(0, 0, 0, 0.62) 30%,
    #000 36%,
    #000 64%,
    rgba(0, 0, 0, 0.62) 70%,
    rgba(0, 0, 0, 0.32) 76%,
    rgba(0, 0, 0, 0.12) 84%,
    rgba(0, 0, 0, 0.03) 92%,
    transparent 100%
  );
  -webkit-mask-mode: alpha;
  mask-mode: alpha;
}

/* Light: soften canal glow so it doesn't punch hard at the faded ends */
[data-theme="light"] .hero-neon-river::before {
  background: linear-gradient(
    90deg,
    transparent 0%,
    transparent 14%,
    color-mix(in srgb, var(--neon-glow) 3%, transparent) 22%,
    color-mix(in srgb, var(--neon-glow) 12%, transparent) 30%,
    color-mix(in srgb, var(--neon-core) 40%, transparent) 40%,
    color-mix(in srgb, var(--neon-core) 82%, transparent) 50%,
    color-mix(in srgb, var(--neon-core) 40%, transparent) 60%,
    color-mix(in srgb, var(--neon-glow) 12%, transparent) 70%,
    color-mix(in srgb, var(--neon-glow) 3%, transparent) 78%,
    transparent 86%,
    transparent 100%
  );
}

[data-theme="light"] .hero-neon-river::after {
  background: linear-gradient(
    90deg,
    transparent 0%,
    transparent 18%,
    color-mix(in srgb, var(--neon-glow) 2%, transparent) 28%,
    color-mix(in srgb, var(--neon-core) 12%, transparent) 50%,
    color-mix(in srgb, var(--neon-glow) 2%, transparent) 72%,
    transparent 82%,
    transparent 100%
  );
}


.hero-neon-river::before {
  content: "";
  position: absolute;
  left: -2%;
  right: -2%;
  top: 50%;
  height: 44px;
  transform: translateY(-50%);
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    color-mix(in srgb, var(--neon-glow) 4%, transparent) 8%,
    color-mix(in srgb, var(--neon-glow) 18%, transparent) 16%,
    color-mix(in srgb, var(--neon-core) 48%, transparent) 30%,
    color-mix(in srgb, var(--neon-core) 88%, transparent) 50%,
    color-mix(in srgb, var(--neon-core) 48%, transparent) 70%,
    color-mix(in srgb, var(--neon-glow) 18%, transparent) 84%,
    color-mix(in srgb, var(--neon-glow) 4%, transparent) 92%,
    transparent 100%
  );
  box-shadow:
    0 0 18px 3px color-mix(in srgb, var(--neon-glow) 58%, transparent),
    0 0 48px 10px color-mix(in srgb, var(--neon-glow) 34%, transparent),
    0 0 90px 22px color-mix(in srgb, var(--neon-core) 18%, transparent);
  filter: blur(6px);
  animation: neon-pulse 2.8s ease-in-out infinite;
}

.hero-neon-river::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 12%;
  bottom: 12%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    color-mix(in srgb, var(--neon-glow) 3%, transparent) 10%,
    color-mix(in srgb, var(--neon-core) 16%, transparent) 50%,
    color-mix(in srgb, var(--neon-glow) 3%, transparent) 90%,
    transparent 100%
  );
  filter: blur(28px);
}

.hero .wrap {
  position: relative;
  z-index: 1;
  padding-top: 150px;
  padding-bottom: 130px;
  text-align: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(120, 140, 255, 0.35);
  background: var(--pill-bg);
  font-size: 13px;
  margin-bottom: 36px;
  transition: background 150ms;
}
.pill:hover { background: var(--pill-bg-hover); }

.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 96px;
  line-height: 1.12;
  letter-spacing: 0.02em;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  background: linear-gradient(to right bottom, var(--hero-grad-from) 30%, var(--hero-grad-to));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 28px;
}

.hero p {
  font-size: 18px;
  line-height: 1.5;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 32px;
  text-align: center;
}
.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}


/* Data packets flowing along the hero neon river */
.neon-packets {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.neon-packet {
  --neon-jx: 0px;
  --neon-jy: 0px;
  position: absolute;
  top: 46%;
  width: 7px;
  height: 7px;
  border-radius: 1.5px;
  background: var(--neon-particle-hi, #66CCEE);
  box-shadow:
    0 0 6px 1px color-mix(in srgb, var(--neon-particle-hi) 95%, transparent),
    0 0 14px 3px color-mix(in srgb, var(--neon-glow) 55%, transparent);
  opacity: 0;
  /* Individual translate composes with keyframe transform (qubit jitter) */
  translate: var(--neon-jx) var(--neon-jy);
  animation: neon-flow 2.4s linear infinite;
}
.neon-packet.is-dormant {
  animation: none !important;
  opacity: 0 !important;
  visibility: hidden;
}
.neon-packet:nth-child(odd) {
  background: var(--neon-particle, #33BBDD);
  box-shadow:
    0 0 6px 1px color-mix(in srgb, var(--neon-particle) 90%, transparent),
    0 0 12px 2px color-mix(in srgb, var(--neon-core) 50%, transparent);
}
.neon-packet:nth-child(1) { animation-delay: 0s; top: 44%; width: 6px; height: 6px; }
.neon-packet:nth-child(2) { animation-delay: 0.7s; top: 50%; width: 5px; height: 5px; }
.neon-packet:nth-child(3) { animation-delay: 1.4s; top: 42%; width: 8px; height: 8px; }
.neon-packet:nth-child(4) { animation-delay: 2.1s; top: 48%; width: 5px; height: 5px; }
.neon-packet:nth-child(5) { animation-delay: 2.8s; top: 45%; width: 6px; height: 6px; }
.neon-packet:nth-child(6) { animation-delay: 3.5s; top: 52%; width: 4px; height: 4px; }
.neon-packet:nth-child(7) { animation-delay: 1.05s; top: 47%; width: 7px; height: 7px; }
.neon-packet:nth-child(8) { animation-delay: 3.0s; top: 43%; width: 5px; height: 5px; }


@keyframes neon-flow {
  0%   { left: -4%; opacity: 0; transform: translateY(0) scale(0.7); }
  8%   { opacity: 1; }
  50%  { opacity: 1; transform: translateY(-1px) scale(1); }
  92%  { opacity: 0.85; }
  100% { left: 104%; opacity: 0; transform: translateY(1px) scale(0.75); }
}
@keyframes neon-pulse {
  0%, 100% { opacity: 0.75; filter: brightness(0.95) blur(6px); }
  50% { opacity: 1; filter: brightness(1.15) blur(5px); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-neon-river::before,
  .neon-packet {
    animation: none !important;
  }
  .neon-packet {
    display: none;
  }
  .hero-neon-river::before { opacity: 0.95; }
}

@media (max-width: 720px) {
  .hero-neon-river { height: 100px; }
  .neon-packet { width: 4px; height: 4px; }
}


/* SEÇÕES */
section.block { padding: 96px 0; border-top: 1px solid var(--border-soft); }

.eyebrow { font-size: 14px; color: var(--muted); margin-bottom: 16px; }

h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 56px;
  line-height: 1.05;
  letter-spacing: 0.02em;
  margin-bottom: 20px;
  max-width: 720px;
}

.lead { color: var(--muted); font-size: 18px; max-width: 620px; margin-bottom: 56px; }

/* CARDS */
.cards { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.cards > .card { grid-column: span 2; }
.cards > .card.half { grid-column: span 3; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  transition: background 150ms, border-color 150ms;
}
.card:hover { background: var(--surface-hover); border-color: var(--card-hover-border); }
.card h3 { font-family: var(--serif); font-size: 22px; font-weight: 400; letter-spacing: 0.02em; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 15px; line-height: 1.6; flex: 1; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.tag {
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
}
.tag.hl { color: var(--tag-hl-text); border-color: rgba(120, 140, 255, 0.5); }


/* QUALIDADE */
.mini-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 40px; }
.mini h3 { font-family: var(--serif); font-size: 20px; font-weight: 400; letter-spacing: 0.02em; margin-bottom: 8px; }
.mini p { color: var(--muted); font-size: 14px; line-height: 1.6; }

.frame {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 8px;
}
.frame iframe { display: block; width: 100%; height: 800px; border: 0; border-radius: 10px; background: #fff; }
.frame-bar { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px 14px; font-size: 13px; color: var(--muted); }
.frame-bar a { color: var(--text); }
.frame-bar a:hover { color: var(--muted); }

/* SOBRE */
.about { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: start; }
.about p { color: var(--muted); margin-bottom: 16px; }

.list { list-style: none; margin-top: 24px; }
.list li { padding: 12px 0; border-top: 1px solid var(--border-soft); color: var(--muted); font-size: 15px; display: flex; gap: 12px; }
.list li::before { content: "→"; color: var(--text); }
.list li strong { color: var(--text); font-weight: 500; }

/* NÚMEROS */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.stat { padding: 32px 28px; border-left: 1px solid var(--border); }
.stat:first-child { border-left: 0; }
.stat b { display: block; font-family: var(--serif); font-weight: 400; font-size: 48px; line-height: 1; margin-bottom: 8px; }
.stat span { color: var(--muted); font-size: 14px; }

/* CONTATO */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
form { display: flex; flex-direction: column; gap: 12px; }
input, textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 13px 16px;
  color: var(--text);
  font: 400 15px var(--sans);
  outline: none;
  transition: border-color 150ms;
}
input::placeholder, textarea::placeholder { color: var(--input-placeholder); }
input:focus, textarea:focus { border-color: var(--input-focus-border); }
textarea { min-height: 120px; resize: vertical; }
form .btn { align-self: flex-start; }
.contact-info { color: var(--muted); font-size: 15px; line-height: 2; }
.contact-info strong { color: var(--text); font-weight: 500; }

/* FOOTER */
footer { border-top: 1px solid var(--border-soft); padding: 40px 0; color: var(--muted); font-size: 13px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }

@media (max-width: 900px) {
  .hero h1 { font-size: 64px; }
  h2 { font-size: 40px; }
  .cards { grid-template-columns: 1fr 1fr; }
  .cards > .card, .cards > .card.half { grid-column: auto; }
  .mini-grid { grid-template-columns: 1fr 1fr; }
  .about, .contact { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--border); }
}

@media (max-width: 720px) {
  .menu-toggle { display: flex; margin-left: auto; }
  .logo { position: static; }
  .header-inner { justify-content: flex-start; padding-right: 24px; }

  /* nav vira overlay full-screen abaixo do header, aberto/fechado pelo
     botão hambúrguer (ver JS no fim de cada página). height explícito em
     vez de confiar no auto-stretch de top+bottom: com overflow-y:auto o
     Chrome estava colapsando a altura para o tamanho do 1º item (48px)
     em vez de esticar até bottom:0, cortando o resto do menu */
  nav#mainNav {
    display: none;
    position: fixed;
    top: 78px;
    left: 0;
    right: 0;
    height: calc(100vh - 78px);
    background: var(--nav-mobile-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    overflow-y: auto;
    padding: 8px 24px 40px;
    z-index: 99;
  }

  .theme-toggle {
    right: 64px;
  }
  nav#mainNav.nav-open { display: block; }

  .nav { flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
  .nav li { width: 100%; }
  .nav button {
    width: 100%;
    justify-content: space-between;
    padding: 16px 8px;
    font-size: 17px;
    border-bottom: 1px solid var(--border-soft);
    border-radius: 0;
  }
  .nav svg { transition: transform 200ms; }
  .nav li.has-dropdown.open > button svg { transform: rotate(180deg); }

  /* dropdowns (inclui mega-menu) viram blocos inline expansíveis, sem
     posicionamento absoluto — abrem só via .open (JS).
     !important mantém o display mobile acima das regras desktop de .open */
  .nav .dropdown,
  .nav .dropdown.mega {
    display: none !important;
    position: static;
    transform: none;
    min-width: auto;
    width: 100%;
    padding: 4px 0 12px 12px;
    margin: 0;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    box-shadow: none;
    flex-direction: column;
  }
  .nav li.has-dropdown.open .dropdown,
  .nav li.has-dropdown.open .dropdown.mega { display: flex !important; }
  .mega-list { display: none; }
  .mega-cards { flex-direction: column; width: 100%; gap: 8px; }
  .mega-card { width: 100%; padding: 10px 12px; }

  .hero .wrap { padding-top: 96px; padding-bottom: 80px; }
  .hero h1 { font-size: 46px; }
  h2 { font-size: 34px; }
  section.block { padding: 64px 0; }
  .cards, .mini-grid { grid-template-columns: 1fr; }
  .frame iframe { height: 620px; }
}

/* CARTÃO CLICÁVEL COM PRÉVIA */
a.card { color: inherit; }
.preview {
  aspect-ratio: 16 / 10;
  border-radius: 10px;
  border: 1px solid var(--border-soft);
  margin-bottom: 22px;
  overflow: hidden;
  position: relative;
  background:
    radial-gradient(120% 90% at 20% 0%, rgba(120, 140, 255, 0.14), transparent 60%),
    linear-gradient(var(--preview-grid) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, var(--preview-grid) 1px, transparent 1px) 0 0 / 28px 28px,
    var(--preview-base);
}
.preview img { width: 100%; height: 100%; object-fit: cover; object-position: top left; display: block; }
.preview.contain img { object-fit: contain; object-position: center; }
.card .more { margin-top: 20px; font-size: 14px; color: var(--text); display: inline-flex; gap: 6px; transition: gap 150ms; }
a.card:hover .more { gap: 10px; }

/* PÁGINA DE SISTEMA */
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 28px; display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--text); }
.page-hero .wrap { padding-top: 96px; padding-bottom: 72px; }
.page-hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 80px;
  line-height: 1;
  letter-spacing: 0.02em;
  max-width: 760px;
  background: linear-gradient(to right bottom, var(--hero-grad-from) 30%, var(--hero-grad-to));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 24px;
}
.page-hero p { font-size: 18px; color: var(--muted); max-width: 640px; margin-bottom: 28px; }
.page-hero .tags { margin: 0 0 32px; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.card.static:hover { background: var(--surface); border-color: var(--border); }
.card ul { list-style: none; margin-top: 4px; }
.card li { color: var(--muted); font-size: 15px; padding: 9px 0; border-top: 1px solid var(--border-soft); display: flex; gap: 10px; }
.card li:first-child { border-top: 0; }
.card li::before { content: "→"; color: var(--text); }
.card li strong { color: var(--text); font-weight: 500; }

.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.gallery figure { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); padding: 8px; overflow: hidden; }
.gallery figure.full { grid-column: 1 / -1; }
.gallery img { width: 100%; height: auto; display: block; border-radius: 10px; cursor: zoom-in; transition: transform 0.25s ease; }
.gallery img:hover { transform: scale(1.04); }
.gallery figcaption { padding: 12px 8px 6px; font-size: 14px; color: var(--muted); }
.gallery figcaption b { color: var(--text); font-weight: 500; }

/* LIGHTBOX — zoom das telas ao clicar */
.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(4px);
  padding: 48px 24px;
  cursor: zoom-out;
  align-items: center;
  justify-content: center;
}
.lightbox-overlay.is-open { display: flex; }
.lightbox-overlay img {
  max-width: 100%;
  max-height: calc(100vh - 96px);
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  cursor: default;
}
.lightbox-close {
  position: fixed;
  top: 20px;
  right: 24px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
@media (max-width: 720px) {
  .lightbox-overlay { padding: 24px 12px; }
  .lightbox-close { top: 12px; right: 12px; }
}

/* PAINEL DE OBSERVABILIDADE (estilo resend.com/home: lista de execuções +
   detalhe da etapa selecionada) — aqui mostra leituras/etapas de uma carga */
.obs-panel {
  display: flex;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  min-height: 420px;
}
.obs-sidebar {
  width: 380px;
  flex: none;
  border-right: 1px solid var(--border-soft);
  padding: 16px;
}
.obs-crumb { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.obs-crumb b { color: var(--text); font-weight: 500; }
.obs-tabs { display: flex; gap: 16px; margin-bottom: 12px; border-bottom: 1px solid var(--border-soft); padding-bottom: 10px; }
.obs-tab { font-size: 14px; color: var(--muted); cursor: pointer; }
.obs-tab.active { color: var(--text); font-weight: 500; }
.obs-count { color: var(--muted); font-weight: 400; margin-left: 4px; }
.obs-list { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.obs-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 10px 8px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--muted);
}
.obs-item.active { background: var(--surface-hover); color: var(--text); }
.obs-status {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
  white-space: nowrap;
}
.status-running { background: rgba(70, 200, 130, 0.16); color: #6fdba0; } /* em operação */
.status-ok { background: rgba(93, 143, 255, 0.18); color: #8fb2ff; } /* fechada */
.status-alarm { background: rgba(255, 90, 90, 0.16); color: #ff8f8f; } /* cancelada */
.obs-detail { flex: 1; padding: 20px 24px; display: flex; flex-direction: column; gap: 4px; cursor: default; }
.obs-event { display: flex; gap: 12px; padding: 4px 0; }
.obs-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #6fdba0; margin-top: 6px; flex: none;
  box-shadow: 0 0 0 3px rgba(111, 219, 160, 0.15);
}
.obs-event b { font-size: 14px; color: var(--text); font-weight: 500; }
.obs-time { font-size: 13px; color: var(--muted); margin-top: 2px; }
.obs-label { font-size: 12px; color: var(--muted); margin: 10px 0 6px 20px; }
.obs-json {
  margin: 0 0 12px 20px;
  padding: 14px;
  background: var(--panel-solid);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  font: 400 13px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace;
  color: #c9d6ff;
  overflow-x: auto;
}
.obs-status-grid {
  margin: 12px 0 0 20px;
  padding-top: 14px;
  border-top: 1px solid var(--border-soft);
  display: flex;
  gap: 40px;
}
.obs-mini-label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 6px; }

/* MÉTRICAS */
.obs-metrics-chart { padding: 20px 24px; }
.obs-metrics-header {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}
.obs-metric-box {
  padding: 16px;
  background: var(--panel-solid);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  text-align: center;
  cursor: default;
}
.obs-metric-label {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
  display: block;
}
.obs-metric-value {
  font-size: 28px;
  font-weight: 500;
  color: var(--text);
}
.obs-metrics-by-autoclave {
  margin-top: 32px;
}
.obs-metrics-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 16px;
}
.obs-bar-chart {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.obs-bar-item {
  display: flex;
  align-items: center;
  gap: 12px;
}
.obs-bar-item label {
  width: 100px;
  font-size: 13px;
  color: var(--text);
  flex: none;
}
.obs-bar-track {
  flex: 1;
  height: 24px;
  background: var(--panel-solid);
  border: 1px solid var(--border-soft);
  border-radius: 6px;
  overflow: hidden;
}
.obs-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #6fdba0, #5ed89f);
  border-radius: 6px;
}
.obs-bar-value {
  width: 40px;
  text-align: right;
  font-size: 13px;
  color: var(--muted);
  flex: none;
}

@media (max-width: 720px) {
  .obs-panel { flex-direction: column; min-height: 0; }
  .obs-sidebar { width: auto; border-right: 0; border-bottom: 1px solid var(--border-soft); }
  .obs-metrics-header { grid-template-columns: repeat(2, 1fr); }
}

.notice {
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  padding: 28px;
  color: var(--muted);
  font-size: 15px;
}
.notice strong { color: var(--text); font-weight: 500; }

/* FOTO A DEFINIR (placeholder até a imagem real ser adicionada) */
.photo-slot {
  aspect-ratio: 16 / 9;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  color: var(--muted);
  font-size: 14px;
}
.photo-slot.round {
  aspect-ratio: 1 / 1;
  max-width: 200px;
  border-radius: 50%;
  margin: 0 auto;
}

/* FOTO REAL (substitui o photo-slot quando a imagem é definida) */
.photo-round {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
}
.photo-round img { width: 100%; height: 100%; object-fit: cover; object-position: center 12%; display: block; }
.photo-wide {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
}
.photo-wide img { width: 100%; height: 100%; object-fit: cover; display: block; }

.photo-founders {
  max-width: 420px;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}
.photo-founders img { width: 100%; display: block; }

@media (max-width: 900px) {
  .page-hero h1 { font-size: 56px; }
  .two-col, .gallery { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .page-hero .wrap { padding-top: 64px; padding-bottom: 48px; }
  .page-hero h1 { font-size: 42px; }
}
