/* Rubriq — landing page institucional pública.
   Estática, sem build. Identidade da marca: tema claro, dourado #d4af37,
   fonte Inter — espelha web/src/styles.css. Ícones: Lucide inline. */

:root {
  --bg: #f8fafc;          /* slate-50  */
  --surface: #ffffff;
  --surface-2: #f1f5f9;   /* slate-100 */
  --border: #e2e8f0;      /* slate-200 */
  --text: #0f172a;        /* slate-900 */
  --text-dim: #64748b;    /* slate-500 */
  --brand-50: #fdf6e3;
  --brand-100: #faedc3;
  --brand-300: #efc849;
  --brand: #d4af37;       /* brand-400 — primária / logo */
  --brand-600: #8f7322;   /* texto/links dourados em fundo claro */
  --brand-700: #6b5719;
  --radius: 16px;
  --max: 1140px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow: 0 12px 32px -12px rgba(15, 23, 42, 0.16);
  --shadow-gold: 0 12px 28px -10px rgba(212, 175, 55, 0.5);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

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

.bg-glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(680px 460px at 82% -8%, rgba(212, 175, 55, 0.18), transparent 70%),
    radial-gradient(560px 460px at 0% 4%, rgba(212, 175, 55, 0.08), transparent 70%);
}

svg.ico-svg {
  width: 1em; height: 1em;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

/* ---------- Logo ---------- */
.logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 1.3rem; letter-spacing: -0.02em;
  color: var(--text);
}
.logo svg { display: block; }

/* ---------- Header ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(248, 250, 252, 0.8);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a { color: var(--text-dim); font-size: 0.95rem; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 22px;
  border-radius: 10px;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
  cursor: pointer;
  border: none;
}
.btn .ico-svg { width: 18px; height: 18px; }
.btn-primary { background: var(--brand); color: #1a1405; box-shadow: var(--shadow-gold); }
.btn-primary:hover { transform: translateY(-2px); background: var(--brand-300); }
.btn-ghost { color: var(--text); border: 1px solid var(--border); background: var(--surface); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand-700); }

@media (max-width: 760px) { .nav-links { display: none; } }

/* ---------- Hero ---------- */
.hero { padding: 96px 0 80px; text-align: center; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brand-700);
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 28px;
}
.badge .ico-svg { width: 15px; height: 15px; }
.hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.03em;
  max-width: 900px;
  margin: 0 auto 24px;
}
.hero h1 .grad { color: var(--brand-600); }
.hero p.sub {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--text-dim);
  max-width: 640px;
  margin: 0 auto 40px;
}
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.trust {
  margin-top: 64px;
  display: flex;
  gap: 48px;
  justify-content: center;
  flex-wrap: wrap;
  color: var(--text-dim);
  font-size: 0.95rem;
}
.trust strong { color: var(--text); font-size: 1.6rem; font-weight: 800; display: block; }

/* ---------- Sections ---------- */
section.block { padding: 88px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-head .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--brand-600);
  margin-bottom: 14px;
}
.section-head h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.section-head p { color: var(--text-dim); font-size: 1.05rem; }

/* Feature grid */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 900px) { .grid { grid-template-columns: 1fr; } }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-4px); border-color: var(--brand); box-shadow: var(--shadow); }
.card .ico {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--brand-50);
  color: var(--brand-600);
  display: grid; place-items: center;
  margin-bottom: 18px;
}
.card .ico .ico-svg { width: 22px; height: 22px; }
.card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 10px; }
.card p { color: var(--text-dim); font-size: 0.96rem; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }
.step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px 28px;
  box-shadow: var(--shadow-sm);
}
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: -18px; left: 28px;
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--brand);
  color: #1a1405;
  font-weight: 800;
  display: grid; place-items: center;
  box-shadow: var(--shadow-gold);
}
.step h3 { font-size: 1.1rem; margin: 8px 0 8px; }
.step p { color: var(--text-dim); font-size: 0.95rem; }

/* Security / compliance */
.compliance {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 56px 48px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
  box-shadow: var(--shadow-sm);
}
@media (max-width: 900px) { .compliance { grid-template-columns: 1fr; padding: 40px 28px; } }
.compliance h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 18px; }
.compliance p { color: var(--text-dim); margin-bottom: 16px; }
.checklist { list-style: none; display: grid; gap: 14px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; font-size: 0.98rem; }
.checklist li .ico-svg {
  color: var(--brand-600);
  background: var(--brand-50);
  width: 24px; height: 24px;
  padding: 4px;
  border-radius: 7px;
  flex-shrink: 0;
}

/* CTA band */
.cta-band {
  text-align: center;
  background: linear-gradient(135deg, #d4af37 0%, #efc849 100%);
  border-radius: 24px;
  padding: 64px 32px;
}
.cta-band h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 800; color: #1a1405; margin-bottom: 14px; letter-spacing: -0.02em; }
.cta-band p { color: #3d2f08; font-size: 1.1rem; margin-bottom: 30px; }
.cta-band .btn-primary { background: #1a1405; color: #f5db86; box-shadow: var(--shadow); }
.cta-band .btn-primary:hover { background: #0f172a; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--border); padding: 56px 0 40px; margin-top: 40px; background: var(--surface); }
.foot { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; align-items: flex-start; }
.foot .desc { max-width: 320px; color: var(--text-dim); font-size: 0.92rem; margin-top: 14px; }
.foot-links { display: flex; gap: 60px; flex-wrap: wrap; }
.foot-col h4 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-dim); margin-bottom: 16px; }
.foot-col a { display: block; color: var(--text-dim); font-size: 0.94rem; margin-bottom: 10px; transition: color 0.2s; }
.foot-col a:hover { color: var(--brand-700); }
.foot-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 0.86rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Legal pages ---------- */
.legal { padding: 64px 0 40px; max-width: 800px; }
.legal h1 { font-size: 2.2rem; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 8px; }
.legal .updated { color: var(--text-dim); font-size: 0.9rem; margin-bottom: 40px; }
.legal h2 { font-size: 1.3rem; font-weight: 700; margin: 36px 0 12px; color: var(--text); }
.legal p, .legal li { color: var(--text-dim); margin-bottom: 12px; }
.legal ul { padding-left: 22px; }
.legal a { color: var(--brand-600); }
.back-link { display: inline-flex; gap: 8px; align-items: center; color: var(--text-dim); font-size: 0.92rem; margin-bottom: 32px; }
.back-link .ico-svg { width: 16px; height: 16px; }
.back-link:hover { color: var(--brand-700); }
