/* ============================================================
   Soluções — ThinkSystems.io hub (hero-v2)
   4-point quadratic solutions page: alternating dot-glyph rows.
   Chrome/typography consistent with whitepaper.css.
   ============================================================ */
:root {
  --bg: #05070c;
  --bg-soft: #0a0e16;
  --ink: #d8dde6;
  --ink-dim: #8b93a3;
  --gold: #ffd700;
  --line: rgba(216, 221, 230, 0.12);
  --measure: 62ch;

  /* the 4-point element palette (operator order) */
  --el-terra: #e05252;   /* terra · TS:OS */
  --el-agua:  #3f7bff;   /* água · Sinais */
  --el-fogo:  #ff9f45;   /* fogo · VTX */
  --el-ar:    #39d0c4;   /* ar · Consultoria */
}

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

html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
  background:
    radial-gradient(1100px 520px at 85% -10%, rgba(63, 123, 255, 0.06), transparent 60%),
    radial-gradient(900px 480px at -10% 30%, rgba(224, 82, 82, 0.05), transparent 55%),
    radial-gradient(1000px 520px at 110% 75%, rgba(57, 208, 196, 0.05), transparent 55%),
    var(--bg);
  color: var(--ink);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.75;
  font-weight: 300;
}

/* ===== chrome (whitepaper-consistent) ===== */
.chrome {
  position: fixed; inset: 0 0 auto 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 22px;
  background: linear-gradient(180deg, rgba(5, 7, 12, 0.92), rgba(5, 7, 12, 0.75) 70%, transparent);
  backdrop-filter: blur(8px);
}
.chrome a {
  color: var(--ink-dim); text-decoration: none;
  font-family: 'Barlow', sans-serif; font-size: 14px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 8px 10px; min-height: 44px; display: inline-flex; align-items: center;
  transition: color 0.25s;
}
.chrome a:hover, .chrome a:focus-visible { color: var(--gold); }
.chrome-mid { display: flex; gap: 6px; }
/* the systems rail — the page you are on stays lit */
.chrome-mid a.here { color: var(--gold); }
/* PT | EN — js/nav.js owns the switch, js/lang.js applies it (LANG-1 §2) */
.lang-toggle { display: flex; align-items: center; gap: 8px; }
.lang-toggle button {
  background: none; border: 0; cursor: pointer;
  color: var(--ink-dim);
  font-family: 'Barlow', sans-serif; font-size: 14px; font-weight: 600;
  letter-spacing: 0.08em;
  padding: 8px 4px; min-height: 44px;
  transition: color 0.25s;
}
.lang-toggle button:hover, .lang-toggle button:focus-visible,
.lang-toggle button.on { color: var(--gold); }
.lt-sep { color: rgba(216, 221, 230, 0.16); font-size: 11px; }

/* ===== layout ===== */
.wrap { max-width: 1080px; margin: 0 auto; padding: 130px 24px 80px; }

/* ===== intro ===== */
.intro { max-width: 780px; margin: 0 auto 26px; text-align: center; }
.p-eyebrow {
  font-family: 'JetBrains Mono', monospace; font-size: 12px;
  letter-spacing: 0.28em; text-transform: uppercase; color: var(--gold);
}
h1 {
  font-family: 'Cinzel', serif; font-weight: 700; color: #fff;
  font-size: clamp(36px, 6vw, 58px); line-height: 1.12; margin: 12px 0 20px;
}
.lede { margin: 0 auto 16px; max-width: var(--measure); }
.lede.dim { color: var(--ink-dim); font-size: 16px; }
strong { color: #fff; font-weight: 600; }
em { color: var(--ink); }

.glyph-inline {
  font-family: 'JetBrains Mono', monospace; font-size: 0.85em;
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: 5px; padding: 1px 7px; color: var(--gold);
  white-space: nowrap;
}

/* ===== quadratic anchor nav ===== */
.quad-nav {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px; margin: 34px auto 0; max-width: 640px;
}
.qn {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  text-decoration: none; padding: 14px 8px 12px;
  border: 1px solid var(--line); border-radius: 12px;
  background: var(--bg-soft);
  transition: border-color 0.25s, transform 0.25s;
}
.qn:hover, .qn:focus-visible { transform: translateY(-2px); }
.qn-glyph {
  font-family: 'JetBrains Mono', monospace; font-size: 20px; font-weight: 600;
  letter-spacing: 0.06em; line-height: 1.2;
}
.qn-label {
  font-family: 'Barlow', sans-serif; font-size: 13px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink);
}
.qn-el {
  font-family: 'JetBrains Mono', monospace; font-size: 10.5px;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-dim);
}
.qn-terra .qn-glyph { color: var(--el-terra); }
.qn-agua  .qn-glyph { color: var(--el-agua); }
.qn-fogo  .qn-glyph { color: var(--el-fogo); }
.qn-ar    .qn-glyph { color: var(--el-ar); }
.qn-terra:hover, .qn-terra:focus-visible { border-color: var(--el-terra); }
.qn-agua:hover,  .qn-agua:focus-visible  { border-color: var(--el-agua); }
.qn-fogo:hover,  .qn-fogo:focus-visible  { border-color: var(--el-fogo); }
.qn-ar:hover,    .qn-ar:focus-visible    { border-color: var(--el-ar); }

/* ===== solution rows ===== */
.row {
  display: grid; grid-template-columns: 300px minmax(0, 1fr);
  gap: 24px 56px; align-items: center;
  padding: 72px 0; border-top: 1px solid var(--line);
  margin-top: 40px;
}
.intro + .row { margin-top: 56px; }
.row.alt { grid-template-columns: minmax(0, 1fr) 300px; }
.row.alt .mark { order: 2; }
.row.alt .body { order: 1; }

/* per-element accent (custom prop cascade) */
.el-terra { --el: var(--el-terra); }
.el-agua  { --el: var(--el-agua); }
.el-fogo  { --el: var(--el-fogo); }
.el-ar    { --el: var(--el-ar); }

.mark {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  justify-self: center;
}
.mark-glyph {
  font-family: 'JetBrains Mono', monospace; font-weight: 600;
  font-size: clamp(56px, 8vw, 88px); line-height: 1;
  letter-spacing: 0.04em;
  color: var(--el);
  text-shadow:
    0 0 24px color-mix(in srgb, var(--el) 55%, transparent),
    0 0 90px color-mix(in srgb, var(--el) 30%, transparent);
}
.mark-el {
  font-family: 'JetBrains Mono', monospace; font-size: 12px;
  letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--el); opacity: 0.85;
}

.body { max-width: var(--measure); }
.kicker {
  font-family: 'JetBrains Mono', monospace; font-size: 11.5px;
  letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--el); margin-bottom: 8px;
}
.row h2 {
  font-family: 'Cinzel', serif; font-weight: 600; color: #fff;
  font-size: clamp(26px, 3.4vw, 36px); line-height: 1.2; margin: 0 0 10px;
}
.tagline {
  font-family: 'Barlow', sans-serif; font-weight: 500; font-size: 19px;
  color: var(--ink); border-left: 2px solid var(--el);
  padding: 4px 0 4px 14px; margin: 0 0 16px;
}
.row p { margin-bottom: 16px; }
.row p:last-of-type { margin-bottom: 0; }

/* ===== CTA links ===== */
.cta {
  display: inline-flex; align-items: center; min-height: 44px;
  margin-top: 18px; padding: 8px 18px;
  font-family: 'Barlow', sans-serif; font-size: 14px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--el, var(--gold)); text-decoration: none;
  border: 1px solid color-mix(in srgb, var(--el, var(--gold)) 45%, transparent);
  border-radius: 999px;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.cta:hover, .cta:focus-visible {
  background: color-mix(in srgb, var(--el, var(--gold)) 14%, transparent);
  border-color: var(--el, var(--gold));
}

/* ===== Trader de Mesa strip ===== */
.strip {
  margin-top: 40px; border-top: 1px solid var(--line);
  padding: 56px 0 8px;
}
.strip-inner {
  border: 1px dashed var(--line); border-radius: 14px;
  background: var(--bg-soft); padding: 30px 32px;
  max-width: 780px; margin: 0 auto;
}
.strip-head { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 12px; }
.strip-glyph {
  font-family: 'JetBrains Mono', monospace; font-size: 30px; line-height: 1;
  color: var(--gold);
  text-shadow: 0 0 18px rgba(255, 215, 0, 0.4);
}
.strip h2 {
  font-family: 'Cinzel', serif; font-weight: 600; color: #fff;
  font-size: 24px; line-height: 1.2;
}
.strip-badge {
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold); border: 1px solid rgba(255, 215, 0, 0.35);
  border-radius: 999px; padding: 3px 12px; background: rgba(255, 215, 0, 0.06);
}
.strip p { color: var(--ink-dim); margin-bottom: 4px; }
.strip .cta { --el: var(--gold); }

/* ===== reveal ===== */
.pre { opacity: 0; transform: translateY(18px); }
.in { opacity: 1; transform: none; transition: opacity 0.7s ease, transform 0.7s ease; }

/* ===== footer (whitepaper-consistent) ===== */
.paper-foot {
  margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line);
  font-size: 14px; color: var(--ink-dim);
}
.foot-links {
  display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center;
  font-family: 'Barlow', sans-serif; font-size: 14px; margin-bottom: 14px;
}
.foot-links a {
  color: var(--ink-dim); text-decoration: none; padding: 8px 4px; min-height: 44px;
  display: inline-flex; align-items: center; transition: color 0.25s;
}
.foot-links a:hover, .foot-links a:focus-visible { color: var(--gold); }
.fsep { opacity: 0.5; }
.foot-brand {
  font-family: 'Fredericka the Great', cursive; font-size: 15px;
  color: var(--ink-dim); margin-top: 10px;
}

/* ===== responsive ===== */
@media (max-width: 860px) {
  .wrap { padding-top: 110px; }
  .row, .row.alt { grid-template-columns: 1fr; gap: 22px; padding: 56px 0; }
  .row.alt .mark { order: 0; }
  .row.alt .body { order: 1; }
  .mark { flex-direction: row; gap: 18px; justify-self: start; align-items: baseline; }
  .mark-glyph { font-size: 52px; }
  .quad-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .strip-inner { padding: 24px 20px; }
}
@media (max-width: 400px) {
  body { font-size: 16.5px; }
  .quad-nav { gap: 8px; }
  .qn-glyph { font-size: 17px; }
  .mark-glyph { font-size: 44px; }
  .chrome { padding: 10px 10px; }
  .chrome a { font-size: 12.5px; padding: 8px 6px; letter-spacing: 0.05em; }
}
/* Narrow chrome. The PT|EN switch costs ~55px of the row, and English runs ~15%
   longer than Portuguese (translation canon §5), so the header is tightened and
   the Sinais shortcut is dropped — the same destination sits in the footer nav.
   The band starts at 560px because the row already overflowed below ~535px. */
@media (max-width: 560px) {
  .chrome { padding: 10px 10px; }
  .chrome a { font-size: 12.5px; padding: 8px 6px; letter-spacing: 0.05em; }
  .chrome a.chrome-signals { display: none; }
  .lang-toggle { gap: 5px; }
  .lang-toggle button { font-size: 12.5px; padding: 8px 2px; letter-spacing: 0.05em; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .qn, .cta { transition: none; }
}

/* Thin dark scrollbar — this page also rides inside the Console window
   (js/syswin.js), where the default white track glares on the register.
   Standalone it reads the same, which is the point: one surface, one dress.
   Chromium honours scrollbar-*; Safari takes the -webkit- rules. */
html { scrollbar-width: thin; scrollbar-color: rgba(216, 221, 230, 0.26) transparent; }
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(216, 221, 230, 0.22); border-radius: 999px; }

/* Framed inside the Console window (js/syswin.js sets `data-framed`), the
   page's own menus retire — the window's corner discs ARE the navigation
   (operator, 2026-08-10). The PT|EN switch stays: language is not a menu. */
html[data-framed] .chrome-home,
html[data-framed] .chrome-mid { display: none; }
html[data-framed] .chrome { justify-content: flex-end; }
