/* --- Variáveis de Design --- */
:root {
  --bg-deep: #020617;
  --bg-card: #0f172a;
  --bg-alt: #0a0f1d;
  --primary: #3b82f6;
  --accent: #60a5fa;
  --text-hi: #f8fafc;
  --text-lo: #94a3b8;
  --border: rgba(255, 255, 255, 0.06);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-deep);
  color: var(--text-hi);
  line-height: 1.6;
}

/* --- Header --- */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 8%;
  background: rgba(2, 6, 23, 0.8);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border);
}

header h1 {
  font-size: 1.2rem;
  color: var(--accent);
  font-weight: 800;
}

.btn-back {
  text-decoration: none;
  color: var(--text-lo);
  font-size: 0.9rem;
  font-weight: 600;
  transition: var(--transition);
}

.btn-back:hover {
  color: var(--primary);
  transform: translateX(-5px);
}

/* --- Hero Section --- */
.hero {
  padding: 80px 8% 60px;
  text-align: center;
  background: radial-gradient(circle at top, #1e293b 0%, var(--bg-deep) 70%);
}

.badge {
  background: rgba(59, 130, 246, 0.1);
  color: var(--primary);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  border: 1px solid rgba(59, 130, 246, 0.2);
  display: inline-block;
  margin-bottom: 1.5rem;
}

.hero h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 1rem;
}

.hero p {
  color: var(--text-lo);
  max-width: 600px;
  margin: 0 auto;
}

/* --- Grid de Projetos --- */
.content-section {
  padding: 60px 8%;
  max-width: 1400px;
  margin: 0 auto;
}

.section-title {
  margin-bottom: 3rem;
  font-size: 1.8rem;
  text-align: center;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.project-card {
  background: var(--bg-card);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: var(--transition);
}

.project-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  filter: grayscale(40%) contrast(1.1);
  transition: var(--transition);
}

.project-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.project-card:hover img {
  filter: grayscale(0%);
}

.project-content {
  padding: 1.5rem;
}

.project-content h3 {
  font-size: 1.1rem;
  margin-bottom: 0.8rem;
  color: var(--accent);
}

.project-content p {
  color: var(--text-lo);
  font-size: 0.9rem;
}

/* --- Seção "Como Funciona" (Steps) --- */
.alt-bg {
  background-color: var(--bg-alt);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.step-card {
  background: rgba(255, 255, 255, 0.02);
  padding: 2rem;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--border);
  transition: var(--transition);
  position: relative;
}

.step-card span {
  font-size: 2.5rem;
  font-weight: 800;
  color: rgba(59, 130, 246, 0.1);
  position: absolute;
  top: 10px;
  right: 20px;
}

.step-card h4 {
  color: var(--text-hi);
  margin-bottom: 0.5rem;
}

.step-card p {
  color: var(--text-lo);
  font-size: 0.85rem;
}

.step-card:hover {
  background: var(--bg-card);
  border-color: var(--primary);
  transform: scale(1.02);
}

/* --- Footer --- */
footer {
  text-align: center;
  padding: 40px;
  color: #475569;
  font-size: 0.8rem;
  border-top: 1px solid var(--border);
}

/* --- Mobile --- */
@media (max-width: 600px) {
  .hero { padding-top: 40px; }
  .section-title { font-size: 1.5rem; }
}