/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --aprendiz: #1D9E75;
  --aprendiz-light: #E1F5EE;
  --aprendiz-dark: #0F6E56;

  --empresa: #378ADD;
  --empresa-light: #E6F1FB;
  --empresa-dark: #185FA5;

  --senac: #D85A30;
  --senac-light: #FAECE7;
  --senac-dark: #993C1D;

  --bg: #0e0e0e;
  --surface: #161616;
  --surface2: #1e1e1e;
  --border: rgba(255,255,255,0.07);
  --text: #f0ede8;
  --muted: #888;

  --radius: 16px;
  --radius-sm: 8px;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Sora', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1.5rem 5rem;
  overflow: hidden;
}

.hero-bg-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.18;
}

.s1 {
  width: 500px;
  height: 500px;
  background: var(--aprendiz);
  top: -120px;
  left: -120px;
  animation: drift1 12s ease-in-out infinite alternate;
}

.s2 {
  width: 400px;
  height: 400px;
  background: var(--empresa);
  top: 100px;
  right: -100px;
  animation: drift2 15s ease-in-out infinite alternate;
}

.s3 {
  width: 350px;
  height: 350px;
  background: var(--senac);
  bottom: -100px;
  left: 50%;
  transform: translateX(-50%);
  animation: drift3 10s ease-in-out infinite alternate;
}

@keyframes drift1 { to { transform: translate(40px, 30px); } }
@keyframes drift2 { to { transform: translate(-30px, 40px); } }
@keyframes drift3 { to { transform: translate(-20px, -20px); } }

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.hero-eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.hero-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  line-height: 1.05;
  color: var(--text);
  margin-bottom: 1.25rem;
}

.hero-title em {
  font-style: italic;
  color: var(--aprendiz);
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 480px;
  margin: 0 auto 2.5rem;
}

/* Authors */
.authors {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.author-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 18px 8px 8px;
  font-size: 13.5px;
  font-weight: 500;
  transition: transform 0.25s, border-color 0.25s;
  cursor: default;
}

.author-chip:hover {
  transform: translateY(-2px);
  border-color: rgba(255,255,255,0.18);
}

.author-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

#author-juan .author-avatar {
  background: var(--aprendiz-light);
  color: var(--aprendiz-dark);
}

#author-higor .author-avatar {
  background: var(--empresa-light);
  color: var(--empresa-dark);
}

.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 20px;
  color: var(--muted);
  animation: bounce 2s ease-in-out infinite;
  z-index: 1;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ============================================================
   CONTAINER & SECTIONS
   ============================================================ */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem 5rem;
}

.section {
  margin-bottom: 5rem;
}

.section-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.section-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--text);
  margin-bottom: 2rem;
  line-height: 1.15;
}

/* ============================================================
   CARDS
   ============================================================ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s, border-color 0.3s;
}

.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
}

.card--aprendiz::before { background: var(--aprendiz); }
.card--empresa::before  { background: var(--empresa); }
.card--senac::before    { background: var(--senac); }

.card:hover {
  transform: translateY(-4px);
}

.card--aprendiz:hover { border-color: rgba(29, 158, 117, 0.35); }
.card--empresa:hover  { border-color: rgba(55, 138, 221, 0.35); }
.card--senac:hover    { border-color: rgba(216, 90, 48, 0.35); }

.card-icon {
  font-size: 28px;
  margin-bottom: 0.75rem;
}

.card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.card p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.65;
}

/* Direitos & Deveres */
.dd-group {
  margin-bottom: 1rem;
}

.dd-label {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 2px 10px;
  border-radius: 999px;
  margin-bottom: 5px;
}

.dd-direito {
  background: rgba(29, 158, 117, 0.15);
  color: #5DCAA5;
}

.dd-dever {
  background: rgba(216, 90, 48, 0.15);
  color: #F0997B;
}

/* Consequence accent */
.card--consequence {
  border-left: 2px solid;
}
.card--consequence.card--aprendiz { border-left-color: var(--aprendiz); border-radius: 0 var(--radius) var(--radius) 0; }
.card--consequence.card--empresa  { border-left-color: var(--empresa); border-radius: 0 var(--radius) var(--radius) 0; }
.card--consequence.card--senac    { border-left-color: var(--senac); border-radius: 0 var(--radius) var(--radius) 0; }

/* ============================================================
   INTERDEPENDÊNCIA
   ============================================================ */
.inter-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  text-align: center;
}

.inter-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.inter-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 16px 22px;
  border-radius: var(--radius-sm);
  min-width: 110px;
  transition: transform 0.25s;
}

.inter-node:hover {
  transform: translateY(-3px);
}

.node-senac   { background: var(--senac-light);   }
.node-empresa { background: var(--empresa-light); }
.node-aprendiz { background: var(--aprendiz-light); }

.node-senac strong   { color: var(--senac-dark); font-size: 14px; }
.node-empresa strong { color: var(--empresa-dark); font-size: 14px; }
.node-aprendiz strong { color: var(--aprendiz-dark); font-size: 14px; }

.node-senac small   { color: var(--senac); font-size: 11px; }
.node-empresa small { color: var(--empresa); font-size: 11px; }
.node-aprendiz small { color: var(--aprendiz); font-size: 11px; }

.inter-node-icon { font-size: 22px; }

.inter-result {
  outline: 2px solid var(--aprendiz);
  outline-offset: 3px;
}

.inter-plus {
  font-size: 24px;
  font-weight: 300;
  color: var(--muted);
}

.inter-desc {
  font-size: 0.9rem;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 1.5rem;
  line-height: 1.7;
}

.btn-ver {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  font-family: 'Sora', sans-serif;
  font-size: 13.5px;
  font-weight: 500;
  padding: 10px 22px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}

.btn-ver:hover {
  background: var(--surface2);
  border-color: rgba(255,255,255,0.2);
  transform: translateY(-1px);
}

.importancia-box {
  display: none;
  margin-top: 1.5rem;
  background: rgba(29, 158, 117, 0.08);
  border: 1px solid rgba(29, 158, 117, 0.25);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  font-size: 0.9rem;
  color: #a0d9c4;
  text-align: left;
  animation: fadeSlide 0.35s ease;
}

.importancia-box.visible {
  display: block;
}

.importancia-box strong {
  color: #5DCAA5;
}

@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  text-align: center;
  padding: 3rem 1.5rem;
  border-top: 1px solid var(--border);
}

.footer-names {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 0.5rem;
}

.footer-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.footer-dot {
  color: var(--muted);
  font-size: 18px;
}

.footer-sub {
  font-size: 13px;
  color: var(--muted);
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
.fade-in {
  animation: fadeIn 1s ease both;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 640px) {
  .hero { padding: 2rem 1rem 4rem; }
  .inter-flow { gap: 10px; }
  .inter-node { min-width: 90px; padding: 12px 14px; }
  .inter-plus { font-size: 18px; }
  .card-grid { grid-template-columns: 1fr; }
}
