:root {
  --bg: #06070b;
  --card: rgba(255, 255, 255, 0.06);
  --stroke: rgba(255, 255, 255, 0.1);
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.55);
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.55);
  --r: 20px;
  --max: 1180px;
  --glass: saturate(140%) blur(18px);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  background:
    radial-gradient(900px 700px at 15% -10%, rgba(255, 255, 255, 0.08), transparent 55%),
    radial-gradient(900px 700px at 85% 0%, rgba(255, 255, 255, 0.06), transparent 60%),
    linear-gradient(180deg, #05060a, var(--bg));
  overflow-x: hidden;
}

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

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 16px;
}

.top {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(6, 7, 11, 0.72);
  backdrop-filter: var(--glass);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.top-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mark {
  width: 36px;
  height: 36px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  position: relative;
  overflow: hidden;
}

.mark:before {
  content: "";
  position: absolute;
  inset: -60%;
  background: conic-gradient(from 220deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0));
  animation: spin 10s linear infinite;
  opacity: 0.7;
  filter: blur(10px);
}

.brand strong {
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1.1;
}

.brand span {
  display: block;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 2px;
}

.mini-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
}

.hero {
  margin-top: 14px;
  border-radius: var(--r);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
  min-height: 240px;
}

.hero .img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.55s ease;
  filter: saturate(1.02) contrast(1.02);
  transform: scale(1.02);
}

.hero .img.on {
  opacity: 1;
}

.hero:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(6, 7, 11, 0.82) 0%, rgba(6, 7, 11, 0.52) 42%, rgba(6, 7, 11, 0.88) 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  padding: 16px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  min-height: 240px;
}

.hero-left {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 70%;
}

.hero-left .title {
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.8);
}

.hero-left .desc {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.4;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.75);
}

.hero-right {
  display: flex;
  gap: 8px;
  align-items: center;
}

.btn {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  border-radius: 14px;
  padding: 10px 12px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: 0.2s ease;
  user-select: none;
}

.btn:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.18);
}

.btn.btn-cta {
  background: linear-gradient(135deg, #16a34a, #22c55e);
  border-color: rgba(34, 197, 94, 0.95);
  color: #f8fff9;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(34, 197, 94, 0.35);
}

.btn.btn-cta:hover {
  border-color: rgba(74, 222, 128, 1);
  box-shadow: 0 14px 34px rgba(34, 197, 94, 0.45);
}

.bar {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.search {
  flex: 1;
  min-width: 260px;
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
}

.search input {
  flex: 1;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--text);
  font-size: 13px;
}

.search input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.chip {
  padding: 9px 11px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  user-select: none;
  transition: 0.2s ease;
}

.chip.active {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
}

.masonry {
  column-count: 3;
  column-gap: 12px;
  padding: 14px 0 120px;
}

@media (max-width: 980px) {
  .masonry {
    column-count: 2;
  }
}

@media (max-width: 640px) {
  .masonry {
    column-count: 1;
    padding-bottom: 140px;
  }

  .hero-right {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
}

.card {
  break-inside: avoid;
  position: relative;
  margin: 0 0 12px;
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.4);
  opacity: 0;
  transform: translateY(8px);
  transition: transform 0.24s ease, opacity 0.24s ease, border-color 0.18s ease;
  cursor: pointer;
}

.card.is-live {
  opacity: 1;
  transform: translateY(0);
}

.card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.14);
}

.card img {
  width: 100%;
  display: block;
  object-fit: cover;
  aspect-ratio: 4/5;
  filter: saturate(1.02) contrast(1.02);
}

.card.tall img {
  aspect-ratio: 4/6.2;
}

.card.wide img {
  aspect-ratio: 4/3.2;
}

.meta {
  padding: 10px 10px 12px;
}

.meta .t {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.35;
}

.meta .tags {
  margin-top: 8px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.tag {
  font-size: 11px;
  padding: 6px 9px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.18);
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.dock {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 14px;
  z-index: 50;
  display: flex;
  gap: 10px;
  padding: 10px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(6, 7, 11, 0.72);
  backdrop-filter: var(--glass);
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.6);
  max-width: min(560px, calc(100% - 22px));
  overflow: auto;
  scrollbar-width: none;
}

.dock::-webkit-scrollbar {
  display: none;
}

.dock a {
  min-width: 46px;
  height: 46px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.86);
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
  position: relative;
  user-select: none;
}

.dock a:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.07);
}

.dock a span {
  font-size: 18px;
  line-height: 1;
}

.dock a small {
  position: absolute;
  bottom: -18px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.52);
  white-space: nowrap;
  pointer-events: none;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Primeiro card neuro (polilaminina) */
.dod-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  background: #0b0f1a;
  color: #e6ecff;
  padding: 0;
  margin-bottom: 12px;
  cursor: default;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.dod-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.dod-card .card-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, #1b2a4a, transparent 60%),
    radial-gradient(circle at 80% 80%, #0e3a5c, transparent 60%);
  opacity: 0.35;
  z-index: 0;
}

.dod-card .card-content {
  position: relative;
  z-index: 1;
  padding: 22px;
}

.dod-card .card-media {
  width: 100%;
  height: 170px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background-color: rgba(0, 0, 0, 0.2);
  background-size: cover;
  background-position: center;
  margin-bottom: 14px;
}

.dod-card .tag {
  display: inline-flex;
  font-size: 12px;
  letter-spacing: 2px;
  opacity: 0.85;
}

.dod-card .title {
  font-size: 26px;
  margin: 8px 0;
  font-weight: 600;
  line-height: 1.15;
}

.dod-card .subtitle {
  font-size: 15px;
  opacity: 0.86;
  margin-bottom: 18px;
}

.dod-card .card-info h3 {
  font-size: 16px;
  margin-top: 16px;
  color: #8fb6ff;
}

.dod-card .card-info p {
  font-size: 14px;
  line-height: 1.6;
  opacity: 0.92;
}

.dod-card .card-footer {
  margin-top: 20px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.dod-card .chip {
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.9);
  cursor: default;
}

/* Card feature (primeiro card neuro) */
.card-feature {
  cursor: default;
}

.card-feature .thumb {
  width: 100%;
  overflow: hidden;
}

.card-feature .thumb img {
  width: 100%;
  display: block;
  object-fit: cover;
  aspect-ratio: 4/5;
}

.card-feature .meta {
  padding: 10px 10px 12px;
}

.card-feature .caption {
  margin: 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.4;
}

.card-feature .chips {
  margin-top: 8px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.card-feature .chip {
  font-size: 11px;
  padding: 6px 9px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.18);
  color: rgba(255, 255, 255, 0.78);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: default;
}

.card-feature .details {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 10px;
  background: rgba(4, 8, 18, 0.52);
}

.card-feature .details summary {
  list-style: none;
  cursor: pointer;
  font-size: 12px;
  text-transform: lowercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.85);
  user-select: none;
}

.card-feature .details summary::-webkit-details-marker {
  display: none;
}

.card-feature .details[open] summary {
  margin-bottom: 10px;
}

.card-feature .details h3 {
  font-size: 14px;
  margin: 10px 0 6px;
  color: #9fc3ff;
}

.card-feature .details p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.85);
}

/* Conteudo expandido do card neuro em bloco unico */
.card-feature .details .details-text {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.86);
  white-space: pre-line;
}

.source-btn{
  margin-top: 6px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.12);
  color: #cfd6ff;
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.source-btn:hover{
  border-color: rgba(120,160,255,0.6);
  color: #ffffff;
}

.neuro-modal{
  position: fixed;
  inset: 0;
  background: rgba(5,8,18,0.75);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: fadeIn 0.25s ease;
}

.neuro-modal-content{
  position: relative;
  background: #0b0f1a;
  border-radius: 18px;
  padding: 28px;
  max-width: 520px;
  width: 90%;
  color: #e6ecff;
  box-shadow: 0 20px 80px rgba(0,0,0,0.6);
  border: 1px solid rgba(120,160,255,0.15);
}

.neuro-modal h2{
  margin-bottom: 10px;
  font-weight: 600;
}

.neuro-modal h3{
  margin-top: 16px;
  color: #8fb6ff;
  font-size: 16px;
}

.neuro-modal p{
  font-size: 14px;
  line-height: 1.6;
  opacity: 0.9;
}

.neuro-link{
  display: inline-block;
  margin-top: 16px;
  font-size: 13px;
  color: #8fb6ff;
  text-decoration: none;
}

.neuro-link:hover{
  text-decoration: underline;
}

.neuro-close{
  position: absolute;
  top: 18px;
  right: 22px;
  background: transparent;
  border: none;
  font-size: 22px;
  color: #fff;
  cursor: pointer;
}

@keyframes fadeIn{
  from{opacity:0}
  to{opacity:1}
}
