/* variaveis-base.css — Tokens de design (cores, raios, fontes), reset global e componentes base (botões, chips, tipografia, serigrafia) (extraído de index.html, linhas 38–151) */

/* ═══════════════════════════════════════════════════════════
   helpDJ — sistema visual
   Painel de equipamento pro-audio: grafite quente, serigrafia
   em maiuscula estreita, laranja CUE da Pioneer como acao.
═══════════════════════════════════════════════════════════ */
:root {
  --void:      #06070B;
  --panel:     #10121A;
  --panel-2:   #171A24;
  --panel-3:   #212533;
  --rule:      #292F40;
  --rule-soft: #1B202E;
  --ink:       #F4F3F0;
  --ink-dim:   #B6BAC8;
  --ink-faint: #8E93A4;

  --brand:     #2E7FFF;   /* azul da marca: links, ícones, informação */
  --brand-hi:  #4A90FF;   /* LED aceso, texto azul sobre fundo escuro */
  --brand-press:#1F63D6;  /* fundo do botão azul (texto branco) */
  --brand-lo:  #1B4FA8;   /* estado pressionado */
  --brand-deep:#0A215E;   /* profundidade óptica cobalto escuro */
  --brand-glow:rgba(46,127,255,.28);
  --cue:       #FF6B1A;   /* laranja como texto, ícone ou traço de ação */
  --cue-fill:  #FF6B1A;   /* fundo do botão principal (texto cue-ink) */
  --cue-ink:   #170A02;   /* texto sobre o laranja: nunca branco */
  --cue-hi:    #FF8340;   /* hover do laranja e texto laranja sobre fundo escuro */
  --cue-lo:    #A8400C;   /* estado pressionado */
  --cue-glow:  rgba(255,107,26,.26);
  --signal:    #4ADE80;
  --warn:      #FBBF24;
  --danger:    #FB5A5A;
  --focus:     #4A90FF;   /* anel de foco */

  --paper:     #F7F5F0;
  --paper-ink: #17150F;

  --r-xs: 4px; --r-sm: 8px; --r: 12px; --r-lg: 18px; --r-xl: 24px;
  --disp: 'Anton', 'Haettenschweiler', 'Arial Narrow Bold', 'Arial Narrow', 'Impact', sans-serif;
  --body: 'Archivo', system-ui, -apple-system, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --shell: min(1240px, 92vw);

  /* Liquid Glass Pro-Audio: vidro óptico fumê profundo, azul cobalto escuro (sem branco leitoso), borda especular Fresnel e refração interna */
  --vidro-grao: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHdpZHRoPScxNDAnIGhlaWdodD0nMTQwJz48ZmlsdGVyIGlkPSduJz48ZmVUdXJidWxlbmNlIHR5cGU9J2ZyYWN0YWxOb2lzZScgYmFzZUZyZXF1ZW5jeT0nLjknIG51bU9jdGF2ZXM9JzInIHN0aXRjaFRpbGVzPSdzdGl0Y2gnLz48ZmVDb2xvck1hdHJpeCB2YWx1ZXM9JzAgMCAwIDAgMSAwIDAgMCAwIDEgMCAwIDAgMCAxIDAgMCAwIC4zNSAwJy8+PC9maWx0ZXI+PHJlY3Qgd2lkdGg9JzEwMCUnIGhlaWdodD0nMTAwJScgZmlsdGVyPSd1cmwoI24pJyBvcGFjaXR5PScuMTInLz48L3N2Zz4=");
  --vidro-brilho: linear-gradient(180deg, rgba(255,255,255,.30) 0%, rgba(210,234,255,.07) 16%, rgba(255,255,255,0) 32%);
  --vidro-azul: var(--vidro-brilho), linear-gradient(124deg, rgba(255,255,255,.14) 0%, rgba(255,255,255,0) 32%, rgba(46,127,255,.10) 64%, rgba(3,12,42,.52) 100%), linear-gradient(180deg, rgba(7,24,78,.58) 0%, rgba(11,37,114,.36) 46%, rgba(4,13,44,.74) 100%), radial-gradient(ellipse 80% 56% at 50% 114%, rgba(74,144,255,.52), rgba(10,33,94,0) 68%), var(--vidro-grao);
  --vidro-laranja: var(--vidro-brilho), linear-gradient(124deg, rgba(255,255,255,.18) 0%, rgba(255,255,255,0) 32%, rgba(120,34,0,.26) 100%), radial-gradient(ellipse 82% 58% at 50% 114%, rgba(255,198,142,.48), rgba(255,107,26,0) 68%), var(--vidro-grao);
  --vidro-fundo: linear-gradient(142deg, rgba(255,255,255,.08) 0%, rgba(14,20,36,.64) 26%, rgba(7,9,17,.80) 70%, rgba(31,99,214,.15) 100%);
  --vidro-fundo-alto: linear-gradient(142deg, rgba(255,255,255,.11) 0%, rgba(18,26,48,.70) 30%, rgba(8,11,22,.84) 72%, rgba(46,127,255,.20) 100%);
  --vidro-borda: rgba(168,204,255,.17);
  --vidro-borda-hi: rgba(120,178,255,.46);
  --vidro-anel: linear-gradient(135deg, rgba(255,255,255,.42) 0%, rgba(74,144,255,.32) 22%, rgba(255,255,255,.04) 50%, rgba(46,127,255,.22) 82%, rgba(255,107,26,.24) 100%);
  --vidro-sombra: inset 0 1px 0 rgba(255,255,255,.24), inset 1px 0 0 rgba(255,255,255,.07), inset 0 -1px 0 rgba(46,127,255,.16), 0 24px 56px rgba(0,0,0,.62);
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 86px;
}
body {
  background: var(--void); color: var(--ink);
  font-family: var(--body); font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
  position: relative;
}
/* Atmosfera óptica de estúdio futurista: orbes de luz profunda passam atrás dos vidros durante a rolagem */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(56vw 48vh at 10% 8%, rgba(24,94,255,.28), rgba(24,94,255,0) 68%),
    radial-gradient(46vw 44vh at 92% 28%, rgba(16,66,204,.24), rgba(16,66,204,0) 68%),
    radial-gradient(42vw 38vh at 22% 62%, rgba(31,99,214,.18), rgba(31,99,214,0) 70%),
    radial-gradient(40vw 36vh at 84% 88%, rgba(255,107,26,.14), rgba(255,107,26,0) 70%);
}
/* Grade técnica de precisão pro-audio (HUD sutil) */
body::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(120,170,255,.042) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120,170,255,.042) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 88% 72% at 50% 28%, #000 35%, transparent 100%);
  mask-image: radial-gradient(ellipse 88% 72% at 50% 28%, #000 35%, transparent 100%);
}
img { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 3px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration:.01ms !important; transition-duration:.01ms !important; scroll-behavior:auto !important; } }

.shell { width: var(--shell); margin: 0 auto; }
.stack { display: flex; flex-direction: column; }

/* ── SERIGRAFIA (labels de painel / telemetria HUD) ── */
.silk {
  font-family: var(--mono); font-size: 10.5px; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase; color: var(--ink-faint);
  display: inline-flex; align-items: center; gap: 9px;
}
.silk::before {
  content: ""; width: 14px; height: 1px; background: var(--rule); flex-shrink: 0;
}
.silk.lit { color: var(--brand-hi); }
.silk.lit::before { width: 7px; height: 7px; border-radius: 50%; background: var(--brand-hi); box-shadow: 0 0 10px var(--brand), 0 0 0 3px rgba(46,127,255,.22); }
.silk.cue { color: var(--cue-hi); }
.silk.cue::before { width: 7px; height: 7px; border-radius: 50%; background: var(--cue); box-shadow: 0 0 10px var(--cue), 0 0 0 3px rgba(255,107,26,.22); }
.silk.plain::before { display: none; }

h1,h2,h3 { font-family: var(--disp); font-weight: 400; letter-spacing: .008em; line-height: 1.12; text-wrap: balance; }
.h-xl { font-size: clamp(38px, 5.6vw, 76px); text-transform: uppercase; }
.h-lg { font-size: clamp(30px, 4vw, 52px); text-transform: uppercase; }
.h-md { font-size: clamp(23px, 2.5vw, 33px); text-transform: uppercase; }
.h-sm { font-family: var(--body); font-weight: 700; font-size: 19px; line-height: 1.25; letter-spacing: -.01em; }
.lede { font-size: clamp(15.5px, 1.5vw, 18.5px); color: var(--ink-dim); line-height: 1.62; max-width: 62ch; }
.muted { color: var(--ink-dim); }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* ── BOTOES ── */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 22px; border-radius: var(--r);
  font-family: var(--body); font-weight: 600; font-size: 14.5px; letter-spacing: .01em;
  border: 1px solid transparent; transition: background .18s, border-color .18s, color .18s, box-shadow .2s, transform .12s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(.992); }
.btn-brand { background: var(--brand-press); color: #fff; }
.btn-brand:hover { background: var(--brand-press); box-shadow: 0 0 0 3px var(--brand-glow); }
.btn-brand:active { background: var(--brand-lo); }
.btn-cue { background: var(--cue-fill); color: var(--cue-ink); }
.btn-cue:hover { background: var(--cue-hi); }
.btn-ghost {
  border-color: var(--vidro-borda); color: var(--ink);
  background: var(--vidro-fundo);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.16), 0 10px 26px rgba(0,0,0,.38);
  -webkit-backdrop-filter: blur(14px) saturate(165%); backdrop-filter: blur(14px) saturate(165%);
}
.btn-ghost:hover {
  border-color: var(--vidro-borda-hi);
  background: var(--vidro-fundo-alto);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.28), 0 12px 30px rgba(0,0,0,.5), 0 0 22px rgba(46,127,255,.18);
}
.btn-bare { color: var(--ink-dim); padding: 10px 14px; }
.btn-bare:hover { color: var(--ink); }
.btn-sm { padding: 9px 15px; font-size: 13px; min-height: 40px; }
.btn-lg { padding: 16px 30px; font-size: 16px; min-height: 54px; }
@media (max-width: 680px) { .btn-sm { min-height: 44px; } }
@media (max-width: 360px) { .btn-lg { padding-left: 18px; padding-right: 18px; } }
.btn-block { width: 100%; }
.btn:disabled { opacity: .4; cursor: not-allowed; }

/* ── VIDRO LÍQUIDO (CRISTAL COBALTO PROFUNDO & CRISTAL CUE) ──
   Azul profundo translúcido (sem branco leitoso) com menisco especular fino no topo e refração elétrica na base. */
.btn-brand, .btn-brand:hover, .btn-brand:active {
  background-image: var(--vidro-azul);
  border-color: rgba(112,174,255,.52);
  box-shadow:
    inset 0 1px 0 rgba(215,236,255,.46),
    inset 0 -1px 0 rgba(74,144,255,.35),
    inset 0 -14px 24px rgba(4,16,58,.58),
    0 12px 30px rgba(10,48,150,.48),
    0 2px 10px rgba(0,0,0,.5);
  text-shadow: 0 1px 3px rgba(3,12,40,.72);
}
.btn-brand:hover {
  border-color: rgba(154,204,255,.78);
  box-shadow:
    inset 0 1px 0 rgba(235,246,255,.62),
    inset 0 -1px 0 rgba(120,184,255,.5),
    inset 0 -14px 24px rgba(6,22,78,.52),
    0 14px 36px rgba(31,99,214,.6),
    0 0 0 3px var(--brand-glow);
}
.btn-cue, .btn-cue:hover, .btn-cue:active {
  background-image: var(--vidro-laranja);
  border-color: rgba(255,214,180,.72);
  box-shadow:
    inset 0 1px 0 rgba(255,244,230,.72),
    inset 0 -1px 0 rgba(168,64,12,.45),
    inset 0 -12px 20px rgba(150,48,4,.34),
    0 10px 28px rgba(255,107,26,.38),
    0 2px 10px rgba(0,0,0,.45);
}
.btn-cue:hover {
  border-color: rgba(255,232,208,.92);
  box-shadow:
    inset 0 1px 0 rgba(255,248,238,.85),
    inset 0 -12px 20px rgba(150,48,4,.30),
    0 14px 34px rgba(255,107,26,.54),
    0 0 0 3px var(--cue-glow);
}
/* Reflexo especular diagonal ao passar o ponteiro */
.btn-brand::after, .btn-cue::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(108deg, transparent 34%, rgba(255,255,255,.22) 48%, transparent 62%);
  transform: translateX(-130%); transition: transform .55s cubic-bezier(.22,1,.36,1);
}
@media (hover: hover) {
  .btn-brand:hover::after, .btn-cue:hover::after { transform: translateX(130%); }
}
.btn:disabled { background-image: none; box-shadow: none; text-shadow: none; }
.btn:disabled::after { display: none; }

/* Painel Liquid Glass com refração saturada e aro Fresnel especular */
.vidro {
  position: relative;
  background: var(--vidro-fundo);
  border: 1px solid var(--vidro-borda);
  box-shadow: var(--vidro-sombra);
  -webkit-backdrop-filter: blur(18px) saturate(195%); backdrop-filter: blur(18px) saturate(195%);
}
.vidro::before,
.vidro-aro::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: var(--vidro-anel);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: .72; transition: opacity .25s ease;
}
.vidro:hover::before,
.vidro-aro:hover::before { opacity: 1; }
/* Ponto especular dinâmico controlado pelo ponteiro (--mx/--my em boot.js) */
.vidro-luz { position: relative; }
.vidro-luz::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(320px circle at var(--mx, 22%) var(--my, 12%), rgba(120,184,255,.16), rgba(46,127,255,.04) 42%, transparent 72%);
  opacity: 0; transition: opacity .28s ease;
}
@media (hover: hover) {
  .vidro-luz:hover::after { opacity: 1; }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .vidro { background: var(--panel); }
}

/* ── CHIPS (cápsulas de vidro fumê) ── */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .05em;
  padding: 5px 11px; border-radius: 100px;
  border: 1px solid var(--vidro-borda);
  background: rgba(10,14,26,.68); color: var(--ink-dim);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.16);
  -webkit-backdrop-filter: blur(12px) saturate(160%); backdrop-filter: blur(12px) saturate(160%);
  white-space: nowrap;
}
.chip-brand  { border-color: rgba(74,144,255,.46); color: #7FB0FF; background: rgba(12,38,112,.42); box-shadow: inset 0 1px 0 rgba(170,210,255,.28), 0 0 14px rgba(46,127,255,.18); }
.chip-cue    { border-color: rgba(255,107,26,.48); color: #FFA36B; background: rgba(96,34,6,.36); box-shadow: inset 0 1px 0 rgba(255,200,160,.24); }
.chip-signal { border-color: rgba(74,222,128,.46); color: #86EFAC; background: rgba(8,48,26,.48); box-shadow: inset 0 1px 0 rgba(160,255,196,.24), 0 0 14px rgba(74,222,128,.14); }
.chip-warn   { border-color: rgba(251,191,36,.44); color: #FCD34D; background: rgba(68,46,6,.42); }
.chip-danger { border-color: rgba(251,90,90,.44);  color: #FCA5A5; background: rgba(68,14,18,.42); }

/* Mobile / touch (iOS Safari): evita estouro de VRAM de GPU no pinch-zoom (remove fixed masks e CABackdropLayers multiplos) */
@media (hover: none), (max-width: 900px) {
  body::before { position: absolute; inset: 0 0 auto 0; height: 100vh; }
  body::after { display: none; }
  .vidro, .chip, .nav, .foot, .hero .silk.lit, .hero-trust div, .deck, .lane, .step, .vitrine-card, .calc, .modal, .modal-box {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }
  .nav { background: rgba(6,8,15,.95); }
  .vidro, .deck, .lane, .step, .vitrine-card, .hero-trust div, .calc { background: rgba(10,15,30,.94); }
  .vidro::before, .vidro-aro::before, .deck::before, .vitrine-card::before { display: none !important; }
}

