/* ============================================================
   Product Domo — shared stylesheet (inner pages)
   Extracted & extended from the About page system
   ============================================================ */

:root {
  --cream: #FAFAF7;
  --cream-deep: #EFEFEA;
  --paper: #FFFFFF;
  --ink: #0A0A0A;
  --ink-soft: #3A3A38;
  --ink-mute: #8A8A85;
  --rule: #E4E4DE;
  --rule-strong: #CFCFC8;
  --clay: #E5341E;
  --clay-deep: #B71F0E;
  --clay-soft: #F08A78;
  --highlight: #F1E7E2;
  --ink-invert: #0A0A0A;
  --accent-rgb: 229,52,30;
  --font-display: 'Bricolage Grotesque', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
}
.serif { font-family: var(--font-display); }
.mono { font-family: var(--font-mono); }

body::before {
  content: "";
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/></svg>");
  pointer-events: none; z-index: 100; mix-blend-mode: multiply;
}

.container { max-width: 1120px; margin: 0 auto; padding: 0 2rem; }
.container-wide { max-width: 1280px; margin: 0 auto; padding: 0 2rem; }

/* ============================================================
   HEADER (shared)
   ============================================================ */
header.site-header {
  padding: 1.75rem 0;
  position: sticky; top: 0;
  background: rgba(248, 244, 237, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
  z-index: 50;
}
.header-inner { display: flex; justify-content: space-between; align-items: center; }
.brand { display: flex; align-items: baseline; gap: 0.85rem; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.brand-mark { font-family: var(--font-display); font-size: 22px; font-weight: 500; letter-spacing: -0.02em; font-variation-settings: "opsz" 144; white-space: nowrap; }
.site-header .brand-mark { display: inline-flex; align-items: baseline; }
.brand-mark .bk { color: var(--clay); font-weight: 300; margin: 0 0.14em; }
.brand-mark .bk:first-child { margin-left: 0; }
.brand-divider { width: 1px; height: 16px; background: var(--rule-strong); align-self: center; }
.brand-person { font-family: var(--font-display); font-style: italic; font-size: 16px; font-weight: 400; color: var(--ink-soft); font-variation-settings: "opsz" 14; }
.nav-primary { display: flex; gap: 2.25rem; font-size: 14px; }
.nav-primary a { color: var(--ink-soft); text-decoration: none; transition: color 0.2s; padding-bottom: 4px; border-bottom: 1px solid transparent; }
.nav-primary a:hover { color: var(--ink); }
.nav-primary a.active { color: var(--ink); border-bottom-color: var(--clay); }
.lang-toggle { display: flex; gap: 0.4rem; align-items: baseline; font-family: var(--font-mono); font-size: 12px; }
.lang-toggle button { background: none; border: none; color: var(--ink-mute); cursor: pointer; padding: 0; font-family: inherit; font-size: 12px; border-bottom: 1px solid transparent; transition: all 0.2s; }
.lang-toggle button.active { color: var(--ink); border-bottom-color: var(--clay); }
.lang-toggle .slash { color: var(--ink-mute); }

/* dark header variant (matches home) */
header.site-header.invert { background: rgba(20,17,14,0.88); border-bottom-color: rgba(255,255,255,0.08); }
.site-header.invert .brand { color: var(--cream); }
.site-header.invert .brand-person { color: rgba(248,244,237,0.6); }
.site-header.invert .brand-divider { background: rgba(255,255,255,0.2); }
.site-header.invert .nav-primary a { color: rgba(248,244,237,0.65); }
.site-header.invert .nav-primary a:hover, .site-header.invert .nav-primary a.active { color: var(--cream); }
.site-header.invert .lang-toggle button { color: rgba(248,244,237,0.5); }
.site-header.invert .lang-toggle button.active { color: var(--cream); }
.site-header.invert .lang-toggle .slash { color: rgba(248,244,237,0.4); }

/* ============================================================
   SHARED PRIMITIVES
   ============================================================ */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--clay);
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--clay);
  display: inline-block;
}

.section { padding: 7rem 0; }
.section-tight { padding: 4.5rem 0; }

.section-head { margin-bottom: 3.5rem; max-width: 720px; }
.section-head .eyebrow { margin-bottom: 1.5rem; }
.section-title {
  font-family: var(--font-display);
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.05;
  font-weight: 400;
  letter-spacing: -0.025em;
  font-variation-settings: "opsz" 144;
}
.section-title em { font-style: italic; font-weight: 300; color: var(--clay-deep); }
.section-lead {
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1.5;
  color: var(--ink-soft);
  font-weight: 300;
  margin-top: 1.25rem;
  font-variation-settings: "opsz" 24;
}

/* Buttons / links */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  padding: 0.85rem 1.5rem;
  border-radius: 2px;
  transition: all 0.25s var(--ease);
  cursor: pointer;
  border: 1px solid transparent;
}
.btn .arrow { transition: transform 0.25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-primary { background: var(--clay); color: #fff; }
.btn-primary:hover { background: var(--clay-deep); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--rule-strong); }
.btn-ghost:hover { border-color: var(--ink); }

.text-link {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--clay);
  padding-bottom: 1px;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.text-link .arrow { transition: transform 0.2s var(--ease); }
.text-link:hover { color: var(--clay-deep); border-bottom-color: var(--clay-deep); }
.text-link:hover .arrow { transform: translateX(3px); }

/* ============================================================
   FOOTER (shared)
   ============================================================ */
footer.site-footer { padding: 4rem 0 3rem; background: var(--cream-deep); border-top: 1px solid var(--rule); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand-block .brand-mark { font-size: 28px; display: block; margin-bottom: 0.5rem; }
.footer-tagline { font-family: var(--font-display); font-style: italic; font-size: 15px; color: var(--ink-soft); line-height: 1.5; max-width: 320px; font-weight: 300; }
.footer-col-label { font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.16em; color: var(--ink-mute); margin-bottom: 1.25rem; font-weight: 500; }
.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin-bottom: 0.55rem; }
.footer-col a { color: var(--ink-soft); text-decoration: none; font-size: 14px; transition: color 0.2s; }
.footer-col a:hover { color: var(--clay-deep); }
.footer-col span { color: var(--ink-soft); font-size: 14px; display: block; margin-bottom: 0.4rem; }
.footer-bottom { padding-top: 2rem; border-top: 1px solid var(--rule); display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 1rem; }
.footer-bottom .copy { font-family: var(--font-mono); font-size: 11px; color: var(--ink-mute); letter-spacing: 0.04em; }
.footer-bottom .meta { font-family: var(--font-display); font-style: italic; font-size: 13px; color: var(--ink-mute); font-weight: 300; }

/* ============================================================
   LANG TOGGLE VISIBILITY
   ============================================================ */
[data-lang="pt"] .en, [data-lang="en"] .pt { display: none; }

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }
.reveal[data-delay="5"] { transition-delay: 0.40s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   RESPONSIVE (shared)
   ============================================================ */
@media (max-width: 900px) {
  .container, .container-wide { padding: 0 1.5rem; }
  .nav-primary { display: none; }
  .section { padding: 4.5rem 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}
