/* ============================================================
   cases.css — estilos específicos da página Cases/Projetos
   ============================================================ */

/* --- Extra glow overlay via page::before --- */
.page::before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  background:radial-gradient(circle at 72% 16%, rgba(255,122,24,.09), transparent 26%);
  z-index:-1;
}

/* --- Hero (centered layout) --- */
.hero{
  padding:44px 0 34px;
  text-align:center;
}

.hero-badge{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:10px 14px;
  border-radius:999px;
  background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.08);
  color:var(--muted);
  font-size:.9rem;
  font-weight:600;
  letter-spacing:.01em;
  text-transform:uppercase;
  backdrop-filter:blur(16px);
}

.hero h1{
  margin:24px auto 0;
  max-width:940px;
  font-size:clamp(3rem, 7vw, 5.8rem);
  line-height:.92;
  letter-spacing:-.075em;
  font-weight:500;
}

.hero p{
  max-width:760px;
  margin:26px auto 0;
  font-size:1.06rem;
  line-height:1.8;
  color:var(--muted);
}

.hero-actions{
  margin-top:28px;
  display:flex;
  justify-content:center;
  gap:14px;
  flex-wrap:wrap;
  position:relative;
  z-index:5;
}

/* --- Btn-line (cases-specific button) --- */
.btn-line{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  min-height:54px;
  padding:0 24px;
  border-radius:999px;
  width:100%;
  background:rgba(255,255,255,.035);
  border:1px solid rgba(255,255,255,.12);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.03);
  color:#fff;
  font-weight:700;
  letter-spacing:-.02em;
  transition:transform .22s ease, box-shadow .22s ease, background .22s ease;
}

.btn-line:hover{background:rgba(255,255,255,.1)}

/* --- Cases grid & cards --- */
.cases{padding:28px 0 72px}

.cases-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0,1fr));
  column-gap:64px;
  row-gap:36px;
  align-items:stretch;
  max-width:900px;
  margin:0 auto;
}

.case-card{
  position:relative;
  display:flex;
  flex-direction:column;
  min-height:670px;
  padding:0; /* override main.css shared card padding */
  background:linear-gradient(180deg, rgba(12,17,27,.96), rgba(8,10,15,.98));
  border:1px solid rgba(255,255,255,.08);
  border-radius:var(--radius-xl);
  overflow:hidden;
  box-shadow:var(--shadow);
}

.case-cover{
  position:relative;
  height:286px;
  overflow:hidden;
  background:linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border-bottom:1px solid rgba(255,255,255,.06);
}

.case-cover::after{
  content:"";
  position:absolute;
  inset:auto 0 0;
  height:46%;
  background:linear-gradient(180deg, transparent, rgba(5,9,17,1));
  z-index:3;
}

.cover-label,
.cover-label-right{
  position:absolute;
  top:14px;
  z-index:4;
  padding:7px 12px;
  border-radius:999px;
  font-size:.78rem;
  font-weight:800;
  letter-spacing:.01em;
  color:#fff;
  box-shadow:0 8px 20px rgba(0,0,0,.2);
}

.cover-label{left:14px;background:linear-gradient(180deg, #24d27b, #0fa95e)}
.cover-label-right{right:14px;background:linear-gradient(180deg, var(--accent-2), var(--accent))}

.cover-stage{
  position:absolute;
  inset:0;
  padding:24px;
  display:flex;
  align-items:center;
  justify-content:center;
}

.cover-media{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
  object-position:top center;
  border-radius:18px;
  box-shadow:0 16px 40px rgba(0,0,0,.24);
}

/* --- Preview windows (mockup UI inside cards) --- */
.preview-window{
  width:100%;height:100%;border-radius:22px;overflow:hidden;position:relative;
  border:1px solid rgba(255,255,255,.08);
  box-shadow:0 24px 60px rgba(0,0,0,.35);
  background:#09131f;
}

.preview-bar{
  height:42px;display:flex;align-items:center;gap:8px;padding:0 14px;
  background:rgba(255,255,255,.06);border-bottom:1px solid rgba(255,255,255,.08);
}

.dot{width:12px;height:12px;border-radius:50%}
.dot.r{background:#ff5f57}.dot.y{background:#febc2e}.dot.g{background:#28c840}

.preview-body{height:calc(100% - 42px);padding:18px}

/* Clipper UI */
.clipper-ui .preview-body{display:grid;grid-template-rows:1fr auto;gap:16px;background:linear-gradient(180deg,#071321,#08111d)}
.chart-box{border-radius:18px;border:1px solid rgba(255,255,255,.08);background:linear-gradient(180deg,#0c1d2d,#08131f);padding:16px;position:relative;overflow:hidden}
.grid-lines{position:absolute;inset:16px 16px 18px 16px;display:grid;grid-template-rows:repeat(5,1fr);gap:18px;opacity:.35}
.grid-lines span{display:block;height:1px;background:rgba(255,255,255,.18)}
.chart-svg{position:absolute;inset:26px 16px 22px 16px;width:calc(100% - 32px);height:calc(100% - 48px)}
.kpi-row{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.kpi{border-radius:16px;padding:14px 12px;background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.08)}
.kpi strong{display:block;font-size:1rem;color:#fff}
.kpi span{font-size:.78rem;color:rgba(255,255,255,.55)}

/* Keys UI */
.keys-ui .preview-body{display:grid;grid-template-columns:116px 1fr;gap:14px;background:linear-gradient(180deg,#0c1220,#11192b)}
.side-nav{border-radius:18px;background:rgba(255,255,255,.045);border:1px solid rgba(255,255,255,.06);padding:14px;display:flex;flex-direction:column;gap:10px}
.side-nav span{display:block;height:12px;border-radius:999px;background:rgba(255,255,255,.13)}
.side-nav span.active{background:linear-gradient(90deg,#ffb26f,#ff7a18);height:14px}
.creator-grid{display:grid;grid-template-rows:auto 1fr;gap:14px}
.toolbar{display:grid;grid-template-columns:1.2fr .8fr .8fr;gap:10px}
.toolbar span,.row-card{display:block;border-radius:14px;background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.07)}
.toolbar span{height:42px}
.rows{display:grid;gap:10px}
.row-card{height:44px;position:relative;overflow:hidden}
.row-card::before{content:"";position:absolute;left:12px;right:84px;top:14px;height:8px;border-radius:999px;background:rgba(255,255,255,.16)}
.row-card::after{content:"";position:absolute;right:12px;top:11px;width:56px;height:20px;border-radius:999px;background:rgba(255,122,24,.2);border:1px solid rgba(255,122,24,.3)}

/* Glossary UI */
.glossary-ui .preview-body{display:grid;grid-template-columns:1.05fr .95fr;gap:14px;background:linear-gradient(180deg,#eef4ff,#dde8fb)}
.terms-panel,.detail-panel{border-radius:18px;border:1px solid rgba(17,24,39,.08);background:rgba(255,255,255,.82);padding:14px}
.searchbar{height:42px;border-radius:13px;background:#eef3fb;border:1px solid rgba(15,23,42,.08);margin-bottom:12px}
.term-list{display:grid;gap:10px}
.term-list span{display:block;height:38px;border-radius:12px;background:#f5f8fe;border:1px solid rgba(15,23,42,.06)}
.detail-panel .headline{height:18px;width:64%;border-radius:999px;background:#d7e2f8;margin-bottom:12px}
.detail-panel .line{height:10px;border-radius:999px;background:#e5ecfb;margin-bottom:10px}
.detail-panel .line.short{width:72%}
.analogy{margin-top:18px;border-radius:14px;padding:14px;background:#eef4ff;border:1px solid rgba(255,122,24,.12);min-height:94px}

/* Pipeline UI */
.pipeline-ui .preview-body{background:linear-gradient(180deg,#0b1424,#091120);padding:14px}
.pipeline-cols{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;height:100%}
.pipeline-col{display:flex;flex-direction:column;gap:8px}
.pcol-head{height:24px;border-radius:8px;background:rgba(255,255,255,.08)}
.pcol-card{height:52px;border-radius:12px;background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.07);position:relative;overflow:hidden}
.pcol-card::before{content:"";position:absolute;left:10px;right:24px;top:14px;height:7px;border-radius:999px;background:rgba(255,255,255,.14)}
.pcol-card::after{content:"";position:absolute;left:10px;right:48px;bottom:13px;height:6px;border-radius:999px;background:rgba(255,255,255,.07)}
.pcol-card--hot{background:rgba(255,122,24,.1);border-color:rgba(255,122,24,.24)}
.pcol-card--hot::before{background:rgba(255,138,36,.38)}
.pcol-card--won{background:rgba(30,203,114,.08);border-color:rgba(30,203,114,.2)}
.pcol-card--won::before{background:rgba(30,203,114,.3)}

/* --- Case body content --- */
.case-body{padding:22px 22px 20px;display:flex;flex-direction:column;gap:16px;flex:1}

.case-tags{display:flex;flex-wrap:wrap;gap:8px}
.case-tags span{
  padding:6px 10px;border-radius:999px;font-size:.76rem;font-weight:700;
  color:#ffb26f;background:rgba(255,122,24,.1);border:1px solid rgba(255,122,24,.16);
  letter-spacing:.03em;text-transform:uppercase;
}

.case-card .case-title{font-size:1.95rem;line-height:1.04;letter-spacing:-.05em;margin:0}
.case-sub{font-size:1rem;line-height:1.65;color:var(--muted);margin:0}

.result-box{
  margin-top:auto;
  border-radius:18px;
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.08);
  padding:16px 16px 15px;
}
.result-box strong{display:block;color:#ffae66;font-size:1.25rem;line-height:1.1;letter-spacing:-.03em}
.result-box span{display:block;margin-top:6px;color:var(--muted-2);font-size:.94rem;line-height:1.55}

/* --- Method section --- */
.method-section{padding:12px 0 84px}

.method-panel{
  padding:36px;
  border-radius:var(--radius-xl);
  background:linear-gradient(180deg, rgba(12,17,27,.96), rgba(8,10,15,.98));
  border:1px solid rgba(255,255,255,.08);
  box-shadow:var(--shadow);
  text-align:center;
}

.method-panel h2{margin:0;font-size:2rem;letter-spacing:-.05em}
.method-panel p{max-width:760px;margin:12px auto 0;color:var(--muted);line-height:1.7}
.method-grid{margin-top:28px;display:grid;grid-template-columns:repeat(3,1fr);gap:18px}

.method-card{
  padding:22px;border-radius:22px;
  background:rgba(255,255,255,.035);
  border:1px solid rgba(255,255,255,.08);
  text-align:left;
}

.method-card .icon{
  width:46px;height:46px;border-radius:14px;display:grid;place-items:center;
  background:rgba(45,107,255,.14);border:1px solid rgba(45,107,255,.18);color:#ffae66;font-weight:900;margin-bottom:14px;
}
.method-card h3{margin:0 0 8px;font-size:1.08rem;letter-spacing:-.03em}
.method-card p{margin:0;color:var(--muted-2);line-height:1.65;font-size:.95rem}

/* --- CTA band --- */
.cta-band{
  padding:82px 0 90px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255,122,24,.16), rgba(255,122,24,.08) 34%, rgba(5,9,17,0) 74%),
    linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,0));
}

.cta-band .container{text-align:center}
.cta-band h2{margin:0 auto;max-width:840px;font-size:clamp(2.3rem,4.6vw,4rem);line-height:.96;letter-spacing:-.07em}
.cta-band p{max-width:720px;margin:16px auto 0;color:var(--muted);line-height:1.75}
.cta-actions{margin-top:28px;display:flex;justify-content:center;gap:14px;flex-wrap:wrap}

/* --- Modal --- */
.modal{
  position:fixed;
  inset:0;
  display:none;
  align-items:center;
  justify-content:center;
  padding:26px;
  z-index:100;
}
.modal.open{display:flex}

.modal-backdrop{
  position:absolute;inset:0;
  background:rgba(2,4,8,.78);
  backdrop-filter:blur(12px);
}

.modal-dialog{
  position:relative;
  z-index:2;
  width:min(1120px, calc(100vw - 30px));
  max-height:min(92vh, 980px);
  overflow:auto;
  scrollbar-gutter:stable;
  scrollbar-width:thin;
  scrollbar-color:rgba(255,255,255,.34) transparent;
  border-radius:28px;
  background:linear-gradient(180deg, rgba(12,17,27,.98), rgba(7,9,14,.99));
  border:1px solid rgba(255,255,255,.08);
  box-shadow:0 34px 90px rgba(0,0,0,.52);
}

.modal-dialog::-webkit-scrollbar{
  width:16px;
}

.modal-dialog::-webkit-scrollbar-track{
  margin:12px 8px 12px 0;
  background:transparent;
}

.modal-dialog::-webkit-scrollbar-thumb{
  border-radius:999px;
  border:4px solid transparent;
  background-clip:content-box;
  background:linear-gradient(180deg, rgba(255,255,255,.34), rgba(255,255,255,.18));
}

.modal-dialog::-webkit-scrollbar-thumb:hover{
  background:linear-gradient(180deg, rgba(255,255,255,.46), rgba(255,255,255,.24));
}

.modal-close{
  position:absolute;top:18px;right:18px;z-index:5;border:0;cursor:pointer;
  width:46px;height:46px;border-radius:50%;background:rgba(255,255,255,.08);color:#fff;font-size:1.4rem;
  display:grid;place-items:center;
}

.modal-content{padding:24px}
.modal-topline{display:flex;flex-wrap:wrap;gap:8px;padding-right:64px}
.modal-topline span{
  padding:6px 10px;border-radius:999px;font-size:.74rem;font-weight:700;text-transform:uppercase;
  color:#ffb26f;background:rgba(255,122,24,.1);border:1px solid rgba(255,122,24,.16);
}
.modal-title{margin:14px 0 6px;font-size:2.2rem;line-height:1;letter-spacing:-.06em}
.modal-role{color:#ffae66;font-weight:600}
.modal-grid{display:grid;grid-template-columns:1.04fr .96fr;gap:24px;margin-top:22px}

.shot-stage{
  border-radius:22px;overflow:hidden;border:1px solid rgba(255,255,255,.08);
  background:#071321;min-height:380px;box-shadow:0 16px 40px rgba(0,0,0,.28);
}

.shot-tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:0 0 14px}
.shot-tab{
  text-align:left;padding:12px 14px;border-radius:14px;cursor:pointer;border:1px solid rgba(255,255,255,.1);
  background:rgba(255,255,255,.04);color:var(--muted);font-size:.92rem;font-weight:600;
}
.shot-tab.active{color:#fff;background:rgba(255,122,24,.12);border-color:rgba(255,122,24,.22)}

.detail-stack{display:grid;gap:16px}
.detail-block{
  padding:18px 18px 18px 20px;
  border-left:2px solid rgba(255,122,24,.75);
  background:rgba(255,255,255,.025);
  border-radius:0 16px 16px 0;
}
.detail-block h3{margin:0 0 12px;font-size:1.03rem;letter-spacing:-.03em;color:#ffae66}
.detail-block p{margin:0;color:var(--muted);line-height:1.75}
.detail-block ul{margin:0;padding-left:18px;color:var(--text)}
.detail-block li{margin:0 0 10px;line-height:1.7;color:var(--muted)}
.detail-block li strong{color:#fff}

.modal-footer{
  display:flex;justify-content:space-between;gap:16px;align-items:center;flex-wrap:wrap;
  margin-top:20px;padding-top:18px;border-top:1px solid rgba(255,255,255,.08);
}
.modal-footer p{margin:0;color:var(--muted-2);max-width:560px;line-height:1.7}

/* --- Shot/screen components --- */
.screen{
  position:relative;width:100%;height:100%;min-height:380px;
  display:none;padding:18px;
  flex-direction:column;
  gap:8px;
}
.screen.active{display:flex}
.screen.dark{background:linear-gradient(180deg,#071321,#09111a)}
.screen.light{background:linear-gradient(180deg,#071321,#09111a);color:inherit}

.shot-window{width:100%;height:100%;flex:1 1 auto;min-height:0;border-radius:18px;overflow:hidden;border:1px solid rgba(255,255,255,.08);background:rgba(0,0,0,.18)}
.shot-window.light{border-color:rgba(255,255,255,.08);background:rgba(0,0,0,.18)}
.shot-window--plain,
.shot-window--plain.light{
  background:transparent;
  border:0;
  box-shadow:none;
}
.shot-bar{height:40px;padding:0 14px;display:flex;align-items:center;gap:8px;background:rgba(255,255,255,.07);border-bottom:1px solid rgba(255,255,255,.08)}
.shot-window.light .shot-bar{background:rgba(255,255,255,.07);border-bottom:1px solid rgba(255,255,255,.08)}
.shot-body{height:calc(100% - 40px);padding:16px}
.shot-window--plain .shot-body{
  height:100%;
  overflow:hidden;
  border-radius:18px;
}
.shot-body--media{padding:0;background:#171717}
.shot-window--plain:not(.light) .shot-body--media{background:#171717}
.shot-media{
  width:100%;
  height:100%;
  display:block;
  object-fit:contain;
  object-position:center;
}
.shot-media[src*="prerendercard.jpg"],
.shot-media[src*="prerendercover.jpg"],
.shot-media[src*="render.jpg"]{
  object-fit:cover;
  object-position:center top;
  height:100%;
  margin:0;
  transform:scale(1.006);
  transform-origin:center center;
}

.shot-grid-2{display:grid;grid-template-columns:1.2fr .8fr;gap:14px;height:100%}
.shot-stack{display:grid;gap:14px;height:100%}
.box-dark,.box-light{border-radius:16px;overflow:hidden;position:relative}
.box-dark{background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.08)}
.box-light{background:rgba(255,255,255,.84);border:1px solid rgba(17,24,39,.08)}

.mini-lines{display:grid;gap:10px;padding:14px}
.mini-lines span{display:block;height:10px;border-radius:999px;background:rgba(255,255,255,.14)}
.light-lines span{background:#dce6fa}

.table-rows{display:grid;gap:10px;padding:14px}
.table-rows span{display:block;height:40px;border-radius:12px;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.08)}
.table-rows.light span{background:#f5f8fe;border-color:rgba(15,23,42,.06)}

.bars{display:flex;align-items:flex-end;gap:10px;height:100%;padding:16px}
.bars span{flex:1;border-radius:10px 10px 4px 4px;background:linear-gradient(180deg,#4b7bff,#245eff)}

.chip-list{display:flex;flex-wrap:wrap;gap:8px;padding:14px}
.chip-list span{padding:8px 10px;border-radius:999px;background:rgba(45,107,255,.15);border:1px solid rgba(45,107,255,.24);color:#8eb2ff;font-size:.82rem;font-weight:700}

.footer-note{
  position:static;
  padding:0 2px;
  border:0;
  background:none;
  color:rgba(255,255,255,.78);
  font-size:.86rem;
  line-height:1.45;
}
.screen.light .footer-note{color:rgba(255,255,255,.78)}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1180px){
  .modal-grid{grid-template-columns:1fr}
}

@media (max-width: 780px){
  .cases-grid{grid-template-columns:1fr}
  .case-card{min-height:unset}
  .case-cover{height:320px}
}

@media (max-width: 900px){
  .method-grid{grid-template-columns:1fr}
  .modal{padding:14px}
  .modal-content{padding:18px}
  .shot-tabs{grid-template-columns:1fr}
}

@media (max-width: 720px){
  .hero{padding-top:40px}
  .hero h1{font-size:clamp(2.5rem, 12vw, 4rem)}
  .case-cover{height:250px}
  .case-title{font-size:1.7rem}
  .shot-grid-2,.glossary-ui .preview-body,.keys-ui .preview-body{grid-template-columns:1fr}
  .modal-title{font-size:1.7rem}
  .btn-accent,.btn-ghost{width:100%}
  .hero-actions,.cta-actions{flex-direction:column}
}
