:root {
  --bg-top: #e0ecff;
  --bg-mid: #f0f6ff;
  --bg-bottom: #e8f1ff;
  --surface: rgba(255, 255, 255, 0.75);
  --surface-solid: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --accent: #2563eb;
  --accent-soft: #3b82f6;
  --border: rgba(15, 23, 42, 0.08);
  --glow-a: rgba(37, 99, 235, 0.15);
  --glow-b: rgba(59, 130, 246, 0.1);
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --max: 56rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: light;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  background-color: var(--bg-mid);
  background-image:
    radial-gradient(950px 540px at 85% -10%, var(--glow-a), transparent 58%),
    radial-gradient(760px 500px at 8% 18%, var(--glow-b), transparent 54%);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent-soft);
}

code {
  font-size: 0.85em;
  background: rgba(15, 23, 42, 0.04);
  padding: 0.2em 0.4em;
  border-radius: 6px;
  border: 1px solid var(--border);
  color: #1e293b;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* --- HEADER ALINHAMENTO --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 70px; /* Altura fixa ajuda no alinhamento vertical */
}

.brand {
  display: flex; /* Mudado de inline-flex para flex */
  align-items: center; /* Centraliza logo e texto verticalmente */
  gap: 0.6rem;
  text-decoration: none;
  color: var(--text);
  transition: opacity 0.2s;
}

.brand:hover {
  opacity: 0.8;
}

.brand-mark {
  display: block;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}

.brand-name {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  line-height: 1; /* Previne desalinhamento vertical do texto */
  margin-top: 2px; /* Ajuste fino visual se necessário */
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.95rem;
  font-weight: 500;
}

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

.nav a:hover {
  color: var(--text);
}

/* --- HERO SECTION --- */
.hero {
  padding: 5rem 0 4rem;
}

.hero-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0 0 1.5rem;
}

.hero-mark {
  display: block;
  width: clamp(80px, 15vw, 120px);
  height: auto;
  filter: drop-shadow(0 12px 24px rgba(37, 99, 235, 0.2));
}

.hero-brand-name {
  font-size: clamp(1.8rem, 4.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 1rem;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.15;
  margin: 0 0 1.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #0f172a;
}

.lede {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 48rem;
  margin: 0 0 1.5rem;
  line-height: 1.7;
}

.lede strong {
  color: var(--text);
  font-weight: 600;
}

.highlights {
  margin: 1.5rem 0 2.5rem;
  padding-left: 1.5rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.highlights li {
  margin-bottom: 0.75rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2.5rem;
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 99px; /* Botões pílula são mais modernos */
  padding: 0.8rem 1.8rem;
  font-size: 1rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  cursor: pointer;
  text-decoration: none;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: var(--text); /* Botão principal quase preto */
  color: #fff !important;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

.btn-primary:hover {
  background: #1e293b;
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.2);
}

.btn-secondary {
  background: var(--surface-solid);
  border-color: #cbd5e1;
  color: var(--text);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.btn-secondary:hover {
  color: var(--text);
  border-color: #94a3b8;
  background: #f8fafc;
  transform: translateY(-2px);
}

/* --- CARDS & GRID --- */
.section {
  padding: 3rem 0;
}

.section-head h2 {
  margin: 0.5rem 0 2rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

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

.card,
.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.03), 0 2px 4px -2px rgba(0, 0, 0, 0.03);
}

.card:hover,
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.01);
  border-color: rgba(37, 99, 235, 0.2);
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.card h3,
.product-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.card p,
.product-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.product-card .tag {
  display: inline-block;
  margin-bottom: 1rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #10b981; /* Verde para ativo */
  font-weight: 700;
  background: rgba(16, 185, 129, 0.1);
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
}

.product-card .tag-dev {
  color: #f59e0b; /* Laranja para em dev */
  background: rgba(245, 158, 11, 0.1);
}

.product-link {
  display: inline-flex;
  align-items: center;
  margin-top: 1.2rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.coming-soon {
  display: inline-block;
  margin-top: 1.2rem;
  color: #94a3b8;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.4rem 0.8rem;
  background: rgba(15, 23, 42, 0.04);
  border-radius: 6px;
}

.section-note {
  padding-top: 0.2rem;
}

.section-note p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* --- FOOTER --- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  margin-top: 4rem;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

/* --- RESPONSIVIDADE --- */
@media (max-width: 640px) {
  .hero {
    padding-top: 3rem;
  }
  .hero-actions {
    flex-direction: column;
  }
  .btn {
    width: 100%;
  }
  .site-header .wrap {
    flex-direction: column;
    height: auto;
    padding: 1rem 0;
  }
  .nav {
    margin-top: 0.5rem;
  }
}

/* MANTIDOS OS ESTILOS ORIGINAIS DO LEGAL E DOWNLOAD PC PARA NÃO QUEBRAR SUAS PÁGINAS ATUAIS */
.page-legal .legal {
  padding: 2.5rem 0 4rem;
}
.legal h1 {
  margin-bottom: 0.5rem;
}
.legal .meta {
  color: var(--muted);
  margin: 0 0 2rem;
  font-size: 0.95rem;
}
.legal section {
  margin-bottom: 1.75rem;
}
.legal h2 {
  font-size: 1.15rem;
  margin: 0 0 0.5rem;
  font-weight: 600;
}
.legal p {
  margin: 0;
  color: var(--muted);
}
.legal ul {
  margin: 0.5rem 0 1rem 1.5rem;
  padding: 0;
  color: var(--muted);
}
.legal li {
  margin-bottom: 0.5rem;
}
.legal strong {
  color: var(--text);
  font-weight: 600;
}

.app-icon-placeholder {
  font-size: 5rem;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 10px 15px rgba(37, 99, 235, 0.2));
  animation: float 3s ease-in-out infinite;
}
@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0px);
  }
}
.store-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}
.btn-store {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0.6rem 1.5rem;
  border-radius: 12px;
  background-color: var(--text);
  color: white !important;
  text-decoration: none !important;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  min-width: 180px;
}
.btn-store:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}
.btn-sub {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.8;
  margin-bottom: 2px;
}
.btn-main {
  font-size: 1.3rem;
  font-weight: 700;
}
