:root {
  color-scheme: dark;
  --bg: #07111f;
  --panel: rgba(13, 26, 46, 0.78);
  --panel-strong: rgba(16, 34, 61, 0.94);
  --text: #ecf7ff;
  --muted: #9db0c7;
  --line: rgba(144, 224, 255, 0.18);
  --cyan: #4de8ff;
  --green: #6dffb3;
  --blue: #7aa7ff;
  --pink: #ff6db2;
  --warning: #ffd36d;
  --radius: 8px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 12%, rgba(77, 232, 255, 0.12), transparent 30%),
    radial-gradient(circle at 82% 4%, rgba(109, 255, 179, 0.11), transparent 26%),
    linear-gradient(135deg, #07111f 0%, #0a1322 46%, #0d1628 100%);
  color: var(--text);
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
p { color: var(--muted); line-height: 1.7; }
button, input, textarea { font: inherit; }

.site-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(77, 232, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(77, 232, 255, 0.12) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, #000, transparent 72%);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 18px 0;
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  min-width: max-content;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(77, 232, 255, 0.5);
  border-radius: 8px;
  color: var(--cyan);
  background: linear-gradient(145deg, rgba(77, 232, 255, 0.14), rgba(109, 255, 179, 0.08));
  box-shadow: inset 0 0 20px rgba(77, 232, 255, 0.16);
  font-weight: 800;
}

.brand strong, .brand small { display: block; }
.brand strong { letter-spacing: 0; }
.brand small { color: var(--muted); font-size: 12px; margin-top: 2px; }

.nav {
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
}

.nav a {
  padding: 10px 12px;
  border-radius: 8px;
  color: #c7d6e8;
  font-size: 14px;
}

.nav a:hover, .nav a.active {
  background: rgba(77, 232, 255, 0.1);
  color: var(--text);
}

.nav-cta, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(77, 232, 255, 0.35);
  border-radius: 8px;
  color: var(--text);
  background: rgba(77, 232, 255, 0.1);
  font-weight: 700;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button:hover, .nav-cta:hover { transform: translateY(-2px); border-color: rgba(109, 255, 179, 0.65); }
.primary { background: linear-gradient(135deg, #31d9ff, #4dffad); color: #04111b; border: 0; }
.ghost { background: rgba(255, 255, 255, 0.04); }

.menu-toggle { display: none; }

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

.hero {
  min-height: 78vh;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: 58px;
  align-items: center;
  padding: 62px 0 80px;
}

.eyebrow {
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  font-weight: 800;
  margin: 0 0 14px;
}

h1, h2, h3 { margin: 0; letter-spacing: 0; }
h1 { font-size: clamp(40px, 6vw, 72px); line-height: 0.98; max-width: 960px; }
h2 { font-size: clamp(28px, 4vw, 46px); line-height: 1.08; }
h3 { font-size: 20px; }
.lead { max-width: 680px; font-size: 18px; margin: 24px 0 30px; }

.hero-actions, .signal-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.signal-row { margin-top: 28px; }
.signal-row span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #c7d6e8;
  background: rgba(255, 255, 255, 0.04);
  font-size: 13px;
}

.hero-visual {
  position: relative;
  min-height: 520px;
  display: grid;
  place-items: center;
}

.terminal-card {
  width: min(100%, 520px);
  border: 1px solid rgba(77, 232, 255, 0.34);
  border-radius: 8px;
  background: rgba(3, 13, 26, 0.88);
  box-shadow: var(--shadow), inset 0 0 44px rgba(77, 232, 255, 0.08);
  overflow: hidden;
  animation: float 5s ease-in-out infinite;
}

.terminal-top {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(77, 232, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
}

.terminal-top i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--pink);
}
.terminal-top i:nth-child(2) { background: var(--warning); }
.terminal-top i:nth-child(3) { background: var(--green); }
.terminal-top span { margin-left: 8px; color: var(--muted); font-size: 13px; }

pre {
  margin: 0;
  padding: 28px;
  min-height: 260px;
  color: #d7ecff;
  white-space: pre-wrap;
  font-size: clamp(15px, 2vw, 18px);
}

code b {
  color: var(--green);
  font-weight: 800;
  animation: pulseText 1.6s ease-in-out infinite;
}

.muted { color: #7d91ad; }

.orbit {
  position: absolute;
  border: 1px solid rgba(77, 232, 255, 0.18);
  border-radius: 50%;
  animation: rotate 12s linear infinite;
}

.orbit.one { width: 430px; height: 430px; }
.orbit.two { width: 310px; height: 310px; animation-duration: 8s; animation-direction: reverse; }
.orbit::after {
  content: "";
  position: absolute;
  top: 26px;
  left: 50%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 24px var(--cyan);
}

.data-chip {
  position: absolute;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border: 1px solid rgba(109, 255, 179, 0.34);
  border-radius: 8px;
  background: rgba(7, 17, 31, 0.86);
  color: var(--text);
  font-weight: 800;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
}

.chip-a { top: 90px; right: 10px; animation: slideY 4.4s ease-in-out infinite; }
.chip-b { bottom: 96px; left: 8px; animation: slideY 4.9s ease-in-out infinite reverse; }

.section, .split-section, .values, .timeline, .contact-layout, .contact-strip {
  padding: 70px 0;
}

.section-head {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 36px;
  align-items: end;
  margin-bottom: 28px;
}

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

.service-card, .glass-panel, .contact-form, .contact-strip {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 18px 58px rgba(0, 0, 0, 0.18);
}

.service-card {
  min-height: 230px;
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(77, 232, 255, 0.12), transparent 42%, rgba(109, 255, 179, 0.08));
  opacity: 0;
  transition: opacity 200ms ease;
}
.service-card:hover::before { opacity: 1; }
.service-card > * { position: relative; }
.service-card p { margin-bottom: 0; }
.service-card small { color: var(--cyan); font-weight: 900; }

.card-icon {
  display: block;
  width: 38px;
  height: 38px;
  margin-bottom: 24px;
  border-radius: 8px;
  background:
    linear-gradient(90deg, transparent 45%, rgba(7, 17, 31, 0.8) 45% 55%, transparent 55%),
    linear-gradient(0deg, transparent 45%, rgba(7, 17, 31, 0.8) 45% 55%, transparent 55%),
    linear-gradient(135deg, var(--cyan), var(--green));
}

.split-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 22px;
  align-items: stretch;
}

.glass-panel { padding: 30px; }
.text-link { color: var(--green); font-weight: 800; }

.workflow {
  display: grid;
  grid-template-columns: 1fr 34px 1fr 34px 1fr 34px 1fr;
  align-items: center;
  gap: 10px;
  min-height: 260px;
  padding: 28px;
  border: 1px solid rgba(77, 232, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.workflow div {
  min-height: 86px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 14px;
  border-radius: 8px;
  background: var(--panel-strong);
  border: 1px solid var(--line);
  font-weight: 800;
}

.workflow span {
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--green));
  position: relative;
}
.workflow span::after {
  content: "";
  position: absolute;
  right: -2px;
  top: -4px;
  width: 10px;
  height: 10px;
  border-top: 2px solid var(--green);
  border-right: 2px solid var(--green);
  transform: rotate(45deg);
}

.page-hero {
  padding: 74px 0 34px;
  max-width: 900px;
}
.page-hero p:last-child { font-size: 18px; max-width: 760px; }
.compact h1 { font-size: clamp(36px, 5vw, 62px); }

.detailed .service-card { min-height: 260px; }

.timeline {
  display: grid;
  gap: 16px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 90px 0.55fr 1fr;
  gap: 20px;
  align-items: center;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}
.timeline-item strong { color: var(--cyan); font-size: 32px; }

.values {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  align-items: start;
}

.contact-copy {
  position: sticky;
  top: 96px;
}

.whatsapp-card {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 0 18px;
  border-radius: 8px;
  background: rgba(109, 255, 179, 0.12);
  color: var(--green);
  border: 1px solid rgba(109, 255, 179, 0.34);
  font-weight: 900;
}

.contact-form {
  padding: 26px;
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

label {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
  color: #dcecff;
  font-weight: 700;
}

input, textarea {
  width: 100%;
  border: 1px solid rgba(157, 176, 199, 0.28);
  border-radius: 8px;
  color: var(--text);
  background: rgba(2, 9, 20, 0.72);
  padding: 13px 14px;
  outline: none;
}

textarea { resize: vertical; min-height: 170px; }
input:focus, textarea:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(77, 232, 255, 0.12); }
.hp {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}
.form-submit { width: 100%; cursor: pointer; }
.form-note { margin: 12px 0 0; font-size: 13px; }

.contact-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 28px;
}
.contact-strip h2 { font-size: clamp(26px, 3vw, 38px); }

.toast {
  position: fixed;
  z-index: 30;
  right: 22px;
  bottom: 22px;
  max-width: 360px;
  padding: 14px 16px;
  border-radius: 8px;
  background: rgba(109, 255, 179, 0.95);
  color: #03130b;
  font-weight: 800;
  box-shadow: var(--shadow);
}
.toast.error { background: rgba(255, 109, 139, 0.95); color: #23030c; }

.footer {
  width: min(1180px, calc(100% - 40px));
  margin: 40px auto 0;
  padding: 44px 0 54px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 0.9fr 0.8fr;
  gap: 28px;
}
.footer p { max-width: 420px; }
.footer h3 { font-size: 15px; margin-bottom: 14px; }
.footer a, .footer span {
  display: block;
  color: var(--muted);
  margin: 10px 0;
}
.footer a:hover { color: var(--text); }
.footer-whatsapp { color: var(--green) !important; font-weight: 900; }

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 700ms ease, transform 700ms ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
@keyframes rotate { to { transform: rotate(360deg); } }
@keyframes slideY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
@keyframes pulseText {
  0%, 100% { opacity: 0.72; }
  50% { opacity: 1; }
}

@media (max-width: 920px) {
  .topbar { grid-template-columns: auto auto; justify-content: space-between; }
  .nav-cta { display: none; }
  .menu-toggle {
    display: inline-grid;
    gap: 5px;
    width: 42px;
    height: 42px;
    place-content: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
  }
  .menu-toggle span { display: block; width: 18px; height: 2px; background: var(--text); }
  .nav {
    display: none;
    grid-column: 1 / -1;
    justify-content: start;
    flex-wrap: wrap;
    padding: 10px 0 0;
  }
  .nav.open { display: flex; }
  .hero, .split-section, .contact-layout, .section-head {
    grid-template-columns: 1fr;
  }
  .hero { padding-top: 36px; }
  .hero-visual { min-height: 420px; }
  .service-grid, .values { grid-template-columns: 1fr 1fr; }
  .workflow { grid-template-columns: 1fr; }
  .workflow span { height: 28px; width: 2px; margin: 0 auto; }
  .workflow span::after { right: -4px; top: 18px; transform: rotate(135deg); }
  .timeline-item { grid-template-columns: 1fr; }
  .contact-copy { position: static; }
  .footer { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  main, .topbar, .footer { width: min(100% - 28px, 1180px); }
  h1 { font-size: 38px; }
  .hero { min-height: auto; }
  .hero-visual {
    min-height: 320px;
    width: 100%;
    overflow: hidden;
  }
  .orbit.one { width: min(280px, calc(100vw - 64px)); height: min(280px, calc(100vw - 64px)); }
  .orbit.two { width: min(200px, calc(100vw - 132px)); height: min(200px, calc(100vw - 132px)); }
  .data-chip { position: relative; inset: auto; margin: 8px; }
  .service-grid, .values, .field-grid, .footer { grid-template-columns: 1fr; }
  .contact-strip { align-items: stretch; flex-direction: column; }
  .button { width: 100%; }
}
