:root {
  --bg: #0b0c10;
  --bg-alt: #111218;
  --card: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.14);
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.7);
  --accent: #ffd28a;
  --accent-soft: rgba(255, 210, 138, 0.16);
  --radius: 18px;
  --max: 980px;
}

/* Reseta básico */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  background: radial-gradient(circle at top, #141623 0, #050608 55%);
  color: var(--text);
  line-height: 1.5;
}

/* Containers e seções */

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 16px;
}

.section {
  padding: 56px 0;
}

.section.alt {
  background: linear-gradient(to bottom, var(--bg-alt), #090a10);
}

.section.about {
  padding-top: 32px; /* Aproxima do hero */
}

/* Header */

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: linear-gradient(
    to bottom,
    rgba(5, 5, 10, 0.95),
    rgba(5, 5, 10, 0.86)
  );
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
}

.logo {
  font-weight: 800;
  letter-spacing: 0.03em;
}

.nav {
  display: flex;
  align-items: center;
}

.nav a {
  margin-left: 16px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  position: relative;
  padding-bottom: 2px;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: var(--accent);
  border-radius: 999px;
  transition: width 0.18s ease;
}

.nav a:hover {
  color: var(--text);
}

.nav a:hover::after {
  width: 100%;
}

/* Hero */

.hero {
  padding: 88px 0 40px;
  text-align: center;
}

.hero h1 {
  font-size: 2.5rem;
  letter-spacing: 0.01em;
}

.highlight {
  color: var(--accent);
}

.lead {
  margin-top: 16px;
  color: var(--muted);
  max-width: 620px;
  margin-inline: auto;
}

.hero-ctas {
  margin-top: 26px;
  display: flex;
  justify-content: center;
  gap: 12px;
}

/* Botões */

.btn {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--accent);
  color: #111;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.95rem;
  border: 1px solid transparent;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.7);
  background: #ffe0aa;
}

.btn.ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
  box-shadow: none;
}

.btn.ghost:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--accent);
}

.btn.small {
  padding: 8px 16px;
  font-size: 0.85rem;
  margin-left: 16px;
}

/* Títulos */

h2 {
  font-size: 1.6rem;
  margin-bottom: 8px;
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
}

.subtitle {
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 400;
}

/* Listas */

.list {
  margin-top: 14px;
  list-style: none;
}

.list li {
  margin-top: 8px;
  color: var(--muted);
}

/* Grids */

.projects-grid,
.services-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

/* Cards de projeto */

.project-card {
  background: radial-gradient(circle at top, #20212b 0, #111218 55%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.7);
  border-color: var(--accent-soft);
}

.project-thumb {
  display: block;
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.project-info {
  padding: 14px 14px 16px;
}

.project-info h3 {
  margin-bottom: 6px;
}

.project-info p {
  color: var(--muted);
  font-size: 0.94rem;
  margin-bottom: 10px;
}

.tag {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
}

/* Serviços */

.service {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 16px;
  font-size: 0.96rem;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    border-color 0.15s ease,
    background 0.15s ease;
}

.service strong {
  font-size: 0.98rem;
}

.service:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.6);
  border-color: var(--accent-soft);
  background: rgba(255, 255, 255, 0.04);
}

/* Contato */

.contact {
  text-align: center;
}

.contact p {
  color: var(--muted);
  margin-bottom: 18px;
}

/* Footer */

.footer {
  padding: 24px 0 32px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--muted);
  font-size: 0.86rem;
}

/* ===== HEADER / LAYOUT MOBILE ===== */

@media (max-width: 720px) {
  .header-inner {
    flex-direction: column;
    height: auto;
    padding: 10px 0;
    gap: 6px;
  }

  .nav {
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
  }

  .nav a {
    margin-left: 0;
    font-size: 0.9rem;
  }

  .btn.small {
    margin-left: 0;
  }

  .hero {
    padding: 64px 0 32px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero-ctas {
    flex-direction: column;
  }

  .section {
    padding: 40px 0;
  }
}
