@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700;800&family=Space+Grotesk:wght@500;600&display=swap');

/* --- CSS Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; tab-size: 4; }
body { -webkit-font-smoothing: antialiased; line-height: 1.6; }
img, picture, video, canvas, svg { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; }
p, h1, h2, h3, h4, h5, h6 { overflow-wrap: break-word; }
ul, ol { list-style: none; }

/* --- Variables --- */
:root {
  /* Core Palette */
  --bg: #f6f7fb;
  --panel: rgba(252, 252, 252, 0.55);
  --panel-2: #f2f3f6;
  --text: #0f1012;
  --muted: #4f5564;
  --accent: #f97316;
  --accent-2: #d85d0a;
  --border: #e1e4ec;
  --success: #f97316;
  --shadow: 0 16px 42px rgba(15,16,18,0.08);

  /* Service Card Colors */
  --tm-border: #f97316;    /* Orange */
  --tm-bg: #fff7ed;
  --sast-border: #3b82f6;   /* Blue */
  --sast-bg: #eff6ff;
  --scr-border: #059669;   /* Emerald Green */
  --scr-bg: #ecfdf5;
  --dast-border: #a855f7;   /* Purple */
  --dast-bg: #faf5ff;
  --secrets-border: #ef4444; /* Red */
  --secrets-bg: #fef2f2;

  /* Training Track Colors */
  --train-base: #6B1D5C;   /* Roxo Profundo (Aubergine) */
  --train-base-dark: #561446; /* Roxo Escuro (Hover) */
  --train-web: #f43f5e;    /* Rose */
  --train-api: #10b981;    /* Emerald */
  --train-mobile: #0ea5e9; /* Sky */
}

/* --- Accessibility Preferences --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* --- Global Styles --- */
body {
  margin: 0;
  font-family: 'Sora', 'Space Grotesk', 'Segoe UI', sans-serif;
  background: radial-gradient(circle at 18% 18%, rgba(249,115,22,0.08), transparent 30%), linear-gradient(135deg, #fcfcfc 0%, #f6f7fb 50%, #eff1f5 100%);
  color: var(--text);
  scroll-behavior: smooth;
  position: relative; /* Create context */
}

main, footer {
  position: relative;
  z-index: 1;
}

canvas#bg-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

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

/* Vertical Rhythm & Spacing Fixes (Compact Version) */
h1, h2, h3, h4 { margin-bottom: 0.5em; line-height: 1.2; }
p { margin-bottom: 1em; }
ul, ol { margin-bottom: 1em; }
section { margin-bottom: 40px; } /* Reduced from 60px */

/* --- Header & Nav --- */
header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
  background: linear-gradient(135deg, rgba(55, 58, 68, 0.95), rgba(15, 16, 20, 0.95));
  border-bottom: 1px solid rgba(252,252,252,0.08);
}
header .logo { color: #fcfcfc; }

nav {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: 0.3px; color: #0c0c0f; text-decoration: none; }
.logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px; 
  height: 42px; 
  border-radius: 12px; 
  overflow: hidden; 
  box-shadow: 0 10px 24px rgba(15,16,18,0.08);
  flex-shrink: 0;
}
.logo-mark img { width: 100%; height: 100%; object-fit: cover; display: block; }

.nav-links { display: flex; gap: 14px; font-weight: 700; }
.nav-links a { padding: 10px 12px; border-radius: 12px; transition: background 0.18s, color 0.18s; color: #e5e7eb; }
.nav-links a:hover { background: rgba(252,252,252,0.08); color: var(--accent); }
.nav-links a.active {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: #fcfcfc;
  border: 1px solid rgba(249,115,22,0.35);
  box-shadow: 0 8px 18px rgba(249,115,22,0.25);
}

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

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: #fcfcfc;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.2px;
  cursor: pointer;
  text-decoration: none;
  user-select: none;
  box-shadow: 0 10px 20px rgba(249,115,22,0.25);
  transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(249,115,22,0.35);
  filter: brightness(1.05);
}
.btn:active {
  transform: translateY(0);
  box-shadow: 0 6px 12px rgba(249,115,22,0.25);
}

.btn.secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: 0 2px 6px rgba(15,16,18,0.03);
}
.btn.secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(249,115,22,0.04);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(15,16,18,0.05);
}
.btn.secondary:active {
  transform: translateY(0);
  background: rgba(249,115,22,0.08);
}

/* --- Layout Utils --- */
.container { max-width: 1200px; margin: 0 auto; padding: 40px 22px; } /* Reduced from 70px */
.container[id] { scroll-margin-top: 100px; }

h1, h2, h3, h4 { margin-bottom: 16px; line-height: 1.2; }
h1 { font-size: clamp(32px, 4vw, 46px); }
h2 { font-size: clamp(26px, 3vw, 34px); }

.muted { color: var(--muted); }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(249,115,22,0.14);
  border: 1px solid rgba(249,115,22,0.34);
  color: var(--text);
  font-weight: 800;
  letter-spacing: 0.2px;
  font-size: 13px;
  text-transform: uppercase;
}
.pill.ghost {
  background: rgba(252,252,252,0.9);
  border: 1px dashed rgba(249,115,22,0.5);
  color: var(--text);
}

/* --- Hero & Stats --- */
.hero { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 32px; align-items: center; padding-top: 20px; margin-bottom: 24px; } /* Reduced */
.hero p { font-size: 17px; color: var(--muted); margin-bottom: 22px; }
.hero-visual {
  width: 100%;
  max-width: 520px;
  display: block;
  margin: 0 auto 16px;
  border-radius: 18px;
  border: 1px solid var(--border);
  box-shadow: 0 12px 28px rgba(15,16,18,0.08);
  background: rgba(252, 252, 252, 0.55); backdrop-filter: blur(8px);
  object-fit: cover;
}

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px,1fr)); gap: 12px; margin-top: 12px; }
.stat { padding: 14px; border: 1px solid var(--border); border-radius: 14px; background: var(--panel); box-shadow: 0 10px 24px rgba(15,16,18,0.05); }
.stat strong { display: block; font-size: 22px; color: var(--accent); }

/* --- Certifications --- */
.cert-strip {
  margin-top: 16px;
  display: grid;
  gap: 10px;
  align-items: start;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(252, 252, 252, 0.55); backdrop-filter: blur(8px);
  box-shadow: 0 12px 26px rgba(15,16,18,0.06);
}
.cert-copy { display: grid; gap: 4px; }
.cert-copy h4 { margin: 0; font-size: 18px; }
.cert-copy p { margin: 0; color: var(--muted); }
.cert-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  align-items: center;
  justify-items: center;
  width: 100%;
}
.cert-thumbs img {
  width: 100%;
  max-width: 150px;
  aspect-ratio: 3 / 2;
  border-radius: 14px;
  border: 1px solid var(--border);
  padding: 12px;
  background: rgba(252, 252, 252, 0.55); backdrop-filter: blur(8px);
  box-shadow: 0 8px 16px rgba(15,16,18,0.07);
  object-fit: contain;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.cert-thumbs img:hover { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(15,16,18,0.1); }

/* --- Cards & Grid --- */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.card {
  border: 1px solid var(--border);
  background: var(--panel);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(249,115,22,0.08), transparent);
  pointer-events: none;
}
.card h3 { margin-bottom: 8px; font-size: 20px; }
.card p { color: var(--muted); margin-bottom: 12px; }
.card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; color: #1f1f24; }
.card ul li::before { content: '• '; color: var(--accent); }

/* Badge Tiles */
.badge-grid { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.badge-tile {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel);
  color: var(--muted);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.badge-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(249,115,22,0.18);
}

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--panel-2);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.2px;
  text-transform: uppercase;
  color: var(--text);
}
.badge.soon {
  border-radius: 12px;
  border-color: rgba(249,115,22,0.35);
  background: var(--panel-2);
}
.badge.soon::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(249,115,22,0.18);
}

/* --- CTA Block (Compact) --- */
.cta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  align-items: center;
  padding: 32px; /* Reduced */
  border-radius: 24px;
  border: 1px solid rgba(249,115,22,0.15);
  background: linear-gradient(135deg, #fcfcfc 0%, #fff7ed 100%);
  box-shadow: 0 20px 40px rgba(249,115,22,0.08);
  margin-top: 24px; /* Reduced */
}
.cta h3 { font-size: 24px; color: var(--accent); margin-bottom: 8px; }

/* --- FAB (Floating Action Button) --- */
.fab-contact {
  position: fixed;
  bottom: 32px;
  right: 40px;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--accent);
  color: #fcfcfc;
  box-shadow: 0 12px 36px rgba(15,16,18,0.3);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  text-decoration: none;
  overflow: hidden;
  white-space: nowrap;
  gap: 0;
}
.fab-contact:hover {
  width: 190px;
  border-radius: 999px;
  background: var(--accent-2);
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 18px 48px rgba(15,16,18,0.4);
  padding: 0 24px;
  gap: 8px;
}
.fab-contact svg { width: 32px; height: 32px; color: #fcfcfc; flex-shrink: 0; }
.fab-contact span { 
  display: none;
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
  opacity: 0;
  transition: opacity 0.2s 0.1s;
}
.fab-contact:hover span { display: inline-block; opacity: 1; }

/* --- Highlight Sections (Compact Spacing) --- */
.section-spaced { margin-bottom: 56px; } /* Reduced */

/* "Benefícios Imediatos" Highlight (Light) */
.highlight-section {
  padding: 36px; /* Reduced */
  border-radius: 24px;
  background: radial-gradient(circle at 10% 10%, rgba(249,115,22,0.05), transparent 40%), linear-gradient(135deg, #fcfcfc 0%, #fff7ed 100%);
  border: 1px solid rgba(249,115,22,0.15);
  box-shadow: 0 20px 40px rgba(249,115,22,0.06);
}
.highlight-section h2 { color: var(--accent); margin-bottom: 24px; font-size: 28px; }

/* "Quem é a Brio" Highlight (Dark Gradient with Orange Details) */
.section-dark {
  background: linear-gradient(135deg, rgba(20, 22, 26, 0.85) 0%, rgba(0, 0, 0, 0.85) 100%);
  color: #fcfcfc;
  padding: 48px 24px; /* Reduced */
  border-radius: 24px;
  margin-bottom: 56px; /* Reduced */
  box-shadow: 0 24px 60px rgba(15,16,18,0.25);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(249,115,22,0.2); 
  backdrop-filter: blur(8px);
}
.section-dark::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 70%;
  height: 120%;
  background: radial-gradient(circle, rgba(249,115,22,0.08), transparent 65%);
  pointer-events: none;
}
.section-dark h2 { color: #fcfcfc; font-size: 36px; margin-bottom: 16px; letter-spacing: -0.5px; }
.section-dark p.lead { color: #a1a1aa; font-size: 18px; max-width: 720px; line-height: 1.6; margin-bottom: 48px; }

.about-grid-dark { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.about-card-dark {
  background: rgba(252,252,252,0.03);
  border: 1px solid rgba(249,115,22,0.15);
  padding: 28px;
  border-radius: 16px;
  transition: transform 0.2s, background 0.2s;
}
.about-card-dark:hover {
  background: rgba(252,252,252,0.06);
  transform: translateY(-4px);
  border-color: var(--accent);
}
.about-card-dark h3 { font-size: 20px; color: var(--accent); margin-bottom: 12px; }
.about-card-dark p { color: #d4d4d8; margin: 0; font-size: 15px; line-height: 1.6; }

/* --- Contact Hero (Original) --- */
.contact-hero {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 14px;
  padding: 18px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: radial-gradient(circle at 18% 16%, rgba(249,115,22,0.16), rgba(249,115,22,0) 30%), linear-gradient(135deg, #fcfcfc, #f7f7fb 60%, #eef2ff);
  box-shadow: 0 14px 32px rgba(15,16,18,0.07);
  overflow: hidden;
}
.contact-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(249,115,22,0.08), transparent 60%);
  pointer-events: none;
}
.contact-hero__copy { display: grid; gap: 8px; position: relative; z-index: 1; }
.contact-hero__chips { display: flex; gap: 10px; flex-wrap: wrap; }
.contact-meta-bar { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.contact-meta {
  display: grid;
  gap: 6px;
  padding: 10px;
  border: 1px solid rgba(15,16,18,0.06);
  border-radius: 10px;
  background: rgba(252,252,252,0.95);
  box-shadow: 0 6px 14px rgba(15,16,18,0.05);
}
.contact-meta__label {
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-weight: 800;
  font-size: 12px;
  color: var(--muted);
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(252,252,252,0.95);
  box-shadow: 0 6px 16px rgba(15,16,18,0.05);
  font-weight: 700;
  color: var(--text);
}
.chip.strong-chip {
  background: linear-gradient(120deg, #0f1012, #1f2129);
  color: #fcfcfc;
  border-color: #0f1012;
  box-shadow: 0 10px 24px rgba(15,16,18,0.18);
}
.chip.ghost-chip {
  background: rgba(249,115,22,0.08);
  border-color: rgba(249,115,22,0.38);
  color: var(--text);
}
.contact-hero__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.contact-hero__panel {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 8px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(252,252,252,0.92);
  box-shadow: 0 10px 22px rgba(15,16,18,0.07);
}
.contact-hero__label {
  letter-spacing: 0.7px;
  text-transform: uppercase;
  font-weight: 800;
  font-size: 12px;
  color: var(--muted);
}
.contact-hero__options { display: grid; gap: 10px; }
.contact-hero__options--select { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.contact-option {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: flex-start;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(252, 252, 252, 0.55); backdrop-filter: blur(8px);
  box-shadow: 0 8px 18px rgba(15,16,18,0.06);
}
.contact-option.selectable { cursor: pointer; text-align: left; transition: border 0.18s, box-shadow 0.18s, transform 0.18s; }
.contact-option.selectable:hover { border-color: rgba(249,115,22,0.6); box-shadow: 0 12px 26px rgba(15,16,18,0.08); transform: translateY(-2px); }
.contact-option__title { font-weight: 800; margin: 0 0 2px 0; color: var(--text); }
.contact-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(249,115,22,0.16);
  margin-top: 4px;
}
.contact-hero__tags { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; align-items: center; }
.mini-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px dashed var(--border);
  background: rgba(19,19,22,0.04);
  font-weight: 700;
  font-size: 13px;
  color: var(--text);
}
.mini-tag::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(249,115,22,0.18);
}
.contact-hero__footer {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  text-align: center;
  margin: 12px 0 0;
}
.cf-turnstile { display: flex; justify-content: center; margin: 0 auto 6px; }

/* --- Tone Themes --- */
.tone-base { border-color: #f0c7d3; box-shadow: 0 12px 26px rgba(139,28,63,0.12); background: linear-gradient(135deg, #fff4f7, #fcfcfc); }
.tone-web { border-color: #fecdd3; box-shadow: 0 12px 26px rgba(244,63,94,0.1); background: linear-gradient(135deg, #fff7f8, #fcfcfc); }
.tone-api { border-color: #bfedd5; box-shadow: 0 12px 26px rgba(16,185,129,0.1); background: linear-gradient(135deg, #f6fffa, #fcfcfc); }
.tone-mobile { border-color: #c2e4ff; box-shadow: 0 12px 26px rgba(14,165,233,0.1); background: linear-gradient(135deg, #f7fbff, #fcfcfc); }

/* --- Steps --- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  counter-reset: step-counter;
}
.step {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--panel);
  box-shadow: 0 12px 26px rgba(15,16,18,0.04);
  position: relative;
  padding-top: 70px;
}
.step::before {
  counter-increment: step-counter;
  content: counter(step-counter);
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: rgba(249,115,22,0.12);
  border-radius: 999px;
  font-weight: 700;
  color: var(--accent);
  font-size: 16px;
}

.step h4 { display: flex; align-items: center; gap: 8px; color: var(--text); font-size: 18px; }
.step h4 svg { width: 22px; height: 22px; color: var(--accent); flex-shrink: 0; }

/* --- Benefits --- */
.benefits { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.benefit { padding: 16px; background: var(--panel-2); border: 1px solid var(--border); border-radius: 12px; display: flex; align-items: center; gap: 12px; }
.benefit .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 6px rgba(249,115,22,0.16); }

/* --- About / Value List --- */
.about { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; align-items: center; }
.value-list { list-style: disc; padding: 0 0 0 18px; margin: 0; display: grid; gap: 10px; color: #1f1f22; }
.value-list li::before { content: none; }

/* --- Logo Rotator --- */
.logo-rotator { display: flex; flex-wrap: nowrap; gap: 8px; justify-content: flex-start; align-items: center; overflow: hidden; padding: 6px 4px 8px; }
.logo-tile { flex: 0 0 108px; height: 60px; background: rgba(252, 252, 252, 0.55); backdrop-filter: blur(8px); border: 1px solid var(--border); border-radius: 12px; padding: 8px; display: grid; place-items: center; box-shadow: 0 6px 16px rgba(15,16,18,0.05); transition: transform 0.2s ease; }
.logo-tile img { max-width: 100%; max-height: 36px; object-fit: contain; filter: saturate(0.9); }
.logo-tile img.node-logo { max-height: 32px; }

/* --- Grades --- */
.grade-grid { display: grid; grid-template-columns: repeat(2, minmax(300px, 1fr)); gap: 22px; margin-top: 24px; }
.grade {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 12px 26px rgba(15,16,18,0.05);
  display: grid;
  gap: 12px;
}
.grade-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.grade-head h3 { margin: 0; font-size: 18px; }

.slots { display: grid; gap: 14px; }
.slot {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(252, 252, 252, 0.55); backdrop-filter: blur(8px);
  padding: 14px;
  display: grid;
  gap: 6px;
}
.slot strong { font-size: 15px; }
.slot ul { margin: 0; padding-left: 18px; color: var(--muted); display: grid; gap: 6px; }

.meta { display: flex; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.meta span { padding: 6px 10px; border-radius: 10px; background: var(--panel-2); border: 1px solid var(--border); }

.top10 { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.top10 li { padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; background: rgba(252, 252, 252, 0.55); backdrop-filter: blur(8px); display: flex; align-items: center; gap: 10px; box-shadow: 0 8px 18px rgba(15,16,18,0.04); }
.top10 .order { font-weight: 800; color: var(--accent); }

/* --- Forms & Contact --- */
.contact { display: block; }
.contact-shell {
  background: rgba(252, 252, 252, 0.35); backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 8px 18px rgba(15,16,18,0.05);
  padding: 12px;
}
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 10px; align-items: start; }
.contact-card {
  background: rgba(252, 252, 252, 0.35); backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  display: grid;
  gap: 10px;
  box-shadow: 0 12px 28px rgba(15,16,18,0.06);
}
.contact-card.transparent {
  background: transparent;
  border: none;
  border-radius: 12px;
  padding: 8px;
  box-shadow: none;
  display: grid;
  gap: 6px;
}
.contact-header { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.contact-title { font-size: 21px; margin: 0; line-height: 1.2; }
.contact-meta { display: grid; gap: 4px; }
.contact-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel-2);
  flex-wrap: wrap;
}
.contact-row.white {
  background: rgba(252, 252, 252, 0.55); backdrop-filter: blur(8px);
  box-shadow: 0 4px 12px rgba(15,16,18,0.04);
  padding: 8px 10px;
  gap: 8px;
  border-radius: 10px;
}
.label-block { display: grid; gap: 2px; }
.contact-label { font-weight: 700; color: var(--text); }
.contact-value { color: var(--muted); word-break: break-all; }

form { display: grid; gap: 12px; }
input, textarea, select {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(252, 252, 252, 0.55); backdrop-filter: blur(8px);
  color: var(--text);
  font-size: 15px;
  appearance: none; /* Reset default styling */
  -webkit-appearance: none;
}
input:focus, textarea:focus, select:focus { outline: 2px solid var(--accent); border-color: transparent; }
textarea { min-height: 120px; resize: vertical; }

.contact form {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 12px 10px;
  box-shadow: 0 8px 18px rgba(15,16,18,0.04);
  gap: 10px;
  background: rgba(252, 252, 252, 0.35); backdrop-filter: blur(8px);
}
.contact form .btn { width: 100%; justify-content: center; padding: 12px 16px; }
.status { font-size: 14px; color: #6b6b73; min-height: 20px; }

/* --- Footer --- */
footer {
  background: linear-gradient(135deg, #2a2d36, #16171d);
  color: #9ca3af;
  padding: 80px 22px 32px;
  margin-top: 80px;
  font-size: 15px;
  border-top: 1px solid rgba(252,252,252,0.08);
}
.footer-content {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid #27272a;
}
.footer-brand .logo { color: #fcfcfc; margin-bottom: 16px; }
.footer-brand p { line-height: 1.6; max-width: 360px; margin: 0; }
.footer-col { display: flex; flex-direction: column; gap: 16px; }
.footer-col h4 { color: #fcfcfc; font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.footer-col a { color: #9ca3af; transition: color 0.2s; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  max-width: 1180px;
  margin: 32px auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 14px;
  color: #52525b;
}

/* --- Service Showcase (New Visual) --- */
.service-showcase { display: grid; gap: 24px; margin-top: 20px; }

.service-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  padding: 32px;
  border-radius: 20px;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.3s ease;
}
.service-panel:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(15,16,18,0.08); }

/* Consultoria Theme (Deep Teal - Professional & Strategic) */
.service-panel.consulting {
  background: rgba(252, 252, 252, 0.55); backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-left: 5px solid #006d77;
}
.service-panel.consulting .service-tag {
  background: #e0f2f1;
  color: #006d77;
  border: 1px solid rgba(0, 109, 119, 0.2);
}
.service-panel.consulting .service-feature-list li {
  background: rgba(252, 252, 252, 0.55); backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  color: var(--text);
}
.service-panel.consulting .service-feature-list li svg {
  color: #006d77;
}

/* Treinamento Theme (Dark Wine - Offensive Security) */
.service-panel.training {
  background: rgba(252, 252, 252, 0.55); backdrop-filter: blur(8px); /* Fundo branco */
  border: 1px solid var(--border); /* Borda padrão */
  border-left: 5px solid #881337; /* Borda esquerda Vinho Escuro */
}
.service-panel.training h2, 
.service-panel.training h3,
.service-panel.training p {
  color: var(--text); /* Texto escuro */
}
.service-panel.training .muted {
  color: var(--muted);
}
.service-panel.training .service-tag {
  background: #fff1f2; /* Fundo suave vinho */
  color: #881337; /* Cor Vinho para tag */
  border: 1px solid rgba(136, 19, 55, 0.2);
}
.service-panel.training .service-feature-list li {
  background: rgba(252, 252, 252, 0.55); backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  color: var(--text);
}
.service-panel.training .service-feature-list li svg {
  color: #881337; /* Ícone Vinho */
}

.service-content h2 {
  font-size: clamp(24px, 3vw, 32px);
  margin-bottom: 12px;
  font-weight: 800;
  letter-spacing: -0.5px;
}
.service-content p.lead {
  font-size: 18px;
  margin-bottom: 24px;
  line-height: 1.5;
  max-width: 480px;
}
.service-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.service-tag {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 6px 10px;
  border-radius: 8px;
}
.service-feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.service-feature-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  padding: 12px 16px;
  background: rgba(252, 252, 252, 0.55); backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 15px;
  box-shadow: 0 4px 12px rgba(15,16,18,0.03);
}
.service-feature-list li svg { flex-shrink: 0; color: var(--accent); }

.service-actions { margin-top: 32px; display: flex; gap: 12px; flex-wrap: wrap; }

/* --- Internal Page Service Cards (Consistent with Home Panels) --- */
.service-card {
  display: flex;
  flex-direction: column;
  gap: 10px; /* Reduced from 16px */
  padding: 18px; /* Reduced from 24px */
  border-radius: 16px;
  border: 1px solid var(--border);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  height: 100%;
  position: relative;
  overflow: hidden;
}
.service-card:hover { transform: translateY(-4px); box-shadow: 0 12px 24px rgba(15,16,18,0.08); }

.service-card.dark {
  background: #1c1917;
  border-color: #44403c;
  border-left: 4px solid var(--accent);
  color: #fcfcfc;
  box-shadow: 0 10px 24px rgba(15,16,18,0.2);
}
.service-card.dark h3 { color: #fcfcfc; margin: 0; }
.service-card.dark p { color: #d6d3d1; }
.service-card.dark .muted { color: #a8a29e; }
.service-card.dark ul { color: #e5e5e5; }
.service-card.dark ul li::before { color: var(--accent); }

/* Service Card Soft Theme (Indigo/Violet) */
.service-card.soft-indigo {
  background: rgba(252, 252, 252, 0.55); backdrop-filter: blur(8px); /* Fundo branco */
  border-color: var(--border);
  border-left: 4px solid #7c3aed; /* Borda Índigo */
}
.service-card.soft-indigo h3 { color: #5b21b6; margin: 0; }
.service-card.soft-indigo ul li::before { color: #7c3aed; }

.remediation-card { padding-top: 64px; position: relative; }
.remediation-card .badge {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  padding: 6px 12px;
  margin-bottom: 12px;
  background: var(--panel-2);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: 0 2px 6px rgba(15,16,18,0.05);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.remediation-card h3 { display: flex; align-items: center; gap: 10px; color: var(--text); font-size: 18px; }
.remediation-card h3 svg { width: 24px; height: 24px; flex-shrink: 0; color: var(--accent); }

/* Individual Service Card Colors */
.service-card.threat-model { background: var(--tm-bg); border-left: 4px solid var(--tm-border); }
.service-card.sast { background: var(--sast-bg); border-left: 4px solid var(--sast-border); }
.service-card.code-review { background: var(--scr-bg); border-left: 4px solid var(--scr-border); }
.service-card.dast { background: var(--dast-bg); border-left: 4px solid var(--dast-border); }
.service-card.secrets { background: var(--secrets-bg); border-left: 4px solid var(--secrets-border); }

.service-card h3 { font-size: 20px; }
.service-card p { font-size: 15px; margin-bottom: 10px; }
.service-card ul { gap: 8px; padding: 0; margin: 0; list-style: none; display: flex; flex-direction: column; }
.service-card ul li {
  font-size: 15px;
  font-weight: 400;
  display: flex;
  align-items: flex-start;
  gap: 6px;
  padding: 4px 0;
  background: transparent;
  border: none;
  box-shadow: none;
}
.service-card ul li svg { flex-shrink: 0; color: var(--accent); }

/* Training Track Specifics */
.service-card.train-base { border-left-color: var(--train-base); box-shadow: 0 12px 32px rgba(139, 28, 63, 0.15); }
.service-card.train-base ul li::before { color: var(--train-base); }
.service-card.train-web { border-left-color: var(--train-web); box-shadow: 0 12px 32px rgba(244, 63, 94, 0.15); }
.service-card.train-web ul li::before { color: var(--train-web); }
.service-card.train-api { border-left-color: var(--train-api); box-shadow: 0 12px 32px rgba(16, 185, 129, 0.15); }
.service-card.train-api ul li::before { color: var(--train-api); }
.service-card.train-mobile { border-left-color: var(--train-mobile); box-shadow: 0 12px 32px rgba(14, 165, 233, 0.15); }
.service-card.train-mobile ul li::before { color: var(--train-mobile); }

/* --- Media Queries --- */
@media (min-width: 800px) {
  .service-panel { grid-template-columns: 1.2fr 0.8fr; align-items: center; padding: 48px; }
}

@media (min-width: 1100px) {
  .container#servicos .grid { grid-template-columns: repeat(5, 1fr); }
}

@media (max-width: 768px) {
  header { 
    background: linear-gradient(135deg, rgba(55, 58, 68, 0.98), rgba(15, 16, 20, 0.98)); 
    border-bottom: 1px solid rgba(252,252,252,0.08); 
  }
  nav { padding: 16px 22px; }
  .logo { color: #fcfcfc; }
  .container { padding: 110px 22px 40px; } 
  h1 { font-size: 30px; } 

  /* Hamburger Button */
  .mobile-toggle {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    cursor: pointer;
    z-index: 201;
    padding: 10px;
    width: 44px !important;
    height: 44px !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }
  .mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: #fcfcfc !important;
    border-radius: 2px;
    transition: all 0.3s ease;
  }
  .mobile-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .mobile-toggle.active span:nth-child(2) { opacity: 0; }
  .mobile-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  /* Mobile Menu */
  .nav-links {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100vh !important;
    background-color: #0f1012 !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    z-index: 200;
    padding: 0;
    margin: 0;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transform: scale(1.1);
    transition: all 0.3s ease;
  }
  .nav-links.active {
    opacity: 1;
    pointer-events: all;
    visibility: visible;
    transform: scale(1);
  }
  .nav-links a {
    color: #fcfcfc !important;
    font-size: 24px;
    font-weight: 700;
    text-decoration: none;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 10px;
    margin: 0;
    width: auto;
  }
  .nav-links a:hover, .nav-links a.active {
    color: var(--accent) !important;
    background: transparent !important;
  }

  .hero > div > div[style*="display:flex"] { flex-direction: column; width: 100%; }
  .hero .btn { width: 100%; }
  .footer-content { grid-template-columns: 1fr; gap: 40px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  
  .logo-rotator { flex-wrap: wrap; justify-content: center; height: auto; overflow: visible; gap: 12px; }
  .logo-tile { flex: 0 0 80px; height: 50px; }
  .logo-tile img { max-height: 24px; }
  .grade-grid { grid-template-columns: 1fr; }
  
  /* FAB mobile rules - Corrected */
  .fab-contact {
    bottom: 20px;
    right: 20px;
    width: 54px;
    height: 54px;
    padding: 0;
    gap: 0;
  }
  .fab-contact svg {
    width: 28px;
    height: 28px;
  }
  .fab-contact span { display: none; }
  .fab-contact:hover {
    width: 54px;
    border-radius: 50%;
    transform: none;
    box-shadow: 0 12px 36px rgba(15,16,18,0.3);
    padding: 0;
    gap: 0;
  }
}

@media (max-width: 560px) {
  .cert-strip { padding: 14px; overflow: hidden; }
  .cert-thumbs { display: flex; flex-wrap: nowrap; gap: 6px; justify-content: space-between; }
  .cert-thumbs img { flex: 0 0 calc((100% - 12px) / 3); max-width: 82px; width: 100%; padding: 6px; }
}
