/* =========================================================================
   Sectro v3 - enxuta. Base da primeira versão (preto puro, Barlow leve +
   pesada com ponto laranja, rótulos com fio, lista de acessos em linhas)
   com o melhor da v2 (números laranja, uma foto por página, palavra no rodapé).
   Coluna estreita, pouco espaço vazio, um raio só: 12px (botões 10px).
   ========================================================================= */
:root {
  --bg: #000000;
  --surface: #0d0f10;
  --surface-2: #131617;
  --line: #1f2426;
  --line-2: #2c3235;
  --fg: #f1f3f4;
  --soft: #c9cfd1;
  --muted: #9aa3a6;
  --dim: #6f787b;
  --accent: #f39200;
  --accent-2: #ffa526;
  --ink: #170c00;
  --font: "Barlow", "Helvetica Neue", Arial, sans-serif;
  --label: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --r: 12px;
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--accent); color: var(--ink); }

.wrap {
  width: 100%; max-width: 920px; margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
main { display: flex; flex-direction: column; gap: clamp(44px, 6vw, 64px); padding-bottom: clamp(44px, 6vw, 64px); }
main > .hero-wrap { margin-bottom: calc(clamp(44px, 6vw, 64px) * -0.4); }

/* ---------- tipografia ---------- */
h1, h2, h3 { margin: 0; text-wrap: balance; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.5rem, 6vw, 3.6rem); line-height: 1; font-weight: 600; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.1rem); line-height: 1.08; font-weight: 600; }
h3 { font-size: 1.08rem; line-height: 1.25; font-weight: 600; letter-spacing: 0; }
.lt { font-weight: 300; }
.dot { color: var(--accent); }
p { margin: 0; }
.lead { color: var(--muted); font-size: 1.06rem; max-width: 46ch; }
.body { color: var(--muted); max-width: 62ch; }
.body strong { color: var(--fg); font-weight: 500; }
.mono { font-family: var(--mono); font-size: 0.74rem; color: var(--dim); letter-spacing: 0.01em; overflow-wrap: anywhere; }
.mono b { color: var(--accent); font-weight: 500; }
.label {
  font-family: var(--label); font-weight: 600; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted);
  margin: 0 0 12px; display: flex; align-items: center; gap: 10px;
}
.label::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.kicker { font-family: var(--label); font-weight: 500; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); }
.stack { display: flex; flex-direction: column; gap: 14px; }

/* ---------- topo ---------- */
.top { position: sticky; top: 0; z-index: 30; padding-top: env(safe-area-inset-top, 0px); background: rgba(0, 0, 0, 0.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 4px; height: 56px; }
.brand { margin-right: auto; display: flex; }
.brand img { height: 22px; width: auto; }
.links { display: flex; gap: 2px; }
.links a { text-decoration: none; font-size: 0.9rem; color: var(--muted); padding: 6px 12px; border-radius: 8px; transition: color 0.3s, background-color 0.3s; }
.links a:hover { color: var(--fg); background: var(--surface-2); }
.links a[aria-current="page"] { color: var(--fg); }
.links a[aria-current="page"]::after { content: "."; color: var(--accent); }
.links a:focus-visible, .brand:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.menu-btn { display: none; width: 40px; height: 40px; border-radius: 10px; border: 0; cursor: pointer; background: var(--surface-2); position: relative; }
.menu-btn span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--fg); border-radius: 2px; transition: transform 0.5s var(--ease), top 0.5s var(--ease); }
.menu-btn span:nth-child(1) { top: 16px; }
.menu-btn span:nth-child(2) { top: 23px; }
.menu-open .menu-btn span:nth-child(1) { top: 19.5px; transform: rotate(45deg); }
.menu-open .menu-btn span:nth-child(2) { top: 19.5px; transform: rotate(-45deg); }
.menu-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.overlay {
  position: fixed; inset: 0; z-index: 25; display: flex; flex-direction: column; justify-content: center; gap: 2px;
  padding: calc(env(safe-area-inset-top, 0px) + 80px) max(24px, env(safe-area-inset-right, 0px)) calc(env(safe-area-inset-bottom, 0px) + 40px) max(24px, env(safe-area-inset-left, 0px));
  background: rgba(0, 0, 0, 0.96); opacity: 0; visibility: hidden; transition: opacity 0.4s var(--ease), visibility 0.4s;
}
.overlay a { text-decoration: none; font-size: 2rem; font-weight: 300; padding: 6px 0; transform: translateY(18px); opacity: 0; transition: transform 0.6s var(--ease), opacity 0.6s var(--ease); }
.overlay a b { font-weight: 600; }
.menu-open .overlay { opacity: 1; visibility: visible; }
.menu-open .overlay a { transform: none; opacity: 1; }
.menu-open .overlay a:nth-child(2) { transition-delay: 0.05s; }
.menu-open .overlay a:nth-child(3) { transition-delay: 0.1s; }

/* ---------- abertura (foto ao fundo, em rodízio) ---------- */
.hero-wrap { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-bg { position: absolute; inset: 0 0 0 auto; width: min(64%, 860px); pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 55%); mask-image: linear-gradient(90deg, transparent 0%, #000 55%); }
.hero-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; filter: grayscale(0.45) brightness(0.62) contrast(1.05); transform: scale(1.04);
  transition: opacity 1.8s ease, transform 7s linear; }
.hero-bg img.on { opacity: 0.55; transform: scale(1); }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,0) 70%, #000 100%); }
.hero { position: relative; z-index: 1; padding-block: clamp(44px, 8vw, 88px) clamp(36px, 6vw, 64px); }
.hero .stack { gap: 18px; align-items: flex-start; max-width: 520px; }

/* ---------- botões ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 11px 16px; border-radius: 10px; border: 0; cursor: pointer;
  background: var(--accent); color: var(--ink); text-decoration: none; white-space: nowrap;
  font-family: var(--label); font-weight: 600; font-size: 1rem; text-transform: uppercase; letter-spacing: 0.07em;
  transition: background-color 0.3s, transform 0.4s var(--ease);
}
.btn svg { width: 18px; height: 18px; transition: transform 0.4s var(--ease); }
.btn:hover { background: var(--accent-2); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: scale(0.98); }
.btn:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; }
.btn.ghost { background: transparent; color: var(--fg); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn.ghost:hover { background: var(--surface-2); }
.btn[disabled] { opacity: 0.6; cursor: wait; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- faixa de destaques ---------- */
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts > div { padding: 14px 16px 14px 0; display: flex; flex-direction: column; gap: 2px; }
.facts > div + div { padding-left: 16px; border-left: 1px solid var(--line); }
.facts strong { font-family: var(--label); font-weight: 600; font-size: 0.86rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--accent); }
.facts span { color: var(--muted); font-size: 0.94rem; }
.facts b { font-size: 1.6rem; font-weight: 600; line-height: 1.1; color: var(--fg); }

/* ---------- acessos em linhas ---------- */
.groups { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px 16px; }
.groups .full { grid-column: 1 / -1; }
.tools { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.groups .full .tools { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tool.quick { border-style: dashed; }
.tool {
  display: grid; grid-template-columns: 40px minmax(0, 1fr) 18px; align-items: center; gap: 14px; height: 100%;
  padding: 13px 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface);
  text-decoration: none; color: inherit; transition: border-color 0.25s, transform 0.25s var(--ease);
}
.tool:hover { border-color: var(--accent); }
.tool:active { transform: scale(0.99); }
.tool:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ico { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); color: var(--accent); }
.ico svg { width: 20px; height: 20px; }
.txt { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.name { font-weight: 600; font-size: 1.04rem; line-height: 1.2; }
.desc { color: var(--muted); font-size: 0.9rem; line-height: 1.35; }
.txt .mono { margin-top: 3px; }
.go { width: 18px; height: 18px; color: var(--dim); transition: color 0.25s, transform 0.25s var(--ease); }
.tool:hover .go { color: var(--accent); transform: translateX(2px); }
.note { margin-top: 10px; color: var(--muted); font-size: 0.88rem; }

/* ---------- valores ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.chips li { font-family: var(--label); font-weight: 500; font-size: 0.95rem; letter-spacing: 0.03em; padding: 5px 12px; border: 1px solid var(--line-2); border-radius: 999px; }
.motto { font-size: clamp(1.7rem, 4vw, 2.2rem); line-height: 1.08; font-weight: 600; letter-spacing: -0.015em; }
.motto .lt { font-weight: 300; }

.vals { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.val { border-bottom: 1px solid var(--line); }
.val summary {
  list-style: none; cursor: pointer; display: grid; grid-template-columns: 44px minmax(0, 1fr) 20px; align-items: baseline; gap: 12px; padding: 14px 2px;
}
.val summary::-webkit-details-marker { display: none; }
.val summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.val .n { font-size: 1.5rem; font-weight: 600; color: var(--accent); line-height: 1; font-variant-numeric: tabular-nums; }
.val .t { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; }
.val .t span { color: var(--muted); }
.val .pl { width: 20px; height: 20px; color: var(--muted); align-self: center; transition: transform 0.4s var(--ease), color 0.3s; }
.val[open] .pl { transform: rotate(45deg); color: var(--accent); }
.val .practice { padding: 0 2px 16px calc(44px + 12px + 2px); }
.val[open] .practice { animation: open 0.5s var(--ease-out); }
@keyframes open { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.val.static summary { cursor: default; grid-template-columns: 44px minmax(0, 1fr); }

.list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.list li { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 10px; color: var(--muted); font-size: 0.97rem; }
.list li svg { width: 16px; height: 16px; color: var(--accent); margin-top: 4px; }

/* ---------- blocos simples ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.box { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; }
.qs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; counter-reset: q; }
.qs li { counter-increment: q; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; align-items: baseline; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); font-weight: 500; }
.qs li::before { content: counter(q); color: var(--accent); font-weight: 600; font-size: 1.3rem; line-height: 1; }

.defs { display: grid; grid-template-columns: 140px minmax(0, 1fr); border-top: 1px solid var(--line); }
.defs dt, .defs dd { margin: 0; padding: 14px 0; border-bottom: 1px solid var(--line); }
.defs dt { font-family: var(--label); font-weight: 600; font-size: 0.86rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--accent); padding-top: 17px; }
.defs dd { color: var(--soft); }
.defs dd.big { font-size: 1.4rem; font-weight: 600; color: var(--fg); }
.defs dd.big .lt { font-weight: 300; }

/* convite */
.join { border: 1px solid var(--accent); border-radius: var(--r); background: var(--surface); padding: 22px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px 24px; align-items: center; }
.join h2 { font-size: 1.6rem; }
.join p { color: var(--muted); margin-top: 6px; }

/* ---------- papéis de parede ---------- */
.wp-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; margin-bottom: 14px; }
.wps { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 24px) / 3.25); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.wps:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: var(--r); }
.wp { scroll-snap-align: start; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); overflow: hidden; display: flex; flex-direction: column; }
.wp-thumb { position: relative; aspect-ratio: 16 / 9; max-width: 100%; background: #000; }
.wp-thumb .d { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.wp-thumb .m { position: absolute; right: 10px; bottom: 10px; width: 17%; height: auto; aspect-ratio: 1290 / 2796; object-fit: cover; border-radius: 5px; border: 1px solid var(--line-2); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.6); }
.wp-info { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 10px; }
.wp-info .name { font-size: 1rem; }
.wp-info .desc { margin-top: 1px; }
.wp-links { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.wp-links .dl { justify-content: center; }
.dl { display: inline-flex; align-items: center; gap: 6px; padding: 6px 9px; border-radius: 8px; border: 1px solid var(--line-2); text-decoration: none; color: var(--fg); font-family: var(--label); font-weight: 600; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em; transition: border-color 0.25s, color 0.25s; white-space: nowrap; }
.dl svg { width: 15px; height: 15px; color: var(--accent); }
.dl:hover { border-color: var(--accent); }
.dl:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.dl small { color: var(--dim); font-weight: 500; letter-spacing: 0.04em; }
@media (max-width: 760px) { .wps { grid-auto-columns: 80%; } }

/* ---------- formulário ---------- */
.form { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); padding: clamp(18px, 3vw, 26px); }
.form form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 0.9rem; font-weight: 500; }
.field label span { color: var(--dim); font-weight: 400; }
.input { width: 100%; font: 400 1rem/1.4 var(--font); color: var(--fg); background: #000; border: 1px solid var(--line-2); border-radius: 10px; padding: 11px 13px; transition: border-color 0.25s, box-shadow 0.25s; }
.input::placeholder { color: #7d8689; }
.input:hover { border-color: #3b4246; }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(243, 146, 0, 0.18); }
.input[aria-invalid="true"] { border-color: #ff7a6b; }
textarea.input { min-height: 110px; resize: vertical; }
select.input { appearance: none; padding-right: 40px; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
.err { font-size: 0.84rem; color: #ff9b8f; }
.err:empty { display: none; }
.form-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.form-foot p { color: var(--dim); font-size: 0.85rem; flex: 1 1 220px; }
.tip { border-left: 2px solid var(--accent); padding-left: 14px; color: var(--muted); font-size: 0.95rem; }
.toast { position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 20px); z-index: 50; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; padding: 12px 18px; border-radius: 10px; max-width: calc(100% - 32px); background: var(--surface-2); border: 1px solid var(--line-2); transition: transform 0.5s var(--ease), opacity 0.5s var(--ease); }
.toast.show { transform: translate(-50%, 0); opacity: 1; }

/* ---------- rodapé ---------- */
.foot { border-top: 1px solid var(--line); overflow: hidden; }
.foot .row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; padding-block: 18px 6px; font-family: var(--label); text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.75rem; color: var(--dim); }
.foot nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.foot nav a { text-decoration: none; color: var(--muted); }
.foot nav a:hover { color: var(--fg); }
.giant { display: block; font-weight: 600; font-size: clamp(4rem, 19vw, 11.5rem); line-height: 0.8; letter-spacing: -0.045em; margin: 14px 0 -0.13em -0.04em; white-space: nowrap; user-select: none; pointer-events: none; background: linear-gradient(180deg, #2b3134 0%, rgba(43, 49, 52, 0) 92%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.giant i { font-style: normal; color: var(--accent); -webkit-text-fill-color: var(--accent); }

/* ---------- movimento ---------- */
@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise 0.8s var(--ease-out) both; }
  .d1 { animation-delay: 0.06s; } .d2 { animation-delay: 0.12s; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
  .js .reveal { transform: translateY(20px); opacity: 0.4; transition: transform 0.8s var(--ease-out), opacity 0.8s var(--ease-out); }
  .js .reveal.in { transform: none; opacity: 1; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; } }

/* ---------- responsivo ---------- */
@media (max-width: 760px) {
  .links { display: none; }
  .menu-btn { display: block; }
  .hero-bg { width: 100%; -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,0.6) 60%, transparent 100%); mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,0.6) 60%, transparent 100%); }
  .hero-bg img.on { opacity: 0.32; }
  .groups, .groups .full .tools, .split, .qs, .form form { grid-template-columns: minmax(0, 1fr); }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .facts > div { padding: 12px 0; }
  .facts > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .defs { grid-template-columns: minmax(0, 1fr); }
  .defs dt { border-bottom: 0; padding: 14px 0 0; }
  .defs dd { padding-top: 4px; }
  .join { grid-template-columns: minmax(0, 1fr); }
  .val .practice { padding-left: 2px; }
}
