:root {
  --bg: #050505;
  --text: #f3ead8;
  --muted: #b6aa96;
  --green: #66ff99;
  --orange: #ff8b3d;
  --line: rgba(243, 234, 216, 0.16);
  --panel: rgba(9, 10, 9, 0.9);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: #050505;
  color: var(--text);
  cursor: none;
  font-family: Inter, system-ui, sans-serif;
}

body.intro-lock .site-shell,
body.intro-lock .panel-backdrop,
body.intro-lock .service-panel,
body.intro-lock .whatsapp {
  pointer-events: none;
}

button,
a,
input,
textarea,
select {
  font: inherit;
}

button,
a {
  cursor: none;
}

.legal-page,
.legal-page a,
.legal-page button {
  cursor: auto;
}

.grain,
.scanlines {
  position: fixed;
  inset: 0;
  z-index: 30;
  pointer-events: none;
}

.grain {
  opacity: 0.11;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.22) 0 1px, transparent 1px),
    radial-gradient(circle at 70% 40%, rgba(255, 255, 255, 0.18) 0 1px, transparent 1px);
  background-size: 3px 3px, 5px 5px;
  mix-blend-mode: screen;
  animation: grainShift 0.5s steps(2) infinite;
}

.scanlines {
  background: repeating-linear-gradient(to bottom, rgba(255, 255, 255, 0.07) 0 1px, transparent 1px 4px);
  opacity: 0.38;
}

.cursor {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 60;
  width: 18px;
  height: 18px;
  border: 1px solid var(--green);
  border-radius: 50%;
  pointer-events: none;
  box-shadow: 0 0 20px var(--green);
  transform: translate3d(-50%, -50%, 0);
}

.intro {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #000;
  transition: opacity 0.9s ease, visibility 0.9s ease, transform 0.9s ease;
}

.intro::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--text);
  opacity: 0;
  pointer-events: none;
}

.intro.flash::after {
  animation: flashOut 0.78s ease forwards;
}

.intro.hidden {
  visibility: hidden;
  opacity: 0;
  transform: scale(1.08);
  pointer-events: none;
}

.intro-inner {
  width: min(900px, calc(100% - 32px));
  text-align: center;
}

.mini-label,
.eyebrow,
.panel-kicker,
.skip-intro,
.terminal-window,
.retro-btn,
.animated-cta,
.retro-form button {
  font-family: "Press Start 2P", monospace;
}

.mini-label,
.eyebrow,
.panel-kicker {
  color: var(--green);
  font-size: clamp(0.5rem, 1.4vw, 0.72rem);
  letter-spacing: 0;
  text-shadow: 0 0 14px rgba(102, 255, 153, 0.7);
}

.intro-message {
  min-height: 86px;
  margin: 24px 0;
  font-family: "Press Start 2P", monospace;
  font-size: clamp(1rem, 4vw, 2.4rem);
  line-height: 1.55;
  color: var(--text);
  text-shadow: 2px 0 rgba(255, 139, 61, 0.85), -2px 0 rgba(102, 255, 153, 0.75);
}

.loader {
  height: 10px;
  max-width: 420px;
  margin: 0 auto 28px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.loader span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--green), var(--orange));
  box-shadow: 0 0 22px var(--green);
  animation: loadBar 2.5s ease forwards;
}

.terminal-logs {
  min-height: 74px;
  color: var(--muted);
  font-family: Consolas, monospace;
  font-size: 0.84rem;
  text-align: left;
  width: min(430px, 100%);
  margin: 0 auto;
}

.terminal-logs p {
  margin: 6px 0;
  opacity: 0;
  animation: logFlash 1.8s ease forwards;
}

.realm-message {
  display: none;
  margin: 32px 0 0;
  font-family: "Press Start 2P", monospace;
  font-size: clamp(1.6rem, 6vw, 5.4rem);
  line-height: 1.15;
  text-shadow: 0 0 20px var(--green), 5px 0 rgba(255, 139, 61, 0.75), -5px 0 rgba(102, 255, 153, 0.65);
}

.intro.realm .intro-message,
.intro.realm .loader,
.intro.realm .terminal-logs {
  display: none;
}

.intro.realm .realm-message {
  display: block;
  animation: realmIn 0.9s cubic-bezier(.2,.8,.2,1) forwards;
}

.intro.glitching .intro-glitch {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(102, 255, 153, 0.15), transparent), rgba(255, 139, 61, 0.08);
  animation: glitchFlash 0.62s steps(2) infinite;
}

.skip-intro {
  position: absolute;
  bottom: 24px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.6rem;
  pointer-events: auto;
}

.site-shell {
  min-height: 100vh;
}

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  padding: 86px 20px 120px;
}

.hero-bg {
  position: absolute;
  inset: -6%;
  z-index: -3;
  background:
    linear-gradient(rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.86)),
    radial-gradient(circle at 50% 45%, rgba(102, 255, 153, 0.14), transparent 34%),
    linear-gradient(115deg, rgba(255, 139, 61, 0.16), transparent 36%),
    url("https://images.unsplash.com/photo-1519608487953-e999c86e7455?auto=format&fit=crop&w=1600&q=75") center/cover;
  transform: scale(1.04);
  transition: transform 0.7s ease;
}

.hero-bg.zoom {
  transform: scale(1.14);
}

.particles {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.live-badge {
  position: absolute;
  top: 24px;
  right: 24px;
  color: var(--green);
  font-size: 0.78rem;
}

.hero-content {
  width: min(980px, 100%);
  text-align: center;
  transform: translateY(-2vh);
}

.hero h2 {
  margin: 18px 0 20px;
  font-size: clamp(3rem, 11vw, 9.5rem);
  line-height: 0.9;
  font-weight: 800;
  text-shadow: 0 0 28px rgba(102, 255, 153, 0.55), 3px 0 rgba(255, 139, 61, 0.8);
}

.subtitle {
  margin: 0 auto 34px;
  color: var(--muted);
  font-family: "Press Start 2P", monospace;
  font-size: clamp(0.62rem, 1.5vw, 1rem);
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.retro-btn,
.animated-cta,
.retro-form button {
  min-height: 48px;
  border: 1px solid rgba(102, 255, 153, 0.45);
  background: rgba(0, 0, 0, 0.62);
  color: var(--text);
  box-shadow: inset 0 0 20px rgba(102, 255, 153, 0.09), 0 0 20px rgba(102, 255, 153, 0.18);
  padding: 14px 18px;
  font-size: 0.62rem;
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.retro-btn:hover,
.animated-cta:hover,
.retro-form button:hover {
  border-color: var(--orange);
  transform: translateY(-2px);
  box-shadow: 0 0 28px rgba(255, 139, 61, 0.35);
}

.stats {
  position: absolute;
  left: 24px;
  bottom: 24px;
  display: flex;
  gap: 18px;
}

.stats div {
  border-left: 1px solid var(--line);
  padding-left: 14px;
}

.stats strong {
  display: block;
  font-size: 1.7rem;
  color: var(--green);
}

.stats span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
}

.terminal-section {
  padding: 70px 20px;
  background: #050505;
}

.terminal-window {
  width: min(760px, 100%);
  margin: 0 auto;
  border: 1px solid var(--line);
  padding: 24px;
  background: rgba(255, 255, 255, 0.03);
  box-shadow: 0 0 40px rgba(102, 255, 153, 0.08);
}

.terminal-window p {
  margin: 14px 0;
  color: var(--green);
  font-size: clamp(0.62rem, 2vw, 0.82rem);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 26px 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: #050505;
}

.site-footer p {
  margin: 0;
  font-size: 0.86rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.site-footer a,
.legal-nav a,
.legal-card a {
  color: var(--green);
  text-decoration: none;
}

.site-footer a:hover,
.legal-nav a:hover,
.legal-card a:hover {
  color: var(--orange);
  text-shadow: 0 0 14px rgba(255, 139, 61, 0.55);
}

.legal-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding: 24px;
  background:
    radial-gradient(circle at 22% 0%, rgba(102, 255, 153, 0.1), transparent 34%),
    radial-gradient(circle at 86% 12%, rgba(255, 139, 61, 0.1), transparent 30%),
    #050505;
}

.legal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(980px, 100%);
  margin: 0 auto 28px;
  color: var(--muted);
  font-family: "Press Start 2P", monospace;
  font-size: 0.62rem;
}

.legal-nav div {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 16px;
}

.legal-card {
  width: min(980px, 100%);
  margin: 0 auto;
  border: 1px solid rgba(102, 255, 153, 0.28);
  background: rgba(5, 5, 5, 0.86);
  box-shadow: 0 0 55px rgba(102, 255, 153, 0.1), inset 0 0 26px rgba(255, 139, 61, 0.04);
  padding: clamp(24px, 5vw, 54px);
}

.legal-card h1 {
  margin: 12px 0 8px;
  font-size: clamp(2.3rem, 7vw, 5.6rem);
  line-height: 0.95;
  text-shadow: 0 0 24px rgba(102, 255, 153, 0.38), 2px 0 rgba(255, 139, 61, 0.72);
}

.legal-card h2 {
  margin: 34px 0 10px;
  color: var(--text);
  font-size: clamp(1.08rem, 2.5vw, 1.45rem);
}

.legal-card p {
  color: var(--muted);
  line-height: 1.8;
}

.legal-updated {
  margin-top: 0;
  color: var(--orange);
  font-weight: 700;
}

.panel-backdrop {
  position: fixed;
  inset: 0;
  z-index: 35;
  visibility: hidden;
  opacity: 0;
  background: rgba(0, 0, 0, 0.62);
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.panel-backdrop.show {
  visibility: visible;
  opacity: 1;
}

.service-panel {
  position: fixed;
  top: 50%;
  right: 24px;
  z-index: 40;
  width: min(520px, calc(100vw - 28px));
  max-height: calc(100vh - 48px);
  overflow: auto;
  visibility: hidden;
  opacity: 0;
  transform: translate(36px, -50%);
  border: 1px solid rgba(102, 255, 153, 0.38);
  background: var(--panel);
  box-shadow: 0 0 60px rgba(102, 255, 153, 0.18), inset 0 0 22px rgba(255, 139, 61, 0.06);
  padding: 26px;
  transition: opacity 0.35s ease, visibility 0.35s ease, transform 0.35s ease;
}

.service-panel.open {
  visibility: visible;
  opacity: 1;
  transform: translate(0, -50%);
}

.panel-close {
  position: absolute;
  top: 12px;
  right: 14px;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 2rem;
}

.service-panel h3 {
  margin: 12px 36px 8px 0;
  font-size: clamp(1.8rem, 5vw, 3.5rem);
  line-height: 1;
}

.price {
  color: var(--orange);
  font-weight: 800;
}

.panel-copy {
  color: var(--muted);
  line-height: 1.7;
}

.animated-cta {
  display: inline-flex;
  align-items: center;
  margin: 8px 0 18px;
}

.retro-form {
  display: grid;
  gap: 13px;
}

.retro-form label,
.retro-form legend {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.84rem;
}

.retro-form input,
.retro-form textarea,
.retro-form select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  padding: 12px;
  outline: none;
}

.retro-form textarea {
  min-height: 72px;
  resize: vertical;
}

.retro-form input:focus,
.retro-form textarea:focus,
.retro-form select:focus {
  border-color: var(--green);
  box-shadow: 0 0 18px rgba(102, 255, 153, 0.22);
}

.retro-form fieldset {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  border: 1px solid var(--line);
  margin: 0;
  padding: 14px;
}

.retro-form fieldset legend {
  padding: 0 8px;
  color: var(--green);
}

.retro-form fieldset label {
  display: flex;
  align-items: center;
}

.retro-form button {
  margin-top: 6px;
}

.whatsapp {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 45;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 1px solid var(--green);
  border-radius: 50%;
  background: #06110b;
  color: var(--green);
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 0 28px rgba(102, 255, 153, 0.42);
}

.shake {
  animation: shake 0.45s steps(2);
}

.flicker {
  animation: flicker 0.22s steps(2);
}

@keyframes loadBar {
  to { width: 100%; }
}

@keyframes grainShift {
  0% { transform: translate(0); }
  100% { transform: translate(2px, -2px); }
}

@keyframes logFlash {
  20%, 85% { opacity: 1; }
  100% { opacity: 0.32; }
}

@keyframes realmIn {
  0% { opacity: 0; transform: scale(0.88); filter: blur(10px); }
  100% { opacity: 1; transform: scale(1); filter: blur(0); }
}

@keyframes glitchFlash {
  0% { transform: translateX(-12px); filter: hue-rotate(0deg); }
  100% { transform: translateX(14px); filter: hue-rotate(90deg); }
}

@keyframes shake {
  0%, 100% { transform: translate(0); }
  20% { transform: translate(-7px, 3px); }
  40% { transform: translate(7px, -3px); }
  60% { transform: translate(-4px, -2px); }
  80% { transform: translate(4px, 2px); }
}

@keyframes flicker {
  0%, 100% { opacity: 1; }
  40% { opacity: 0.72; }
  60% { opacity: 0.92; }
}

@keyframes flashOut {
  0%, 100% { opacity: 0; }
  42% { opacity: 0.9; }
}

@media (max-width: 760px) {
  body {
    cursor: auto;
  }

  button,
  a {
    cursor: pointer;
  }

  .cursor {
    display: none;
  }

  .hero {
    min-height: 100svh;
    padding: 76px 16px 150px;
  }

  .hero-actions {
    display: grid;
    width: 100%;
  }

  .retro-btn {
    width: 100%;
  }

  .live-badge {
    left: 16px;
    right: auto;
    top: 18px;
  }

  .stats {
    right: 16px;
    left: 16px;
    justify-content: space-between;
    gap: 8px;
  }

  .stats strong {
    font-size: 1.25rem;
  }

  .stats span {
    font-size: 0.68rem;
  }

  .service-panel {
    top: auto;
    right: 14px;
    bottom: 14px;
    max-height: 86vh;
    transform: translateY(36px);
    padding: 22px;
  }

  .service-panel.open {
    transform: translateY(0);
  }

  .retro-form fieldset {
    grid-template-columns: 1fr;
  }

  .site-footer,
  .legal-nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .legal-shell {
    padding: 18px 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
