/* ============ Jimmy presentation — dark, app-inspired ============ */
:root {
  --bg: #070b18;
  --bg-2: #0a102f;
  --panel: #0e152e;
  --panel-2: #131b3a;
  --line: rgba(148, 163, 255, 0.14);
  --line-strong: rgba(148, 163, 255, 0.28);
  --ink: #eef1ff;
  --muted: #9aa3c7;
  --blue: #5271ff;          /* brand logo blue */
  --blue-ui: #3147ff;       /* app interactive blue */
  --blue-soft: #aec1ff;     /* app light blue fill */
  --teal: #2dd4bf;          /* jurisearch accent (app: #0f766e on light) */
  --teal-deep: #0f766e;
  --amber: #fbbf24;
  --orange: #fb923c;
  --red: #f87171;
  --radius: 14px;
  --shadow: 0 30px 80px rgba(2, 6, 23, 0.6);
  --font-body: "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-display: "Sora", "Inter", ui-sans-serif, system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--font-body);
  line-height: 1.55;
  overflow-x: hidden;
}

::selection { background: rgba(82, 113, 255, 0.45); color: #fff; }

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, p { margin-top: 0; }

/* ---------- background orbs ---------- */
.bg-orbs { position: fixed; inset: 0; z-index: -1; overflow: hidden; }
.orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.5; }
.orb-a { width: 560px; height: 560px; top: -180px; right: -120px;
  background: radial-gradient(circle, rgba(82, 113, 255, 0.45), transparent 65%);
  animation: drift 22s ease-in-out infinite alternate; }
.orb-b { width: 480px; height: 480px; top: 38%; left: -200px;
  background: radial-gradient(circle, rgba(45, 212, 191, 0.30), transparent 65%);
  animation: drift 26s ease-in-out infinite alternate-reverse; }
.orb-c { width: 520px; height: 520px; bottom: -220px; right: 22%;
  background: radial-gradient(circle, rgba(49, 71, 255, 0.28), transparent 65%);
  animation: drift 30s ease-in-out infinite alternate; }
@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(60px, 40px) scale(1.12); }
}

/* ---------- topbar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  min-height: 66px; padding: 0 clamp(18px, 4vw, 56px);
  background: rgba(7, 11, 24, 0.78);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--blue), var(--blue-ui));
  color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 20px;
  box-shadow: 0 6px 20px rgba(82, 113, 255, 0.45);
}
.brand-mark.small { width: 26px; height: 26px; font-size: 15px; border-radius: 8px; }
.brand-word { font-family: var(--font-display); font-weight: 700; font-size: 21px; letter-spacing: -0.02em; }
nav { display: flex; flex-wrap: wrap; gap: 2px; }
nav a {
  padding: 8px 13px; border-radius: 9px;
  color: var(--muted); font-size: 14px; font-weight: 600;
  transition: color .18s, background .18s;
}
nav a:hover { color: var(--ink); background: rgba(148, 163, 255, 0.10); }

/* ---------- buttons ---------- */
.button {
  min-height: 46px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 11px; border: 1px solid transparent;
  font-weight: 700; font-size: 15px; padding: 0 22px;
  transition: transform .18s, box-shadow .18s, background .18s, border-color .18s;
}
.button:hover { transform: translateY(-2px); }
.button.primary {
  background: linear-gradient(135deg, var(--blue), var(--blue-ui));
  color: #fff; box-shadow: 0 10px 30px rgba(49, 71, 255, 0.4);
}
.button.primary:hover { box-shadow: 0 14px 38px rgba(49, 71, 255, 0.55); }
.button.ghost { border-color: var(--line-strong); color: var(--ink); background: rgba(148,163,255,0.06); }
.button.ghost:hover { background: rgba(148,163,255,0.14); }
.button.small { min-height: 38px; padding: 0 16px; font-size: 13.5px; }
.button.big { min-height: 54px; padding: 0 30px; font-size: 16px; }
.button.teal-btn { background: var(--teal-deep); color: #fff; box-shadow: 0 8px 24px rgba(15,118,110,.4); }
.button.teal-btn:hover:not(:disabled) { box-shadow: 0 12px 30px rgba(15,118,110,.55); }
.button.teal-btn:disabled { opacity: .55; cursor: default; transform: none; }
.button.ghost-btn { border-color: var(--line-strong); background: transparent; color: var(--muted); }
.button.ghost-btn:hover { color: var(--ink); background: rgba(148,163,255,0.08); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  max-width: 1080px; margin: 0 auto;
  padding: clamp(72px, 11vw, 140px) clamp(20px, 5vw, 40px) clamp(48px, 6vw, 80px);
  text-align: center;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(rgba(148,163,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148,163,255,0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
}
.eyebrow {
  margin-bottom: 16px; color: var(--blue-soft);
  font-size: 13px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
}
.eyebrow.teal { color: var(--teal); }
.eyebrow.gold { color: var(--amber); }
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(44px, 7.2vw, 88px);
  line-height: 1.02; letter-spacing: -0.03em; margin-bottom: 24px;
}
.grad {
  background: linear-gradient(92deg, var(--blue-soft) 0%, var(--blue) 40%, var(--teal) 80%, var(--blue-soft) 120%);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: gradShift 7s ease-in-out infinite alternate;
}
@keyframes gradShift { from { background-position: 0% 0; } to { background-position: 100% 0; } }
.lead {
  max-width: 680px; margin: 0 auto; color: var(--muted);
  font-size: clamp(17px, 2vw, 20px);
}
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 34px; }
.hero-stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px;
  margin: clamp(48px, 6vw, 72px) 0 0; padding: 0;
}
.hero-stats div {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: rgba(14, 21, 46, 0.6); padding: 20px 14px;
  transition: border-color .25s, transform .25s, box-shadow .25s;
}
.hero-stats div:hover {
  border-color: rgba(82, 113, 255, 0.55); transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(49, 71, 255, 0.22);
}
.hero-stats dt {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(24px, 3vw, 34px); color: var(--blue-soft);
}
.hero-stats dd { margin: 6px 0 0; color: var(--muted); font-size: 13px; }

/* ---------- marquee ---------- */
.marquee {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  overflow: hidden; padding: 16px 0;
  background: rgba(10, 16, 47, 0.5);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex; align-items: center; gap: 34px; width: max-content;
  animation: scroll 30s linear infinite;
  color: var(--muted); font-weight: 600; font-size: 14.5px; white-space: nowrap;
}
.marquee-track i {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--blue); flex: none;
}
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { max-width: 1180px; margin: 0 auto; padding: clamp(64px, 9vw, 120px) clamp(20px, 5vw, 40px) 0; }
.section-heading { max-width: 760px; margin-bottom: clamp(30px, 4vw, 48px); }
.section-heading h2, .cta h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.6vw, 54px);
  line-height: 1.05; letter-spacing: -0.025em; margin-bottom: 16px;
}
.section-heading > p:not(.eyebrow) { color: var(--muted); font-size: 17px; max-width: 640px; }

/* ---------- app window frame ---------- */
.app-window {
  position: relative;
  border: 1px solid var(--line-strong); border-radius: 18px;
  background: linear-gradient(180deg, rgba(19, 27, 58, 0.85), rgba(14, 21, 46, 0.95));
  box-shadow: var(--shadow), inset 0 1px 0 rgba(238, 241, 255, 0.06);
  overflow: hidden;
}
.app-window::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 1px; z-index: 1;
  background: linear-gradient(90deg, transparent, rgba(174, 193, 255, 0.55), transparent);
}
.window-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 12px 16px; border-bottom: 1px solid var(--line);
  background: rgba(7, 11, 24, 0.6);
}
.dot { width: 11px; height: 11px; border-radius: 50%; background: #2a3560; }
.dot:nth-child(1) { background: #f87171; } .dot:nth-child(2) { background: #fbbf24; } .dot:nth-child(3) { background: #34d399; }
.window-title { margin-left: 8px; color: var(--muted); font-size: 12.5px; font-weight: 600; letter-spacing: 0.02em; }

/* ---------- chat demo ---------- */
.chat-app { display: grid; grid-template-columns: 220px 1fr; min-height: 520px; }
.chat-sidebar {
  border-right: 1px solid var(--line); padding: 18px 14px;
  display: flex; flex-direction: column; gap: 6px; background: rgba(7,11,24,0.35);
}
.sidebar-title {
  margin: 0 0 8px; color: var(--muted);
  font-size: 11.5px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
}
.saved-chat {
  text-align: left; border: 1px solid transparent; border-radius: 9px;
  background: transparent; color: var(--muted);
  padding: 9px 12px; font-size: 14px; font-weight: 600;
  transition: all .16s;
}
.saved-chat:hover { background: rgba(148,163,255,0.08); color: var(--ink); }
.saved-chat.active { background: rgba(82,113,255,0.14); border-color: rgba(82,113,255,0.35); color: var(--blue-soft); }
.new-analysis {
  margin-top: auto; border: 1px solid rgba(82,113,255,0.45); border-radius: 999px;
  background: rgba(82,113,255,0.12); color: var(--blue-soft);
  padding: 10px 14px; font-weight: 700; font-size: 13.5px;
  transition: all .16s;
}
.new-analysis:hover { background: var(--blue-ui); color: #fff; }

.chat-main { display: flex; flex-direction: column; min-width: 0; }
.doc-chip {
  display: flex; align-items: center; gap: 10px;
  margin: 16px 18px 0; padding: 10px 14px;
  border: 1px solid var(--line); border-radius: 11px; background: var(--panel-2);
  font-size: 13.5px;
}
.doc-icon {
  flex: none; width: 34px; height: 34px; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(248,113,113,0.14); color: var(--red);
  font-size: 10px; font-weight: 900; letter-spacing: 0.04em;
}
.doc-icon.teal { background: rgba(45,212,191,0.14); color: var(--teal); }
.doc-name { font-weight: 600; }
.doc-status {
  margin-left: auto; color: var(--teal); font-size: 11.5px; font-weight: 800;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.doc-status::before {
  content: "●"; margin-right: 6px; font-size: 9px;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 0.4; } 50% { opacity: 1; } }

.chat-scroll {
  flex: 1; overflow-y: auto; padding: 18px;
  display: flex; flex-direction: column; gap: 14px; max-height: 420px;
  scrollbar-width: thin; scrollbar-color: #2a3560 transparent;
}
.msg { display: flex; gap: 10px; max-width: 82%; animation: msgIn .3s ease both; }
@keyframes msgIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.msg .avatar {
  flex: none; width: 30px; height: 30px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 800; font-size: 14px;
}
.msg.ia .avatar { background: linear-gradient(135deg, var(--blue), var(--blue-ui)); color: #fff; }
.msg.user { align-self: flex-end; flex-direction: row-reverse; }
.msg.user .avatar { background: rgba(45,212,191,0.2); color: var(--teal); }
.bubble {
  border-radius: 16px; padding: 12px 16px; font-size: 14.5px; line-height: 1.55;
  white-space: pre-line;
}
.msg.ia .bubble { background: var(--panel-2); border: 1px solid var(--line); border-top-left-radius: 4px; }
.msg.user .bubble {
  background: linear-gradient(135deg, rgba(82,113,255,0.25), rgba(49,71,255,0.25));
  border: 1px solid rgba(82,113,255,0.4); border-top-right-radius: 4px;
}
.typing { display: inline-flex; gap: 5px; padding: 4px 2px; }
.typing i {
  width: 7px; height: 7px; border-radius: 50%; background: var(--blue-soft);
  animation: blink 1.2s infinite;
}
.typing i:nth-child(2) { animation-delay: .2s; } .typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 60%, 100% { opacity: .25; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }

.chat-footer { border-top: 1px solid var(--line); padding: 14px 18px 16px; }
.suggestions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.suggestion {
  border: 1px solid var(--line-strong); border-radius: 999px;
  background: rgba(148,163,255,0.06); color: var(--muted);
  padding: 7px 14px; font-size: 12.5px; font-weight: 600;
  transition: all .16s;
}
.suggestion:hover:not(:disabled) { border-color: var(--blue); color: var(--blue-soft); background: rgba(82,113,255,0.12); }
.suggestion:disabled { opacity: .4; cursor: default; }
.chat-inputbar {
  display: flex; align-items: center; gap: 10px;
  border: 1px solid var(--line-strong); border-radius: 999px;
  background: var(--panel-2); padding: 6px 6px 6px 16px;
  transition: border-color .2s, box-shadow .2s;
}
.chat-inputbar:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(82, 113, 255, 0.16);
}
.chat-inputbar .attach { color: var(--muted); font-size: 15px; }
.chat-inputbar input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent;
  color: var(--ink); font-size: 14.5px; font-family: inherit;
}
.chat-inputbar input::placeholder { color: var(--muted); }
.chat-inputbar .send {
  flex: none; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--blue-ui);
  background: var(--blue-soft); color: var(--blue-ui); font-size: 17px; font-weight: 900;
  transition: all .16s;
}
.chat-inputbar .send:hover { background: var(--blue-ui); color: #fff; }

/* ---------- jurisearch demo ---------- */
.jurisearch-section .section-heading p { max-width: 680px; }
.juri-app { padding: 20px; display: flex; flex-direction: column; gap: 18px; }
.juri-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.juri-file {
  display: flex; align-items: center; gap: 10px;
  border: 1px dashed rgba(45,212,191,0.5); border-radius: 11px;
  background: rgba(45,212,191,0.06); padding: 8px 14px 8px 8px;
  font-size: 13.5px; font-weight: 600;
}
.juri-progress { display: flex; flex-direction: column; gap: 12px; }
.progress-track {
  height: 8px; border-radius: 999px; overflow: hidden;
  background: rgba(148,163,255,0.10);
}
.progress-fill {
  height: 100%; width: 0%; border-radius: 999px;
  background: linear-gradient(90deg, var(--teal-deep), var(--teal));
  transition: width .5s ease;
  box-shadow: 0 0 16px rgba(45,212,191,0.5);
}
.progress-status { margin: 0; color: var(--muted); font-size: 14px; min-height: 22px; }
.progress-status.done { color: var(--teal); font-weight: 600; }
.pipeline-steps {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px;
  margin: 0; padding: 0; list-style: none;
}
.pipeline-steps li {
  border: 1px solid var(--line); border-radius: 12px;
  background: rgba(7,11,24,0.4); padding: 14px;
  display: flex; flex-direction: column; gap: 3px;
  transition: all .3s;
}
.pipeline-steps b {
  width: 28px; height: 28px; border-radius: 8px; margin-bottom: 6px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(148,163,255,0.10); color: var(--muted);
  font-size: 13px; transition: all .3s;
}
.pipeline-steps span { font-weight: 700; font-size: 14.5px; }
.pipeline-steps small { color: var(--muted); font-size: 12px; }
.pipeline-steps li.active {
  border-color: rgba(45,212,191,0.6); background: rgba(45,212,191,0.07);
  animation: stepGlow 1.6s ease-in-out infinite;
}
@keyframes stepGlow {
  0%, 100% { box-shadow: 0 0 0 rgba(45,212,191,0); }
  50% { box-shadow: 0 0 22px rgba(45,212,191,0.25); }
}
.pipeline-steps li.active b { background: var(--teal-deep); color: #fff; box-shadow: 0 0 14px rgba(45,212,191,0.5); }
.pipeline-steps li.done { border-color: rgba(45,212,191,0.3); }
.pipeline-steps li.done b { background: rgba(45,212,191,0.18); color: var(--teal); }

.juri-results { display: flex; flex-direction: column; gap: 12px; }
.juri-empty {
  border: 1px dashed var(--line-strong); border-radius: 12px;
  padding: 40px 20px; text-align: center;
  display: flex; flex-direction: column; gap: 6px; color: var(--muted);
}
.juri-empty strong { color: var(--ink); font-size: 16px; }
.results-meta { color: var(--muted); font-size: 13.5px; }
.results-meta b { color: var(--teal); }
.result-card {
  border: 1px solid var(--line); border-radius: 14px;
  background: var(--panel-2); padding: 18px 20px;
  animation: msgIn .4s ease both;
  transition: border-color .2s, transform .2s;
}
.result-card:hover { border-color: rgba(45,212,191,0.5); transform: translateY(-2px); }
.result-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.score-bar {
  height: 5px; border-radius: 999px; overflow: hidden;
  background: rgba(148,163,255,0.10); margin: -2px 0 12px;
}
.score-bar i {
  display: block; height: 100%; width: 0; border-radius: 999px;
  background: linear-gradient(90deg, var(--teal-deep), var(--teal));
  transition: width 1s ease .25s;
}
.match-pill {
  border-radius: 999px; padding: 4px 12px;
  background: rgba(45,212,191,0.14); color: var(--teal);
  font-size: 12.5px; font-weight: 800;
}
.result-class { font-weight: 800; font-size: 16px; font-family: var(--font-display); }
.result-ementa { margin: 0 0 12px; color: var(--muted); font-size: 14px; }
.result-interpretacao {
  margin: 0 0 12px; padding: 10px 14px;
  border-left: 3px solid var(--teal); border-radius: 0 10px 10px 0;
  background: rgba(45,212,191,0.06);
  color: #c9d4f2; font-size: 13.5px;
}
.result-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  border-radius: 8px; padding: 4px 10px;
  background: rgba(148,163,255,0.08); color: var(--muted);
  font-size: 12px; font-weight: 600;
}
.tag-amber, .tag.amber {
  display: inline-flex; align-items: center; width: fit-content;
  border-radius: 8px; padding: 4px 10px;
  background: rgba(251,191,36,0.12); color: var(--amber);
  font-size: 12px; font-weight: 700;
}
.hidden { display: none !important; }

/* ---------- workspace grid ---------- */
.workspace-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 20px; align-items: start; }

.dash-app { padding: 22px; }
.dash-kicker {
  margin: 0 0 4px; color: var(--teal);
  font-size: 11.5px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
}
.dash-title { font-family: var(--font-display); font-size: 26px; letter-spacing: -0.02em; margin-bottom: 18px; }
.dash-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.stat {
  border: 1px solid var(--line); border-radius: 12px; padding: 14px;
  display: flex; flex-direction: column; gap: 2px; background: rgba(7,11,24,0.35);
  transition: border-color .2s, transform .2s;
}
.stat:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.stat-num { font-family: var(--font-display); font-weight: 800; font-size: 24px; }
.stat-num.green { color: var(--teal); } .stat-num.orange { color: var(--orange); } .stat-num.indigo { color: var(--blue-soft); }
.stat-label { color: var(--muted); font-size: 12px; }
.dash-panels { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dash-panel {
  border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px;
  background: rgba(7,11,24,0.35); min-width: 0;
}
.dash-panel.featured { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 6px; }
.dash-panel.featured strong { font-size: 15px; }
.dash-panel.featured small { color: var(--muted); }
.panel-title {
  margin: 0 0 10px; font-size: 11.5px; font-weight: 800;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted);
}
.event-list, .inbox-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.event-list li, .inbox-list li {
  display: flex; align-items: center; gap: 10px;
  font-size: 13.5px; padding: 8px 10px; border-radius: 9px;
  background: rgba(148,163,255,0.05);
}
.event-dot { flex: none; width: 9px; height: 9px; border-radius: 50%; }
.event-list time, .inbox-list time { margin-left: auto; color: var(--muted); font-size: 12px; font-weight: 700; white-space: nowrap; }
.inbox-list li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- calendar ---------- */
.cal-app { padding: 20px; }
.cal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.today-btn {
  border: 1px solid var(--line-strong); border-radius: 999px;
  background: rgba(148,163,255,0.06); color: var(--ink);
  padding: 7px 16px; font-size: 13px; font-weight: 700;
  transition: all .16s;
}
.today-btn:hover { border-color: var(--blue); color: var(--blue-soft); }
.cal-nav { display: flex; align-items: center; gap: 10px; }
.cal-nav strong { font-family: var(--font-display); font-size: 16px; min-width: 130px; text-align: center; }
.cal-nav button {
  width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--line-strong); background: transparent; color: var(--muted);
  font-size: 16px; transition: all .16s;
}
.cal-nav button:hover { color: var(--ink); border-color: var(--blue); }
.cal-weekdays {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px;
  margin-bottom: 6px; color: var(--muted); font-size: 11px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.06em; text-align: center;
}
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-day {
  position: relative; aspect-ratio: 1; border: 1px solid transparent; border-radius: 9px;
  background: rgba(148,163,255,0.04); color: var(--muted);
  font-size: 12.5px; font-weight: 600;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  padding-top: 7px; gap: 3px;
  transition: all .15s;
}
.cal-day:hover:not(.empty) { border-color: var(--blue); color: var(--ink); cursor: pointer; }
.cal-day.empty { background: transparent; }
.cal-day.today { background: rgba(82,113,255,0.18); border-color: var(--blue); color: #fff; }
.cal-day.has-event { color: var(--ink); }
.cal-event-dot { width: 6px; height: 6px; border-radius: 50%; }
.cal-hint { margin: 14px 0 0; color: var(--muted); font-size: 12.5px; text-align: center; }

/* ---------- calculator ---------- */
.calc-window { max-width: 860px; margin: 0 auto; }
.calc-app { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.calc-form { padding: 24px; display: flex; flex-direction: column; gap: 14px; border-right: 1px solid var(--line); }
.calc-form label { display: flex; flex-direction: column; gap: 6px; color: var(--muted); font-size: 13px; font-weight: 700; }
.calc-form input {
  border: 1px solid var(--line-strong); border-radius: 10px;
  background: var(--panel-2); color: var(--ink);
  padding: 11px 13px; font-size: 14.5px; font-family: inherit; outline: none;
  transition: border-color .16s;
  color-scheme: dark;
}
.calc-form input:focus { border-color: var(--blue); }
.calc-actions { display: flex; gap: 10px; margin-top: 4px; }
.calc-actions .button { flex: 1; }
.calc-result { padding: 24px; background: rgba(7,11,24,0.35); }
.result-title {
  margin: 0 0 14px; font-size: 11.5px; font-weight: 800;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted);
}
.calc-result dl { margin: 0; display: flex; flex-direction: column; gap: 9px; }
.calc-result dl div {
  display: flex; justify-content: space-between; gap: 12px;
  font-size: 14px; padding-bottom: 9px; border-bottom: 1px dashed var(--line);
}
.calc-result dt { color: var(--muted); }
.calc-result dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.calc-result .total {
  border-bottom: 0; margin-top: 4px; padding: 12px 14px;
  border: 1px solid rgba(45,212,191,0.35); border-radius: 11px;
  background: rgba(45,212,191,0.07);
}
.calc-result .total dt { color: var(--ink); font-weight: 800; }
.calc-result .total dd { color: var(--teal); font-size: 17px; font-family: var(--font-display); }

/* ---------- features ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.feature-grid article {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: rgba(14, 21, 46, 0.6); padding: 26px;
  transition: border-color .2s, transform .2s;
}
.feature-grid article:hover { border-color: rgba(82,113,255,0.5); transform: translateY(-3px); }
.f-num {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 38px; height: 30px; border-radius: 9px; margin-bottom: 16px;
  background: rgba(82,113,255,0.14); color: var(--blue-soft);
  font-size: 13px; font-weight: 900;
}
.feature-grid h3 { font-family: var(--font-display); font-size: 20px; margin-bottom: 8px; }
.feature-grid p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* ---------- cta ---------- */
.cta {
  position: relative; overflow: hidden;
  max-width: 860px; margin: clamp(64px, 9vw, 120px) auto 0;
  padding: clamp(48px, 7vw, 80px) clamp(24px, 5vw, 60px);
  text-align: center;
  border: 1px solid var(--line-strong); border-radius: 24px;
  background:
    radial-gradient(circle at 50% 0%, rgba(82,113,255,0.22), transparent 60%),
    radial-gradient(circle at 85% 100%, rgba(45,212,191,0.12), transparent 55%),
    var(--panel);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(238,241,255,0.06);
}
.cta::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(174,193,255,0.6), transparent);
}
.cta p { color: var(--muted); max-width: 520px; margin: 0 auto 28px; }

/* ---------- footer ---------- */
.footer {
  margin-top: clamp(64px, 9vw, 110px);
  min-height: 92px; display: flex; align-items: center; justify-content: center; gap: 10px;
  border-top: 1px solid var(--line); color: var(--muted); font-size: 14px;
}

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; } .reveal.d4 { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track, .orb { animation: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .workspace-grid, .calc-app { grid-template-columns: 1fr; }
  .calc-form { border-right: 0; border-bottom: 1px solid var(--line); }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  nav { display: none; }
  .chat-app { grid-template-columns: 1fr; }
  .chat-sidebar { flex-direction: row; flex-wrap: wrap; align-items: center; border-right: 0; border-bottom: 1px solid var(--line); }
  .sidebar-title { width: 100%; margin-bottom: 2px; }
  .new-analysis { margin-top: 0; margin-left: auto; }
  .pipeline-steps, .feature-grid, .dash-panels { grid-template-columns: 1fr; }
  .dash-stats { grid-template-columns: 1fr 1fr; }
  .msg { max-width: 94%; }
}

/* ============ MacroDev system layer ============ */
:root {
  --bg: #060606;
  --bg-2: #0b0909;
  --panel: #101010;
  --panel-2: #151313;
  --line: rgba(255, 255, 255, 0.10);
  --line-strong: rgba(255, 255, 255, 0.18);
  --ink: #f3f0eb;
  --muted: #918c87;
  --blue: #b30818;
  --blue-ui: #f12a3d;
  --blue-soft: #ff8993;
  --teal: #63d99b;
  --teal-deep: #217e55;
  --amber: #e9b75a;
  --orange: #e78543;
  --red: #f12a3d;
  --radius: 18px;
  --shadow: 0 36px 100px rgba(0, 0, 0, 0.55);
  --font-body: "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-display: "Cinzel", Georgia, serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}

body {
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -4;
  pointer-events: none;
  background:
    radial-gradient(circle 38rem at var(--mx, 18%) var(--my, 14%), rgba(179, 8, 24, 0.18), transparent 70%),
    radial-gradient(circle 32rem at 94% 18%, rgba(34, 43, 62, 0.12), transparent 72%),
    #060606;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  opacity: 0.043;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.72'/%3E%3C/svg%3E");
}

::selection { background: #b30818; color: #fff; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid #f12a3d; outline-offset: 4px; }

.scroll-progress {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #b30818, #f12a3d, #fff);
  box-shadow: 0 0 14px rgba(241, 42, 61, 0.8);
}

.bg-orbs { z-index: -2; }
.orb { filter: blur(100px); opacity: 0.34; }
.orb-a { background: radial-gradient(circle, rgba(179, 8, 24, 0.55), transparent 67%); }
.orb-b { background: radial-gradient(circle, rgba(82, 18, 26, 0.34), transparent 67%); }
.orb-c { background: radial-gradient(circle, rgba(241, 42, 61, 0.23), transparent 67%); }

.topbar {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1280px, calc(100% - 28px));
  min-height: 68px;
  padding: 0 12px 0 18px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 19px;
  background: rgba(7,7,7,.69);
  backdrop-filter: blur(20px);
  transition: background .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.topbar.scrolled { border-color: rgba(255,255,255,.15); background: rgba(7,7,7,.92); box-shadow: 0 16px 44px rgba(0,0,0,.35); }
.brand { gap: 9px; }
.brand-mark {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(241,42,61,.5);
  border-radius: 12px;
  color: white;
  background: linear-gradient(145deg,#2b0c10,#090909);
  box-shadow: inset 0 1px rgba(255,255,255,.08), 0 0 28px rgba(179,8,24,.18);
  font-size: 23px;
  text-transform: lowercase;
}
.brand-word { font-family: var(--font-display); font-size: 18px; letter-spacing: .04em; }
.by-macrodev { padding-left: 9px; border-left: 1px solid var(--line); color: #6f6b67; font: 600 .53rem var(--font-mono); letter-spacing: .1em; }
nav a { color: #999491; font: 600 .67rem var(--font-mono); text-transform: uppercase; letter-spacing: .025em; }
nav a:hover { color: white; background: rgba(255,255,255,.055); }

.button {
  border-color: var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,.035);
  font: 700 .68rem var(--font-mono);
  text-transform: uppercase;
  letter-spacing: .045em;
}
.button.primary { border-color: #b30818; background: #b30818; box-shadow: 0 15px 36px rgba(179,8,24,.22); }
.button.primary:hover { border-color: #f12a3d; background: #f12a3d; box-shadow: 0 18px 44px rgba(179,8,24,.28); }
.button.ghost { background: rgba(255,255,255,.03); }
.button.ghost:hover { border-color: rgba(255,255,255,.34); background: rgba(255,255,255,.075); }

.hero {
  min-height: 100vh;
  max-width: 1240px;
  padding: 142px 24px 72px;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  align-items: center;
  gap: 58px;
  text-align: left;
}
.hero::before { display: none; }
.hero-copy { position: relative; z-index: 3; }
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  color: #f12a3d;
  font: 700 .65rem var(--font-mono);
  text-transform: uppercase;
  letter-spacing: .14em;
}
.eyebrow::before { content: ""; width: 27px; height: 1px; background: currentColor; }
.eyebrow.teal { color: var(--teal); }
.eyebrow.gold { color: var(--amber); }
.hero h1 {
  margin: 0;
  max-width: 800px;
  font-family: var(--font-display);
  font-size: clamp(4.2rem, 7vw, 7.25rem);
  font-weight: 700;
  line-height: .9;
  letter-spacing: -.068em;
  text-transform: uppercase;
}
.hero h1 span { color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.72); }
.hero h1 em { color: #f12a3d; font-style: normal; text-shadow: 0 0 42px rgba(241,42,61,.2); }
.lead { max-width: 650px; margin: 30px 0 0; padding-left: 20px; border-left: 2px solid #b30818; color: #aaa5a1; font-size: 1rem; line-height: 1.72; }
.lead b { color: white; font-weight: 600; }
.hero-actions { justify-content: flex-start; margin-top: 32px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 38px; color: #77726e; font: 500 .62rem var(--font-mono); text-transform: uppercase; }
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta i { width: 5px; height: 5px; background: #f12a3d; transform: rotate(45deg); }

.legal-orbit { min-height: 590px; position: relative; display: grid; place-items: center; perspective: 1100px; }
.orbit-grid { position: absolute; inset: 3%; border: 1px solid rgba(255,255,255,.05); border-radius: 50%; background-image: linear-gradient(rgba(255,255,255,.03) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.03) 1px,transparent 1px); background-size: 34px 34px; mask-image: radial-gradient(circle,#000 28%,transparent 72%); }
.orbit-ring { position: absolute; width: 470px; height: 470px; border: 1px solid rgba(241,42,61,.2); border-radius: 50%; animation: spin 25s linear infinite; }
.orbit-ring::before, .orbit-ring::after { content: ""; position: absolute; border-radius: 50%; }
.orbit-ring::before { width: 10px; height: 10px; top: 44px; left: 78px; background: #f12a3d; box-shadow: 0 0 0 8px rgba(241,42,61,.08),0 0 25px #b30818; }
.orbit-ring::after { width: 7px; height: 7px; right: 64px; bottom: 53px; background: white; box-shadow: 0 0 18px white; }
.orbit-ring.ring-two { width: 345px; height: 345px; border-style: dashed; border-color: rgba(255,255,255,.13); animation-direction: reverse; animation-duration: 30s; }
.jimmy-core { position: relative; z-index: 3; width: 174px; height: 174px; display: grid; place-items: center; border: 1px solid rgba(241,42,61,.35); border-radius: 42px; background: linear-gradient(145deg,#1a1112,#090909); box-shadow: inset 0 1px rgba(255,255,255,.08),0 0 80px rgba(179,8,24,.19); transform: rotate(4deg); }
.jimmy-core::after { content: ""; position: absolute; inset: 11px; border: 1px dashed rgba(255,255,255,.11); border-radius: 33px; }
.jimmy-core span { font: 800 4rem var(--font-display); transform: rotate(-4deg); }
.jimmy-core small { position: absolute; bottom: 28px; color: #716c68; font: 600 .48rem var(--font-mono); text-transform: uppercase; letter-spacing: .12em; }
.orbit-node { position: absolute; z-index: 4; min-width: 166px; padding: 14px 15px; border: 1px solid var(--line); border-radius: 14px; background: rgba(15,14,14,.86); box-shadow: var(--shadow); backdrop-filter: blur(12px); animation: float 4s ease-in-out infinite; transition: .2s ease; }
.orbit-node:hover { border-color: rgba(241,42,61,.4); transform: translateY(-4px); }
.orbit-node i { float: right; width: 7px; height: 7px; margin-top: 3px; border-radius: 50%; background: #63d99b; box-shadow: 0 0 12px rgba(99,217,155,.45); }
.orbit-node small { display: block; color: #77726e; font: 500 .54rem var(--font-mono); text-transform: uppercase; letter-spacing: .08em; }
.orbit-node strong { display: block; margin-top: 5px; font-size: .72rem; }
.node-doc { top: 62px; right: 1%; }.node-juri { left: -3%; top: 46%; animation-delay: -1.3s; }.node-box { right: 1%; bottom: 48px; animation-delay: -2.5s; }
.orbit-caption { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); color: #5e5956; font: 500 .57rem var(--font-mono); text-transform: uppercase; letter-spacing: .12em; white-space: nowrap; }

.marquee { border-color: rgba(255,255,255,.08); background: #090909; }
.marquee-track { color: #b8b3ae; font: 600 .63rem var(--font-mono); text-transform: uppercase; letter-spacing: .1em; }
.marquee-track i { border-radius: 0; background: #b30818; transform: rotate(45deg); }

.section { max-width: 1240px; padding-top: clamp(90px, 10vw, 132px); }
.section-heading { max-width: 890px; margin-bottom: 50px; }
.section-heading h2, .cta h2 { font-family: var(--font-display); font-size: clamp(3rem, 5.5vw, 5.7rem); font-weight: 700; line-height: .93; letter-spacing: -.06em; text-transform: uppercase; }
.section-heading h2 em { color: #f12a3d; font-style: normal; }
.section-heading > p:not(.eyebrow) { max-width: 690px; color: #918c87; line-height: 1.72; }

.app-window { border-color: rgba(255,255,255,.13); border-radius: 22px; background: linear-gradient(180deg,rgba(19,18,18,.92),rgba(10,10,10,.98)); }
.app-window::before { background: linear-gradient(90deg,transparent,rgba(241,42,61,.55),transparent); }
.window-bar { min-height: 51px; background: #101010; }
.window-title { font-family: var(--font-mono); }
.chat-sidebar, .calc-result, .dash-panel, .stat, .pipeline-steps li { background: rgba(255,255,255,.018); }
.saved-chat:hover { background: rgba(241,42,61,.06); }.saved-chat.active { color: #ff8993; border-color: rgba(241,42,61,.28); background: rgba(179,8,24,.12); }
.new-analysis { border-color: rgba(241,42,61,.4); color: #ff8993; background: rgba(179,8,24,.1); }.new-analysis:hover { background: #b30818; }
.msg.ia .avatar { background: linear-gradient(135deg,#b30818,#f12a3d); }
.msg.user .bubble { border-color: rgba(241,42,61,.36); background: rgba(179,8,24,.16); }
.suggestion:hover:not(:disabled), .chat-inputbar:focus-within { border-color: #f12a3d; }
.chat-inputbar:focus-within { box-shadow: 0 0 0 4px rgba(241,42,61,.11); }
.chat-inputbar .send { border-color: #b30818; color: white; background: #b30818; }.chat-inputbar .send:hover { background: #f12a3d; }
.cal-day.today { border-color: #f12a3d; background: rgba(179,8,24,.22); }.cal-day:hover:not(.empty) { border-color: #f12a3d; }
.feature-grid article { background: linear-gradient(145deg,rgba(255,255,255,.045),rgba(255,255,255,.012)); }.feature-grid article:hover { border-color: rgba(241,42,61,.4); }
.f-num { color: #ff8993; background: rgba(179,8,24,.13); font-family: var(--font-mono); }

/* Jimmy Box */
.box-section { position: relative; }
.box-console { overflow: hidden; border: 1px solid rgba(255,255,255,.13); border-radius: 24px; background: #090909; box-shadow: 0 40px 110px rgba(0,0,0,.56); }
.box-console-bar { min-height: 56px; padding: 0 18px; display: flex; align-items: center; gap: 7px; border-bottom: 1px solid var(--line); background: #111; }
.box-console-bar .dot { width: 9px; height: 9px; }.box-console-bar strong { margin-left: 10px; color: #8c8783; font: 500 .61rem var(--font-mono); }
.box-live { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; color: #63d99b; font: 600 .55rem var(--font-mono); }
.box-live i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 5px rgba(99,217,155,.08); animation: pulse 1.8s infinite; }
.box-console-body { display: grid; grid-template-columns: 1.1fr .9fr; min-height: 630px; }
.box-machine { position: relative; overflow: hidden; display: grid; place-items: center; border-right: 1px solid var(--line); background: radial-gradient(circle at 50% 48%,rgba(179,8,24,.2),transparent 19rem),#080808; }
.machine-grid { position: absolute; inset: 0; opacity: .7; background-image: linear-gradient(rgba(255,255,255,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.035) 1px,transparent 1px); background-size: 34px 34px; mask-image: radial-gradient(circle,#000 12%,transparent 73%); }
.machine-shell { position: relative; z-index: 3; width: 205px; height: 292px; padding: 31px 26px; display: flex; flex-direction: column; align-items: center; border: 1px solid rgba(241,42,61,.38); border-radius: 30px; background: linear-gradient(145deg,#211113,#0b0b0b 62%); box-shadow: inset 0 1px rgba(255,255,255,.11),inset -18px -18px 40px rgba(0,0,0,.32),0 42px 85px rgba(0,0,0,.55),0 0 75px rgba(179,8,24,.16); transform: perspective(800px) rotateY(-8deg); transition: transform .35s ease; }
.box-machine:hover .machine-shell { transform: perspective(800px) rotateY(0) translateY(-5px); }
.machine-light { width: 7px; height: 7px; align-self: flex-end; border-radius: 50%; background: #63d99b; box-shadow: 0 0 14px #63d99b; }
.machine-mark { margin: 38px 0 22px; font: 800 5.5rem/.8 var(--font-display); text-shadow: 0 0 35px rgba(241,42,61,.38); }
.machine-shell small { color: #9a9590; font: 600 .55rem var(--font-mono); letter-spacing: .18em; }.machine-shell b { margin-top: auto; color: #f12a3d; font: 600 .57rem var(--font-mono); }
.signal { position: absolute; z-index: 1; border: 1px solid rgba(241,42,61,.18); border-radius: 50%; animation: signal 3.2s ease-out infinite; }.signal-a { width: 300px; height: 300px; }.signal-b { width: 410px; height: 410px; animation-delay: -1.05s; }.signal-c { width: 520px; height: 520px; animation-delay: -2.1s; }
@keyframes signal { 0% { opacity: .75; transform: scale(.72); } 85%,100% { opacity: 0; transform: scale(1.08); } }
.machine-node { position: absolute; z-index: 4; min-width: 150px; padding: 12px 13px; border: 1px solid var(--line); border-radius: 12px; background: rgba(15,14,14,.9); box-shadow: 0 18px 45px rgba(0,0,0,.45); }
.machine-node small { display: block; color: #6c6763; font: 500 .5rem var(--font-mono); letter-spacing: .1em; }.machine-node b { color: #d7d2cd; font: 600 .58rem var(--font-mono); }.machine-node b::before { content: ""; display: inline-block; width: 5px; height: 5px; margin-right: 7px; border-radius: 50%; background: #63d99b; }
.mn-a { top: 12%; left: 5%; }.mn-b { right: 4%; top: 29%; }.mn-c { left: 6%; bottom: 13%; }
.box-controls { padding: 32px; display: flex; flex-direction: column; background: radial-gradient(circle at 100% 0,rgba(179,8,24,.12),transparent 27rem); }
.console-command { margin: 0 0 20px; color: #8f8a85; font: 500 .64rem var(--font-mono); }.console-command span { color: #f12a3d; }
.profile-tabs { display: grid; grid-template-columns: repeat(3,1fr); gap: 7px; padding: 5px; border: 1px solid var(--line); border-radius: 13px; background: #070707; }
.profile-tab { min-height: 42px; border: 1px solid transparent; border-radius: 9px; color: #746f6b; background: transparent; font: 600 .59rem var(--font-mono); text-transform: uppercase; transition: .18s ease; }
.profile-tab:hover { color: white; }.profile-tab.active { color: white; border-color: rgba(241,42,61,.34); background: rgba(179,8,24,.16); }
.control-list { margin-top: 20px; border-top: 1px solid var(--line); }
.control-row { width: 100%; padding: 17px 2px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; }
.control-row span { display: flex; flex-direction: column; gap: 3px; }.control-row b { color: #d7d2cd; font-size: .76rem; }.control-row small { color: #6f6a66; font: 500 .56rem var(--font-mono); }
.control-row > i { width: 37px; height: 21px; padding: 2px; position: relative; flex: none; border: 1px solid #393532; border-radius: 999px; background: #141313; transition: .2s ease; }.control-row > i::after { content: ""; display: block; width: 15px; height: 15px; border-radius: 50%; background: #595450; transition: .2s ease; }
.control-row.active > i { border-color: rgba(99,217,155,.45); background: rgba(99,217,155,.1); }.control-row.active > i::after { background: #63d99b; transform: translateX(16px); box-shadow: 0 0 10px rgba(99,217,155,.38); }
.control-row.locked { cursor: not-allowed; }.control-row.locked b::after { content: "LOCKED"; margin-left: 8px; color: #f12a3d; font: 600 .47rem var(--font-mono); }
.box-log { min-height: 108px; margin-top: auto; padding: 14px 15px; border: 1px solid rgba(255,255,255,.07); border-radius: 11px; background: #070707; color: #77726e; font: 500 .58rem/1.55 var(--font-mono); }
.box-log p { margin: 2px 0; animation: msgIn .25s ease both; }.box-log span { color: #63d99b; }
.box-principles { margin-top: 14px; display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; }
.box-principles article { min-height: 210px; padding: 23px; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(145deg,rgba(255,255,255,.042),rgba(255,255,255,.01)); transition: .2s ease; }.box-principles article:hover { border-color: rgba(241,42,61,.38); transform: translateY(-3px); }
.box-principles span { color: #f12a3d; font: 600 .57rem var(--font-mono); }.box-principles h3 { margin: 44px 0 9px; font: 600 1.05rem var(--font-display); text-transform: uppercase; }.box-principles p { margin: 0; color: #88837f; font-size: .74rem; line-height: 1.6; }
.legal-note { margin: 18px 0 0; padding: 14px 17px; border-left: 2px solid #b30818; color: #6f6a66; background: rgba(179,8,24,.045); font: 500 .59rem/1.65 var(--font-mono); }

.cta { max-width: 950px; border-color: rgba(241,42,61,.34); background: linear-gradient(135deg,#27080c,#0a0808 66%); }
.cta .eyebrow { justify-content: center; }.cta h2 { position: relative; }.cta .grad { color: #f12a3d; -webkit-text-fill-color: #f12a3d; }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.footer { max-width: 1240px; margin-inline: auto; padding: 0 22px; justify-content: flex-start; font-family: var(--font-mono); }.footer > a { margin-left: auto; }.footer > a:hover { color: white; }

@media (max-width: 1050px) {
  .hero { grid-template-columns: 1fr; }
  .legal-orbit { min-height: 540px; }
  .box-console-body { grid-template-columns: 1fr; }
  .box-machine { min-height: 590px; border-right: 0; border-bottom: 1px solid var(--line); }
  .box-principles { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 760px) {
  .topbar { top: 8px; width: calc(100% - 16px); min-height: 62px; padding-left: 13px; }
  .by-macrodev { display: none; }
  .hero { min-height: auto; padding: 124px 12px 62px; gap: 20px; }
  .hero h1 { font-size: clamp(3.1rem,13vw,4.5rem); }
  .lead { font-size: .91rem; }
  .legal-orbit { min-height: 450px; margin-inline: -20px; transform: scale(.9); }
  .orbit-ring { width: 390px; height: 390px; }.orbit-ring.ring-two { width: 285px; height: 285px; }
  .jimmy-core { width: 145px; height: 145px; }.orbit-node { min-width: 145px; padding: 11px; }.node-doc { top: 25px; right: 0; }.node-juri { left: 0; }.node-box { right: 0; bottom: 30px; }
  .section { padding-inline: 12px; }.section-heading h2, .cta h2 { font-size: clamp(2.8rem,14vw,4.7rem); }
  .box-console-bar strong { max-width: 175px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.box-live { display: none; }
  .box-machine { min-height: 510px; }.machine-shell { width: 178px; height: 260px; }.machine-node { min-width: 130px; }.mn-a { left: 3%; }.mn-b { right: 2%; }.mn-c { left: 3%; }
  .box-controls { padding: 20px; }.box-principles { grid-template-columns: 1fr; }.box-principles article { min-height: 180px; }.box-principles h3 { margin-top: 30px; }
  .footer { align-items: flex-start; flex-wrap: wrap; padding-top: 24px; }.footer > a { width: 100%; margin-left: 0; }
}

/* ============ Jimmy identity — paper, clarity and quiet confidence ============ */
:root {
  --bg: #f4f1e9;
  --bg-2: #ebe7dc;
  --panel: #fffdf8;
  --panel-2: #f7f5ef;
  --line: rgba(40, 55, 60, .12);
  --line-strong: rgba(40, 55, 60, .22);
  --ink: #26363b;
  --muted: #6f7b7e;
  --blue: #2d5366;
  --blue-ui: #1f6e75;
  --blue-soft: #d8e7e8;
  --teal: #168475;
  --teal-deep: #116a60;
  --amber: #c68a45;
  --orange: #cb7852;
  --red: #b8665a;
  --radius: 18px;
  --shadow: 0 26px 70px rgba(52, 64, 61, .12), 0 3px 12px rgba(52, 64, 61, .07);
  --font-body: "DM Sans", ui-sans-serif, system-ui, sans-serif;
  --font-display: "Fraunces", Georgia, serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
}

body {
  color: var(--ink);
  background: var(--bg);
  font-family: var(--font-body);
}
body::before {
  background:
    linear-gradient(rgba(45, 83, 102, .035) 1px, transparent 1px) 0 0 / 100% 30px,
    radial-gradient(circle 36rem at var(--mx, 78%) var(--my, 12%), rgba(78, 157, 145, .12), transparent 72%),
    #f4f1e9;
}
body::after { opacity: .018; mix-blend-mode: multiply; }
::selection { color: #fff; background: var(--teal); }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid rgba(22, 132, 117, .45); outline-offset: 3px; }
.scroll-progress { height: 3px; background: var(--teal); box-shadow: none; }
.bg-orbs { display: none; }

.topbar {
  top: 14px;
  width: min(1180px, calc(100% - 28px));
  min-height: 66px;
  padding: 0 11px 0 17px;
  border-color: rgba(45, 66, 68, .12);
  border-radius: 18px;
  background: rgba(255, 253, 248, .84);
  box-shadow: 0 8px 28px rgba(55, 66, 61, .06);
}
.topbar.scrolled { border-color: rgba(45, 66, 68, .18); background: rgba(255, 253, 248, .96); box-shadow: 0 12px 34px rgba(55, 66, 61, .11); }
.brand { gap: 10px; }
.brand-mark {
  width: 38px; height: 38px;
  border: 1px solid rgba(38, 54, 59, .18);
  border-radius: 50%;
  color: #fff;
  background: #34464b;
  box-shadow: none;
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 600;
}
.brand-word { color: var(--ink); font: 600 18px var(--font-display); letter-spacing: .02em; }
.by-macrodev { color: #899092; border-color: var(--line); font: 500 .52rem var(--font-mono); letter-spacing: .08em; }
nav a { color: #687477; font: 600 .76rem var(--font-body); text-transform: none; letter-spacing: 0; }
nav a:hover { color: var(--teal-deep); background: #e9f1ee; }

.button {
  border-color: var(--line-strong);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255,255,255,.55);
  font: 700 .82rem var(--font-body);
  text-transform: none;
  letter-spacing: 0;
  box-shadow: none;
}
.button.primary { color: #fff; border-color: var(--teal-deep); background: var(--teal-deep); box-shadow: 0 8px 22px rgba(17, 106, 96, .18); }
.button.primary:hover { border-color: #0c5b53; background: #0c5b53; box-shadow: 0 10px 26px rgba(17, 106, 96, .24); }
.button.ghost { color: var(--ink); border-color: var(--line-strong); background: rgba(255,253,248,.55); }
.button.ghost:hover { border-color: rgba(17,106,96,.35); background: #eef5f2; }
.button.teal-btn { background: var(--teal-deep); box-shadow: none; }
.button.teal-btn:hover:not(:disabled) { box-shadow: 0 8px 22px rgba(17,106,96,.2); }
.button.ghost-btn { color: var(--muted); background: #fff; }
.button.ghost-btn:hover { color: var(--ink); background: var(--panel-2); }

.hero {
  min-height: 100vh;
  max-width: 1180px;
  padding: 132px 24px 72px;
  grid-template-columns: 1fr .92fr;
  gap: 72px;
  text-align: left;
}
.eyebrow {
  gap: 9px;
  margin-bottom: 19px;
  color: var(--teal-deep);
  font: 600 .68rem var(--font-mono);
  text-transform: uppercase;
  letter-spacing: .105em;
}
.eyebrow::before { width: 22px; background: var(--teal); }
.eyebrow.teal { color: var(--teal-deep); }
.eyebrow.gold { color: #a86d2f; }
.hero h1 {
  max-width: 680px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(4.1rem, 6.7vw, 7rem);
  font-weight: 600;
  line-height: .91;
  letter-spacing: -.055em;
  text-transform: none;
}
.hero h1 em { color: var(--teal-deep); font-style: italic; text-shadow: none; }
.lead { max-width: 610px; margin-top: 28px; padding-left: 0; border: 0; color: #627074; font-size: 1.04rem; line-height: 1.72; }
.lead b { color: var(--ink); }
.hero-actions { justify-content: flex-start; margin-top: 31px; }
.hero-meta { gap: 18px; margin-top: 30px; color: #6d797b; font: 500 .68rem var(--font-body); text-transform: none; }
.hero-meta i { width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; color: var(--teal-deep); background: #dcece7; font-style: normal; font-size: .65rem; transform: none; }
.hero-aside { margin: 20px 0 0; color: #8a8580; font: italic 500 .84rem var(--font-display); }

.case-file { position: relative; padding: 28px 0 0 18px; transform: rotate(1.2deg); transition: transform .35s ease; }
.case-file:hover { transform: rotate(0); }
.file-tab { position: absolute; top: 0; left: 48px; padding: 9px 23px 16px; border-radius: 12px 12px 0 0; color: #fff; background: #57777b; font: 500 .61rem var(--font-mono); letter-spacing: .08em; }
.file-paper { position: relative; min-height: 510px; padding: 39px 37px 30px; border: 1px solid rgba(50,68,69,.16); border-radius: 8px 22px 22px 8px; background: #fffdf8; box-shadow: 0 32px 65px rgba(56,68,64,.14), 11px 10px 0 #dfe7e1; }
.file-paper::before { content: ""; position: absolute; left: 25px; top: 0; bottom: 0; width: 1px; background: rgba(184,102,90,.19); }
.file-heading { display: grid; grid-template-columns: 45px 1fr auto; gap: 13px; align-items: center; }
.file-j { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: #34464b; font: 600 1.45rem var(--font-display); }
.file-heading div { display: flex; flex-direction: column; }
.file-heading small { color: var(--muted); font: 500 .62rem var(--font-mono); text-transform: uppercase; letter-spacing: .06em; }
.file-heading strong { margin-top: 3px; font: 600 1rem var(--font-display); }
.status-pill { padding: 6px 9px; border-radius: 999px; color: var(--teal-deep); background: #e0eee9; font-size: .67rem; font-weight: 700; }
.file-rule { height: 1px; margin: 24px 0; background: var(--line); }
.file-summary { color: #657175; font-size: .86rem; line-height: 1.65; }
.file-checklist { margin: 22px 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.file-checklist li { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: #faf9f4; transition: .2s ease; }
.file-checklist li:hover { border-color: rgba(22,132,117,.33); transform: translateX(3px); }
.file-checklist li > span { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; color: var(--teal-deep); background: #dcece7; font-size: .72rem; }
.file-checklist div { display: flex; flex-direction: column; }
.file-checklist b { font-size: .79rem; }.file-checklist small { color: var(--muted); font-size: .68rem; }
.jimmy-note { display: flex; gap: 11px; align-items: flex-start; padding: 13px; border-radius: 6px 14px 14px 14px; background: #f1eadc; transform: rotate(-1deg); }
.jimmy-note > span { width: 26px; height: 26px; flex: none; display: grid; place-items: center; border-radius: 50%; color: #fff; background: #557276; font: 600 .9rem var(--font-display); }
.jimmy-note p { margin: 1px 0 0; color: #625f5a; font-size: .73rem; line-height: 1.5; }
.paperclip { position: absolute; z-index: 3; top: 52px; right: 23px; width: 18px; height: 55px; border: 2px solid #93a09e; border-radius: 12px; transform: rotate(7deg); }
.paperclip::after { content: ""; position: absolute; inset: 4px 3px 12px; border: 1px solid #adb6b4; border-radius: 8px; }

.capability-index { max-width: 1180px; margin: 0 auto; padding: 0 24px 26px; display: grid; grid-template-columns: repeat(6,1fr); border-bottom: 1px solid var(--line-strong); }
.capability-index span { padding: 15px 14px; display: flex; flex-direction: column; gap: 4px; border-left: 1px solid var(--line); color: #556367; font-size: .76rem; }
.capability-index span:last-child { border-right: 1px solid var(--line); }
.capability-index b { color: var(--teal-deep); font: 500 .58rem var(--font-mono); }

.section { max-width: 1180px; padding-top: clamp(82px, 9vw, 116px); }
.section-heading { max-width: 820px; margin-bottom: 42px; }
.section-heading h2, .cta h2 { color: var(--ink); font-family: var(--font-display); font-size: clamp(3rem, 5vw, 5.2rem); font-weight: 600; line-height: .98; letter-spacing: -.045em; text-transform: none; }
.section-heading h2 em { color: var(--teal-deep); font-style: italic; }
.section-heading > p:not(.eyebrow) { max-width: 700px; color: #687477; line-height: 1.75; }

.app-window { border-color: rgba(46,65,66,.17); border-radius: 20px; background: #fffdf9; box-shadow: var(--shadow); }
.app-window::before { display: none; }
.window-bar { min-height: 49px; border-color: var(--line); background: #f1efe8; }
.window-bar .dot { width: 8px; height: 8px; background: #aeb8b5; }
.window-bar .dot:nth-child(1) { background: #c98377; }.window-bar .dot:nth-child(2) { background: #d7a85f; }.window-bar .dot:nth-child(3) { background: #71a996; }
.window-title { color: #7d8788; font-family: var(--font-body); font-weight: 500; }
.chat-sidebar { background: #f5f3ed; }
.sidebar-title { color: #748083; }
.saved-chat { color: #647174; }.saved-chat:hover { color: var(--ink); background: #e8eee9; }.saved-chat.active { color: var(--teal-deep); border-color: rgba(22,132,117,.2); background: #dfebe6; }
.new-analysis { color: var(--teal-deep); border-color: rgba(22,132,117,.35); background: #fff; }.new-analysis:hover { color: #fff; background: var(--teal-deep); }
.doc-chip, .juri-file { background: #f7f5ef; }
.msg.ia .avatar { background: #557276; }.msg.user .avatar { color: var(--teal-deep); background: #dcece7; }
.msg.ia .bubble { background: #f4f2ec; }.msg.user .bubble { color: var(--ink); border-color: rgba(22,132,117,.22); background: #e5f1ed; }
.suggestion { color: #687477; background: #fff; }.suggestion:hover:not(:disabled) { color: var(--teal-deep); border-color: var(--teal); background: #eef6f3; }
.chat-inputbar { background: #fff; }.chat-inputbar:focus-within { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(22,132,117,.1); }
.chat-inputbar input { color: var(--ink); }.chat-inputbar .send { color: #fff; border-color: var(--teal-deep); background: var(--teal-deep); }.chat-inputbar .send:hover { background: #0c5b53; }
.juri-app, .chat-main, .dash-app, .cal-app, .calc-form { background: #fffdf9; }
.pipeline-steps li, .juri-empty, .result-card, .stat, .dash-panel { border-color: var(--line); background: #f8f6f0; }
.pipeline-steps li.active, .result-card:hover { border-color: rgba(22,132,117,.4); background: #f0f7f4; }
.pipeline-steps li.active b { background: var(--teal-deep); box-shadow: none; }
.progress-track { background: #e4e4dd; }.progress-fill { background: linear-gradient(90deg,#579c91,var(--teal)); box-shadow: none; }
.result-interpretacao { color: #43645f; border-color: rgba(22,132,117,.18); background: #e9f3ef; }
.stat-num.indigo { color: var(--blue); }.dash-kicker, .panel-title { color: var(--teal-deep); }
.cal-nav button, .today-btn { color: #687477; background: #fff; }.today-btn:hover, .cal-nav button:hover { color: var(--teal-deep); border-color: var(--teal); }
.cal-day { color: #687477; background: #f8f6f0; }.cal-day.today { color: #fff; border-color: var(--teal-deep); background: var(--teal-deep); }.cal-day:hover:not(.empty) { color: var(--ink); border-color: var(--teal); }
.calc-form input { color: var(--ink); background: #fff; }.calc-form input:focus { border-color: var(--teal); }
.calc-result { background: #f1efe8; }.calc-result .total { border-color: rgba(22,132,117,.23); background: #e3efeb; }
.feature-grid article { border-color: var(--line); background: #fffdf8; box-shadow: 0 8px 28px rgba(52,64,61,.045); }.feature-grid article:hover { border-color: rgba(22,132,117,.33); box-shadow: 0 14px 34px rgba(52,64,61,.09); }
.f-num { color: var(--teal-deep); background: #e0eee9; font-family: var(--font-mono); }

/* Jimmy Box: product configurator, not a hacker console */
.box-console { border-color: rgba(46,65,66,.17); border-radius: 24px; background: #fffdf8; box-shadow: var(--shadow); }
.box-console-bar { min-height: 58px; border-color: var(--line); background: #e9eee8; }
.box-console-bar .dot { display: none; }
.box-console-bar strong { margin-left: 0; color: var(--ink); font: 600 .8rem var(--font-body); }
.box-live { color: var(--teal-deep); font: 600 .68rem var(--font-body); text-transform: none; }
.box-live i { box-shadow: 0 0 0 5px rgba(22,132,117,.09); }
.box-console-body { min-height: 610px; }
.box-machine { border-color: var(--line); background: radial-gradient(circle at 50% 48%,rgba(71,142,130,.15),transparent 18rem),#eef0e9; }
.machine-grid { opacity: .28; background-image: linear-gradient(rgba(46,65,66,.12) 1px,transparent 1px),linear-gradient(90deg,rgba(46,65,66,.12) 1px,transparent 1px); }
.machine-shell { border-color: rgba(42,63,65,.28); background: linear-gradient(145deg,#536367,#2c3d42 65%); box-shadow: inset 0 1px rgba(255,255,255,.2),inset -18px -18px 40px rgba(0,0,0,.14),0 35px 65px rgba(47,61,60,.2); }
.machine-light { background: #7bd7ae; box-shadow: 0 0 11px rgba(80,210,156,.65); }
.machine-mark { color: #fff; text-shadow: none; }.machine-shell small { color: #c9d4d3; }.machine-shell b { color: #9de0c6; }
.signal { border-color: rgba(22,132,117,.15); }
.machine-node { border-color: rgba(46,65,66,.15); background: rgba(255,253,248,.92); box-shadow: 0 14px 35px rgba(52,64,61,.11); }
.machine-node small { color: #879092; }.machine-node b { color: var(--ink); }.machine-node b::before { background: var(--teal); }
.box-controls { background: radial-gradient(circle at 100% 0,rgba(78,157,145,.1),transparent 24rem),#fffdf8; }
.console-command { color: #657174; font: 600 .78rem var(--font-body); }.console-command span { width: 22px; height: 22px; display: inline-grid; place-items: center; margin-right: 7px; border-radius: 50%; color: var(--teal-deep); background: #dcece7; font: 500 .58rem var(--font-mono); }
.profile-tabs { border-color: var(--line); background: #f1efe8; }
.profile-tab { color: #697477; font: 600 .7rem var(--font-body); text-transform: none; }.profile-tab:hover { color: var(--ink); }.profile-tab.active { color: #fff; border-color: var(--teal-deep); background: var(--teal-deep); }
.control-list { border-color: var(--line); }.control-row { border-color: var(--line); }.control-row b { color: var(--ink); }.control-row small { color: #7b8587; font-family: var(--font-body); }
.control-row > i { border-color: #c4cbc7; background: #ecebe5; }.control-row > i::after { background: #9ba5a2; }
.control-row.active > i { border-color: rgba(22,132,117,.45); background: #dcece7; }.control-row.active > i::after { background: var(--teal); box-shadow: none; }
.control-row.locked b::after { content: "restrito"; color: #a96056; font-family: var(--font-body); text-transform: none; }
.box-log { color: #667275; border-color: var(--line); background: #f5f3ed; font: 500 .68rem/1.6 var(--font-body); }.box-log span { color: var(--teal-deep); font-family: var(--font-mono); }
.box-principles article { border-color: var(--line); background: #fffdf8; }.box-principles article:hover { border-color: rgba(22,132,117,.32); }
.box-principles span { color: var(--teal-deep); }.box-principles h3 { color: var(--ink); font-family: var(--font-display); text-transform: none; }.box-principles p { color: #707b7d; font-size: .77rem; }
.legal-note { border-color: #c7a36d; color: #726a60; background: #f2eadc; font: 500 .69rem/1.65 var(--font-body); }

.grad { color: var(--teal-deep); -webkit-text-fill-color: var(--teal-deep); background: none; }
.cta { max-width: 920px; border-color: rgba(45,83,102,.2); background: #e4ece8; box-shadow: 0 24px 60px rgba(52,64,61,.09); }
.cta::before { background: radial-gradient(circle,rgba(255,255,255,.8),transparent 65%); }
.cta .eyebrow { justify-content: center; }.cta .grad { color: var(--teal-deep); -webkit-text-fill-color: var(--teal-deep); }
.cta p { color: #667376; }
.footer { color: #747e80; border-color: var(--line); font-family: var(--font-body); }.footer > a:hover { color: var(--teal-deep); }

@media (max-width: 1050px) {
  .hero { grid-template-columns: 1fr; gap: 64px; }
  .hero-copy { max-width: 780px; }
  .case-file { width: min(650px, 94%); margin: 0 auto; }
  .capability-index { grid-template-columns: repeat(3,1fr); }
}
@media (max-width: 760px) {
  .topbar { top: 8px; width: calc(100% - 16px); }
  .hero { padding: 118px 14px 58px; gap: 46px; }
  .hero h1 { font-size: clamp(3.25rem, 14vw, 4.8rem); }
  .lead { font-size: .94rem; }
  .hero-meta { gap: 10px 14px; }
  .case-file { width: 100%; padding-left: 7px; transform: none; }
  .file-paper { min-height: 470px; padding: 34px 20px 25px 27px; box-shadow: 7px 7px 0 #dfe7e1; }
  .file-heading { grid-template-columns: 40px 1fr; }.file-heading .status-pill { grid-column: 2; justify-self: start; }.file-heading strong { font-size: .87rem; }
  .paperclip { right: 13px; }.capability-index { grid-template-columns: repeat(2,1fr); padding-inline: 14px; }
  .section { padding-inline: 14px; }.section-heading h2, .cta h2 { font-size: clamp(2.8rem,13vw,4.2rem); }
  .box-machine { min-height: 500px; }
  .box-console-bar { padding-inline: 16px; }.box-console-bar strong { max-width: none; }.box-live { display: none; }
  .footer { padding-inline: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}

/* ============ Jimmy identity layer — considerate, capable, quietly playful ============ */
:root {
  --bg: #f4f0e6;
  --bg-2: #ebe6d9;
  --panel: #fffdf8;
  --panel-2: #f8f5ec;
  --line: rgba(37, 55, 61, .13);
  --line-strong: rgba(37, 55, 61, .23);
  --ink: #25373d;
  --muted: #69777a;
  --blue: #526b73;
  --blue-ui: #395a64;
  --blue-soft: #d7e3e2;
  --teal: #168b7d;
  --teal-deep: #0f6e65;
  --amber: #d2a74a;
  --orange: #d6815f;
  --red: #d36f67;
  --lavender: #dddaf1;
  --lavender-deep: #706b98;
  --coral: #e58b72;
  --paper: #fffdf8;
  --radius: 22px;
  --shadow: 0 24px 70px rgba(53, 65, 62, .12), 0 3px 12px rgba(53, 65, 62, .06);
  --font-body: "DM Sans", ui-sans-serif, system-ui, sans-serif;
  --font-display: "Fraunces", Georgia, serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
}

body {
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
body::before {
  background:
    radial-gradient(circle 34rem at var(--mx, 18%) var(--my, 14%), rgba(221, 218, 241, .75), transparent 72%),
    radial-gradient(circle 34rem at 96% 22%, rgba(195, 225, 215, .55), transparent 72%),
    linear-gradient(180deg, #f7f4ec 0%, #f1ede3 100%);
}
body::after {
  opacity: .035;
  mix-blend-mode: multiply;
}
::selection { color: var(--ink); background: #c8e5dc; }
button:focus-visible, a:focus-visible, input:focus-visible { outline-color: var(--teal); }
.scroll-progress { height: 3px; background: linear-gradient(90deg, var(--teal), #8fc9b9, var(--coral)); box-shadow: none; }
.orb { filter: blur(110px); opacity: .48; }
.orb-a { background: radial-gradient(circle, rgba(221,218,241,.85), transparent 66%); }
.orb-b { background: radial-gradient(circle, rgba(179,220,207,.55), transparent 68%); }
.orb-c { background: radial-gradient(circle, rgba(239,194,172,.42), transparent 68%); }

.topbar {
  top: 14px;
  min-height: 66px;
  border: 1px solid rgba(37,55,61,.12);
  border-radius: 22px;
  color: var(--ink);
  background: rgba(255,253,248,.82);
  box-shadow: 0 8px 30px rgba(69,78,72,.06);
}
.topbar.scrolled { border-color: rgba(37,55,61,.2); background: rgba(255,253,248,.95); box-shadow: 0 14px 38px rgba(69,78,72,.12); }
.brand-mark {
  width: 39px; height: 39px;
  border: 1px solid rgba(82,107,115,.2);
  border-radius: 13px 13px 13px 5px;
  color: #fff;
  background: var(--blue-ui);
  box-shadow: 4px 4px 0 #bddbd2;
  font-family: var(--font-display);
  font-style: italic;
}
.brand-word { color: var(--ink); font-family: var(--font-body); font-size: 17px; letter-spacing: .13em; }
.by-macrodev { border-color: var(--line); color: #8b9693; font-family: var(--font-mono); }
nav a { color: #69777a; font-family: var(--font-body); font-size: .78rem; text-transform: none; letter-spacing: 0; }
nav a:hover { color: var(--teal-deep); background: #edf5f1; }

.button {
  border-color: var(--line-strong);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255,253,248,.72);
  font-family: var(--font-body);
  font-size: .84rem;
  text-transform: none;
  letter-spacing: 0;
}
.button.primary { border-color: var(--blue-ui); color: #fff; background: var(--blue-ui); box-shadow: 0 10px 24px rgba(57,90,100,.2); }
.button.primary:hover { border-color: var(--teal-deep); background: var(--teal-deep); box-shadow: 0 13px 28px rgba(15,110,101,.22); }
.button.ghost { color: var(--ink); border-color: var(--line-strong); background: rgba(255,253,248,.58); }
.button.ghost:hover { border-color: rgba(22,139,125,.42); background: #eaf4f0; }
.button.teal-btn { background: var(--teal-deep); box-shadow: 0 8px 20px rgba(15,110,101,.17); }
.button.ghost-btn { color: var(--muted); border-color: var(--line-strong); background: transparent; }

.hero {
  min-height: 100vh;
  max-width: 1220px;
  padding: 140px 28px 76px;
  grid-template-columns: 1.03fr .97fr;
  gap: 72px;
  text-align: left;
}
.hero-copy::before {
  content: "bom dia, doutor(a).";
  position: absolute;
  top: -58px; right: 8%;
  padding: 9px 13px;
  border: 1px solid #ddcf9d;
  border-radius: 12px 12px 12px 4px;
  color: #70674c;
  background: #fff3bd;
  box-shadow: 4px 5px 0 rgba(210,167,74,.13);
  font: 500 .65rem var(--font-mono);
  transform: rotate(2deg);
}
.eyebrow { color: var(--teal-deep); font-family: var(--font-mono); font-size: .64rem; letter-spacing: .1em; }
.eyebrow::before { width: 18px; height: 7px; border-radius: 999px; background: #a9d6c9; }
.eyebrow.teal { color: var(--teal-deep); }.eyebrow.gold { color: #9b7727; }
.hero h1 {
  max-width: 680px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(3.65rem, 6.5vw, 6.8rem);
  font-weight: 600;
  line-height: .94;
  letter-spacing: -.065em;
  text-transform: none;
}
.hero h1 span { color: var(--lavender-deep); -webkit-text-stroke: 0; }
.hero h1 em { color: var(--teal-deep); font-style: italic; text-shadow: none; }
.lead { max-width: 610px; margin-top: 30px; padding: 0; border: 0; color: var(--muted); font-size: 1.03rem; line-height: 1.72; }
.lead b { color: var(--ink); font-weight: 600; }
.hero-meta { color: #73817e; font-family: var(--font-body); font-size: .7rem; text-transform: none; }
.hero-meta i { border-radius: 50%; background: var(--coral); transform: none; }
.hero-meta i { width: 18px; height: 18px; display: inline-flex; align-items: center; justify-content: center; color: #fff; font: 700 .58rem var(--font-body); }
.hero-aside { width: fit-content; margin: 24px 0 0 12px; color: #777054; font: 500 .68rem var(--font-mono); transform: rotate(-1deg); }

.case-file { position: relative; min-height: 585px; display: grid; place-items: center; perspective: 1100px; }
.case-file::before { content: ""; position: absolute; width: 82%; height: 78%; border-radius: 28px 28px 12px 12px; background: #c9deda; transform: rotate(4deg) translate(18px,12px); box-shadow: 0 26px 60px rgba(57,90,100,.1); }
.case-file::after { content: ""; position: absolute; width: 82%; height: 78%; border: 1px solid rgba(37,55,61,.1); border-radius: 28px 28px 12px 12px; background: #e4e0ef; transform: rotate(-3deg) translate(-15px,5px); }
.file-tab { position: absolute; z-index: 4; top: 48px; left: 12%; padding: 11px 20px 9px; border-radius: 13px 13px 0 0; color: #fff; background: var(--teal-deep); font: 500 .6rem var(--font-mono); letter-spacing: .08em; transform: rotate(-2deg); }
.file-paper { position: relative; z-index: 3; width: 82%; min-height: 455px; padding: 34px; border: 1px solid rgba(37,55,61,.14); border-radius: 9px 27px 12px 12px; background: #fffdf8; box-shadow: 0 30px 70px rgba(55,68,64,.14); transform: rotate(1.2deg); transition: transform .35s ease, box-shadow .35s ease; }
.case-file:hover .file-paper { transform: rotate(0) translateY(-7px); box-shadow: 0 38px 78px rgba(55,68,64,.18); }
.file-heading { display: grid; grid-template-columns: 46px 1fr auto; align-items: center; gap: 12px; }
.file-heading > div { display: flex; min-width: 0; flex-direction: column; }.file-heading small { color: #87918f; font: 500 .58rem var(--font-mono); text-transform: uppercase; letter-spacing: .08em; }.file-heading strong { overflow: hidden; color: var(--ink); font-size: .9rem; text-overflow: ellipsis; white-space: nowrap; }
.file-j { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 15px 15px 15px 5px; color: #fff; background: var(--blue-ui); font: italic 600 1.45rem var(--font-display); box-shadow: 4px 4px 0 #c9deda; }
.status-pill { padding: 6px 10px; border-radius: 999px; color: var(--teal-deep); background: #dceee8; font-size: .65rem; font-weight: 700; white-space: nowrap; }
.file-rule { height: 1px; margin: 24px 0 20px; background: repeating-linear-gradient(90deg,rgba(37,55,61,.18) 0 5px,transparent 5px 10px); }
.file-summary { margin: 0 0 20px; color: var(--muted); font-size: .82rem; line-height: 1.6; }
.file-checklist { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.file-checklist li { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border: 1px solid rgba(37,55,61,.09); border-radius: 12px; background: #f7f5ee; }
.file-checklist li > span { width: 22px; height: 22px; display: grid; place-items: center; flex: none; border-radius: 50%; color: #fff; background: var(--teal); font-size: .65rem; }
.file-checklist li div { display: flex; flex-direction: column; }.file-checklist b { font-size: .75rem; }.file-checklist small { color: #84908d; font-size: .64rem; }
.jimmy-note { margin: 20px -4px -2px auto; max-width: 92%; padding: 12px 14px; display: flex; align-items: center; gap: 10px; border: 1px solid #e2cf94; border-radius: 14px 14px 14px 5px; color: #6e664e; background: #fff4c9; box-shadow: 4px 5px 0 rgba(210,167,74,.1); transform: rotate(-1.2deg); }
.jimmy-note > span { width: 28px; height: 28px; display: grid; place-items: center; flex: none; border-radius: 9px 9px 9px 3px; color: #fff; background: var(--coral); font: italic 600 .92rem var(--font-display); }.jimmy-note p { margin: 0; font-size: .67rem; line-height: 1.45; }
.paperclip { position: absolute; z-index: 5; top: 72px; right: 11%; width: 25px; height: 74px; border: 3px solid #82908e; border-radius: 14px; border-bottom-color: transparent; transform: rotate(9deg); opacity: .8; }
.capability-index { max-width: 1220px; margin: 0 auto; padding: 18px 28px; display: grid; grid-template-columns: repeat(6,1fr); border-block: 1px solid rgba(37,55,61,.11); color: #63736f; background: rgba(255,253,248,.34); }
.capability-index span { padding: 8px 13px; border-right: 1px solid rgba(37,55,61,.1); font-size: .72rem; text-align: center; }.capability-index span:last-child { border-right: 0; }.capability-index b { margin-right: 7px; color: var(--coral); font: 500 .56rem var(--font-mono); }

.legal-orbit { min-height: 580px; }
.orbit-grid {
  inset: 5%; border: 0; border-radius: 42px;
  opacity: .5;
  background-image: radial-gradient(rgba(57,90,100,.22) 1px, transparent 1.5px);
  background-size: 22px 22px;
  mask-image: radial-gradient(circle,#000 25%,transparent 74%);
}
.orbit-ring { width: 455px; height: 455px; border-color: rgba(22,139,125,.2); border-style: dashed; animation-duration: 42s; }
.orbit-ring::before { width: 12px; height: 12px; background: var(--coral); box-shadow: 0 0 0 8px rgba(229,139,114,.13); }
.orbit-ring::after { background: var(--teal); box-shadow: 0 0 0 7px rgba(22,139,125,.1); }
.orbit-ring.ring-two { width: 330px; height: 330px; border-color: rgba(112,107,152,.22); animation-duration: 48s; }
.jimmy-core {
  width: 180px; height: 180px;
  border: 1px solid rgba(82,107,115,.18);
  border-radius: 54px 54px 54px 20px;
  color: #fff;
  background: var(--blue-ui);
  box-shadow: 14px 16px 0 #c9ded8, 0 30px 65px rgba(57,90,100,.18);
  transform: rotate(-3deg);
}
.jimmy-core::after { border-color: rgba(255,255,255,.22); border-radius: 44px 44px 44px 14px; }
.jimmy-core span { font-family: var(--font-display); font-style: italic; font-weight: 600; transform: rotate(3deg); }
.jimmy-core small { color: rgba(255,255,255,.66); font-family: var(--font-mono); }
.orbit-node {
  min-width: 165px;
  border-color: rgba(37,55,61,.13);
  border-radius: 17px 17px 17px 7px;
  color: var(--ink);
  background: rgba(255,253,248,.92);
  box-shadow: 0 13px 35px rgba(55,68,64,.1), 4px 5px 0 rgba(221,218,241,.65);
}
.orbit-node:hover { border-color: rgba(22,139,125,.34); }
.orbit-node i { background: var(--teal); box-shadow: 0 0 0 5px rgba(22,139,125,.1); }
.orbit-node small { color: #87918f; font-family: var(--font-mono); }
.orbit-node strong { font-family: var(--font-body); letter-spacing: .04em; }
.node-doc { transform: rotate(2deg); }.node-juri { transform: rotate(-2deg); }.node-box { transform: rotate(1deg); }
.orbit-caption { color: #7b8784; font-family: var(--font-mono); text-transform: none; }

.marquee { border-color: rgba(37,55,61,.1); background: #dcebe5; }
.marquee-track { color: #48665f; font-family: var(--font-mono); font-size: .63rem; text-transform: none; letter-spacing: .05em; }
.marquee-track i { border-radius: 50%; background: var(--coral); transform: none; }

.section { max-width: 1220px; }
.section-heading { max-width: 860px; }
.section-heading h2, .cta h2 {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(2.8rem,5vw,5.2rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.055em;
  text-transform: none;
}
.section-heading h2 em { color: var(--teal-deep); font-style: italic; }
.section-heading > p:not(.eyebrow) { color: var(--muted); }

.app-window {
  border-color: rgba(37,55,61,.15);
  border-radius: 26px;
  color: var(--ink);
  background: var(--paper);
  box-shadow: var(--shadow);
}
.app-window::before { display: none; }
.window-bar { border-color: var(--line); background: #eeeae0; }
.window-bar .dot { background: #b7c1bd; }.window-bar .dot:nth-child(1) { background: #df8c7b; }.window-bar .dot:nth-child(2) { background: #e2bd61; }.window-bar .dot:nth-child(3) { background: #77b8a6; }
.window-title { color: #75817e; font-family: var(--font-mono); }
.chat-sidebar { background: #f0eee6; }
.saved-chat:hover { color: var(--ink); background: #e5eee9; }
.saved-chat.active { color: var(--teal-deep); border-color: rgba(22,139,125,.2); background: #dfeee8; }
.new-analysis { border-color: rgba(22,139,125,.3); color: var(--teal-deep); background: #e7f2ee; }.new-analysis:hover { background: var(--teal-deep); }
.doc-chip, .chat-inputbar, .result-card, .calc-form input { color: var(--ink); background: #f7f5ee; }
.msg.ia .avatar { color: #fff; background: var(--blue-ui); }
.msg.ia .bubble { background: #eef3f1; }.msg.user .bubble { border-color: #cbc8e3; background: #eeecf8; }
.suggestion { color: var(--muted); background: #f8f6ef; }.suggestion:hover:not(:disabled) { border-color: var(--teal); color: var(--teal-deep); background: #eaf4f0; }
.chat-inputbar:focus-within { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(22,139,125,.1); }
.chat-inputbar .send { border-color: var(--teal-deep); color: #fff; background: var(--teal-deep); }
.juri-file { border-color: rgba(22,139,125,.42); background: #eaf4f0; }
.progress-track, .score-bar { background: #e3e5df; }.progress-fill, .score-bar i { box-shadow: none; }
.pipeline-steps li, .stat, .dash-panel { background: #f7f5ee; }
.pipeline-steps li.active { border-color: rgba(22,139,125,.45); background: #eaf4f0; }
.result-interpretacao { color: #405d57; background: #edf6f2; }
.event-list li, .inbox-list li, .cal-day { background: #f0eee6; }
.cal-day.today { border-color: var(--teal); color: var(--ink); background: #d9eee7; }
.calc-form input { color-scheme: light; }
.calc-result { background: #f0eee6; }
.feature-grid article {
  border-color: rgba(37,55,61,.13);
  border-radius: 24px 24px 24px 9px;
  background: rgba(255,253,248,.78);
  box-shadow: 0 10px 32px rgba(55,68,64,.05);
}
.feature-grid article:nth-child(2), .feature-grid article:nth-child(4) { border-radius: 24px 9px 24px 24px; }
.feature-grid article:hover { border-color: rgba(22,139,125,.35); }
.f-num { color: var(--lavender-deep); background: var(--lavender); font-family: var(--font-mono); }

.box-console {
  border-color: rgba(37,55,61,.16);
  border-radius: 28px;
  color: var(--ink);
  background: var(--paper);
  box-shadow: var(--shadow);
}
.box-console-bar { border-color: var(--line); background: #e9e6de; }
.box-console-bar strong { color: #6e7b78; font-family: var(--font-mono); }
.box-live { color: var(--teal-deep); font-family: var(--font-mono); }
.box-machine { border-color: var(--line); background: radial-gradient(circle at 50% 47%, rgba(205,226,219,.9), transparent 19rem),#edf0e9; }
.machine-grid { opacity: .7; background-image: radial-gradient(rgba(57,90,100,.18) 1px,transparent 1.5px); background-size: 19px 19px; }
.machine-shell {
  border-color: rgba(57,90,100,.27);
  border-radius: 34px 34px 34px 14px;
  color: #fff;
  background: linear-gradient(145deg,#4d6971,#2f4e57 65%);
  box-shadow: inset 0 1px rgba(255,255,255,.18),18px 20px 0 rgba(174,211,200,.6),0 34px 70px rgba(57,90,100,.2);
}
.machine-light { background: #84d2b9; box-shadow: 0 0 0 6px rgba(132,210,185,.13); }
.machine-mark { font-family: var(--font-display); font-style: italic; font-weight: 600; text-shadow: none; }
.machine-shell small { color: rgba(255,255,255,.66); }.machine-shell b { color: #bde7db; }
.signal { border-color: rgba(22,139,125,.17); }
.machine-node { border-color: rgba(37,55,61,.14); color: var(--ink); background: rgba(255,253,248,.94); box-shadow: 0 12px 28px rgba(55,68,64,.09); }
.machine-node small { color: #87918f; }.machine-node b { color: var(--ink); }.machine-node b::before { background: var(--teal); }
.box-controls { background: radial-gradient(circle at 100% 0,rgba(221,218,241,.65),transparent 28rem),#fffdf8; }
.console-command { color: #6f7d79; }.console-command span { color: var(--teal-deep); }
.profile-tabs { border-color: var(--line); background: #efede5; }
.profile-tab { color: #72807d; font-family: var(--font-body); text-transform: none; }.profile-tab:hover { color: var(--ink); }.profile-tab.active { color: var(--ink); border-color: rgba(112,107,152,.24); background: var(--lavender); }
.control-row { border-color: var(--line); }.control-row b { color: var(--ink); }.control-row small { color: #7f8a87; }
.control-row > i { border-color: #c8ceca; background: #e6e6df; }.control-row > i::after { background: #a7afab; }
.control-row.active > i { border-color: rgba(22,139,125,.35); background: #dceee8; }.control-row.active > i::after { background: var(--teal); box-shadow: none; }
.control-row.locked b::after { color: var(--coral); content: "local"; }
.box-log { border-color: rgba(37,55,61,.1); color: #6b7875; background: #f0eee7; }.box-log span { color: var(--teal-deep); }
.box-principles article { border-color: rgba(37,55,61,.13); border-radius: 22px 22px 22px 8px; background: rgba(255,253,248,.8); }
.box-principles article:hover { border-color: rgba(22,139,125,.34); }
.box-principles span { color: var(--coral); }.box-principles h3 { color: var(--ink); font-family: var(--font-display); text-transform: none; }.box-principles p { color: var(--muted); }
.legal-note { border-color: var(--teal); color: #65736f; background: rgba(220,235,229,.65); font-family: var(--font-body); }

.cta { border-color: rgba(37,55,61,.13); border-radius: 34px 34px 34px 12px; background: linear-gradient(135deg,#dcebe5,#f0eef8 66%,#fff3df); box-shadow: var(--shadow); }
.cta::after { content: "sem gravata, mas com contexto."; position: absolute; right: 24px; bottom: 18px; color: #7e8784; font: 500 .58rem var(--font-mono); transform: rotate(-2deg); }
.cta .eyebrow { justify-content: center; }.cta .grad { color: var(--teal-deep); -webkit-text-fill-color: var(--teal-deep); }
.footer { color: #71807c; border-color: var(--line); font-family: var(--font-body); }.footer > a:hover { color: var(--teal-deep); }

@media (max-width: 1050px) {
  .hero { grid-template-columns: 1fr; }
  .hero-copy::before { right: 5%; }
  .box-machine { border-color: var(--line); }
}
@media (max-width: 760px) {
  .topbar { background: rgba(255,253,248,.94); }
  .hero { padding-inline: 16px; }
  .hero h1 { font-size: clamp(3.05rem,13vw,4.5rem); }
  .hero-copy::before { top: -50px; right: 2%; }
  .legal-orbit { transform: scale(.88); }
  .jimmy-core { width: 145px; height: 145px; }
  .section { padding-inline: 16px; }
  .section-heading h2, .cta h2 { font-size: clamp(2.65rem,13vw,4.4rem); }
  .box-machine { background: radial-gradient(circle at 50% 47%,rgba(205,226,219,.9),transparent 16rem),#edf0e9; }
  .cta::after { display: none; }
  .case-file { min-height: 500px; margin-inline: -8px; }.file-paper { width: 90%; min-height: 420px; padding: 25px 20px; }.case-file::before,.case-file::after { width: 88%; height: 78%; }.file-tab { top: 34px; left: 8%; }.paperclip { top: 60px; right: 7%; }.file-heading { grid-template-columns: 42px 1fr; }.status-pill { display: none; }.jimmy-note { max-width: 100%; }
  .capability-index { grid-template-columns: repeat(2,1fr); padding-inline: 14px; }.capability-index span { border-right: 0; border-bottom: 1px solid rgba(37,55,61,.08); text-align: left; }
}

/* ============ Jimmy identity — calm, editorial, quietly clever ============ */
:root {
  --bg: #f4f0e6;
  --bg-2: #e9e4d7;
  --panel: #fffdf7;
  --panel-2: #f7f3e9;
  --line: rgba(31, 51, 54, 0.13);
  --line-strong: rgba(31, 51, 54, 0.24);
  --ink: #203337;
  --muted: #6c7878;
  --blue: #3f7468;
  --blue-ui: #2f6258;
  --blue-soft: #72998f;
  --teal: #3f8172;
  --teal-deep: #2f675c;
  --amber: #c88b4d;
  --orange: #d57b5b;
  --red: #bd6759;
  --radius: 20px;
  --shadow: 0 28px 70px rgba(45, 56, 50, 0.12);
  --font-body: "DM Sans", ui-sans-serif, system-ui, sans-serif;
  --font-display: "Lora", Georgia, serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
}

body {
  color: var(--ink);
  background: var(--bg);
  font-weight: 400;
}
body::before {
  background:
    radial-gradient(circle 32rem at var(--mx, 18%) var(--my, 14%), rgba(91, 143, 127, 0.14), transparent 72%),
    radial-gradient(circle 27rem at 93% 15%, rgba(218, 154, 105, 0.13), transparent 72%),
    linear-gradient(180deg, #f8f5ed 0%, #f4f0e6 48%, #eee9dd 100%);
}
body::after {
  opacity: .032;
  mix-blend-mode: multiply;
}
::selection { color: #fffdf7; background: #3f7468; }
button:focus-visible, a:focus-visible, input:focus-visible { outline-color: #3f7468; }

.scroll-progress {
  height: 3px;
  background: linear-gradient(90deg, #3f7468, #8bb1a3, #d89b6a);
  box-shadow: none;
}
.orb { filter: blur(85px); opacity: .34; }
.orb-a { background: radial-gradient(circle, rgba(113, 162, 147, .38), transparent 68%); }
.orb-b { background: radial-gradient(circle, rgba(217, 172, 122, .28), transparent 68%); }
.orb-c { background: radial-gradient(circle, rgba(120, 143, 170, .18), transparent 68%); }

/* Navigation feels like stationery, not a control panel. */
.topbar {
  top: 0;
  left: 0;
  transform: none;
  width: 100%;
  min-height: 76px;
  padding: 0 clamp(18px, 4vw, 58px);
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: rgba(248, 245, 237, .88);
  box-shadow: none;
  backdrop-filter: blur(18px) saturate(1.2);
}
.topbar.scrolled {
  border-color: var(--line-strong);
  background: rgba(255, 253, 247, .96);
  box-shadow: 0 10px 36px rgba(45, 56, 50, .07);
}
.brand { gap: 10px; }
.brand-mark {
  width: 41px;
  height: 41px;
  border: 0;
  border-radius: 50%;
  color: #fffdf7;
  background: #315e55;
  box-shadow: inset 0 0 0 5px rgba(255,255,255,.12), 0 5px 15px rgba(49,94,85,.16);
  font: 600 24px/1 var(--font-display);
  font-style: italic;
}
.brand-word { color: var(--ink); font: 600 19px var(--font-display); letter-spacing: .015em; }
.by-macrodev { color: #8d9591; border-color: var(--line); font: 500 .52rem var(--font-mono); }
nav a { color: #667370; font: 600 .76rem var(--font-body); letter-spacing: 0; text-transform: none; }
nav a:hover { color: var(--blue-ui); background: #e9eee8; }

.button {
  border-color: var(--line-strong);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255,253,247,.72);
  font: 700 .86rem var(--font-body);
  text-transform: none;
  letter-spacing: 0;
}
.button.primary {
  color: #fffdf7;
  border-color: #315e55;
  background: #315e55;
  box-shadow: 0 12px 25px rgba(49,94,85,.16);
}
.button.primary:hover { border-color: #244e46; background: #244e46; box-shadow: 0 14px 28px rgba(49,94,85,.22); }
.button.ghost { color: var(--blue-ui); border-color: rgba(49,94,85,.24); background: rgba(255,253,247,.45); }
.button.ghost:hover { color: #244e46; border-color: rgba(49,94,85,.44); background: #fffdf7; }

/* The hero is a composed legal desk: ordered, approachable, lightly playful. */
.hero {
  min-height: 100vh;
  max-width: 1260px;
  padding: 132px 30px 74px;
  grid-template-columns: 1.02fr .98fr;
  gap: clamp(34px, 6vw, 78px);
  text-align: left;
}
.hero::before { display: block; inset: auto auto 10% -10%; width: 440px; height: 440px; background: radial-gradient(circle, rgba(107,151,138,.12), transparent 68%); mask-image: none; }
.eyebrow {
  gap: 12px;
  color: var(--blue-ui);
  font: 700 .72rem var(--font-mono);
  letter-spacing: .06em;
  text-transform: uppercase;
}
.eyebrow::before { width: 22px; background: #d18e5c; }
.eyebrow.teal { color: var(--teal-deep); }
.eyebrow.gold { color: #9e6d37; }
.hero h1 {
  max-width: 760px;
  color: var(--ink);
  font: 500 clamp(3.7rem, 6.25vw, 6.6rem)/.99 var(--font-display);
  letter-spacing: -.055em;
  text-transform: none;
}
.hero h1 span { color: var(--ink); -webkit-text-stroke: 0; }
.hero h1 em { color: #3f7468; font-style: italic; text-shadow: none; }
.lead { margin-top: 28px; padding: 0; border: 0; color: #667371; font-size: 1.05rem; line-height: 1.72; }
.lead b { color: var(--ink); font-weight: 600; }
.hero-actions { justify-content: flex-start; }
.hero-meta { color: #697673; font: 600 .69rem var(--font-body); letter-spacing: 0; text-transform: none; }
.hero-meta i { width: 7px; height: 7px; border-radius: 50%; background: #d79562; transform: none; }

.legal-orbit {
  min-height: 590px;
  border: 1px solid rgba(55,82,77,.14);
  border-radius: 44px 44px 44px 14px;
  background:
    linear-gradient(rgba(49,94,85,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(49,94,85,.045) 1px, transparent 1px),
    #eee9dc;
  background-size: 28px 28px;
  box-shadow: 0 30px 75px rgba(62,68,57,.10), inset 0 1px rgba(255,255,255,.65);
}
.legal-orbit::before {
  content: "nota: menos abas, mais clareza.";
  position: absolute;
  right: 30px;
  top: 28px;
  z-index: 5;
  padding: 10px 13px;
  color: #755c3f;
  background: #f4d8a8;
  box-shadow: 0 6px 13px rgba(91,72,45,.10);
  font: 500 .63rem var(--font-mono);
  transform: rotate(2deg);
}
.orbit-grid { inset: 8%; border: 0; border-radius: 40%; background: none; mask-image: none; }
.orbit-ring { width: 420px; height: 420px; border-color: rgba(49,94,85,.25); border-style: dashed; animation: none; transform: rotate(-6deg); }
.orbit-ring::before { background: #d79562; box-shadow: 0 0 0 7px rgba(215,149,98,.13); }
.orbit-ring::after { background: #3f7468; box-shadow: 0 0 0 6px rgba(63,116,104,.10); }
.orbit-ring.ring-two { width: 305px; height: 305px; border-color: rgba(49,94,85,.15); transform: rotate(8deg); animation: none; }
.jimmy-core {
  width: 170px;
  height: 170px;
  border: 0;
  border-radius: 50%;
  color: #fffdf7;
  background: #315e55;
  box-shadow: inset 0 0 0 10px rgba(255,255,255,.10), 0 22px 50px rgba(49,94,85,.22);
  transform: rotate(-3deg);
}
.jimmy-core::after { inset: 13px; border-color: rgba(255,255,255,.26); border-radius: 50%; }
.jimmy-core span { font: 600 4.5rem var(--font-display); font-style: italic; transform: none; }
.jimmy-core small { bottom: 26px; color: rgba(255,255,255,.62); }
.orbit-node {
  min-width: 174px;
  padding: 15px 16px;
  border-color: rgba(43,68,64,.15);
  border-radius: 13px 13px 13px 4px;
  color: var(--ink);
  background: rgba(255,253,247,.94);
  box-shadow: 0 14px 32px rgba(49,62,54,.11);
  backdrop-filter: blur(8px);
  animation: float 5.5s ease-in-out infinite;
}
.orbit-node:hover { border-color: rgba(49,94,85,.38); }
.orbit-node i { background: #5b947e; box-shadow: none; }
.orbit-node small { color: #7b8581; }
.orbit-node strong { color: var(--ink); font-family: var(--font-body); }
.node-doc { top: 76px; right: 4%; transform: rotate(1.5deg); }
.node-juri { left: -2%; top: 46%; transform: rotate(-2deg); }
.node-box { right: 3%; bottom: 58px; transform: rotate(1deg); }
.orbit-caption { bottom: 19px; color: #76817d; font: 500 .64rem var(--font-mono); letter-spacing: .04em; text-transform: none; }

.marquee { color: #f6f2e8; border: 0; background: #315e55; }
.marquee-track { color: #f6f2e8; font: 500 .72rem var(--font-mono); letter-spacing: .045em; text-transform: none; }
.marquee-track i { width: 5px; height: 5px; border-radius: 50%; background: #e3ad79; transform: none; }

.section { max-width: 1240px; padding-top: clamp(86px, 9vw, 124px); }
.section-heading { max-width: 900px; }
.section-heading h2, .cta h2 {
  color: var(--ink);
  font: 500 clamp(2.8rem, 5vw, 5rem)/1.03 var(--font-display);
  letter-spacing: -.045em;
  text-transform: none;
}
.section-heading h2 em { color: #3f7468; font-style: italic; }
.section-heading > p:not(.eyebrow) { color: #687572; font-size: 1rem; }

/* Product demos look like crisp paper workspaces. */
.app-window {
  border-color: rgba(40,66,62,.16);
  border-radius: 20px;
  color: var(--ink);
  background: #fffdf8;
  box-shadow: 0 32px 75px rgba(46,58,52,.12), 0 2px 8px rgba(46,58,52,.05);
}
.app-window::before { background: linear-gradient(90deg, transparent, rgba(63,116,104,.45), transparent); }
.window-bar { background: #eae6dc; border-color: rgba(40,66,62,.12); }
.window-title { color: #71807b; }
.dot { background: #b7b7ad !important; }
.dot:nth-child(1) { background: #d78772 !important; }.dot:nth-child(2) { background: #d8ad67 !important; }.dot:nth-child(3) { background: #78a58f !important; }
.chat-sidebar { background: #f3efe5; border-color: var(--line); }
.chat-main, .juri-app, .dash-app, .cal-app, .calc-form { background: #fffdf8; }
.saved-chat:hover { color: var(--ink); background: rgba(63,116,104,.07); }
.saved-chat.active { color: #315e55; border-color: rgba(63,116,104,.25); background: #e5eee8; }
.new-analysis { color: #315e55; border-color: rgba(63,116,104,.30); background: #e7eee9; }
.new-analysis:hover { color: #fff; background: #315e55; }
.doc-chip, .msg.ia .bubble, .chat-inputbar, .result-card { background: var(--panel-2); }
.msg.ia .avatar { background: #315e55; }
.msg.user .bubble { border-color: rgba(63,116,104,.25); background: #e1ede7; }
.suggestion { color: #64736f; background: #faf8f2; }
.suggestion:hover:not(:disabled), .chat-inputbar:focus-within { color: #315e55; border-color: #3f7468; }
.chat-inputbar:focus-within { box-shadow: 0 0 0 4px rgba(63,116,104,.10); }
.chat-inputbar .send { color: #fff; border-color: #315e55; background: #315e55; }
.chat-inputbar .send:hover { background: #244e46; }
.juri-file { border-color: rgba(63,129,114,.38); background: #edf4ef; }
.button.teal-btn { background: #3f7468; box-shadow: none; }
.button.teal-btn:hover:not(:disabled) { background: #315e55; box-shadow: 0 8px 20px rgba(49,94,85,.16); }
.pipeline-steps li, .stat, .dash-panel, .calc-result { background: #f7f3e9; }
.pipeline-steps li.active { background: #eaf3ee; }
.result-interpretacao { color: #40514e; background: #eaf3ee; }
.event-list li, .inbox-list li, .cal-day { background: rgba(63,116,104,.055); }
.cal-day.today { color: #fff; border-color: #3f7468; background: #3f7468; }
.calc-form input { color-scheme: light; }
.feature-grid article { border-color: var(--line); background: rgba(255,253,247,.72); box-shadow: 0 12px 28px rgba(47,61,53,.04); }
.feature-grid article:hover { border-color: rgba(63,116,104,.38); }
.f-num { color: #315e55; background: #e2ece6; }

/* Jimmy Box: capable hardware presented like a considered office object. */
.box-console {
  border-color: rgba(38,67,61,.18);
  border-radius: 25px;
  color: var(--ink);
  background: #fffdf8;
  box-shadow: 0 34px 82px rgba(43,57,50,.13);
}
.box-console-bar { color: var(--ink); border-color: var(--line); background: #e8e4da; }
.box-console-bar strong { color: #64736f; font-family: var(--font-mono); }
.box-live { color: #3f8172; }
.box-machine {
  border-color: rgba(255,255,255,.10);
  background:
    radial-gradient(circle at 50% 47%, rgba(190,222,207,.16), transparent 18rem),
    #203b37;
}
.machine-grid { opacity: .5; background-image: linear-gradient(rgba(255,255,255,.045) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.045) 1px,transparent 1px); }
.machine-shell {
  border-color: rgba(255,255,255,.24);
  color: #fffdf7;
  background: linear-gradient(145deg,#476f66,#233e39 70%);
  box-shadow: inset 0 1px rgba(255,255,255,.17), inset -18px -18px 40px rgba(0,0,0,.14), 0 35px 70px rgba(11,34,29,.30);
}
.machine-mark { color: #fffdf7; text-shadow: none; font-style: italic; }
.machine-shell small { color: rgba(255,255,255,.72); }.machine-shell b { color: #f3c99d; }
.signal { border-color: rgba(207,234,220,.19); }
.machine-node { border-color: rgba(32,51,55,.14); color: var(--ink); background: rgba(255,253,247,.94); box-shadow: 0 14px 34px rgba(8,30,25,.18); }
.machine-node small { color: #7a8581; }.machine-node b { color: #315e55; }.machine-node b::before { background: #5b947e; }
.box-controls { background: radial-gradient(circle at 100% 0,rgba(213,155,100,.10),transparent 24rem),#fffdf8; }
.console-command { color: #74817d; }.console-command span { color: #315e55; font-weight: 600; }
.profile-tabs { border-color: var(--line); background: #eeeae0; }
.profile-tab { color: #74807d; text-transform: none; font-family: var(--font-body); }
.profile-tab:hover { color: var(--ink); }.profile-tab.active { color: #fff; border-color: #315e55; background: #315e55; }
.control-list, .control-row { border-color: var(--line); }
.control-row b { color: var(--ink); }.control-row small { color: #75817e; }
.control-row > i { border-color: #c5cbc4; background: #e6e7df; }.control-row > i::after { background: #9da59f; }
.control-row.active > i { border-color: rgba(63,129,114,.42); background: #dbeae2; }.control-row.active > i::after { background: #3f8172; box-shadow: none; }
.control-row.locked b::after { color: #ad6958; content: "privado"; text-transform: uppercase; }
.box-log { border-color: rgba(255,255,255,.08); color: #b9c7c1; background: #263d39; }
.box-log span { color: #9ac9b4; }
.box-principles article { border-color: var(--line); background: rgba(255,253,247,.74); }
.box-principles article:hover { border-color: rgba(63,116,104,.38); }
.box-principles span { color: #b67447; }
.box-principles h3 { color: var(--ink); font: 600 1.08rem var(--font-display); text-transform: none; }
.box-principles p { color: #6e7a77; font-size: .8rem; }
.legal-note { color: #67736f; border-color: #c88753; background: rgba(216,158,104,.09); }

.cta {
  max-width: 980px;
  border-color: rgba(49,94,85,.22);
  color: var(--ink);
  background:
    radial-gradient(circle at 82% 0,rgba(218,166,113,.16),transparent 40%),
    radial-gradient(circle at 0 100%,rgba(93,143,128,.14),transparent 44%),
    #fffdf7;
  box-shadow: 0 30px 75px rgba(45,56,50,.10);
}
.cta::before { background: linear-gradient(90deg,transparent,rgba(63,116,104,.42),transparent); }
.cta .eyebrow { justify-content: center; }.cta .grad { color: #3f7468; -webkit-text-fill-color: #3f7468; }
.footer { color: #74807c; border-color: var(--line); font-family: var(--font-body); }
.footer > a:hover { color: #315e55; }

@media (max-width: 1050px) {
  .hero { grid-template-columns: 1fr; padding-top: 136px; }
  .legal-orbit { width: min(100%, 680px); margin-inline: auto; }
  .box-machine { border-bottom-color: rgba(255,255,255,.10); }
}
@media (max-width: 760px) {
  .topbar { top: 0; width: 100%; min-height: 68px; padding-inline: 14px; }
  .hero { padding: 112px 12px 58px; }
  .hero h1 { font-size: clamp(3rem, 13vw, 4.25rem); }
  .legal-orbit { min-height: 480px; margin-inline: 0; border-radius: 30px 30px 30px 10px; transform: none; }
  .legal-orbit::before { right: 16px; top: 16px; font-size: .55rem; }
  .orbit-ring { width: 360px; height: 360px; }.orbit-ring.ring-two { width: 260px; height: 260px; }
  .jimmy-core { width: 138px; height: 138px; }.jimmy-core span { font-size: 3.5rem; }
  .orbit-node { min-width: 138px; padding: 11px; }.node-doc { top: 60px; }.node-juri { left: -3%; }.node-box { bottom: 54px; }
  .section-heading h2, .cta h2 { font-size: clamp(2.55rem, 12vw, 4rem); }
  .box-machine { min-height: 520px; }
}

/* The redesigned hero uses a case file rather than the old orbit. */
:root { --font-display: "Fraunces", Georgia, serif; }
.topbar .brand { flex: 0 0 auto; min-width: 210px; white-space: nowrap; }
.topbar .brand-mark, .topbar .brand-word, .topbar .by-macrodev { flex: none; }
.topbar nav { flex: 0 0 auto; white-space: nowrap; }
.topbar > .button { flex: 0 0 auto; }
.hero-copy { position: relative; }
.hero-aside {
  width: fit-content;
  margin: 20px 0 0;
  padding: 8px 12px;
  border-radius: 9px 9px 9px 3px;
  color: #736548;
  background: #f8e4b6;
  font: 500 .72rem var(--font-mono);
  transform: rotate(-1deg);
}
.case-file {
  position: relative;
  min-height: 585px;
  display: grid;
  place-items: center;
  perspective: 1000px;
}
.case-file::before,
.case-file::after {
  content: "";
  position: absolute;
  width: min(92%, 490px);
  height: 480px;
  border: 1px solid rgba(37,55,61,.13);
  border-radius: 8px 22px 22px 8px;
  background: #e4dfd2;
  box-shadow: 0 20px 45px rgba(50,62,56,.08);
}
.case-file::before { transform: translate(14px, 15px) rotate(4deg); }
.case-file::after { background: #eee9de; transform: translate(-10px, 8px) rotate(-2.2deg); }
.file-tab {
  position: absolute;
  z-index: 4;
  top: 37px;
  left: 9%;
  min-width: 145px;
  padding: 11px 18px 16px;
  border-radius: 12px 12px 0 0;
  color: #516762;
  background: #cbded6;
  font: 600 .65rem var(--font-mono);
  letter-spacing: .06em;
  transform: rotate(-1deg);
}
.file-paper {
  position: relative;
  z-index: 5;
  width: min(92%, 500px);
  min-height: 485px;
  padding: 38px 40px 34px;
  border: 1px solid rgba(37,55,61,.15);
  border-radius: 8px 22px 22px 8px;
  color: var(--ink);
  background:
    linear-gradient(90deg, transparent 29px, rgba(212,124,101,.16) 30px, transparent 31px),
    repeating-linear-gradient(180deg, transparent 0, transparent 29px, rgba(57,90,100,.055) 30px),
    #fffdf8;
  box-shadow: 0 30px 65px rgba(50,62,56,.13), inset 0 1px rgba(255,255,255,.7);
  transform: rotate(1.2deg);
  transition: transform .3s ease, box-shadow .3s ease;
}
.case-file:hover .file-paper { transform: rotate(0) translateY(-5px); box-shadow: 0 38px 74px rgba(50,62,56,.16); }
.file-heading { display: flex; align-items: center; gap: 12px; }
.file-j {
  width: 42px;
  height: 42px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 13px 13px 13px 4px;
  color: #fff;
  background: #315e55;
  font: italic 600 1.25rem var(--font-display);
}
.file-heading > div { display: flex; min-width: 0; flex-direction: column; }
.file-heading small { color: #87918f; font: 500 .58rem var(--font-mono); text-transform: uppercase; }
.file-heading strong { overflow: hidden; font-size: .9rem; text-overflow: ellipsis; white-space: nowrap; }
.status-pill { margin-left: auto; padding: 5px 8px; border-radius: 999px; color: #2f675c; background: #e1efe8; font-size: .61rem; font-weight: 700; white-space: nowrap; }
.file-rule { height: 1px; margin: 20px 0; background: var(--line); }
.file-summary { color: #667471; font-size: .83rem; line-height: 1.65; }
.file-checklist { margin: 22px 0 0; padding: 0; display: grid; gap: 12px; list-style: none; }
.file-checklist li { display: flex; align-items: center; gap: 11px; }
.file-checklist li > span { width: 25px; height: 25px; flex: none; display: grid; place-items: center; border-radius: 50%; color: #315e55; background: #deebe5; font-size: .75rem; font-weight: 800; }
.file-checklist li div { display: flex; flex-direction: column; }
.file-checklist b { font-size: .8rem; }.file-checklist small { color: #828c89; font-size: .67rem; }
.jimmy-note { margin: 24px 0 0; padding: 13px 14px; display: flex; gap: 10px; border: 1px solid rgba(49,94,85,.15); border-radius: 14px 14px 14px 5px; background: #edf3ee; }
.jimmy-note > span { width: 25px; height: 25px; flex: none; display: grid; place-items: center; border-radius: 50%; color: #fff; background: #315e55; font: italic 600 .75rem var(--font-display); }
.jimmy-note p { margin: 0; color: #586763; font-size: .7rem; line-height: 1.55; }
.paperclip {
  position: absolute;
  z-index: 7;
  top: 76px;
  right: 8%;
  width: 24px;
  height: 73px;
  border: 3px solid #9caaa5;
  border-bottom: 0;
  border-radius: 14px 14px 0 0;
  transform: rotate(10deg);
}
.capability-index {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 30px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.capability-index span { padding: 18px 12px; display: flex; align-items: center; gap: 8px; border-right: 1px solid var(--line); color: #60706c; font-size: .72rem; white-space: nowrap; }
.capability-index span:last-child { border-right: 0; }
.capability-index b { color: #b5784c; font: 500 .59rem var(--font-mono); }

@media (max-width: 900px) {
  .topbar .brand { min-width: 0; }
  .capability-index { grid-template-columns: repeat(3,1fr); }
  .capability-index span:nth-child(3) { border-right: 0; }.capability-index span:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 760px) {
  .hero-copy::before { top: -41px; right: 4%; }
  .hero-aside { font-size: .64rem; }
  .case-file { min-height: 520px; }
  .case-file::before, .case-file::after { height: 425px; }
  .file-tab { top: 30px; left: 5%; }
  .file-paper { min-height: 430px; padding: 30px 24px 26px; }
  .file-heading strong { font-size: .78rem; }.status-pill { display: none; }
  .file-summary { font-size: .75rem; }.file-checklist { gap: 9px; }.jimmy-note { margin-top: 16px; }
  .paperclip { right: 5%; }
  .capability-index { padding-inline: 12px; grid-template-columns: repeat(2,1fr); }
  .capability-index span { border-bottom: 1px solid var(--line); }
  .capability-index span:nth-child(2n) { border-right: 0; }.capability-index span:nth-last-child(-n+2) { border-bottom: 0; }
}

/* Direct links to the product section should never land on pre-reveal content. */
#box:target .reveal { opacity: 1; transform: none; }
