/* ═══════════════════════════════════════════════════════════════════
   ZIGGLABS — plataforma internacional (zigglabs.com / zigglabs.com.br)
   Design system oficial do ecossistema: preto e branco puro, sem matiz.
   Figtree (corpo) · EB Garamond itálica (acento editorial) · JetBrains Mono (dados)
   ═══════════════════════════════════════════════════════════════════ */

:root {
  --bg: #0A0A0A;
  --surface: #141414;
  --surface-2: #1F1F1F;
  --border: #262626;
  --border-2: #333333;
  --ink: #F5F5F5;
  --muted: #A3A3A3;
  --accent: #FFFFFF;
  --accent-hover: #D4D4D4;
  --font: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: "EB Garamond", Georgia, serif;
  --mono: "JetBrains Mono", "SF Mono", Menlo, monospace;
  --wrap: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--ink); color: var(--bg); }

/* Grain — textura sutil que tira o "flat digital" do preto puro */
.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 999; opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }

/* ── Nav ─────────────────────────────────────────────── */
.nav-outer {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 28px;
  background: linear-gradient(to bottom, rgba(10,10,10,0.92), rgba(10,10,10,0));
  backdrop-filter: blur(2px);
}
.logo img { height: 40px; width: auto; }
.pill-nav {
  display: flex; gap: 4px; padding: 5px;
  background: rgba(20,20,20,0.85); border: 1px solid var(--border);
  border-radius: 100px; backdrop-filter: blur(12px);
}
.pill-nav a {
  font-size: 13.5px; font-weight: 500; color: var(--muted);
  padding: 7px 16px; border-radius: 100px; transition: color .2s, background .2s;
}
.pill-nav a:hover { color: var(--ink); background: var(--surface-2); }
.nav-right { display: flex; align-items: center; gap: 12px; }

/* Seletor de idioma — troca de domínio (.com ⇄ .com.br) */
.lang-switch {
  display: flex; padding: 4px; gap: 2px;
  background: rgba(20,20,20,0.85); border: 1px solid var(--border);
  border-radius: 100px; font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.08em;
}
.lang-switch a, .lang-switch span {
  padding: 5px 11px; border-radius: 100px; color: var(--muted); transition: color .2s;
}
.lang-switch a:hover { color: var(--ink); }
.lang-switch .active { background: var(--ink); color: var(--bg); font-weight: 600; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600; border-radius: 100px;
  padding: 11px 22px; transition: background .2s, color .2s, border-color .2s;
  cursor: pointer; border: 1px solid transparent;
}
.btn-white { background: var(--accent); color: var(--bg); }
.btn-white:hover { background: var(--accent-hover); }
.btn-outline { border-color: var(--border-2); color: var(--ink); }
.btn-outline:hover { border-color: var(--ink); }

/* ── Hero ────────────────────────────────────────────── */
.hero {
  min-height: 92vh; display: flex; flex-direction: column; justify-content: center;
  padding: 150px 0 80px; position: relative;
}
.sec-label {
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
  display: inline-flex; align-items: center; gap: 9px; margin-bottom: 26px;
}
.sec-label::before { content: ""; width: 22px; height: 1px; background: var(--border-2); }
.hero h1 {
  font-size: clamp(44px, 7vw, 88px); font-weight: 700;
  letter-spacing: -0.035em; line-height: 1.02; max-width: 15ch;
}
.hero h1 em, h2 em, .manifesto-line em {
  font-family: var(--serif); font-style: italic; font-weight: 500;
  letter-spacing: -0.01em;
}
.hero-sub {
  margin-top: 30px; font-size: clamp(16px, 1.6vw, 19px); line-height: 1.65;
  color: var(--muted); max-width: 58ch;
}
.hero-ctas { margin-top: 40px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero-meta {
  margin-top: 70px; display: flex; gap: 28px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.07em;
  text-transform: uppercase; color: var(--muted);
}
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta span::before { content: "•"; color: var(--border-2); }
.hero-meta span:first-child::before { content: none; }

/* ── Seções ──────────────────────────────────────────── */
section { padding: 110px 0; border-top: 1px solid var(--border); }
.section-head { margin-bottom: 56px; max-width: 700px; }
.section-head h2 {
  font-size: clamp(32px, 4.4vw, 54px); font-weight: 700;
  letter-spacing: -0.03em; line-height: 1.06;
}
.section-desc { margin-top: 18px; font-size: 16.5px; color: var(--muted); max-width: 56ch; }

/* ── Blocos de produto (LIVE) ────────────────────────── */
.product-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.product-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 20px; padding: 40px 36px 34px;
  transition: border-color .25s, transform .25s;
}
.product-card:hover { border-color: var(--border-2); transform: translateY(-3px); }
/* Ícone de produto — glifo monocromático do sistema, nunca emoji/cor */
.card-top { display: flex; align-items: center; justify-content: space-between; }
.p-icon { width: 34px; height: 34px; color: var(--ink); flex: none; }
.lab-card .p-icon { width: 26px; height: 26px; color: var(--muted); }
.p-icon svg { width: 100%; height: 100%; display: block; }

.badge {
  font-family: var(--mono); font-size: 10px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 5px 11px; border-radius: 100px; width: fit-content;
}
.badge-live { background: var(--ink); color: var(--bg); }
.badge-live::before { content: "● "; }
.badge-lab { border: 1px solid var(--border-2); color: var(--muted); }
.product-name {
  margin-top: 22px; font-size: 27px; font-weight: 700; letter-spacing: -0.02em;
}
/* Wordmark: primeira metade bold, segunda light — padrão de logo do ecossistema */
.product-name .w2 { font-weight: 300; }
.product-tag {
  margin-top: 4px; font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted);
}
.product-desc { margin-top: 16px; font-size: 15.5px; line-height: 1.65; color: var(--muted); flex: 1; }
.product-link {
  margin-top: 26px; display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600; color: var(--ink);
}
.product-link .arr { transition: transform .2s; }
.product-card:hover .product-link .arr { transform: translateX(4px); }

/* ── In the lab ──────────────────────────────────────── */
.lab-head {
  margin: 64px 0 26px; display: flex; align-items: baseline; gap: 16px;
}
.lab-head h3 { font-size: 21px; font-weight: 700; letter-spacing: -0.02em; }
.lab-head .hint { font-family: var(--mono); font-size: 11px; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); }
.lab-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.lab-card {
  background: transparent; border: 1px dashed var(--border-2);
  border-radius: 16px; padding: 26px 22px;
}
.lab-card .product-name { margin-top: 14px; font-size: 19px; }
.lab-card .product-desc { font-size: 13.5px; margin-top: 10px; }

/* ── Manifesto ───────────────────────────────────────── */
.manifesto-inner { max-width: 820px; }
.manifesto-line {
  font-size: clamp(26px, 3.6vw, 44px); font-weight: 600;
  letter-spacing: -0.025em; line-height: 1.22; margin-bottom: 34px;
}
.manifesto-values {
  margin-top: 56px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
}
.value-card {
  border: 1px solid var(--border); border-radius: 14px; padding: 22px 20px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.05em;
  line-height: 1.7; color: var(--muted);
}
.value-card b { color: var(--ink); font-weight: 600; display: block; margin-bottom: 6px; letter-spacing: 0.09em; text-transform: uppercase; font-size: 11px; }

/* ── Contato / footer ────────────────────────────────── */
.contact-inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; align-items: flex-end; }
.contact-inner h2 { font-size: clamp(30px, 4vw, 50px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.08; }
.contact-ctas { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.contact-line { font-family: var(--mono); font-size: 12.5px; color: var(--muted); letter-spacing: 0.04em; }
.contact-line a { color: var(--ink); border-bottom: 1px solid var(--border-2); padding-bottom: 1px; }
.contact-line a:hover { border-color: var(--ink); }

footer { border-top: 1px solid var(--border); padding: 56px 0 40px; }
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 36px; padding-bottom: 40px;
}
.footer-brand img { height: 32px; width: auto; opacity: 0.9; }
.footer-brand p { margin-top: 16px; font-size: 13.5px; line-height: 1.6; color: var(--muted); max-width: 30ch; }
.f-col b {
  display: block; font-family: var(--mono); font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.13em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 14px;
}
.f-col a { display: block; font-size: 13.5px; color: var(--muted); padding: 4px 0; transition: color .2s; }
.f-col a:hover { color: var(--ink); }
.footer-bottom {
  border-top: 1px solid var(--border); padding-top: 24px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--muted);
}
.footer-bottom a { color: var(--muted); }
.footer-bottom a:hover { color: var(--ink); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ── Reveal on scroll ────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.on { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ── Responsivo ──────────────────────────────────────── */
@media (max-width: 980px) {
  .lab-grid { grid-template-columns: repeat(2, 1fr); }
  .manifesto-values { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .pill-nav { display: none; }
  .product-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 120px; min-height: 0; }
  section { padding: 80px 0; }
}
@media (max-width: 480px) {
  .lab-grid { grid-template-columns: 1fr; }
}
