/* ============================================================
   Nexo Público — base tokens, reset, layout primitives, nav,
   buttons, footer, CTA strip.
   Desktop-first; mobile overrides live in responsive.css.
   ============================================================ */

:root {
  --bg: #FFFFFF;
  --bg-2: #F7F6F3;
  --bg-3: #EEEDE8;
  --ink: #11141A;
  --ink-2: #2A2F38;
  --muted: #6B6F77;
  --muted-2: #95989F;
  --line: #E5E3DD;
  --line-strong: #C9C6BD;
  --accent: #1F2A37;
  --accent-deep: #0E1622;
  --accent-2: #1F5A66;
  --accent-2-deep: #144049;
  --accent-2-tint: #E6EEF0;
  --seal: #7A2230;
  --seal-tint: #F4E8EA;
  --positive: #2E6B4A;
  --serif: 'Source Serif 4', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;

  --container-max: 1120px;
  --container-pad: 64px;
}

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

html { scroll-behavior: smooth; }
html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body { overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* focus visibility */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
  border-radius: 2px;
}

/* skip link */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: #fff;
  padding: 12px 18px; font-family: var(--mono);
  font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase;
  border-radius: 0 0 4px 0;
}
.skip-link:focus { left: 0; }

/* ============ layout primitives ============ */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

.eyebrow {
  font-family: var(--mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--accent-2);
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before {
  content: ""; width: 24px; height: 1px;
  background: var(--accent-2); opacity: 0.5;
}

/* ============ nav ============ */
.nav {
  padding: 22px var(--container-pad);
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  position: sticky; top: 0; z-index: 20;
}
.logo {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--serif); font-size: 20px; font-weight: 500;
  letter-spacing: -0.005em;
}
.logo-mark svg { width: 30px; height: 30px; }
.nav-links {
  display: flex; gap: 32px; font-size: 14px;
  color: var(--ink-2); list-style: none;
}
.nav-links a:hover { color: var(--accent); }
.nav-cta {
  display: flex; align-items: center; gap: 22px; font-size: 14px;
}

/* ============ buttons ============ */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 11px 18px; font-size: 14px; font-weight: 500;
  border-radius: 4px; transition: background .15s, color .15s, border-color .15s, transform .15s;
  cursor: pointer; border: 0;
  white-space: nowrap;
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--accent-deep); }
.btn-outline {
  background: transparent; color: var(--ink);
  border: 1px solid var(--line-strong);
}
.btn-outline:hover { border-color: var(--ink); }
.btn-ghost { color: var(--ink-2); }
.btn-ghost:hover { color: var(--ink); }
.arrow { display: inline-block; transition: transform .15s; }
.btn:hover .arrow { transform: translateX(3px); }

/* responsive label swap inside nav demo button */
.nav-cta .btn .short { display: none; }
.nav-cta .btn .full { display: inline; }

/* ============ hamburger ============ */
.hamb {
  display: none;
  width: 40px; height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  align-items: center; justify-content: center;
  flex-direction: column; gap: 4px;
}
.hamb span {
  display: block; width: 16px; height: 1.5px;
  background: var(--ink); transition: transform .2s, opacity .2s;
}
.hamb[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.hamb[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamb[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* ============ mobile drawer ============ */
.mobile-drawer {
  position: fixed; inset: 0;
  background: rgba(17,20,26,0.45);
  opacity: 0; pointer-events: none;
  transition: opacity .25s;
  z-index: 30;
}
.mobile-drawer[data-open="true"] {
  opacity: 1; pointer-events: auto;
}
.mobile-drawer .panel {
  position: absolute; right: 0; top: 0; bottom: 0;
  width: min(86vw, 360px);
  background: var(--bg);
  padding: 26px 28px;
  display: flex; flex-direction: column; gap: 28px;
  transform: translateX(100%);
  transition: transform .25s ease-out;
  box-shadow: -20px 0 60px -20px rgba(0,0,0,0.2);
}
.mobile-drawer[data-open="true"] .panel { transform: translateX(0); }
.mobile-drawer .head {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 16px; border-bottom: 1px solid var(--line);
}
.mobile-drawer .close {
  width: 36px; height: 36px;
  border: 1px solid var(--line-strong); border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
}
.mobile-drawer .close svg { width: 14px; height: 14px; }
.mobile-drawer ul {
  list-style: none; display: flex; flex-direction: column; gap: 4px;
}
.mobile-drawer ul a {
  display: block; padding: 14px 0;
  font-family: var(--serif); font-size: 22px;
  border-bottom: 1px solid var(--line);
}
.mobile-drawer .drawer-cta {
  margin-top: auto; display: flex; flex-direction: column; gap: 10px;
}

/* ============ CTA strip ============ */
.cta-strip {
  background: var(--ink); color: #fff;
  padding: 100px 0; position: relative;
}
.cta-strip::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: var(--seal);
}
.cta-strip h2 {
  font-family: var(--serif); font-size: 50px; line-height: 1.05;
  font-weight: 400; letter-spacing: -0.02em;
  max-width: 760px; text-wrap: pretty;
}
.cta-strip h2 .accent { color: #E8A6AE; }
.cta-strip .row {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 60px;
}
.cta-strip .btn-primary { background: #fff; color: var(--ink); }
.cta-strip .btn-primary:hover { background: var(--bg-2); }
.cta-strip p {
  margin-top: 22px; max-width: 460px; opacity: 0.78; font-size: 15px;
}
.cta-strip .eyebrow { color: rgba(255,255,255,0.55); }
.cta-strip .eyebrow::before { background: rgba(255,255,255,0.3); }

.cta-form {
  margin-top: 28px;
  display: flex; flex-wrap: wrap; gap: 10px; max-width: 460px;
}
.cta-form input[type="email"] {
  flex: 1;
  padding: 12px 14px;
  font: inherit; font-size: 14px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 4px;
  color: #fff;
}
.cta-form input[type="email"]::placeholder { color: rgba(255,255,255,0.5); }
.cta-form input[type="email"]:focus {
  border-color: rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.12);
}
.cta-form input[aria-invalid="true"] {
  border-color: #E8A6AE;
}
.form-status {
  width: 100%;
  margin-top: 12px;
  min-height: calc(1.55em * 2);
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  line-height: 1.55;
}
.form-status:empty { color: transparent; }
.form-status[data-kind="success"] { color: #C9E4D2; }
.form-status[data-kind="error"] { color: #E8A6AE; }

/* ============ footer ============ */
footer {
  background: var(--bg);
  padding: 80px 0 36px;
  border-top: 4px double var(--line);
}
.foot-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--line);
}
.foot-brand .logo { margin-bottom: 16px; }
.foot-brand p {
  font-size: 14px; color: var(--muted); max-width: 280px;
}
.foot-brand .compliance {
  margin-top: 22px; display: flex; gap: 6px; flex-wrap: wrap;
}
.foot-brand .compliance span {
  font-family: var(--mono); font-size: 10px; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.06em;
  padding: 4px 8px;
  border: 1px solid var(--line-strong); border-radius: 2px;
}
.foot-col h2 {
  font-family: var(--mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--muted); margin-bottom: 18px; font-weight: 400;
}
.foot-col ul {
  list-style: none; display: flex; flex-direction: column; gap: 11px;
}
.foot-col a { font-size: 14px; color: var(--ink-2); }
.foot-col a:hover { color: var(--accent); }
.foot-bottom {
  padding-top: 28px;
  display: flex; justify-content: space-between; gap: 16px;
  font-size: 12px; color: var(--muted);
  font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.08em;
}
