:root {
  --senai-red: #c8102e;
  --senai-red-light: #e31b23;
  --senai-red-dark: #900b20;
  --senai-red-glow: rgba(200, 16, 46, 0.22);
  
  --dark-bg: #0f172a;
  --dark-surface: #1e293b;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  
  --surface: #ffffff;
  --soft: #f8fafc;
  --soft-warm: #f1f5f9;
  
  --shadow-sm: 0 4px 12px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 12px 32px -8px rgba(15, 23, 42, 0.08), 0 4px 12px -2px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 24px 48px -12px rgba(15, 23, 42, 0.12), 0 12px 24px -6px rgba(15, 23, 42, 0.06);
  --shadow-glow: 0 16px 36px -6px var(--senai-red-glow);

  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;

  --transition-fast: 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 50%, #e2e8f0 100%);
  background-attachment: fixed;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

button, input, select {
  font-family: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ==========================================
   TOPBAR MODERN COM LOGO SENAI E NAVEGAÇÃO
   ========================================== */
.topbar {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4vw;
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand {
  border: 0;
  background: none;
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  padding: 4px 8px;
  border-radius: var(--radius-md);
  transition: var(--transition-fast);
}

.brand:hover {
  background: rgba(200, 16, 46, 0.04);
}

.brand-logo {
  height: 42px;
  width: auto;
  display: block;
  filter: drop-shadow(0 2px 6px rgba(200, 16, 46, 0.2));
}

.brand-info strong {
  display: block;
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.brand-info small {
  display: block;
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}

/* Menu de navegação central */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(241, 245, 249, 0.8);
  padding: 6px;
  border-radius: 999px;
  border: 1px solid var(--line);
}

.nav-link {
  border: 0;
  background: transparent;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  transition: var(--transition-fast);
}

.nav-link:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.7);
}

.nav-link.active {
  background: var(--senai-red);
  color: white;
  box-shadow: 0 4px 14px var(--senai-red-glow);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.status {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.18);
  animation: statusPulse 2s infinite;
}

.status.warning .status-dot {
  background: #f59e0b;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.18);
}

@keyframes statusPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.75; transform: scale(1.1); }
}

/* ==========================================
   ESTRUTURA DE SEÇÕES E ANIMAÇÃO
   ========================================== */
main {
  flex: 1;
}

.section {
  display: none;
}

.section.active {
  display: block;
  animation: sectionFade 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* ==========================================
   HERO / TELA PRINCIPAL
   ========================================== */
.hero {
  padding: 60px 5vw 50px;
  display: none;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 48px;
}

.hero.active {
  display: grid;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(200, 16, 46, 0.08);
  border: 1px solid rgba(200, 16, 46, 0.2);
  padding: 6px 14px 6px 8px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.badge-logo {
  height: 22px;
  width: auto;
  border-radius: 4px;
}

.hero-badge span {
  font-size: 13px;
  font-weight: 800;
  color: var(--senai-red);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(40px, 4.8vw, 68px);
  line-height: 1.05;
  margin: 0 0 20px;
  letter-spacing: -0.035em;
  font-weight: 900;
  color: var(--dark-bg);
}

h1 span {
  background: linear-gradient(135deg, var(--senai-red-light) 0%, var(--senai-red-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-copy p {
  font-size: 19px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 640px;
  margin: 0 0 28px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* BOTÕES GERAIS */
.btn {
  border: 0;
  border-radius: var(--radius-md);
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition-fast);
  text-decoration: none;
}

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

.btn:active {
  transform: translateY(-1px);
}

.btn.primary {
  background: linear-gradient(135deg, var(--senai-red-light) 0%, var(--senai-red) 100%);
  color: white;
  box-shadow: 0 10px 28px -4px var(--senai-red-glow);
}

.btn.primary:hover {
  box-shadow: 0 16px 36px -4px rgba(200, 16, 46, 0.38);
}

.btn.secondary {
  background: var(--dark-bg);
  color: white;
  box-shadow: 0 10px 24px -4px rgba(15, 23, 42, 0.25);
}

.btn.secondary:hover {
  background: var(--dark-surface);
  box-shadow: 0 14px 30px -4px rgba(15, 23, 42, 0.35);
}

.btn.ghost {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.btn.ghost:hover {
  border-color: var(--line-strong);
  background: var(--soft);
}

.btn.full {
  width: 100%;
}

/* PALCO VISUAL HERO */
.hero-visual {
  min-height: 420px;
  display: grid;
  place-items: center;
}

.shoe-stage {
  width: min(100%, 640px);
  aspect-ratio: 1.25;
  border-radius: var(--radius-xl);
  background: #1e293b;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.shoe-stage.has-photo {
  min-height: 420px;
}

.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.shoe-stage:hover .hero-photo {
  transform: scale(1.03);
}

.hero-photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.1) 0%, rgba(15, 23, 42, 0.45) 100%);
}

.tech-tag {
  position: absolute;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.9);
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 13px;
  color: var(--dark-bg);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(12px);
  animation: tagFloat 4s ease-in-out infinite alternate;
}

.tag-1 { top: 16%; left: 8%; animation-delay: 0s; }
.tag-2 { top: 20%; right: 8%; animation-delay: 1.2s; }
.tag-3 { bottom: 14%; right: 12%; animation-delay: 2.4s; }

@keyframes tagFloat {
  0% { transform: translateY(0px); }
  100% { transform: translateY(-8px); }
}

/* GRADE DE MENU RÁPIDO DO HERO */
.menu-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.menu-card {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 22px;
  text-align: left;
  min-height: 160px;
  transition: var(--transition-normal);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.menu-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--senai-red-light), var(--senai-red));
  opacity: 0;
  transition: var(--transition-fast);
}

.menu-card:hover {
  transform: translateY(-6px);
  border-color: rgba(200, 16, 46, 0.3);
  box-shadow: var(--shadow-glow);
}

.menu-card:hover::before {
  opacity: 1;
}

.card-icon {
  font-size: 32px;
  margin-bottom: 12px;
}

.card-content strong {
  display: block;
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 4px;
}

.card-content small {
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.card-arrow {
  align-self: flex-end;
  color: var(--senai-red);
  font-weight: 900;
  font-size: 18px;
  opacity: 0;
  transform: translateX(-6px);
  transition: var(--transition-fast);
}

.menu-card:hover .card-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* ==========================================
   SEÇÕES DE CONTEÚDO (SETORES, PROCESSO, ETC.)
   ========================================== */
.content-section {
  padding: 50px 5vw 70px;
}

.section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 36px;
}

.eyebrow {
  display: inline-block;
  color: var(--senai-red);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.section-heading h2 {
  font-size: clamp(32px, 3.8vw, 50px);
  letter-spacing: -0.035em;
  margin: 0 0 10px;
  font-weight: 800;
  color: var(--dark-bg);
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  max-width: 700px;
}

/* SETORES GRID */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.sector-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: 0;
  overflow: hidden;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-md);
  transition: var(--transition-normal);
  text-align: left;
}

.sector-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-glow);
  border-color: rgba(200, 16, 46, 0.25);
}

.sector-image {
  height: 200px;
  position: relative;
  overflow: hidden;
  background: var(--soft-warm);
}

.sector-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.sector-card:hover .sector-image img {
  transform: scale(1.06);
}

.sector-image .sector-icon {
  position: absolute;
  left: 18px;
  bottom: 14px;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  font-size: 26px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.sector-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.sector-body h3 {
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 10px;
  color: var(--dark-bg);
}

.sector-body p {
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
  font-size: 15px;
}

.sector-body .more {
  margin-top: auto;
  padding-top: 18px;
  color: var(--senai-red);
  font-weight: 800;
  font-size: 14px;
}

/* PROCESSO TIMELINE */
.timeline {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  counter-reset: etapa;
}

.timeline-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 0;
  overflow: hidden;
  display: grid;
  grid-template-columns: 210px 1fr;
  min-height: 200px;
  box-shadow: var(--shadow-md);
  position: relative;
  transition: var(--transition-normal);
}

.timeline-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.timeline-item::before {
  counter-increment: etapa;
  content: counter(etapa);
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 3;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  background: var(--senai-red);
  color: white;
  font-weight: 900;
  font-size: 16px;
  box-shadow: 0 6px 16px var(--senai-red-glow);
}

.timeline-image {
  position: relative;
  min-height: 200px;
  background: var(--soft-warm);
  overflow: hidden;
}

.timeline-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.timeline-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.timeline-body h3 {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 800;
  color: var(--dark-bg);
}

.timeline-body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 14px;
}

/* ==========================================
   CRIADOR DE CALÇADO COM IA
   ========================================== */
.creator-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 24px;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}

.form-panel {
  padding: 28px;
  display: grid;
  gap: 20px;
}

.form-group {
  display: grid;
  gap: 8px;
}

.form-group label {
  font-weight: 800;
  font-size: 14px;
  color: var(--dark-bg);
}

.form-group select,
.form-group input[type="text"] {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--soft);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  transition: var(--transition-fast);
  outline: none;
}

.form-group select:focus,
.form-group input[type="text"]:focus {
  border-color: var(--senai-red);
  background: white;
  box-shadow: 0 0 0 4px var(--senai-red-glow);
}

.creator-actions {
  margin-top: 10px;
}

.preview-panel {
  min-height: 520px;
  padding: 32px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.preview-display {
  width: min(100%, 650px);
  min-height: 330px;
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--soft-warm);
}

.shoe-preview {
  width: 100%;
  padding: 28px;
}

.shoe-preview svg {
  width: 100%;
  filter: drop-shadow(0 20px 24px rgba(0, 0, 0, 0.15));
}

.shoe-main { fill: var(--senai-red); transition: 0.3s ease; }
.shoe-panel { fill: white; opacity: 0.88; }
.shoe-sole { stroke: white; stroke-width: 18; stroke-linecap: round; }
.shoe-laces { stroke: var(--senai-red); stroke-width: 10; stroke-linecap: round; }

.ai-image-container {
  width: 100%;
  height: 100%;
  min-height: 330px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  background: var(--dark-bg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ai-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
  display: block;
}

.ai-badge {
  position: absolute;
  bottom: 16px;
  right: 16px;
  background: rgba(15, 23, 42, 0.85);
  color: white;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.ai-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 40px 24px;
  background: rgba(248, 250, 252, 0.96);
  border-radius: var(--radius-lg);
  width: 100%;
  min-height: 330px;
}

.ai-loading p {
  font-weight: 800;
  font-size: 16px;
  color: var(--dark-bg);
  margin: 0;
}

.ai-loading small {
  color: var(--muted);
  font-weight: 600;
}

.spinner {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(200, 16, 46, 0.15);
  border-top-color: var(--senai-red);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.preview-panel h3 {
  font-size: 28px;
  font-weight: 800;
  margin: 24px 0 8px;
  color: var(--dark-bg);
}

.preview-panel p {
  color: var(--muted);
  max-width: 620px;
  margin: 0;
}

.chips {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 16px;
}

.chip {
  background: var(--soft-warm);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}

/* ==========================================
   ASSISTENTE DE IA - CHAT
   ========================================== */
.chat-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.select-voice {
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  font-weight: 700;
  font-size: 13px;
  max-width: 230px;
  outline: none;
}

.select-voice:focus {
  border-color: var(--senai-red);
}

.btn-voice-toggle {
  border: 1px solid #10b981;
  background: #ecfdf5;
  color: #047857;
  border-radius: var(--radius-md);
  padding: 10px 16px;
  font-weight: 800;
  font-size: 13px;
  transition: var(--transition-fast);
}

.btn-voice-toggle:not(.active) {
  border-color: var(--line);
  background: var(--soft);
  color: var(--muted);
}

.btn-voice-stop {
  border: 1px solid #ef4444;
  background: #fef2f2;
  color: #b91c1c;
  border-radius: var(--radius-md);
  padding: 10px 16px;
  font-weight: 800;
  font-size: 13px;
  animation: pulseRed 1.5s infinite;
}

.chat-layout {
  max-width: 1000px;
  margin: 0 auto;
  overflow: hidden;
}

.chat-messages {
  min-height: 400px;
  max-height: 52vh;
  overflow-y: auto;
  padding: 28px;
  background: linear-gradient(180deg, #f8fafc, #f1f5f9);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.message {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: 82%;
}

.message span {
  flex: 0 0 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 12px;
  background: var(--dark-bg);
  color: white;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

.message-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.message p {
  margin: 0;
  padding: 15px 18px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 6px 20px 20px 20px;
  line-height: 1.6;
  font-size: 15px;
  box-shadow: var(--shadow-sm);
}

.btn-read-msg {
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
}

.btn-read-msg:hover {
  color: var(--senai-red);
  background: rgba(200, 16, 46, 0.06);
}

.message.user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.message.user span {
  background: var(--senai-red);
  box-shadow: 0 4px 12px var(--senai-red-glow);
}

.message.user p {
  background: var(--senai-red);
  color: white;
  border: 0;
  border-radius: 20px 6px 20px 20px;
  box-shadow: 0 6px 18px var(--senai-red-glow);
}

.suggestions {
  padding: 14px 20px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.suggestions button {
  border: 1px solid var(--line);
  background: var(--soft);
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  transition: var(--transition-fast);
}

.suggestions button:hover {
  border-color: var(--senai-red);
  color: var(--senai-red);
  background: white;
}

.chat-form {
  display: flex;
  gap: 12px;
  padding: 20px;
  border-top: 1px solid var(--line);
  background: var(--surface);
  align-items: center;
}

.chat-form input {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  font-size: 15px;
  outline: none;
  background: var(--soft);
}

.chat-form input:focus {
  border-color: var(--senai-red);
  background: white;
  box-shadow: 0 0 0 4px var(--senai-red-glow);
}

.btn-mic {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--soft);
  font-size: 22px;
  display: grid;
  place-items: center;
  transition: var(--transition-fast);
  flex-shrink: 0;
}

.btn-mic:hover {
  border-color: var(--senai-red);
  background: white;
  transform: scale(1.04);
}

.btn-mic.listening {
  background: #fef2f2;
  border-color: #ef4444;
  color: #ef4444;
  animation: pulseMic 1.2s infinite;
}

@keyframes pulseMic {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
  50% { box-shadow: 0 0 0 12px rgba(239, 68, 68, 0); }
}

@keyframes pulseRed {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* ==========================================
   QUIZ DE CONHECIMENTO
   ========================================== */
.quiz-panel {
  max-width: 850px;
  margin: 0 auto;
  padding: 36px;
}

.quiz-progress {
  color: var(--senai-red);
  font-weight: 900;
  font-size: 14px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.quiz-question {
  font-size: 28px;
  font-weight: 800;
  margin: 14px 0 28px;
  color: var(--dark-bg);
}

.quiz-options {
  display: grid;
  gap: 14px;
}

.quiz-option {
  border: 1px solid var(--line);
  background: var(--soft);
  padding: 18px 20px;
  border-radius: var(--radius-md);
  text-align: left;
  font-weight: 700;
  font-size: 16px;
  color: var(--ink);
  transition: var(--transition-fast);
}

.quiz-option:hover {
  border-color: var(--senai-red);
  background: white;
  transform: translateX(4px);
}

.quiz-option.correct {
  background: #ecfdf5;
  border-color: #10b981;
  color: #047857;
}

.quiz-option.wrong {
  background: #fef2f2;
  border-color: #ef4444;
  color: #b91c1c;
}

.quiz-feedback {
  margin-top: 22px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

/* ==========================================
   MODAL
   ========================================== */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  display: none;
  place-items: center;
  padding: 24px;
  z-index: 200;
  backdrop-filter: blur(12px);
}

.modal.open {
  display: grid;
}

.modal-card {
  width: min(860px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  background: white;
  border-radius: var(--radius-xl);
  padding: 36px;
  position: relative;
  box-shadow: var(--shadow-lg);
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 0;
  background: var(--soft);
  font-size: 26px;
  font-weight: 600;
  color: var(--muted);
  display: grid;
  place-items: center;
  transition: var(--transition-fast);
}

.modal-close:hover {
  background: var(--line);
  color: var(--ink);
}

.modal-card h2 {
  margin-top: 0;
  font-size: 32px;
  font-weight: 800;
}

.detail-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 24px;
}

.detail-box {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px;
}

.detail-box h4 {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 800;
}

.detail-box ul {
  padding-left: 20px;
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.modal-image-wrap {
  height: 320px;
  margin: -36px -36px 28px;
  overflow: hidden;
  position: relative;
  background: var(--dark-bg);
}

.modal-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.image-credit {
  display: inline-block;
  margin-top: 22px;
  color: var(--muted);
  font-size: 12px;
  text-decoration: none;
}

.image-credit:hover {
  color: var(--senai-red);
  text-decoration: underline;
}

/* ==========================================
   RODAPÉ / FOOTER MODERNO COM LOGO SENAI
   ========================================== */
.app-footer {
  margin-top: auto;
  background: var(--dark-bg);
  color: white;
  padding: 32px 5vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  gap: 20px;
}

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

.footer-logo {
  height: 36px;
  width: auto;
}

.footer-text strong {
  display: block;
  font-size: 15px;
  font-weight: 800;
}

.footer-text span {
  display: block;
  font-size: 13px;
  color: #94a3b8;
}

.footer-copy {
  font-size: 13px;
  color: #94a3b8;
  text-align: right;
}

/* ==========================================
   RESPONSIVIDADE (TABLETS E MOBILE / TOTEM)
   ========================================== */
@media (max-width: 1100px) {
  .hero.active {
    grid-template-columns: 1fr;
  }
  .hero-visual {
    min-height: 360px;
  }
  .menu-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .cards-grid,
  .timeline {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .topbar {
    padding: 0 16px;
    height: 70px;
  }
  .nav-menu {
    display: none; /* oculta menu horizontal em telas muito pequenas se necessário */
  }
  .hero,
  .content-section {
    padding-left: 20px;
    padding-right: 20px;
  }
  .menu-grid,
  .cards-grid,
  .timeline,
  .creator-layout {
    grid-template-columns: 1fr;
  }
  .timeline-item {
    grid-template-columns: 1fr;
  }
  .timeline-image {
    height: 200px;
  }
  .section-heading {
    flex-direction: column;
  }
  .section-heading .btn {
    order: -1;
  }
  .detail-list {
    grid-template-columns: 1fr;
  }
  .app-footer {
    flex-direction: column;
    text-align: center;
  }
  .footer-copy {
    text-align: center;
  }
}
