/* Fontes locais (variáveis: um arquivo por subconjunto serve todos os pesos) */
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("fonts/manrope-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("fonts/manrope-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 100 1000; font-display: swap; src: url("fonts/dm-sans-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 100 1000; font-display: swap; src: url("fonts/dm-sans-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  /* Metais */
  --ink: #0d1014;          /* grafite */
  --ink-2: #161a20;
  --ink-3: #07090c;
  --paper: #ffffff;
  --paper-2: #f4f5f6;
  --copper: #c96f35;
  --copper-deep: #a14f1b;  /* cobre para texto sobre branco (AA) */
  --copper-light: #d9874a;
  --zinc: #8fa1ab;

  /* Texto */
  --text: var(--ink);
  --text-2: #4c5459;
  --on-dark: #ffffff;
  --on-dark-2: #b4bec4;
  --line: rgba(13, 16, 20, 0.12);
  --line-dark: rgba(255, 255, 255, 0.12);

  /* Ritmo */
  --gutter: clamp(20px, 7vw, 100px);
  --max: 1240px;
  --section-y: clamp(80px, 10vw, 136px);

  /* Movimento */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  --display: "Manrope", system-ui, sans-serif;
  --body: "DM Sans", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--text);
  background: var(--paper);
  font: 400 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
}
h1, h2, h3 { text-wrap: balance; }
a { color: inherit; text-decoration: none; }
svg { display: block; }
::selection { background: var(--copper); color: var(--ink); }
:focus-visible { outline: 2px solid var(--copper-light); outline-offset: 4px; border-radius: 2px; }
.contact :focus-visible { outline-color: var(--ink); }
section[id] { scroll-margin-top: 16px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip-link {
  position: fixed; left: 16px; top: 16px; z-index: 100;
  background: var(--paper); color: var(--ink); padding: 12px 16px; border-radius: 4px; font-weight: 600;
  transform: translateY(-140%);
}
.skip-link:focus { transform: none; }

/* ---------- Cabeçalho ---------- */
.site-header {
  position: absolute; inset: 0 0 auto; z-index: 10;
  height: 88px; padding: 0 var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
  color: var(--on-dark);
}
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font: 700 15px var(--display); letter-spacing: .12em; }
.brand-mark { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.25; }
.brand-mark circle:last-child { fill: var(--copper); stroke: none; }
.nav-links { display: flex; gap: 8px; font-size: 14px; font-weight: 500; }
.nav-links a { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; }
.nav-links a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 9px; height: 1px;
  background: var(--copper-light); transform: scaleX(0); transform-origin: left;
  transition: transform 220ms var(--ease-out);
}

/* ---------- Botões ---------- */
.button {
  min-height: 52px; display: inline-flex; align-items: center; justify-content: space-between; gap: 28px;
  padding: 0 18px 0 22px; border-radius: 2px;
  font: 600 15px/1.2 var(--body);
  transition: transform 160ms var(--ease-out), background-color 200ms ease;
}
.button:active { transform: scale(0.97); }
.button svg { flex: none; width: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; transition: transform 200ms var(--ease-out); }
.button-primary { background: var(--copper); color: var(--ink); }
.button-dark { background: var(--ink); color: var(--on-dark); }

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh; min-height: 100svh; max-height: 980px;
  background: var(--ink); color: var(--on-dark);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center;
  padding: 104px var(--gutter) 64px; gap: 32px;
  overflow: hidden;
}
.hero h1 {
  margin: 0; font: 600 clamp(56px, 7.4vw, 108px)/.95 var(--display);
  letter-spacing: -.04em;
}
.hero h1 em { display: block; color: var(--copper-light); font-style: normal; }
.hero-lede { margin: 28px 0 36px; max-width: 30em; color: var(--on-dark-2); font-size: clamp(17px, 1.4vw, 20px); line-height: 1.55; }

.hero-visual { position: relative; align-self: stretch; display: grid; place-items: center; min-height: 320px; }
.network { width: 100%; max-width: 620px; height: auto; overflow: visible; }
.orbit { stroke: rgba(143, 161, 171, .13); stroke-width: 1; }
.orbit-2 { stroke: rgba(143, 161, 171, .08); }
.wire { stroke-width: 1.5; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.wire-a { stroke: var(--copper); }
.wire-b { stroke: var(--zinc); }
.wire-c { stroke: var(--copper-light); opacity: .7; }
.node { fill: var(--ink); stroke: var(--copper-light); stroke-width: 2; }
.node-b { fill: var(--copper); stroke: none; }
.node-d { fill: var(--zinc); stroke: none; }
.node-e { stroke: var(--zinc); }
.spark { fill: #ffd2a8; opacity: 0; }
.node-tag { font: 600 18px var(--display); fill: var(--on-dark-2); letter-spacing: .02em; }
.node-tag-cu { fill: var(--copper-light); }

/* ---------- Manifesto ---------- */
.manifesto {
  background: var(--paper-2); border-bottom: 1px solid var(--line);
  padding: var(--section-y) var(--gutter);
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(40px, 7vw, 112px); align-items: center;
}
.elements { display: grid; grid-template-columns: repeat(3, 112px); }
.element {
  aspect-ratio: 1; padding: 12px 14px; border: 1px solid var(--line); margin-left: -1px;
  display: grid; grid-template-rows: auto 1fr auto; background: var(--paper);
}
.element:first-child { margin-left: 0; }
.element-num { font: 500 12px var(--body); color: var(--text-2); font-variant-numeric: tabular-nums; }
.element-sym { align-self: center; font: 600 40px/1 var(--display); letter-spacing: -.02em; }
.element-name { font-size: 12px; color: var(--text-2); }
.element-cu { background: var(--copper); border-color: var(--copper); color: var(--ink); position: relative; z-index: 1; }
.element-cu .element-num, .element-cu .element-name { color: var(--ink); }
.manifesto-text { margin: 0; max-width: 34em; font: 500 clamp(23px, 2.4vw, 36px)/1.38 var(--display); letter-spacing: -.02em; }
.manifesto-text > * { display: block; }
.manifesto-text > * + * { margin-top: .35em; }
.manifesto-text strong { color: var(--copper-deep); font-weight: 600; }

/* ---------- Títulos de seção ---------- */
.section-heading {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px 64px; align-items: end;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.section-heading h2 { margin: 0; max-width: 13em; font: 600 clamp(38px, 4.8vw, 68px)/1.04 var(--display); letter-spacing: -.035em; }
.section-heading p { margin: 0; max-width: 30em; color: var(--text-2); }

/* ---------- Soluções ---------- */
.solutions { padding: var(--section-y) var(--gutter); }
.product-list { border-top: 1px solid var(--line); }
.product {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 3fr); gap: 32px;
  padding: 40px 0; border-bottom: 1px solid var(--line);
}
.product h3 { margin: 0; font: 600 clamp(34px, 3.4vw, 48px)/1 var(--display); letter-spacing: -.03em; }
.product-for { margin: 12px 0 0; color: var(--copper-deep); font-weight: 600; font-size: 15px; }
.product-description { max-width: 24em; margin: 8px 0 0; color: var(--text-2); }
.benefits { margin: 6px 0 0; padding: 0; list-style: none; color: #3a4145; }
.benefits li { position: relative; padding: 6px 0 6px 22px; border-bottom: 1px dashed var(--line); }
.benefits li:last-child { border-bottom: 0; }
.benefits li::before { content: ""; position: absolute; left: 0; top: 50%; width: 10px; height: 1.5px; background: var(--copper); }
.product-action { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 24px; }
.status {
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border: 1px solid var(--line); border-radius: 99px;
  color: var(--text-2); font-size: 13px; font-weight: 500; white-space: nowrap;
}
.status i { width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--zinc); }
.status-live { color: var(--ink); border-color: rgba(201, 111, 53, .45); background: rgba(201, 111, 53, .08); }
.status-live i { background: var(--copper); border-color: var(--copper); }
.status-internal i { background: var(--zinc); }
.availability { color: var(--text-2); font-size: 14px; min-height: 44px; display: inline-flex; align-items: center; }
.text-link {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  font-size: 15px; font-weight: 600; color: var(--ink);
  background: linear-gradient(var(--copper), var(--copper)) left calc(100% - 8px) / 100% 1.5px no-repeat;
  transition: background-size 220ms var(--ease-out);
}
.text-link svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; transition: transform 200ms var(--ease-out); }

/* ---------- Princípios ---------- */
.principles { background: var(--ink); color: var(--on-dark); padding: var(--section-y) var(--gutter); }
.principles .section-heading p { color: var(--on-dark-2); }
.principle-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line-dark); }
.principle { padding: 36px 28px 8px; border-left: 1px solid var(--line-dark); }
.principle:first-child { padding-left: 0; border-left: 0; }
.principle h3 { margin: 0 0 10px; font: 600 22px/1.2 var(--display); letter-spacing: -.01em; }
.principle h3::before { content: ""; display: block; width: 28px; height: 2px; margin-bottom: 28px; background: var(--copper-light); }
.principle p { margin: 0; max-width: 17em; color: var(--on-dark-2); font-size: 16px; line-height: 1.55; }

/* ---------- Origem ---------- */
.origin {
  background: var(--paper-2); padding: var(--section-y) var(--gutter);
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px 64px; align-items: center;
}
.origin-place { display: grid; justify-items: start; gap: 14px; color: var(--ink); }
.place-city { font: 700 clamp(56px, 7vw, 104px)/.9 var(--display); letter-spacing: -.04em; }
.place-wire { width: 100%; max-width: 420px; height: 24px; }
.place-wire path { stroke: var(--copper); stroke-width: 1.5; }
.place-wire circle { fill: var(--copper); }
.place-wire circle:last-child { fill: var(--zinc); }
.place-state { font: 600 clamp(18px, 1.6vw, 22px) var(--display); color: var(--copper-deep); }
.origin-copy h2 { margin: 0 0 24px; font: 600 clamp(38px, 4.6vw, 64px)/1.04 var(--display); letter-spacing: -.035em; }
.origin-copy p { max-width: 34em; margin: 0; color: var(--text-2); font-size: 18px; line-height: 1.7; }

/* ---------- Contato ---------- */
.contact {
  background: var(--copper); color: var(--ink);
  padding: var(--section-y) var(--gutter);
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px 64px; align-items: center;
}
.contact h2 { margin: 0; max-width: 12em; font: 600 clamp(38px, 4.8vw, 68px)/1.04 var(--display); letter-spacing: -.035em; }
.contact-actions { display: grid; justify-items: start; gap: 12px; padding-left: 40px; border-left: 1px solid rgba(13, 16, 20, .3); }
.contact-actions p { margin: 0 0 8px; font-weight: 500; }
.contact-actions .button { width: 100%; max-width: 420px; }
.contact-mail {
  display: inline-flex; align-items: center; min-height: 44px; font-weight: 600;
  background: linear-gradient(var(--ink), var(--ink)) left calc(100% - 9px) / 100% 1px no-repeat;
}

/* ---------- Rodapé ---------- */
.site-footer {
  background: var(--ink-3); color: var(--on-dark);
  padding: 36px var(--gutter);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
}
.footer-links { display: flex; gap: 8px; font-size: 14px; color: var(--on-dark-2); }
.footer-links > * { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 10px; }
.footer-links small { font-size: 12px; color: #8a959b; }
.site-footer > p { justify-self: end; margin: 0; color: #9aa4aa; font-size: 13px; }

/* ---------- Hover (só ponteiro fino) ---------- */
@media (hover: hover) and (pointer: fine) {
  .nav-links a:hover::after { transform: scaleX(1); }
  .button-primary:hover { background: var(--copper-light); }
  .button-dark:hover { background: var(--ink-2); }
  .button:hover svg { transform: translateX(4px); }
  .text-link:hover { background-size: 0% 1.5px; background-position: right calc(100% - 8px); }
  .text-link:hover svg { transform: translate(2px, -2px); }
  .footer-links a:hover { color: var(--on-dark); }
}

/* ---------- Movimento ---------- */
@media (prefers-reduced-motion: no-preference) {
  /* Entrada do hero: uma vez, no carregamento */
  .enter { animation: enter 520ms var(--ease-out) both; animation-delay: var(--d, 0ms); }
  @keyframes enter { from { opacity: 0; transform: translateY(14px); } }

  /* Fios de cobre se desenham */
  .wire { stroke-dashoffset: 1; animation: draw 1100ms var(--ease-in-out) 200ms forwards; }
  .wire-b { animation-delay: 360ms; }
  .wire-c { animation-delay: 480ms; }
  @keyframes draw { to { stroke-dashoffset: 0; } }
  .node { animation: node-in 320ms var(--ease-out) both; animation-delay: 1000ms; transform-box: fill-box; transform-origin: center; }
  .node-a { animation-delay: 220ms; }
  .node-b { animation-delay: 700ms; }
  .node-tag { animation: fade 400ms ease 1100ms both; }
  @keyframes node-in { from { opacity: 0; transform: scale(.6); } }
  @keyframes fade { from { opacity: 0; } }
  .spark.is-running { opacity: 1; transition: opacity 160ms ease; }
  .spark.is-done { opacity: 0; transition: opacity 300ms ease; }

  /* Blocos entram ao rolar; visíveis por padrão sem JS */
  .js .reveal { opacity: 0; transform: translateY(16px); }
  .js .reveal.is-visible {
    opacity: 1; transform: none;
    transition: opacity 400ms var(--ease-out), transform 400ms var(--ease-out);
    transition-delay: calc(var(--i, 0) * 70ms);
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  /* Sem deslocamento: só um fade curto nos blocos */
  .js .reveal { opacity: 0; }
  .js .reveal.is-visible { opacity: 1; transition: opacity 200ms ease; }
  .button:active { transform: none; }
}

/* ---------- Tablet ---------- */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; align-content: center; padding-top: 120px; }
  .hero-visual { min-height: 0; max-width: 520px; width: 100%; justify-self: end; }
  .manifesto { grid-template-columns: 1fr; }
  .section-heading { grid-template-columns: 1fr; }
  .product { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .product-action { grid-column: 1 / -1; flex-direction: row; align-items: center; }
  .principle-grid { grid-template-columns: 1fr 1fr; }
  .principle:nth-child(3) { padding-left: 0; border-left: 0; }
  .principle:nth-child(n+3) { border-top: 1px solid var(--line-dark); margin-top: 28px; }
  .origin, .contact { grid-template-columns: 1fr; }
  .contact-actions { padding: 28px 0 0; border-left: 0; border-top: 1px solid rgba(13, 16, 20, .3); }
  .site-footer { grid-template-columns: 1fr; justify-items: start; gap: 12px; padding-block: 32px; }
  .footer-links { margin-left: -10px; flex-wrap: wrap; }
  .site-footer > p { justify-self: start; }
}

/* ---------- Celular ---------- */
@media (max-width: 620px) {
  body { font-size: 16px; }
  .site-header { height: 72px; }
  .brand { font-size: 13px; }
  .brand-mark { width: 26px; height: 26px; }
  .nav-links a:not(:last-child) { display: none; }
  .nav-links a { padding-right: 0; }
  .nav-links a::after { right: 0; }

  .hero { padding: 104px var(--gutter) 32px; gap: 24px; align-content: center; }
  .hero h1 { font-size: clamp(50px, 15.5vw, 68px); }
  .hero-lede { margin: 20px 0 28px; }
  .hero .button { width: 100%; }
  .hero-visual { justify-self: stretch; margin: 0 -8px; }
  .node-tag { font-size: 24px; }

  .elements { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .element-sym { font-size: 34px; }
  .manifesto-text { font-size: 23px; }

  .product { grid-template-columns: 1fr; gap: 20px; padding: 32px 0; }
  .product-action { flex-direction: column; align-items: flex-start; gap: 12px; }

  .principle-grid { grid-template-columns: 1fr; border-top: 0; }
  .principle, .principle:first-child, .principle:nth-child(3) { padding: 24px 0; border-left: 0; border-top: 1px solid var(--line-dark); margin-top: 0; }
  .principle h3::before { margin-bottom: 18px; }

  .origin-copy p { font-size: 17px; }
  .contact-actions .button { max-width: none; font-size: 14px; gap: 16px; padding: 0 16px; }
}
