:root {
  --ink: #fff8ed;
  --muted: #c9b8a0;
  --bg: #100d09;
  --panel: #1a1510;
  --panel-strong: #241d16;
  --line: #5a4938;
  --green: #fee7c8;
  --green-soft: #fff2df;
  --amber: #e1b36e;
  --danger: #f05a5a;
  --shadow: rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  letter-spacing: 0;
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  background-color: var(--bg);
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  background: rgba(0, 0, 0, 0.12);
  animation: scanWash 4s steps(6) infinite;
}

#cyberCanvas {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  opacity: 0.5;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1120px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  padding: 14px 0;
  backdrop-filter: blur(14px);
}

.brand,
.nav-links,
.hero-actions,
.quick-stats,
footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  font-weight: 800;
  font-size: clamp(1rem, 2vw, 1.2rem);
}

.brand-mark {
  position: relative;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 12px 30px var(--shadow);
  transform: rotate(45deg);
  animation: markFloat 4.5s ease-in-out infinite;
}

.brand-mark span {
  position: absolute;
  display: block;
  background: var(--green);
}

.brand-mark span:nth-child(1) {
  width: 18px;
  height: 2px;
}

.brand-mark span:nth-child(2) {
  width: 2px;
  height: 18px;
}

.brand-mark span:nth-child(3) {
  width: 8px;
  height: 8px;
  border: 2px solid var(--green-soft);
  background: transparent;
}

.nav-links {
  flex-wrap: nowrap;
  gap: 8px;
  padding: 7px;
  border: 1px solid rgba(254, 231, 200, 0.2);
  background: rgba(26, 21, 16, 0.78);
}

.nav-links a {
  min-height: 38px;
  padding: 10px 13px;
  color: var(--muted);
  font-size: 0.86rem;
  transition: color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--ink);
  background: var(--panel-strong);
  transform: translateY(-2px);
}

.nav-links .nav-whatsapp {
  color: #17100a;
  background: var(--green);
  font-weight: 700;
}

main {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.75fr);
  gap: 34px;
  align-items: center;
  min-height: calc(100vh - 96px);
  padding: 44px 0 70px;
}

.hero-copy {
  max-width: 660px;
}

.eyebrow {
  margin: 0 0 13px;
  color: var(--green-soft);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 16px;
  font-size: clamp(3.4rem, 12vw, 8.5rem);
  line-height: 0.9;
  letter-spacing: 0;
  text-shadow: 0 0 18px rgba(254, 231, 200, 0.25);
  animation: titleGlitch 6s infinite;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(1.8rem, 4vw, 3.1rem);
  line-height: 1;
}

.hero-text {
  max-width: 560px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  line-height: 1.7;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 18px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--panel);
  font-weight: 800;
  text-align: center;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px var(--shadow);
}

.button-primary {
  border-color: var(--green);
  color: #17100a;
  background: var(--green);
}

.button-quiet {
  color: var(--green-soft);
}

.signal-panel {
  position: relative;
  min-height: 470px;
  padding: 22px;
  border: 1px solid rgba(254, 231, 200, 0.2);
  background: rgba(26, 21, 16, 0.82);
  box-shadow: 0 28px 90px var(--shadow);
  overflow: hidden;
}

.signal-panel::before,
.signal-panel::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.signal-panel::before {
  inset: 16px;
  border: 1px solid rgba(254, 231, 200, 0.25);
  animation: panelBlink 3s steps(2) infinite;
}

.signal-panel::after {
  top: -20%;
  left: 0;
  width: 100%;
  height: 28%;
  background: rgba(254, 231, 200, 0.07);
  animation: scanner 4.5s linear infinite;
}

.panel-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.8rem;
  text-transform: uppercase;
}

.status-dot {
  width: 11px;
  height: 11px;
  background: var(--green);
  box-shadow: 0 0 16px var(--green);
  animation: dotPulse 1.4s ease-in-out infinite;
}

.pulse-core {
  position: absolute;
  inset: 50% auto auto 50%;
  width: min(52vw, 270px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
}

.pulse-core span {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(254, 231, 200, 0.45);
  animation: ringSpin 8s linear infinite;
}

.pulse-core span:nth-child(2) {
  inset: 38px;
  border-color: rgba(241, 198, 91, 0.65);
  animation-duration: 5s;
  animation-direction: reverse;
}

.pulse-core span:nth-child(3) {
  inset: 86px;
  background: var(--green);
  box-shadow: 0 0 30px rgba(254, 231, 200, 0.7);
  animation: coreBeat 1.8s ease-in-out infinite;
}

.quick-stats {
  position: absolute;
  right: 22px;
  bottom: 22px;
  left: 22px;
  z-index: 1;
  justify-content: space-between;
  gap: 10px;
}

.quick-stats span {
  flex: 1;
  min-height: 44px;
  padding: 12px 8px;
  border: 1px solid rgba(254, 231, 200, 0.16);
  background: var(--panel-strong);
  color: var(--green-soft);
  font-size: 0.78rem;
  text-align: center;
  text-transform: uppercase;
}

.services {
  padding: 18px 0 86px;
}

.section-head {
  margin-bottom: 24px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.service-card {
  position: relative;
  min-height: 192px;
  padding: 18px;
  border: 1px solid rgba(254, 231, 200, 0.16);
  background: rgba(26, 21, 16, 0.9);
  overflow: hidden;
  transition: transform 200ms ease, border-color 200ms ease, background-color 200ms ease;
}

.service-card::after {
  position: absolute;
  right: 16px;
  bottom: 12px;
  width: 42px;
  height: 3px;
  content: "";
  background: var(--green);
  transform: scaleX(0.4);
  transform-origin: right;
  transition: transform 200ms ease;
}

.service-card:hover,
.service-card:focus-visible {
  border-color: var(--green);
  background: var(--panel-strong);
  transform: translateY(-8px);
}

.service-card:hover::after,
.service-card:focus-visible::after {
  transform: scaleX(1);
}

.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 28px;
  border: 1px solid var(--line);
  color: var(--amber);
  font-size: 0.85rem;
  font-weight: 900;
}

.service-card strong,
.service-card small {
  display: block;
}

.service-card strong {
  margin-bottom: 10px;
  font-size: 1.03rem;
}

.service-card small {
  color: var(--muted);
  line-height: 1.5;
}

.contact-strip {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1fr);
  gap: 24px;
  align-items: start;
  margin-bottom: 60px;
  padding: 26px;
  border: 1px solid rgba(254, 231, 200, 0.24);
  background: var(--panel);
  animation: contactGlow 3s ease-in-out infinite;
}

.contact-copy {
  display: grid;
  gap: 20px;
  align-content: start;
}

.contact-copy .button {
  width: fit-content;
}

.contact-form {
  display: grid;
  gap: 14px;
}

.contact-form label {
  display: grid;
  gap: 7px;
}

.contact-form span {
  color: var(--green-soft);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(254, 231, 200, 0.2);
  color: var(--ink);
  background: #130f0b;
  font: inherit;
  outline: none;
  padding: 12px;
  min-width: 0;
  transition: border-color 180ms ease, background-color 180ms ease;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--green);
  background: var(--panel-strong);
}

.contact-form button {
  border: 0;
  cursor: pointer;
}

footer {
  justify-content: space-between;
  gap: 14px;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 36px;
  border-top: 1px solid rgba(254, 231, 200, 0.14);
  color: var(--muted);
  font-size: 0.85rem;
}

.site-footer div {
  display: grid;
  gap: 6px;
}

.site-footer strong {
  color: var(--ink);
}

footer a {
  color: var(--green-soft);
  font-weight: 800;
}

.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 20;
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  border: 1px solid rgba(254, 231, 200, 0.7);
  color: #17100a;
  background: var(--green);
  box-shadow: 0 18px 40px var(--shadow);
  font-size: 0.9rem;
  font-weight: 900;
  animation: floatPulse 2.2s ease-in-out infinite;
}

.whatsapp-float:hover,
.whatsapp-float:focus-visible {
  transform: translateY(-4px);
}

.whatsapp-pop {
  position: fixed;
  right: 22px;
  bottom: 96px;
  z-index: 19;
  display: grid;
  gap: 8px;
  width: min(270px, calc(100vw - 44px));
  padding: 18px;
  border: 1px solid rgba(254, 231, 200, 0.28);
  color: var(--ink);
  background: var(--panel-strong);
  box-shadow: 0 18px 40px var(--shadow);
  transform-origin: bottom right;
  animation: popIn 450ms ease both;
}

.whatsapp-pop.is-hidden {
  display: none;
}

.whatsapp-pop span {
  color: var(--muted);
  font-size: 0.8rem;
}

.whatsapp-pop strong {
  padding-right: 28px;
}

.whatsapp-pop a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  margin-top: 4px;
  color: #17100a;
  background: var(--green);
  font-size: 0.86rem;
  font-weight: 900;
}

.whatsapp-close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid rgba(254, 231, 200, 0.2);
  color: var(--ink);
  background: var(--panel);
  cursor: pointer;
  font: inherit;
  line-height: 1;
}

@keyframes scanWash {
  50% {
    opacity: 0.75;
  }
}

@keyframes markFloat {
  50% {
    transform: translateY(-4px) rotate(45deg);
  }
}

@keyframes titleGlitch {
  0%,
  93%,
  100% {
    transform: translateX(0);
  }
  94% {
    transform: translateX(3px);
  }
  95% {
    transform: translateX(-2px);
  }
  96% {
    transform: translateX(1px);
  }
}

@keyframes panelBlink {
  50% {
    opacity: 0.35;
  }
}

@keyframes scanner {
  to {
    transform: translateY(560%);
  }
}

@keyframes dotPulse {
  50% {
    transform: scale(1.35);
    opacity: 0.55;
  }
}

@keyframes ringSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes coreBeat {
  50% {
    transform: scale(0.72);
    opacity: 0.72;
  }
}

@keyframes contactGlow {
  50% {
    border-color: rgba(241, 198, 91, 0.42);
  }
}

@keyframes floatPulse {
  50% {
    box-shadow: 0 20px 48px rgba(254, 231, 200, 0.24);
    transform: translateY(-3px);
  }
}

@keyframes popIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 860px) {
  .site-header {
    align-items: flex-start;
    gap: 12px;
  }

  .nav-links {
    overflow-x: auto;
    max-width: 58vw;
    scrollbar-width: none;
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 38px;
  }

  .signal-panel {
    min-height: 360px;
  }

  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .site-header,
  main,
  footer {
    width: min(100% - 24px, 1120px);
  }

  .site-header {
    position: relative;
    flex-direction: column;
    padding-top: 12px;
  }

  .nav-links {
    width: 100%;
    max-width: none;
    gap: 6px;
  }

  .nav-links a {
    flex: 1;
    min-width: 0;
    padding: 10px 8px;
    text-align: center;
  }

  h1 {
    font-size: clamp(3rem, 18vw, 5.4rem);
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .contact-strip {
    grid-template-columns: 1fr;
  }

  footer {
    align-items: stretch;
    flex-direction: column;
  }

  .contact-strip .button {
    width: 100%;
  }

  .whatsapp-float {
    right: 14px;
    bottom: 14px;
  }

  .whatsapp-pop {
    right: 14px;
    bottom: 86px;
    width: min(260px, calc(100vw - 28px));
  }
}

@media (max-width: 390px) {
  .site-header,
  main,
  footer {
    width: calc(100% - 18px);
  }

  .brand {
    gap: 10px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }

  .nav-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .nav-links a {
    display: grid;
    min-height: 36px;
    place-items: center;
    font-size: 0.76rem;
    line-height: 1.15;
  }

  .hero {
    gap: 22px;
    padding: 30px 0 52px;
  }

  h1 {
    font-size: clamp(2.55rem, 17vw, 4.2rem);
    line-height: 0.95;
    overflow-wrap: anywhere;
  }

  h2 {
    font-size: clamp(1.45rem, 9vw, 2.3rem);
  }

  .hero-text {
    font-size: 0.96rem;
    line-height: 1.6;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .signal-panel {
    min-height: 300px;
    padding: 16px;
  }

  .pulse-core {
    width: min(68vw, 210px);
  }

  .pulse-core span:nth-child(2) {
    inset: 30px;
  }

  .pulse-core span:nth-child(3) {
    inset: 68px;
  }

  .quick-stats {
    right: 14px;
    bottom: 14px;
    left: 14px;
    gap: 6px;
  }

  .quick-stats span {
    min-height: 38px;
    padding: 10px 5px;
    font-size: 0.68rem;
  }

  .service-card {
    min-height: 160px;
    padding: 16px;
  }

  .service-icon {
    margin-bottom: 22px;
  }

  .contact-strip {
    padding: 18px;
  }

  .contact-form input,
  .contact-form select,
  .contact-form textarea {
    font-size: 0.9rem;
  }

  .whatsapp-float {
    width: 54px;
    height: 54px;
    right: 10px;
    bottom: 10px;
  }

  .whatsapp-pop {
    right: 10px;
    bottom: 74px;
    width: min(244px, calc(100vw - 20px));
    padding: 15px;
  }
}

@media (max-width: 320px) {
  .nav-links {
    grid-template-columns: 1fr;
  }

  .nav-links a {
    justify-content: center;
  }

  h1 {
    font-size: 2.35rem;
  }

  .button {
    min-height: 44px;
    padding: 12px 14px;
    font-size: 0.9rem;
  }

  .signal-panel {
    min-height: 270px;
  }

  .quick-stats {
    position: relative;
    right: auto;
    bottom: auto;
    left: auto;
    margin-top: 190px;
  }
}
