/* ============================================================
   CÓDIGO EMPREENDEDOR — codigoempreendedor.com
   Paleta: Abismo #050B18 · Ciano #2EC4FF · Prata Lua #EEF2F8
   Regra 60/30/10 — o ciano nunca grita.
   ============================================================ */

:root {
  --ciano: #2EC4FF;
  --ciano-profundo: #0E8DC2;
  --abismo: #050B18;
  --noite: #0A1428;
  --marinho: #0F1D3A;
  --tinta: #182A4D;
  --prata-lua: #EEF2F8;
  --prata-clara: #D6DDE8;
  --prata-media: #AAB4C4;
  --prata-fria: #7A8499;
  --prata-funda: #4A5468;

  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'JetBrains Mono', 'SF Mono', monospace;

  --radius: 18px;
  --radius-sm: 12px;
  --container: 1160px;
  --header-h: 76px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
  background: var(--abismo);
  color: var(--prata-clara);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: rgba(46, 196, 255, .25); color: var(--prata-lua); }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.container {
  width: min(var(--container), 100% - 48px);
  margin-inline: auto;
}

/* ---------- Tipografia base ---------- */

h1, h2, h3 { font-family: var(--serif); color: var(--prata-lua); font-weight: 600; }

h1 {
  font-size: clamp(2.6rem, 8vw, 5rem);
  line-height: 1.08;
  letter-spacing: .01em;
}

h2 {
  font-size: clamp(1.8rem, 4.5vw, 2.6rem);
  line-height: 1.15;
  margin-bottom: .6em;
}

h1 em, h2 em, .footer-quote em {
  font-style: italic;
  color: var(--ciano);
  font-weight: 500;
}

.mono {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-weight: 400;
}

.eyebrow {
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .38em;
  text-transform: uppercase;
  color: var(--prata-fria);
  margin-bottom: 1.4rem;
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 26px;
  height: 1px;
  background: var(--ciano);
  vertical-align: middle;
  margin-right: 14px;
  opacity: .8;
}

.section-sub {
  color: var(--prata-fria);
  max-width: 46ch;
  margin-bottom: 2.6rem;
}

/* ---------- Botões ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  font-family: var(--sans);
  font-weight: 600;
  font-size: .88rem;
  padding: .85em 1.7em;
  border-radius: 999px;
  transition: transform .3s cubic-bezier(.2,.8,.2,1), background .3s, border-color .3s, color .3s;
  will-change: transform;
}

.btn .ico { width: 1.1em; height: 1.1em; fill: currentColor; flex-shrink: 0; }

.btn-primary {
  background: var(--ciano);
  color: var(--abismo);
}
.btn-primary:hover { transform: translateY(-2px); background: #55d1ff; }

.btn-ghost {
  border: 1px solid rgba(170, 180, 196, .35);
  color: var(--prata-clara);
  background: transparent;
}
.btn-ghost:hover { border-color: var(--prata-media); transform: translateY(-2px); }

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background .4s, border-color .4s, backdrop-filter .4s;
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  background: rgba(5, 11, 24, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: rgba(170, 180, 196, .12);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.logo { display: flex; align-items: center; gap: .8rem; }

.logo-mark { width: 40px; height: 40px; color: var(--prata-lua); flex-shrink: 0; }

.logo-word { display: flex; flex-direction: column; line-height: 1.15; }

.logo-codigo {
  font-family: var(--serif);
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: .42em;
  color: var(--prata-lua);
}

.logo-emp {
  font-family: var(--serif);
  font-style: italic;
  font-size: .82rem;
  letter-spacing: .02em;
  color: var(--ciano);
}

.site-nav {
  display: flex;
  gap: 2rem;
  margin-left: auto;
}

.site-nav a {
  font-size: .85rem;
  font-weight: 600;
  color: var(--prata-media);
  transition: color .3s;
}
.site-nav a:hover { color: var(--prata-lua); }

.btn-header { flex-shrink: 0; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 8px;
  margin-left: auto;
  cursor: pointer;
}
.nav-toggle span {
  width: 22px; height: 2px;
  background: var(--prata-lua);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(5, 11, 24, .96);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s, visibility .35s;
}
.mobile-menu.open { opacity: 1; visibility: visible; }

.mobile-menu nav {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  text-align: center;
}
.mobile-menu nav > a:not(.btn) {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--prata-lua);
}
.mobile-menu .btn { justify-content: center; margin-top: 1rem; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 48px) 0 96px;
  overflow: hidden;
}

.hero-watermark {
  position: absolute;
  top: 50%;
  right: -8vw;
  width: min(62vh, 58vw);
  transform: translateY(-50%);
  color: var(--noite);
  opacity: .85;
  pointer-events: none;
  will-change: transform;
}
.hero-watermark svg { width: 100%; height: auto; }
.hero-watermark { --bar-fill: #10233f; }

.hero-glow {
  position: absolute;
  width: 60vw; height: 60vw;
  max-width: 800px; max-height: 800px;
  top: 8%; right: -12%;
  background: radial-gradient(circle, rgba(46, 196, 255, .07) 0%, transparent 62%);
  pointer-events: none;
}

.hero-inner { position: relative; z-index: 2; }

.hero .eyebrow { color: var(--prata-fria); }

.hero-sub {
  max-width: 54ch;
  font-size: clamp(1rem, 2.4vw, 1.15rem);
  font-weight: 300;
  color: var(--prata-clara);
  margin-top: 1.6rem;
}
.hero-sub strong { font-weight: 600; color: var(--prata-lua); }

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.4rem;
}

.hero-meta {
  margin-top: 3.2rem;
  color: var(--prata-funda);
}

.meta-link {
  color: inherit;
  border-bottom: 1px solid rgba(122, 132, 153, .4);
  padding-bottom: 1px;
  transition: color .3s, border-color .3s;
}
.meta-link:hover { color: var(--prata-media); border-color: var(--prata-media); }

.hero-fade {
  position: absolute;
  inset: auto 0 0 0;
  height: 140px;
  background: linear-gradient(to bottom, transparent, var(--abismo));
  pointer-events: none;
}

/* ---------- Seções ---------- */

.section { padding: 108px 0; position: relative; }

.section-alt {
  background: var(--noite);
}
.section-alt::before,
.section-alt::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(170, 180, 196, .14), transparent);
}
.section-alt::before { top: 0; }
.section-alt::after { bottom: 0; }

/* ---------- O programa ---------- */

.programa-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 4rem;
  margin-top: 2.4rem;
  align-items: start;
}

.programa-copy p + p { margin-top: 1.2em; }
.programa-copy strong { color: var(--prata-lua); }

.programa-stats {
  display: flex;
  flex-direction: column;
  border-left: 1px solid rgba(170, 180, 196, .18);
}

.stat {
  padding: 1.5rem 0 1.5rem 2rem;
}
.stat + .stat { border-top: 1px solid rgba(170, 180, 196, .12); }

.stat-num {
  display: block;
  font-family: var(--serif);
  font-size: 2.4rem;
  color: var(--prata-lua);
  line-height: 1.1;
}
.stat-x { font-size: 1.4rem; color: var(--ciano); margin-left: .1em; }

.stat-label { color: var(--prata-fria); }

/* ---------- Convidados ---------- */

.guests-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
}

.guest-card {
  --mx: 50%;
  --my: 50%;
  background: var(--marinho);
  border: 1px solid rgba(170, 180, 196, .1);
  border-radius: var(--radius);
  padding: 1rem 1rem 1.3rem;
  position: relative;
  overflow: hidden;
  transition: transform .4s cubic-bezier(.2,.8,.2,1), border-color .4s;
}

.guest-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(320px circle at var(--mx) var(--my), rgba(46, 196, 255, .07), transparent 65%);
  opacity: 0;
  transition: opacity .4s;
  pointer-events: none;
}

.guest-card:hover { transform: translateY(-4px); border-color: rgba(46, 196, 255, .25); }
.guest-card:hover::after { opacity: 1; }

.guest-photo-wrap {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--noite);
  margin-bottom: 1rem;
}

.guest-photo { width: 100%; height: 100%; object-fit: cover; }

.guest-photo-placeholder {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.guest-photo-placeholder .ph-mark {
  width: 42%;
  color: var(--tinta);
  --bar-fill: var(--tinta);
}

/* Badge no rodapé da foto: a faixa inferior é a área livre de rosto em retrato */
.guest-ep {
  position: absolute;
  bottom: 10px; left: 10px;
  background: rgba(5, 11, 24, .78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--prata-clara);
  padding: .35em .8em;
  border-radius: 999px;
  border: 1px solid rgba(170, 180, 196, .16);
  z-index: 2;
}

/* Véu suave sob o badge para garantir contraste sobre fotos claras */
.guest-photo-wrap::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 42%;
  background: linear-gradient(to top, rgba(5, 11, 24, .55), transparent);
  pointer-events: none;
}
.guest-reserved .guest-photo-wrap::after { display: none; }

.guest-name {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: .3rem;
}

.guest-role { color: var(--prata-fria); }

/* Cadeiras reservadas */

.guest-reserved {
  background: transparent;
  border-style: dashed;
  border-color: rgba(122, 132, 153, .28);
}

.guest-reserved .guest-photo-wrap { background: rgba(10, 20, 40, .5); }

.reserved-inner {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.reserved-key { width: 40px; }
.reserved-key rect { fill: var(--prata-funda); transition: fill .4s; }
.guest-reserved:hover .reserved-key rect { fill: var(--ciano-profundo); }

.guest-reserved .guest-name {
  color: var(--prata-fria);
  font-style: italic;
  font-weight: 400;
}
.guest-reserved .guest-role { color: var(--prata-funda); }
.guest-reserved .guest-ep { color: var(--prata-fria); }

/* ---------- Host ---------- */

.host-grid {
  display: grid;
  grid-template-columns: minmax(280px, 400px) 1fr;
  gap: 4rem;
  margin-top: 2.4rem;
  align-items: start;
}

.host-photo-placeholder {
  aspect-ratio: 4 / 5;
  background: var(--marinho);
  border: 1px solid rgba(170, 180, 196, .1);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.4rem;
}
.host-photo-placeholder .ph-mark { width: 34%; color: var(--tinta); --bar-fill: var(--tinta); }
.host-photo-placeholder .mono { color: var(--prata-funda); }

.host-photo {
  aspect-ratio: 4 / 5;
  width: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid rgba(170, 180, 196, .1);
}

.host-name {
  font-size: clamp(1.6rem, 3.4vw, 2.1rem);
  margin-bottom: .5rem;
}

.host-tag {
  color: var(--prata-fria);
  margin-bottom: 1.6rem;
}

.host-copy p + p { margin-top: 1.1em; }
.host-copy strong { color: var(--prata-lua); }

.host-links { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.8rem; }

/* ---------- Patrocinadores ---------- */

.sponsors-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.6rem;
  margin-top: 2.4rem;
}

.sponsor-card {
  display: flex;
  flex-direction: column;
  gap: .9rem;
  background: var(--marinho);
  border: 1px solid rgba(170, 180, 196, .1);
  border-radius: var(--radius);
  padding: 2.2rem 2.2rem 2rem;
  transition: transform .4s cubic-bezier(.2,.8,.2,1), border-color .4s;
}
.sponsor-card:hover { transform: translateY(-4px); border-color: rgba(46, 196, 255, .3); }

.sponsor-badge {
  color: var(--prata-funda);
  font-size: .62rem;
}

.sponsor-name {
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--prata-lua);
}

.sponsor-logo {
  height: 42px;
  width: auto;
  align-self: flex-start;
  margin: .3rem 0 .4rem;
}

.sponsor-desc {
  color: var(--prata-media);
  font-size: .95rem;
  font-weight: 300;
}

.sponsor-link {
  margin-top: auto;
  padding-top: .6rem;
  color: var(--ciano);
  font-size: .68rem;
  transition: letter-spacing .3s;
}
.sponsor-card:hover .sponsor-link { letter-spacing: .3em; }

/* ---------- Onde ouvir ---------- */

.platforms-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
}

.platform-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .5rem;
  background: var(--noite);
  border: 1px solid rgba(170, 180, 196, .1);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
  transition: transform .4s cubic-bezier(.2,.8,.2,1), border-color .4s, background .4s;
}
.platform-card:hover {
  transform: translateY(-4px);
  border-color: rgba(46, 196, 255, .3);
  background: var(--marinho);
}

.platform-ico {
  width: 30px; height: 30px;
  fill: var(--prata-media);
  margin-bottom: .6rem;
  transition: fill .4s;
}
.platform-card:hover .platform-ico { fill: var(--ciano); }

.platform-name {
  font-weight: 600;
  color: var(--prata-lua);
  font-size: 1rem;
}

.platform-handle { color: var(--prata-funda); font-size: .6rem; }

.follow-strip {
  margin-top: 2.6rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.4rem;
  padding: 1.4rem 1.8rem;
  border: 1px solid rgba(170, 180, 196, .12);
  border-radius: var(--radius);
  justify-content: space-between;
}
.follow-strip > .mono { color: var(--prata-fria); }
.follow-strip + .follow-strip { margin-top: 1rem; }

.follow-links { display: flex; flex-wrap: wrap; gap: 1.8rem; }

.follow-link {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  font-weight: 600;
  color: var(--prata-lua);
  transition: color .3s;
}
.follow-link .ico { width: 1.2em; height: 1.2em; fill: currentColor; }
.follow-link:hover { color: var(--ciano); }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid rgba(170, 180, 196, .12);
  padding: 64px 0 48px;
  background: var(--abismo);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 2.4rem;
}

.footer-brand { display: flex; align-items: center; gap: .9rem; }
.footer-attr {
  display: block;
  margin-top: .35rem;
  color: var(--prata-funda);
  font-size: .58rem;
}

.footer-quote {
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--prata-media);
}

.footer-meta {
  display: flex;
  flex-direction: column;
  gap: .8rem;
  color: var(--prata-funda);
}
.footer-meta a { transition: color .3s; }
.footer-meta a:hover { color: var(--prata-media); }
.footer-meta .mono, .footer-meta a { font-size: .62rem; letter-spacing: .18em; }

/* ---------- Reveal on scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .9s cubic-bezier(.2,.8,.2,1), transform .9s cubic-bezier(.2,.8,.2,1);
  transition-delay: var(--d, 0s);
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .guest-card, .sponsor-card, .platform-card { transition: none; }
}

/* ---------- Responsivo ---------- */

@media (max-width: 1024px) {
  .guests-grid { grid-template-columns: repeat(3, 1fr); }
  .platforms-grid { grid-template-columns: repeat(2, 1fr); }
  .programa-grid { grid-template-columns: 1fr; gap: 2.6rem; }
  .programa-stats {
    flex-direction: row;
    border-left: 0;
    border-top: 1px solid rgba(170, 180, 196, .18);
  }
  .stat { flex: 1; padding: 1.4rem 0 0; }
  .stat + .stat { border-top: 0; padding-left: 1.6rem; }
}

@media (max-width: 820px) {
  .site-nav, .btn-header { display: none; }
  .nav-toggle { display: flex; }

  .section { padding: 84px 0; }

  .host-grid { grid-template-columns: 1fr; gap: 2.4rem; }
  .host-photo-col { max-width: 420px; }

  .sponsors-grid { grid-template-columns: 1fr; }

  .hero-watermark {
    right: -30vw;
    width: 90vw;
    opacity: .5;
  }
}

@media (max-width: 640px) {
  .container { width: calc(100% - 40px); }

  .guests-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }

  .stat-num { font-size: 1.8rem; }
  .stat-label { font-size: .58rem; letter-spacing: .16em; }

  .hero-ctas .btn { width: 100%; justify-content: center; }

  .follow-strip { justify-content: center; text-align: center; }
  .follow-links { justify-content: center; gap: 1.2rem; }
}

@media (max-width: 400px) {
  .guests-grid { grid-template-columns: 1fr 1fr; }
  .eyebrow { letter-spacing: .2em; }
}
