/* ===================================================================
   PlugueJuris — site institucional
   Modelado na estrutura do atlassian.com, marca Pluguee (dourado).
   =================================================================== */

:root {
  --gold: #c98a1e;
  --gold-2: #e6a82b;
  --gold-ink: #7a5310;
  --gold-soft: #fbf0d5;
  --gold-softer: #fdf7ea;

  --ink: #0b1220;
  --ink-2: #39455a;
  --muted: #556074;
  --muted-2: #677184;
  --line: #e9ebf1;
  --line-2: #dfe2ea;

  --bg: #ffffff;
  --bg-soft: #f6f7fb;
  --bg-dark: #0d1017;
  --bg-dark-2: #151a23;

  --green: #1f9d6b; --green-soft: #e4f6ee;
  --violet: #7c53e0; --violet-soft: #efe9fc;
  --blue: #3b6fd4; --blue-soft: #e7eefb;
  --rose: #d81e74; --rose-soft: #fce3ef;

  --maxw: 1200px;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 26px;
  --shadow-sm: 0 1px 2px rgba(16,24,40,.05), 0 2px 6px rgba(16,24,40,.05);
  --shadow: 0 10px 30px rgba(16,24,40,.08);
  --shadow-lg: 0 30px 70px rgba(16,24,40,.16);
  --ease: cubic-bezier(.22,.61,.36,1);

  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Plus Jakarta Sans", var(--sans);
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 800; letter-spacing: -.02em; line-height: 1.07; color: var(--ink); }
::selection { background: var(--gold-soft); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Botões ---------- */
.btn { display: inline-flex; align-items: center; gap: 9px; border: 1.5px solid transparent; border-radius: 999px; padding: 12px 22px; font-weight: 600; font-size: 15px; transition: transform .15s var(--ease), background .15s, box-shadow .2s, border-color .15s; white-space: nowrap; }
.btn i { font-size: 13px; transition: transform .2s var(--ease); }
.btn:hover i.fa-arrow-right { transform: translateX(3px); }
.btn-primary { background: var(--gold); color: #fff; box-shadow: 0 6px 18px rgba(201,138,30,.3); }
.btn-primary:hover { background: var(--gold-ink); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(201,138,30,.36); }
.btn-ghost { border-color: var(--line-2); color: var(--ink); background: #fff; }
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; transform: translateY(-2px); }
.btn-lg { padding: 15px 28px; font-size: 16px; }
.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.link-arrow { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; color: var(--gold-ink); }
.link-arrow i { font-size: 12px; transition: transform .2s var(--ease); }
.link-arrow:hover i { transform: translateX(4px); }

/* ---------- Header / nav ---------- */
.nav { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.82); backdrop-filter: saturate(140%) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.nav.scrolled { border-color: var(--line); box-shadow: 0 1px 0 rgba(16,24,40,.03); }
.nav-in { display: flex; align-items: center; gap: 20px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; font-size: 21px; letter-spacing: -.02em; }
.brand img { width: 30px; height: 30px; }
.brand span { color: var(--gold); }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.nav-links a { padding: 9px 14px; border-radius: 10px; font-weight: 600; font-size: 15px; color: var(--ink-2); transition: background .15s, color .15s; }
.nav-links a:hover { background: var(--bg-soft); color: var(--ink); }
.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.nav-cta .signin { font-weight: 600; font-size: 15px; padding: 9px 14px; border-radius: 10px; }
.nav-cta .signin:hover { background: var(--bg-soft); }
.nav-burger { display: none; width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: 12px; background: #fff; font-size: 18px; color: var(--ink); align-items: center; justify-content: center; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 70px 0 40px; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -20% 0 auto 0; height: 620px; background: radial-gradient(900px 440px at 70% 0%, rgba(230,168,43,.16), transparent 60%), radial-gradient(760px 420px at 12% 12%, rgba(201,138,30,.1), transparent 62%); z-index: -1; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13px; letter-spacing: .02em; text-transform: uppercase; color: var(--gold-ink); background: var(--gold-soft); padding: 7px 14px; border-radius: 999px; }
.hero h1 { font-size: clamp(40px, 6.4vw, 74px); margin: 22px 0 0; max-width: 16ch; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero .lede { font-size: clamp(17px, 2vw, 21px); color: var(--muted); margin-top: 22px; max-width: 58ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-note { margin-top: 16px; font-size: 13.5px; color: var(--muted-2); display: flex; align-items: center; gap: 8px; }
.hero-note i { color: var(--green); }

/* ---------- Mock de app (hero board) ---------- */
.mock { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; }
.mock-bar { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: #fcfcfe; }
.mock-dots { display: flex; gap: 6px; }
.mock-dots i { width: 11px; height: 11px; border-radius: 50%; background: #e3e6ee; display: block; }
.mock-dots i:first-child { background: #f7b7ae; } .mock-dots i:nth-child(2) { background: #f7d9a0; } .mock-dots i:nth-child(3) { background: #bfe3c4; }
.mock-title { font-weight: 700; font-size: 13px; display: flex; align-items: center; gap: 8px; }
.mock-title .b { width: 20px; height: 20px; border-radius: 6px; background: var(--gold); color: #fff; display: grid; place-items: center; font-size: 11px; }
.mock-pill { margin-left: auto; font-size: 11px; font-weight: 600; color: var(--gold-ink); background: var(--gold-soft); padding: 4px 10px; border-radius: 999px; }

.board { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 16px; background: var(--bg-soft); }
.col { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px; }
.col-h { display: flex; align-items: center; justify-content: space-between; font-size: 11.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; padding: 2px 4px 10px; }
.col-h .n { background: var(--bg-soft); color: var(--muted); border-radius: 6px; padding: 1px 7px; }
.tcard { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 11px; margin-bottom: 9px; box-shadow: var(--shadow-sm); }
.tcard:last-child { margin-bottom: 0; }
.tcard .t { font-size: 12.5px; font-weight: 600; line-height: 1.35; }
.tcard .cnj { font-family: var(--mono); font-size: 10.5px; color: var(--muted-2); margin-top: 5px; }
.tcard .row { display: flex; align-items: center; gap: 6px; margin-top: 9px; }
.tag { font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 6px; }
.tag.g { background: var(--gold-soft); color: var(--gold-ink); }
.tag.ok { background: var(--green-soft); color: #0f6b47; }
.tag.hot { background: var(--rose-soft); color: #a8135a; }
.tag.bl { background: var(--blue-soft); color: #2b53a8; }
.av { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 9px; font-weight: 700; color: #fff; margin-left: auto; }

/* floating badge sobre o mock */
.float { position: absolute; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 10px 13px; display: flex; align-items: center; gap: 10px; font-size: 12.5px; font-weight: 600; }
.float i { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; color: #fff; font-size: 13px; }

/* ---------- Faixa de integrações ---------- */
.strip { padding: 44px 0 10px; }
.strip p { text-align: center; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); }
.strip-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px 40px; margin-top: 26px; }
.strip-row .it { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; color: var(--ink-2); font-family: var(--display); opacity: .85; transition: opacity .2s; }
.strip-row .it:hover { opacity: 1; }
.strip-row .it i { color: var(--gold); font-size: 18px; }

/* ---------- Seção genérica ---------- */
.sec { padding: 92px 0; }
.sec-head { max-width: 760px; }
.sec-head.center { margin: 0 auto; text-align: center; }
.sec h2 { font-size: clamp(30px, 4.2vw, 46px); }
.sec-head .sub { font-size: clamp(16px, 1.6vw, 19px); color: var(--muted); margin-top: 16px; }
.kicker { font-weight: 700; font-size: 13px; letter-spacing: .05em; text-transform: uppercase; color: var(--gold-ink); margin-bottom: 14px; }

/* ---------- Métricas grandes ---------- */
.metrics { background: #fff; }
.metrics-link { display: inline-flex; margin-top: 22px; font-size: 16px; }
.metrics-grid { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; max-width: 980px; margin: 64px auto 0; }
.metric { text-align: center; }
.metric .big { font-family: var(--display); font-weight: 800; font-size: clamp(80px, 14vw, 176px); line-height: .86; letter-spacing: -.055em; color: var(--ink); }
.metric .big small { font-size: .4em; font-weight: 800; letter-spacing: -.02em; color: var(--gold); }
.metric .cap { margin-top: 20px; font-weight: 700; font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.metric-plus { font-family: var(--display); font-weight: 800; font-size: 60px; color: var(--gold); }
.metrics-note { text-align: center; max-width: 680px; margin: 48px auto 0; font-size: 12.5px; line-height: 1.6; color: var(--muted-2); }

/* ---------- Seção escura (constelação) ---------- */
.dark { background: var(--bg-dark); color: #eef1f6; position: relative; overflow: hidden; }
.dark h2 { color: #fff; }
.dark .sub { color: #a7b0c0; }
.dark .kicker { color: var(--gold-2); }
.constel { position: relative; margin-top: 54px; min-height: 440px; }
.constel svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.node { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.node .chip { width: 56px; height: 56px; border-radius: 15px; display: grid; place-items: center; font-size: 22px; color: #fff; box-shadow: 0 10px 30px rgba(0,0,0,.4); border: 1px solid rgba(255,255,255,.12); }
.node .lbl { font-size: 12px; font-weight: 600; color: #c7cedb; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.node.core .chip { width: 76px; height: 76px; border-radius: 20px; font-size: 30px; background: linear-gradient(140deg, var(--gold-2), var(--gold)); }

/* ---------- Abas (coleções) ---------- */
.tabs-bar { display: inline-flex; flex-wrap: wrap; gap: 4px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 999px; padding: 5px; margin: 36px auto 0; }
.tabs-bar button { border: 0; background: transparent; border-radius: 999px; padding: 11px 22px; font-weight: 700; font-size: 15px; color: var(--muted); transition: color .15s, background .15s, box-shadow .15s; }
.tabs-bar button.on { background: var(--ink); color: #fff; box-shadow: var(--shadow); }
.tab-panel { display: none; margin-top: 44px; }
.tab-panel.on { display: block; animation: fade .4s var(--ease); }
@keyframes fade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.tab-split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 54px; align-items: center; }
.tab-split h3 { font-size: clamp(26px, 3vw, 36px); }
.tab-split .lead { color: var(--muted); margin: 14px 0 22px; font-size: 17px; }
.feat-list { display: grid; gap: 14px; }
.feat-list .fi { display: flex; gap: 13px; align-items: flex-start; }
.feat-list .fi i { width: 36px; height: 36px; border-radius: 10px; background: var(--gold-soft); color: var(--gold-ink); display: grid; place-items: center; font-size: 15px; flex: none; }
.feat-list .fi b { font-weight: 700; font-size: 15.5px; display: block; }
.feat-list .fi span { color: var(--muted); font-size: 14px; }

/* painel de screenshot (mock) para abas */
.shot { background: linear-gradient(150deg, var(--gold-softer), #fff); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow-lg); }

/* ---------- Cards de benefício (números coloridos) ---------- */
.bene-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 50px; }
.bene { border-radius: var(--radius); padding: 28px 24px 26px; min-height: 230px; display: flex; flex-direction: column; }
.bene .num { font-family: var(--display); font-weight: 800; font-size: 58px; line-height: .95; letter-spacing: -.03em; }
.bene .num small { font-size: .5em; }
.bene .txt { margin-top: auto; font-weight: 600; font-size: 15.5px; padding-top: 18px; }
.bene.c1 { background: var(--gold-soft); color: var(--gold-ink); }
.bene.c2 { background: var(--green-soft); color: #0f6b47; }
.bene.c3 { background: var(--violet-soft); color: #4a2da0; }
.bene.c4 { background: var(--ink); color: #fff; }
.bene.c4 .num { color: var(--gold-2); }

/* ---------- 4 pilares ---------- */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 34px 28px; margin-top: 54px; }
.pillar .ic { font-size: 30px; color: var(--gold); line-height: 1; }
.pillar h3 { font-size: 20px; margin: 16px 0 8px; }
.pillar p { color: var(--muted); font-size: 15px; }

/* ---------- Deep dive (sticky scroll) ---------- */
.spot { display: grid; grid-template-columns: 1fr 1.15fr; gap: 60px; align-items: center; padding: 46px 0; }
.spot:nth-child(even) .spot-media { order: -1; }
.spot h3 { font-size: clamp(24px, 3vw, 34px); }
.spot .k { color: var(--gold-ink); font-weight: 700; font-size: 13px; letter-spacing: .05em; text-transform: uppercase; margin-bottom: 12px; }
.spot p { color: var(--muted); font-size: 17px; margin: 14px 0 20px; }
.spot-media { background: linear-gradient(160deg, var(--bg-soft), #fff); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow); min-height: 300px; display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.spot + .spot { border-top: 1px solid var(--line); }

/* linha de item estilo app (para mocks do deep dive) */
.lrow { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; box-shadow: var(--shadow-sm); }
.lrow .ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; font-size: 15px; flex: none; }
.lrow .bd { min-width: 0; flex: 1; }
.lrow .bd b { font-size: 13.5px; font-weight: 700; display: block; }
.lrow .bd span { font-size: 11.5px; color: var(--muted-2); font-family: var(--mono); }
.lrow .val { font-weight: 800; font-size: 14px; }

/* ---------- Terminal (para a era da IA) ---------- */
.ai { background: var(--bg-dark); color: #fff; }
.ai .term { background: #0a0d13; border: 1px solid rgba(255,255,255,.1); border-radius: 16px; padding: 30px 32px; max-width: 560px; font-family: var(--mono); box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.ai .term .l1 { font-size: clamp(22px, 3.4vw, 34px); font-weight: 700; color: #fff; }
.ai .term .l2 { font-size: clamp(22px, 3.4vw, 34px); margin-top: 8px; color: #7fd3a8; }
.ai .term .l2 .p { color: var(--gold-2); }
.ai .term .cur { display: inline-block; width: .62em; height: 1.05em; background: #fff; vertical-align: -3px; margin-left: 2px; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.ai .works { margin-top: 30px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #8b93a3; }
.ai .works-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 14px; }
.ai .works-row .w { display: inline-flex; align-items: center; gap: 9px; border: 1px solid rgba(255,255,255,.14); border-radius: 10px; padding: 9px 14px; font-weight: 600; font-size: 14px; }
.ai .works-row .w i { color: var(--gold-2); }
.ai-feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; margin-top: 64px; }
.ai-feats .af i { font-size: 24px; color: var(--gold-2); }
.ai-feats .af h4 { color: #fff; font-size: 20px; margin: 16px 0 8px; font-family: var(--display); font-weight: 800; }
.ai-feats .af p { color: #a7b0c0; font-size: 15px; }

/* ---------- CTA final ---------- */
.cta { background: var(--bg-dark); color: #fff; text-align: center; position: relative; overflow: hidden; }
.cta::before { content: ""; position: absolute; inset: auto 0 -40% 0; height: 80%; background: radial-gradient(600px 300px at 50% 100%, rgba(230,168,43,.3), transparent 70%); }
.cta h2 { color: #fff; font-size: clamp(34px, 5vw, 60px); position: relative; }
.cta p { color: #b8c0ce; margin: 18px auto 32px; max-width: 54ch; font-size: 18px; position: relative; }
.cta .hero-cta { justify-content: center; position: relative; }

/* ---------- Rodapé ---------- */
.foot { background: #fff; border-top: 1px solid var(--line); padding: 64px 0 40px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 36px; }
.foot .brand { margin-bottom: 14px; }
.foot .about { color: var(--muted); font-size: 14px; max-width: 30ch; }
.foot .fam { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.foot .fam span { font-size: 12px; font-weight: 600; color: var(--muted); background: var(--bg-soft); border: 1px solid var(--line); border-radius: 999px; padding: 5px 11px; }
.foot h5 { font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink); margin-bottom: 14px; }
.foot ul { list-style: none; display: grid; gap: 10px; }
.foot ul a { color: var(--muted); font-size: 14.5px; }
.foot ul a:hover { color: var(--gold-ink); }
.foot-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted-2); font-size: 13px; }
.foot-bar .links { display: flex; flex-wrap: wrap; gap: 18px; }
.foot-bar a:hover { color: var(--ink); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Mobile menu ---------- */
.mnav { position: fixed; inset: 0; z-index: 200; background: rgba(13,16,23,.5); backdrop-filter: blur(4px); opacity: 0; pointer-events: none; transition: opacity .25s; }
.mnav.open { opacity: 1; pointer-events: auto; }
.mnav-panel { position: absolute; top: 0; right: 0; width: min(340px, 86vw); height: 100%; background: #fff; padding: 20px; transform: translateX(100%); transition: transform .3s var(--ease); display: flex; flex-direction: column; gap: 6px; }
.mnav.open .mnav-panel { transform: none; }
.mnav-panel .x { align-self: flex-end; width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: 12px; background: #fff; font-size: 18px; }
.mnav-panel a { padding: 14px 12px; border-radius: 12px; font-weight: 600; font-size: 17px; border-bottom: 1px solid var(--line); }
.mnav-panel a:hover { background: var(--bg-soft); }
.mnav-panel .btn { margin-top: 14px; justify-content: center; border-bottom: 0; }

/* ---------- Responsivo ---------- */
@media (max-width: 1040px) {
  .hero-grid, .tab-split, .spot { grid-template-columns: 1fr !important; }
  .spot:nth-child(even) .spot-media { order: 0; }
  .bene-grid { grid-template-columns: repeat(2, 1fr); }
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .ai-feats { grid-template-columns: 1fr; gap: 26px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav-links, .nav-cta .signin, .nav-cta .btn-ghost, .nav-cta .btn-primary { display: none; }
  .nav-burger { display: flex; }
  .sec { padding: 64px 0; }
  .hero { padding: 40px 0 20px; }
  .metrics-grid { grid-template-columns: 1fr; gap: 10px; }
  .metric-plus { transform: rotate(90deg); margin: 6px auto; }
  .constel { min-height: 620px; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 18px; }
  .bene-grid, .pillars, .foot-grid { grid-template-columns: 1fr; }
  .board { grid-template-columns: 1fr; }
  .board .col:nth-child(3) { display: none; }
  .hero h1 { font-size: 38px; }
}

/* preferência: reduzir movimento */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  * { scroll-behavior: auto !important; }
}
