/* ═══════════════ Pyramide Controls — novo site (protótipo) ═══════════════ */

@font-face { font-family: 'Titillium Web'; src: url('../fonts/TitilliumWeb-Light.ttf') format('truetype'); font-weight: 300; font-display: swap; }
@font-face { font-family: 'Titillium Web'; src: url('../fonts/TitilliumWeb-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Titillium Web'; src: url('../fonts/TitilliumWeb-SemiBold.ttf') format('truetype'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Titillium Web'; src: url('../fonts/TitilliumWeb-Bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Titillium Web'; src: url('../fonts/TitilliumWeb-Black.ttf') format('truetype'); font-weight: 900; font-display: swap; }

:root {
  --bg: #0B0E14;
  --bg-alt: #10141D;
  --panel: #141A24;
  --line: #232B38;
  --text: #F2F5F9;
  --muted: #94A0B4;
  --lime: #A3E635;
  --mint: #6EE7B7;
  --lime-dim: rgba(163, 230, 53, .12);
  --radius: 14px;
  --header-h: 72px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Titillium Web', 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}
::selection { background: var(--lime); color: #0B0E14; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.dot { color: var(--lime); }

/* ─────────── header ─────────── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: rgba(11, 14, 20, 0);
  transition: background .35s ease, box-shadow .35s ease;
}
.site-header.scrolled {
  background: rgba(11, 14, 20, .82);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.header-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 24px;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand-logo { height: 48px; width: auto; }
.main-nav { display: flex; gap: 28px; }
.main-nav a {
  font-size: .95rem; font-weight: 600; color: var(--muted);
  transition: color .2s;
}
.main-nav a:hover { color: var(--lime); }

/* ─────────── buttons ─────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 28px; border-radius: 999px;
  font-family: inherit; font-weight: 700; font-size: 1rem;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  cursor: pointer;
}
.btn-sm { padding: 9px 20px; font-size: .9rem; }
.btn-primary { background: var(--lime); color: #0B0E14; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(163, 230, 53, .35); }
.btn-ghost { border: 1px solid var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--lime); color: var(--lime); }

/* ─────────── hero ─────────── */
.hero-pin { position: relative; }
.hero-stage { position: relative; height: 100vh; overflow: hidden; }
#unsCanvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

.hero-copy {
  position: absolute; z-index: 3;
  left: max(24px, calc((100vw - 1160px) / 2));
  top: 50%; transform: translateY(-50%);
  max-width: 560px;
  will-change: opacity, filter;
}
.hero-kicker {
  color: var(--mint); font-weight: 600; letter-spacing: .18em;
  text-transform: uppercase; font-size: .82rem; margin-bottom: 14px;
}
.hero-title {
  font-size: clamp(3rem, 7.2vw, 5.6rem);
  font-weight: 900; line-height: 1.02; letter-spacing: -.01em;
  margin-bottom: 22px;
}
.hero-sub { color: var(--muted); font-size: 1.15rem; max-width: 46ch; margin-bottom: 34px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-caption {
  position: absolute; z-index: 3; left: 50%; bottom: 12vh;
  transform: translateX(-50%);
  font-size: clamp(1.15rem, 2.2vw, 1.7rem); font-weight: 300;
  color: var(--muted); white-space: nowrap;
  opacity: 0; will-change: opacity, filter;
  text-shadow: 0 2px 26px rgba(0, 0, 0, .9), 0 0 8px rgba(11, 14, 20, .8);
}
.hero-caption strong { color: var(--text); font-weight: 700; }
.caption-b strong { color: var(--lime); }

.scroll-hint {
  position: absolute; z-index: 3; left: 50%; bottom: 26px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--muted); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  transition: opacity .3s;
}
.scroll-hint-wheel {
  width: 22px; height: 36px; border: 1.5px solid var(--muted); border-radius: 12px;
  position: relative;
}
.scroll-hint-wheel::after {
  content: ''; position: absolute; left: 50%; top: 7px; transform: translateX(-50%);
  width: 3px; height: 7px; border-radius: 2px; background: var(--lime);
  animation: wheel 1.8s ease-in-out infinite;
}
@keyframes wheel { 0%, 100% { transform: translate(-50%, 0); opacity: 1; } 55% { transform: translate(-50%, 12px); opacity: .1; } }

/* ─────────── sections ─────────── */
.section { padding: 120px 0; position: relative; }
.section-alt { background: var(--bg-alt); }
.eyebrow {
  color: var(--mint); font-weight: 600; letter-spacing: .18em;
  text-transform: uppercase; font-size: .8rem; margin-bottom: 16px;
}
.section-title {
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  font-weight: 900; line-height: 1.08; margin-bottom: 56px;
}
.statement {
  font-size: clamp(2rem, 4.6vw, 3.6rem);
  font-weight: 900; line-height: 1.12; margin-bottom: 56px;
}
.statement em { font-style: normal; color: var(--lime); }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }

/* manifesto */
.pain { border-top: 1px solid var(--line); padding-top: 22px; }
.pain-n { color: var(--lime); font-weight: 700; font-size: .9rem; letter-spacing: .1em; display: block; margin-bottom: 10px; }
.pain p { color: var(--muted); }
.pain strong { color: var(--text); }

/* cards */
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 30px;
  transition: transform .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-6px); border-color: rgba(163, 230, 53, .45); }
.card h3 { font-size: 1.35rem; font-weight: 700; margin-bottom: 12px; }
.card p { color: var(--muted); font-size: .98rem; margin-bottom: 18px; }
.card p strong { color: var(--text); }
.card-tags { color: var(--mint); font-size: .82rem; font-weight: 600; letter-spacing: .04em; }

/* arquitetura */
.arch {
  display: flex; align-items: center; justify-content: center; gap: 28px;
  flex-wrap: wrap; margin-bottom: 26px;
}
.arch-col { display: flex; flex-direction: column; gap: 12px; min-width: 180px; }
.arch-label {
  color: var(--muted); font-size: .78rem; letter-spacing: .16em; text-transform: uppercase;
  margin-bottom: 4px;
}
.arch-node {
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px;
  padding: 12px 18px; font-weight: 600; font-size: .95rem;
}
.arch-flow { color: var(--lime); font-size: 1.6rem; font-weight: 700; }
.arch-hub { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.arch-hub-core {
  width: 190px; height: 190px; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-weight: 900; font-size: 2.2rem; color: #0B0E14;
  background: radial-gradient(circle at 35% 30%, var(--mint), var(--lime) 70%);
  box-shadow: 0 0 70px rgba(163, 230, 53, .35);
}
.arch-hub-core small { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.arch-hub-proto { color: var(--mint); font-size: .85rem; font-weight: 600; }
.arch-note { text-align: center; color: var(--muted); font-size: .95rem; }

/* método */
.step {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 30px;
}
.step-n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1.5px solid var(--lime); color: var(--lime);
  font-weight: 700; font-size: 1.2rem; margin-bottom: 18px;
}
.step h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: .98rem; }
.step p strong { color: var(--text); }

.numbers {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px;
  margin-top: 72px; border-top: 1px solid var(--line); padding-top: 48px;
}
.number strong { font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: 900; color: var(--lime); display: block; line-height: 1; }
.number span { color: var(--muted); font-size: .92rem; display: block; margin-top: 8px; max-width: 22ch; }

/* stack */
.stack-sub { color: var(--muted); margin: -36px 0 36px; max-width: 60ch; }
.stack-badges { display: flex; flex-wrap: wrap; gap: 12px; list-style: none; }
.stack-badges li {
  border: 1px solid var(--line); border-radius: 999px; padding: 9px 20px;
  color: var(--muted); font-weight: 600; font-size: .95rem;
  transition: color .2s, border-color .2s;
}
.stack-badges li:hover { color: var(--lime); border-color: rgba(163, 230, 53, .5); }

/* contato */
.contato { padding: 160px 0; text-align: center; }
.contato::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 60% 50% at 50% 100%, rgba(163, 230, 53, .08), transparent);
}
.contato-inner { position: relative; }
.contato .statement { margin-bottom: 20px; }
.contato-sub { color: var(--muted); font-size: 1.1rem; margin-bottom: 40px; }
.contato .hero-ctas { justify-content: center; }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-logo { height: 26px; width: auto; opacity: .75; }
.site-footer p { color: var(--muted); font-size: .88rem; }
.site-footer a:hover { color: var(--lime); }

/* ─────────── responsivo ─────────── */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr; }
  .numbers { grid-template-columns: repeat(2, 1fr); }
  .main-nav { display: none; }
  .arch { flex-direction: column; }
  .arch-flow { transform: rotate(90deg); }
  .section { padding: 80px 0; }

  /* header compacto */
  :root { --header-h: 60px; }
  .brand-logo { height: 34px; }
  .header-inner { padding: 0 16px; }
  .site-header .btn-sm { padding: 8px 14px; font-size: .82rem; }

  /* hero: símbolo em cima (hero.js sobe a cena), texto ancorado embaixo */
  .hero-copy {
    top: auto; bottom: 9vh; transform: none;
    left: 24px; right: 24px; max-width: none;
  }
  .hero-title { font-size: clamp(2.5rem, 12vw, 3.6rem); }
  .hero-sub { font-size: 1.02rem; margin-bottom: 24px; }
  .hero-ctas .btn { padding: 12px 22px; font-size: .95rem; }
  .scroll-hint { display: none; }

  .hero-caption {
    white-space: normal; text-align: center;
    width: calc(100vw - 48px); bottom: 14vh;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scroll-hint-wheel::after { animation: none; }
}
