/* ===============================
   RESET + VARIÁVEIS
================================ */

:root {
  --bg-dark: #020617;
  --bg-dark-2: #0f172a;
  --bg-card: #020617;
  --primary: #38bdf8;
  --text: #e5e7eb;
  --muted: #94a3b8;
  --border: #1e293b;
  --radius: 14px;
  --transition: 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: linear-gradient(180deg, var(--bg-dark), var(--bg-dark-2));
  color: var(--text);
  line-height: 1.6;
}

/* ===============================
   CONTAINER
================================ */

.container {
  width: 100%;
  max-width: 1200px;
  margin: auto;
  padding: 0 20px;
}

/* ===============================
   HEADER / NAV
================================ */

.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(2, 6, 23, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo img {
  height: 42px;
}

/* NAV */
.nav-menu {
  display: flex;
  gap: 32px;
}

.nav-menu a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  position: relative;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
}

.nav-menu a:hover::after {
  width: 100%;
}

/* MENU MOBILE */
.menu-toggle {
  display: none;
  font-size: 28px;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
}

/* ===============================
   HERO
================================ */

.hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  margin-bottom: 16px;
}

.hero p {
  max-width: 700px;
  margin: auto;
  color: var(--muted);
  font-size: 1.1rem;
}

/* ===============================
   SECTIONS
================================ */

.section {
  padding: 100px 0;
}

.section.dark {
  background: rgba(2, 6, 23, 0.6);
}

.section h2 {
  font-size: 2.2rem;
  margin-bottom: 24px;
}

.section p {
  color: var(--muted);
  max-width: 800px;
}

/* ===============================
   CARDS
================================ */

.cards {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
}

.card {
  background: linear-gradient(180deg, var(--bg-card), var(--bg-dark-2));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform var(--transition), box-shadow var(--transition);
}

.card h3 {
  margin-bottom: 12px;
}

.card p {
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.card a {
  display: inline-block;
  padding: 10px 22px;
  background: var(--primary);
  color: #020617;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 40px rgba(56, 189, 248, 0.2);
}

/* ===============================
   FOOTER
================================ */

.footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--muted);
}

/* ===============================
   ANIMAÇÕES AO ROLAR
================================ */

[data-animate] {
  opacity: 0;
  transform: translateY(40px);
  transition: 0.8s ease;
}

[data-animate].animate {
  opacity: 1;
  transform: translateY(0);
}

/* ===============================
   RESPONSIVO
================================ */

@media (max-width: 768px) {

  .menu-toggle {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: 72px;
    right: -100%;
    flex-direction: column;
    background: var(--bg-dark);
    width: 260px;
    height: calc(100vh - 72px);
    padding: 40px 20px;
    gap: 24px;
    transition: var(--transition);
  }

  .nav-menu.active {
    right: 0;
  }

  .hero {
    min-height: 70vh;
  }

  .section {
    padding: 80px 0;
  }
}
