/* ============================================================
   WSETE — sistema visual compartilhado
   v0.2 · maio 2026
   ============================================================ */

:root {
  --ink: #0A0A0A;
  --ink-2: #1A1A1A;
  --paper: #FAFAF7;
  --bone: #F0EDE5;
  --orange: #F84E00;
  --ash: #C7C2B6;
  --muted: #6E6A60;

  --display: 'Inter', 'Helvetica Neue', system-ui, sans-serif;
  --body: 'Inter', 'Helvetica Neue', system-ui, sans-serif;
  --mono: 'JetBrains Mono', 'Menlo', monospace;
  --display-weight: 900;
  --display-tracking: -0.045em;

  --rule: 1.5px;
  --max: 1480px;
  --gutter: 24px;
  --rail: 80px;
  --pad-x: 32px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; }

/* ================================ TYPE */
.display {
  font-family: var(--display);
  font-weight: var(--display-weight);
  line-height: 0.85;
  letter-spacing: var(--display-tracking);
  text-transform: uppercase;
  margin: 0;
}
h1.display { font-size: clamp(72px, 13vw, 200px); }
h2.display { font-size: clamp(56px, 9vw, 144px); }
h3.display { font-size: clamp(36px, 5vw, 80px); letter-spacing: -0.035em; }
h4.display { font-size: clamp(28px, 3.4vw, 48px); letter-spacing: -0.03em; }

.mono { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; }
.mono-sm { font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; }
.mono-md { font-family: var(--mono); font-size: 13px; letter-spacing: 0.04em; }
.caption { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

.punct, .square-inline {
  display: inline-block;
  width: 0.48em;
  height: 0.48em;
  background: var(--orange);
  margin-left: 0.04em;
  transform: translateY(0.04em);
}
.sq-bullet {
  display: inline-block;
  width: 0.6em;
  height: 0.6em;
  background: var(--orange);
  flex-shrink: 0;
}

/* ================================ LAYOUT */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}
.section {
  padding: 96px 0;
  border-top: var(--rule) solid var(--ink);
}
.section-grid {
  display: grid;
  grid-template-columns: var(--rail) 1fr;
  gap: var(--gutter);
}
.rail-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  white-space: nowrap;
  position: sticky;
  top: 100px;
  align-self: start;
}
.rail-label.dark { color: rgba(250, 250, 247, 0.7); }

.hairline-bg {
  position: relative;
  overflow: hidden;
}
.hairline-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(10, 10, 10, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(10, 10, 10, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  mask-image: linear-gradient(to bottom, black 0%, black 65%, transparent 100%);
  z-index: 0;
}
.hairline-bg.dark::before {
  background-image:
    linear-gradient(to right, rgba(250, 250, 247, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(250, 250, 247, 0.05) 1px, transparent 1px);
}
.hairline-bg > * { position: relative; z-index: 1; }

/* ================================ NAV */
nav.top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: var(--rule) solid var(--ink);
}
body { padding-top: 57px; }
nav.top.dark { background: var(--ink); color: var(--paper); border-color: transparent; }
nav.top .inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 16px var(--pad-x);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
}
nav.top .logo img { height: 22px; }
nav.top .menu {
  display: flex;
  gap: 28px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  align-items: center;
}
nav.top .menu a { text-decoration: none; }
nav.top .menu a:hover, nav.top .menu a.active { color: var(--orange); }
nav.top .cta {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 8px 14px;
  border: var(--rule) solid currentColor;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
nav.top .cta::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--orange);
  display: inline-block;
}
nav.top .cta:hover { background: var(--orange); color: var(--paper); border-color: var(--orange); }
nav.top .cta:hover::before { background: var(--paper); }

/* ================================ BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  font-size: 16px;
  line-height: 1;
  padding: 18px 24px;
  border: var(--rule) solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
  transition: transform 80ms ease, box-shadow 80ms ease, background 80ms ease, color 80ms ease;
  text-decoration: none;
}
.btn:hover { transform: translate(-3px, -3px); box-shadow: 4px 4px 0 var(--orange); }
.btn.primary { background: var(--orange); color: var(--ink); border-color: var(--orange); }
.btn.primary:hover { box-shadow: 4px 4px 0 var(--paper); }
.btn.ghost { background: transparent; color: var(--paper); border-color: rgba(250, 250, 247, 0.4); }
.btn.ghost:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); box-shadow: none; transform: none; }
.btn.on-light { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn.on-light:hover { background: var(--ink); color: var(--paper); box-shadow: 4px 4px 0 var(--orange); }

.cta-paren {
  display: inline-flex;
  align-items: stretch;
  gap: 4px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--orange);
  text-decoration: none;
}
.cta-paren .group {
  padding: 8px 12px;
  border: 1px solid currentColor;
}
.cta-paren:hover .group { background: var(--orange); color: var(--ink); border-color: var(--orange); }
.cta-paren.on-light { color: var(--ink); }
.cta-paren.on-light .group { border-color: var(--ink); }
.cta-paren.on-light:hover .group { background: var(--ink); color: var(--orange); border-color: var(--ink); }
.cta-paren.on-dark { color: var(--paper); }
.cta-paren.on-dark .group { border-color: var(--paper); }
.cta-paren.on-dark:hover .group { background: var(--paper); color: var(--ink); border-color: var(--paper); }

/* ================================ FOOTER */
footer.site {
  background: var(--ink);
  color: var(--paper);
  padding: 80px 0 32px;
}
footer.site .top-row {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 64px;
  border-bottom: 1px solid rgba(250, 250, 247, 0.15);
}
footer.site .brand img { height: 36px; margin-bottom: 16px; }
footer.site .brand .wsete-brand-svg { height: 36px; width: auto; display: block; margin-bottom: 16px; }
footer.site .brand p { font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; color: rgba(250, 250, 247, 0.7); max-width: 40ch; line-height: 1.5; margin: 0; }
footer.site h4 { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(250, 250, 247, 0.5); margin: 0 0 16px; font-weight: 500; }
footer.site ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
footer.site ul a { text-decoration: none; font-size: 15px; }
footer.site ul a:hover { color: var(--orange); }
footer.site .bottom-row {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(250, 250, 247, 0.5);
}
footer.site .bottom-row .sq { display: inline-block; width: 8px; height: 8px; background: var(--orange); margin-right: 8px; transform: translateY(1px); }

/* ================================ SHARED PAGE-HEADER (internal pages) */
.page-head {
  background: var(--ink);
  color: var(--paper);
  position: relative;
  overflow: hidden;
  padding: 64px 0 80px;
}
.page-head::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(250, 250, 247, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(250, 250, 247, 0.05) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
  mask-image: linear-gradient(to bottom, black 0%, black 70%, transparent 100%);
}
.page-head .wrap { position: relative; z-index: 1; }
.page-head .crumbs {
  display: flex;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(250, 250, 247, 0.55);
  margin-bottom: 40px;
}
.page-head .crumbs a { color: rgba(250, 250, 247, 0.55); text-decoration: none; }
.page-head .crumbs a:hover { color: var(--paper); }
.page-head .crumbs span.sep { color: rgba(250, 250, 247, 0.3); }
.page-head .crumbs .sq {
  width: 8px;
  height: 8px;
  background: var(--orange);
  display: inline-block;
  align-self: center;
  margin-right: 4px;
}
.page-head h1 { color: var(--paper); }
.page-head .lede {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gutter);
  margin-top: 48px;
  align-items: end;
}
.page-head .lede .copy {
  grid-column: 6 / -1;
  font-size: 19px;
  line-height: 1.5;
  color: rgba(250, 250, 247, 0.85);
  max-width: 56ch;
}
.page-head .meta-row {
  margin-top: 56px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-top: 1px solid rgba(250, 250, 247, 0.2);
  padding-top: 20px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(250, 250, 247, 0.55);
}
.page-head .meta-row .sq {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--orange);
  margin-right: 8px;
  transform: translateY(1px);
}

/* ================================ FINAL CTA (orange) */
.final {
  background: var(--orange);
  color: var(--ink);
  border-top: var(--rule) solid var(--ink);
  padding: 96px 0;
  position: relative;
  overflow: hidden;
}
.final .layout { display: grid; grid-template-columns: var(--rail) 1fr; gap: var(--gutter); }
.final h2 { max-width: 16ch; }
.final p { font-size: 19px; line-height: 1.5; max-width: 56ch; margin: 32px 0 40px; color: var(--ink); }
.final .cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.final .btn { border-color: var(--ink); }
.final .btn:not(.primary):not(.ghost-light) { background: var(--ink); color: var(--paper); }
.final .btn:not(.primary):not(.ghost-light):hover { box-shadow: 4px 4px 0 var(--paper); }
.final .btn.ghost-light { background: transparent; color: var(--ink); border-color: var(--ink); }
.final .btn.ghost-light:hover { background: var(--ink); color: var(--orange); box-shadow: 4px 4px 0 var(--paper); }
.final .footnote {
  margin-top: 48px;
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.final .footnote span { display: flex; align-items: center; gap: 8px; }
.final .footnote .sq { width: 8px; height: 8px; background: var(--ink); }

/* ================================ RESPONSIVE */
@media (max-width: 980px) {
  .section-grid { grid-template-columns: 1fr; }
  .rail-label { writing-mode: horizontal-tb; transform: none; position: static; margin-bottom: 24px; display: inline-block; }
  .page-head .lede { grid-template-columns: 1fr; }
  .page-head .lede .copy { grid-column: 1 / -1; }
  nav.top .menu { display: flex; gap: 12px; }
  nav.top .menu > a:not(.cta) { display: none; }
  footer.site .top-row { grid-template-columns: 1fr 1fr; }
  footer.site .brand { grid-column: 1 / -1; }
  .final .layout { grid-template-columns: 1fr; }
}
