/* =========================================================
   TEKOORAMA — Coletivo Cultural de Música e Arte Visionária
   Identidade: marrom-terra profundo + verde menta neon,
   grafismos indígenas e circuitos.
   ========================================================= */
:root {
  --bg: #170d07;
  --bg-2: #22140b;
  --mint: #3ef0b0;
  --mint-dim: rgba(62, 240, 176, .55);
  --ochre: #7d5323;
  --crimson: #8e0b2c;
}

html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: #e8e1d8;
  font-family: "Space Grotesk", system-ui, sans-serif;
  overflow-x: hidden;
}
::selection { background: var(--mint); color: var(--bg); }
.font-display { font-family: "Orbitron", "Space Grotesk", sans-serif; }
.tracking-mega { letter-spacing: .55em; }

/* ---------- Fundos ---------- */
.bg-noise::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 60; opacity: .06;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.bg-grid {
  background-image:
    linear-gradient(rgba(62, 240, 176, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(62, 240, 176, .06) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at center, #000 25%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 25%, transparent 72%);
}
/* Padrão labirinto (grafismo indígena) */
.bg-maze {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='64' height='64' fill='none' stroke='%233ef0b0' stroke-width='3'><path d='M4 4h56v56H12V12h40v40H20V20h24v24H28V28h8v8'/></svg>");
  background-size: 64px 64px;
}
.bg-zigzag {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='40' height='20' fill='none' stroke='%233ef0b0' stroke-width='2'><path d='M0 18 10 4l10 14L30 4l10 14'/></svg>");
  background-size: 40px 20px;
}

.orb { position: absolute; border-radius: 9999px; filter: blur(110px); pointer-events: none; }

/* ---------- Texto ---------- */
.text-mint { color: var(--mint); }
.glow { text-shadow: 0 0 22px rgba(62, 240, 176, .55), 0 0 2px rgba(62, 240, 176, .9); }
.img-glow { filter: drop-shadow(0 0 14px rgba(62, 240, 176, .55)) drop-shadow(0 0 2px rgba(62, 240, 176, .8)); }
.text-gradient {
  background: linear-gradient(90deg, #3ef0b0, #b6ffe4 40%, #3ef0b0 60%, #1fb486);
  background-size: 250% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shine 7s linear infinite;
}
@keyframes shine { to { background-position: 250% center; } }

/* Glitch no hover */
.glitch { position: relative; }
.glitch:hover { animation: glitch .35s steps(2) 2; }
@keyframes glitch {
  0% { transform: translate(0); filter: none; }
  25% { transform: translate(-2px, 1px); filter: drop-shadow(2px 0 var(--crimson)); }
  50% { transform: translate(2px, -1px); filter: drop-shadow(-2px 0 var(--mint)); }
  100% { transform: translate(0); }
}

/* ---------- Cards ---------- */
.panel {
  background: linear-gradient(160deg, rgba(62, 240, 176, .055), rgba(34, 20, 11, .55) 45%);
  border: 1px solid rgba(62, 240, 176, .16);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.corners { position: relative; }
.corners::before, .corners::after {
  content: ""; position: absolute; width: 18px; height: 18px; pointer-events: none;
  border-color: var(--mint); border-style: solid; transition: all .35s ease;
}
.corners::before { top: -1px; left: -1px; border-width: 2px 0 0 2px; }
.corners::after { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; }
.card-hover { transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease; }
.card-hover:hover {
  transform: translateY(-6px);
  border-color: rgba(62, 240, 176, .55);
  box-shadow: 0 25px 60px -25px rgba(62, 240, 176, .45);
}
.card-hover:hover.corners::before, .card-hover:hover.corners::after { width: 36px; height: 36px; }

/* Borda animada conic */
.border-run { position: relative; }
.border-run::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: conic-gradient(from var(--a, 0deg), transparent 0 70%, var(--mint) 85%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: spin 5s linear infinite;
}
@property --a { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes spin { to { --a: 360deg; } }

/* ---------- Botões ---------- */
.btn-mint {
  background: var(--mint); color: var(--bg); font-weight: 700;
  box-shadow: 0 0 0 1px var(--mint), 0 0 30px -6px var(--mint);
  transition: transform .2s ease, box-shadow .25s ease, background .2s;
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
}
.btn-mint:hover { transform: translateY(-2px); background: #74ffcb; box-shadow: 0 0 0 1px #74ffcb, 0 0 45px -4px var(--mint); }
.btn-line {
  border: 1px solid rgba(62, 240, 176, .4); color: var(--mint);
  transition: all .2s ease;
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
}
.btn-line:hover { background: rgba(62, 240, 176, .1); border-color: var(--mint); box-shadow: inset 0 0 25px -10px var(--mint); }

/* ---------- Formulário ---------- */
.input {
  width: 100%;
  background: rgba(10, 6, 3, .7);
  border: 1px solid rgba(62, 240, 176, .18);
  border-radius: .6rem;
  padding: .8rem 1rem;
  color: #f4efe9;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.input::placeholder { color: #7c6c5d; }
.input:focus { border-color: var(--mint); box-shadow: 0 0 0 3px rgba(62, 240, 176, .15); }
.input.invalid { border-color: #ff4d6d; box-shadow: 0 0 0 3px rgba(255, 77, 109, .15); }
select.input option { background: #1b100a; }
.label { display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .2em; color: #a8988a; margin-bottom: .45rem; font-family: "Orbitron", sans-serif; }

.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: flex; align-items: center; gap: .6rem;
  padding: .75rem 1rem; border-radius: .6rem; cursor: pointer;
  border: 1px solid rgba(62, 240, 176, .15); background: rgba(62, 240, 176, .03);
  transition: all .2s ease; user-select: none;
}
.chip span b { color: var(--mint); font-size: 1.1rem; width: 1.2rem; text-align: center; }
.chip span:hover { border-color: rgba(62, 240, 176, .5); }
.chip input:checked + span {
  border-color: var(--mint); color: #fff;
  background: rgba(62, 240, 176, .13);
  box-shadow: 0 0 22px -8px var(--mint), inset 0 0 0 1px rgba(62, 240, 176, .3);
}
.chip input:focus-visible + span { outline: 2px solid var(--mint); outline-offset: 2px; }

.step { display: none; }
.step.active { display: block; animation: fadeUp .45s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- Animações ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal.visible { opacity: 1; transform: none; }

.marquee { display: flex; width: max-content; animation: marquee 30s linear infinite; }
@keyframes marquee { to { transform: translateX(-50%); } }

.float { animation: float 7s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-14px); } }
.spin-slow { animation: rot 40s linear infinite; }
.spin-rev { animation: rot 60s linear infinite reverse; }
@keyframes rot { to { transform: rotate(360deg); } }
.pulse-ring { animation: pring 3s ease-out infinite; }
@keyframes pring { 0% { transform: scale(.85); opacity: .8; } 100% { transform: scale(1.5); opacity: 0; } }

.eq span { display: inline-block; width: 3px; margin: 0 1.5px; border-radius: 2px; background: var(--mint); animation: eq 1s ease-in-out infinite; }
.eq span:nth-child(2) { animation-delay: .15s; }
.eq span:nth-child(3) { animation-delay: .3s; }
.eq span:nth-child(4) { animation-delay: .45s; }
.eq span:nth-child(5) { animation-delay: .6s; }
@keyframes eq { 0%, 100% { height: 5px; } 50% { height: 22px; } }

/* Linha de scan sobre imagens */
.scan { position: relative; overflow: hidden; }
.scan::after {
  content: ""; position: absolute; left: 0; right: 0; height: 30%; top: -30%; pointer-events: none;
  background: linear-gradient(to bottom, transparent, rgba(62, 240, 176, .18), transparent);
  animation: scan 4s linear infinite;
}
@keyframes scan { to { top: 130%; } }

/* Loader */
#loader { transition: opacity .7s ease, visibility .7s; }
#loader.hide { opacity: 0; visibility: hidden; }
.load-bar { animation: loadbar 1.4s ease forwards; }
@keyframes loadbar { from { width: 0; } to { width: 100%; } }

/* Cursor de luz */
#cursor-glow {
  position: fixed; width: 420px; height: 420px; border-radius: 50%; pointer-events: none; z-index: 1;
  background: radial-gradient(circle, rgba(62, 240, 176, .09), transparent 65%);
  transform: translate(-50%, -50%);
}

/* Scrollbar */
::-webkit-scrollbar { width: 9px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--mint-dim); border-radius: 10px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
