:root {
  --bg: #05070b;
  --panel: rgba(8, 14, 24, .72);
  --panel-strong: rgba(10, 17, 28, .94);
  --line: rgba(165, 213, 255, .14);
  --line-strong: rgba(125, 211, 252, .46);
  --text: #eef7ff;
  --muted: #94a3b8;
  --faint: #526174;
  --signal: #7dd3fc;
  --ion: #2f8cff;
  --success: #86efac;
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", monospace;
}

* {
  box-sizing: border-box;
  min-width: 0;
}
html {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  background: var(--bg);
}
body {
  width: 100%;
  max-width: 100%;
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% 0%, rgba(47, 140, 255, .14), transparent 34rem),
    linear-gradient(180deg, #05070b 0%, #07101b 44%, #05070b 100%);
  color: var(--text);
  font-family: var(--font-display);
  letter-spacing: 0;
}

body.menu-open,
body.modal-open { overflow: hidden; }
button, a, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }
img, iframe { max-width: 100%; }
::selection { background: rgba(125, 211, 252, .25); }

.noise, .cursor-glow, #ambient-field {
  pointer-events: none;
  position: fixed;
  inset: 0;
}
.noise {
  z-index: 2;
  opacity: .15;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.45'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}
.cursor-glow {
  z-index: 1;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 20%), rgba(125, 211, 252, .18), transparent 29rem);
  transition: background .18s ease;
}
#ambient-field { z-index: 0; opacity: .65; }

.site-header {
  position: fixed;
  z-index: 70;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding: 0 clamp(16px, 4vw, 48px);
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  background: rgba(0, 0, 0, .34);
  backdrop-filter: blur(22px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .18em;
}
.brand img {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border: 1px solid rgba(125, 211, 252, .32);
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 0 24px rgba(125, 211, 252, .16);
}
.brand span { white-space: nowrap; }

.top-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 26px);
  color: var(--muted);
  font: 600 10px var(--font-mono);
  letter-spacing: .14em;
  text-transform: uppercase;
}
.top-nav a {
  position: relative;
  transition: color .25s ease;
}
.top-nav a:hover,
.top-nav a[aria-current="page"] { color: white; }
.top-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  height: 1px;
  background: var(--signal);
}

.menu-toggle {
  display: none;
  position: relative;
  z-index: 90;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 8px;
  background: rgba(255,255,255,.055);
}
.menu-toggle span {
  position: absolute;
  left: 12px;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: white;
  transition: transform .28s ease, top .28s ease, opacity .2s ease;
}
.menu-toggle span:nth-child(1) { top: 14px; }
.menu-toggle span:nth-child(2) { top: 21px; }
.menu-toggle span:nth-child(3) { top: 28px; }
.menu-toggle.active span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { top: 22px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed;
  z-index: 65;
  inset: 0;
  display: grid;
  align-content: center;
  gap: 32px;
  padding: 96px 22px 28px;
  background: rgba(2, 5, 10, .96);
  backdrop-filter: blur(22px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-16px);
  transition: opacity .28s ease, transform .28s ease;
}
.mobile-menu.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.mobile-menu nav {
  display: grid;
  gap: 12px;
}
.mobile-menu a {
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 8px;
  background: rgba(255,255,255,.04);
  padding: 18px;
  color: white;
  font: 700 14px var(--font-mono);
  letter-spacing: .14em;
  text-transform: uppercase;
}

.button {
  position: relative;
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 999px;
  padding: 13px 24px;
  border: 1px solid transparent;
  font: 700 11px var(--font-mono);
  letter-spacing: .16em;
  text-transform: uppercase;
  transition: transform .25s ease, border-color .25s ease, background .25s ease, color .25s ease;
}
.button::after {
  content: "";
  position: absolute;
  inset: auto 20% -80% 20%;
  height: 70%;
  background: rgba(255, 255, 255, .45);
  filter: blur(24px);
  opacity: 0;
  transition: transform .45s ease, opacity .45s ease;
}
.button:hover::after { opacity: 1; transform: translateY(-70%); }
.button-primary {
  border-color: rgba(125, 211, 252, .5);
  background: rgba(125, 211, 252, .92);
  color: #03111d;
  box-shadow: 0 0 42px rgba(125, 211, 252, .22);
}
.button-primary:hover { background: white; }
.button-secondary {
  border-color: rgba(255, 255, 255, .15);
  background: rgba(255, 255, 255, .055);
  color: white;
}
.button-secondary:hover {
  border-color: rgba(125, 211, 252, .45);
  background: rgba(255, 255, 255, .09);
}
.full { width: 100%; }

.glass {
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .025)), var(--panel);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 24px 80px rgba(0,0,0,.35);
  backdrop-filter: blur(22px);
}

main, .site-footer { position: relative; z-index: 3; }
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 112px clamp(18px, 4vw, 48px) 64px;
}
.page-main { padding-top: 72px; }
.system-grid {
  position: absolute;
  inset: -64px;
  z-index: 0;
  opacity: .78;
  background-image: linear-gradient(rgba(125,211,252,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(125,211,252,.06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at center, black 0%, transparent 72%);
  animation: driftGrid 18s linear infinite;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 180px;
  background: linear-gradient(to top, var(--bg), transparent);
}
.hero-content, .section, .site-footer {
  width: min(1280px, 100%);
  margin: 0 auto;
}
.hero-content {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  align-items: center;
  gap: clamp(32px, 6vw, 72px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 24px;
  color: var(--signal);
  font: 600 11px var(--font-mono);
  letter-spacing: .2em;
  text-transform: uppercase;
}
.eyebrow span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 18px rgba(125,211,252,.85);
}
h1, h2, h3, p { margin-top: 0; }
h1 {
  max-width: 1040px;
  margin-bottom: 28px;
  color: white;
  font-size: clamp(42px, 7vw, 112px);
  line-height: .9;
  text-transform: uppercase;
  overflow-wrap: break-word;
}
h2 {
  max-width: 780px;
  margin-bottom: 24px;
  color: white;
  font-size: clamp(34px, 5vw, 72px);
  line-height: .95;
  text-transform: uppercase;
}
.hero-text, .section-heading > p, .page-hero > p, .split-section p {
  max-width: 700px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
  overflow-wrap: break-word;
}
.hero-actions, .section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 36px;
}
.section-actions { margin-top: 28px; }

.hero-panel {
  position: relative;
  min-height: 460px;
  overflow: hidden;
  border-radius: 12px;
  padding: 22px;
}
.hero-panel::after, .system-map::after, .project-browser::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(125, 211, 252, .07), transparent);
  transform: translateY(-100%);
  animation: scan 5s linear infinite;
}
.panel-label, .config-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font: 600 10px var(--font-mono);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}
.panel-label strong, .config-top span { color: var(--signal); }

.system-map {
  position: relative;
  min-height: 310px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px;
  background: rgba(0,0,0,.18);
}
.map-line {
  position: absolute;
  left: 50%;
  top: 48%;
  width: var(--length);
  height: 1px;
  transform-origin: 0 50%;
  transform: rotate(var(--angle));
  background: linear-gradient(90deg, rgba(125,211,252,.45), rgba(47,140,255,.08));
  opacity: var(--line-opacity, .34);
}
.map-node {
  position: absolute;
  left: var(--x);
  top: var(--y);
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 50%;
  background: rgba(255,255,255,.035);
  color: var(--faint);
  font: 700 9px var(--font-mono);
}
.map-node.active {
  border-color: rgba(125,211,252,.6);
  background: rgba(125,211,252,.15);
  color: white;
  box-shadow: 0 0 36px rgba(125,211,252,.25);
  animation: pulseNode 2.4s ease-in-out infinite;
}
.map-load { position: absolute; left: 16px; right: 16px; bottom: 16px; }
.map-load-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  color: var(--muted);
  font: 600 10px var(--font-mono);
  letter-spacing: .16em;
  text-transform: uppercase;
}
.map-load-bar, .infrastructure-meter, .meter {
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,.1);
}
.map-load-bar { height: 6px; }
.map-load-bar span, .infrastructure-meter span, .meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--signal), var(--ion));
  transition: width .6s cubic-bezier(.22,1,.36,1);
}

.metric-grid, .feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 18px;
}
.metric-grid div, .info-card {
  border-radius: 8px;
  padding: 18px;
}
.metric-grid div { border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.04); }
.metric-grid span, .info-card span, .service-card span {
  display: block;
  color: var(--signal);
  font: 600 10px var(--font-mono);
  letter-spacing: .18em;
  text-transform: uppercase;
}
.metric-grid strong { display: block; margin-top: 8px; color: white; }

.section {
  padding: 104px clamp(18px, 4vw, 48px);
}
.page-hero { padding-bottom: 48px; }
.section-heading { display: flex; flex-direction: column; margin-bottom: 40px; }

.info-card, .service-card, .testimonial-card, .contact-card, .contact-form {
  border-radius: 12px;
}
.info-card h3 {
  margin: 16px 0 10px;
  color: white;
  font-size: 24px;
}
.info-card p, .service-card li, .testimonial-card p, .footer-brand p {
  color: var(--muted);
  line-height: 1.7;
}

.service-grid, .testimonial-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.service-card {
  padding: clamp(22px, 3vw, 34px);
}
.service-card h2 {
  margin-top: 16px;
  font-size: clamp(28px, 4vw, 46px);
}
.service-card ul {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}
.service-card li {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 12px;
}

.split-section, .contact-layout {
  display: grid;
  grid-template-columns: 1fr .85fr;
  gap: 24px;
  align-items: start;
}
.capability-list {
  display: grid;
  gap: 12px;
  border-radius: 12px;
  padding: 22px;
}
.capability-list span {
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 8px;
  padding: 14px;
  color: #dbeafe;
}

.project-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.project-preview-grid.large { grid-template-columns: 1fr; }
.project-browser {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  padding: 16px;
}
.browser-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}
.browser-top h3 { margin: 0; color: white; font-size: 20px; }
.browser-top a {
  color: var(--signal);
  font: 700 10px var(--font-mono);
  letter-spacing: .14em;
  text-transform: uppercase;
}
.preview-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px;
  background: rgba(0,0,0,.3);
  aspect-ratio: 16 / 10;
}
.preview-shell iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: white;
}

.pricing { border-top: 1px solid rgba(125,211,252,.18); }
.pricing-layout {
  display: grid;
  grid-template-columns: 1fr 430px;
  gap: 20px;
}
.configurator { display: grid; gap: 20px; }
.config-panel, .cost-engine { border-radius: 12px; padding: 22px; }
.config-top h3, .cost-engine h3 {
  margin: 0;
  color: white;
  font: 700 12px var(--font-mono);
  letter-spacing: .2em;
  text-transform: uppercase;
}
.option-grid, .module-grid {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}
.option-grid { grid-template-columns: repeat(2, 1fr); }
.module-grid { grid-template-columns: repeat(3, 1fr); }
.option-card, .module-card, .scale-pill {
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px;
  background: rgba(255,255,255,.035);
  color: var(--text);
  text-align: left;
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}
.option-card { min-height: 88px; padding: 16px; }
.module-card {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px;
}
.option-card:hover, .module-card:hover, .scale-pill:hover, .option-card.active, .module-card.active, .scale-pill.active {
  transform: translateY(-3px);
  border-color: rgba(125,211,252,.5);
  background: rgba(125,211,252,.09);
}
.option-card strong { display: block; margin-bottom: 10px; }
.option-card span {
  color: var(--faint);
  font: 600 10px var(--font-mono);
  letter-spacing: .16em;
  text-transform: uppercase;
}
input[type="range"] { width: 100%; margin: 24px 0 14px; accent-color: var(--signal); }
.scale-options {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}
.scale-pill {
  min-height: 48px;
  padding: 10px 8px;
  color: var(--muted);
  text-align: center;
  font: 700 10px/1.35 var(--font-mono);
  letter-spacing: .1em;
  text-transform: uppercase;
}
.infrastructure-meter { height: 8px; margin-top: 20px; }
.module-card span:first-child { font-size: 14px; font-weight: 600; }
.module-check {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 50%;
}
.module-card.active .module-check { border-color: var(--signal); background: var(--signal); }
.cost-engine {
  position: sticky;
  top: 92px;
  height: max-content;
}
.cost-lines {
  display: grid;
  gap: 13px;
  margin: 22px 0;
  color: var(--muted);
  font: 500 12px var(--font-mono);
}
.cost-line {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.cost-line strong { color: white; }
.total-line {
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px dashed rgba(255,255,255,.16);
  color: white;
  font-size: 14px;
}
.total-line strong { color: var(--signal); }
.cost-engine .system-map { margin-bottom: 20px; }
.proposal {
  display: none;
  margin-top: 18px;
  border: 1px solid rgba(125,211,252,.35);
  border-radius: 10px;
  background: rgba(125,211,252,.07);
  padding: 18px;
}
.proposal.active { display: block; animation: proposalIn .45s cubic-bezier(.22,1,.36,1); }
.proposal-top, .proposal-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.proposal-top {
  margin-bottom: 16px;
  color: var(--signal);
  font: 700 10px var(--font-mono);
  letter-spacing: .18em;
  text-transform: uppercase;
}
.proposal h4 { margin: 0 0 16px; color: white; font-size: 20px; }
.proposal-row { margin-top: 12px; color: #cbd5e1; font: 500 12px var(--font-mono); }

.testimonial-card {
  padding: 26px;
}
.testimonial-card p {
  color: #dbeafe;
  font-size: 18px;
}
.testimonial-card h3 { margin: 24px 0 6px; color: white; }
.testimonial-card span { color: var(--muted); font: 600 11px var(--font-mono); letter-spacing: .14em; text-transform: uppercase; }
.stars { margin-bottom: 18px; color: #facc15; letter-spacing: .12em; }

.contact-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid rgba(125,211,252,.18);
}
.contact-form { padding: 24px; }
.lead-form {
  display: grid;
  gap: 16px;
}
.lead-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font: 700 11px var(--font-mono);
  letter-spacing: .14em;
  text-transform: uppercase;
}
.lead-form input, .lead-form textarea, .lead-form select {
  width: 100%;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  background: rgba(255,255,255,.06);
  color: white;
  padding: 14px;
  outline: 0;
}
.lead-form option { color: #03111d; }
.lead-form textarea { resize: vertical; min-height: 120px; }
.lead-form input:focus, .lead-form textarea:focus, .lead-form select:focus {
  border-color: rgba(125,211,252,.55);
}
.form-note {
  min-height: 24px;
  margin: 0;
  color: var(--success);
  font: 700 11px var(--font-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.contact-card {
  display: grid;
  gap: 14px;
  padding: 24px;
}
.contact-card h2 { font-size: 34px; }
.contact-card a {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px;
  padding: 16px;
  color: white;
}
.contact-card span, .social-links a {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(125,211,252,.35);
  border-radius: 50%;
  color: var(--signal);
  font: 800 11px var(--font-mono);
  font-size: 0;
}

.contact-card span::before,
.social-links a::before {
  content: "";
  display: block;
  width: 20px;
  height: 20px;
  background: currentColor;
}

.social-links a[data-whatsapp]::before,
.contact-card a[data-whatsapp] span::before {
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23000' d='M16.04 3C9.01 3 3.3 8.68 3.3 15.67c0 2.23.59 4.42 1.72 6.34L3.2 28.7l6.86-1.79a12.8 12.8 0 0 0 5.98 1.52c7.02 0 12.73-5.68 12.73-12.67C28.77 8.68 23.06 3 16.04 3Zm0 23.27a10.6 10.6 0 0 1-5.4-1.47l-.39-.23-4.07 1.06 1.09-3.95-.26-.41a10.43 10.43 0 0 1-1.6-5.6c0-5.8 4.77-10.52 10.63-10.52 5.85 0 10.62 4.72 10.62 10.52s-4.77 10.6-10.62 10.6Zm5.82-7.91c-.32-.16-1.88-.93-2.17-1.03-.29-.11-.5-.16-.71.16-.21.32-.82 1.03-1 1.24-.19.21-.37.24-.69.08-.32-.16-1.34-.49-2.55-1.56-.94-.84-1.58-1.87-1.77-2.19-.18-.32-.02-.49.14-.65.14-.14.32-.37.48-.56.16-.18.21-.32.32-.53.11-.21.05-.4-.03-.56-.08-.16-.71-1.71-.97-2.35-.26-.61-.52-.53-.71-.54h-.61c-.21 0-.56.08-.85.4-.29.32-1.11 1.08-1.11 2.64 0 1.55 1.14 3.05 1.3 3.26.16.21 2.24 3.41 5.43 4.78.76.33 1.35.52 1.81.67.76.24 1.45.21 2 .13.61-.09 1.88-.77 2.14-1.51.27-.74.27-1.37.19-1.5-.08-.13-.29-.21-.61-.37Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23000' d='M16.04 3C9.01 3 3.3 8.68 3.3 15.67c0 2.23.59 4.42 1.72 6.34L3.2 28.7l6.86-1.79a12.8 12.8 0 0 0 5.98 1.52c7.02 0 12.73-5.68 12.73-12.67C28.77 8.68 23.06 3 16.04 3Zm0 23.27a10.6 10.6 0 0 1-5.4-1.47l-.39-.23-4.07 1.06 1.09-3.95-.26-.41a10.43 10.43 0 0 1-1.6-5.6c0-5.8 4.77-10.52 10.63-10.52 5.85 0 10.62 4.72 10.62 10.52s-4.77 10.6-10.62 10.6Zm5.82-7.91c-.32-.16-1.88-.93-2.17-1.03-.29-.11-.5-.16-.71.16-.21.32-.82 1.03-1 1.24-.19.21-.37.24-.69.08-.32-.16-1.34-.49-2.55-1.56-.94-.84-1.58-1.87-1.77-2.19-.18-.32-.02-.49.14-.65.14-.14.32-.37.48-.56.16-.18.21-.32.32-.53.11-.21.05-.4-.03-.56-.08-.16-.71-1.71-.97-2.35-.26-.61-.52-.53-.71-.54h-.61c-.21 0-.56.08-.85.4-.29.32-1.11 1.08-1.11 2.64 0 1.55 1.14 3.05 1.3 3.26.16.21 2.24 3.41 5.43 4.78.76.33 1.35.52 1.81.67.76.24 1.45.21 2 .13.61-.09 1.88-.77 2.14-1.51.27-.74.27-1.37.19-1.5-.08-.13-.29-.21-.61-.37Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.social-links a[href*="instagram"]::before,
.contact-card a[href*="instagram"] span::before {
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23000' d='M10.1 3h11.8A7.1 7.1 0 0 1 29 10.1v11.8a7.1 7.1 0 0 1-7.1 7.1H10.1A7.1 7.1 0 0 1 3 21.9V10.1A7.1 7.1 0 0 1 10.1 3Zm0 2.4a4.7 4.7 0 0 0-4.7 4.7v11.8a4.7 4.7 0 0 0 4.7 4.7h11.8a4.7 4.7 0 0 0 4.7-4.7V10.1a4.7 4.7 0 0 0-4.7-4.7H10.1Zm5.9 5.1a5.5 5.5 0 1 1 0 11 5.5 5.5 0 0 1 0-11Zm0 2.4a3.1 3.1 0 1 0 0 6.2 3.1 3.1 0 0 0 0-6.2Zm6.1-3.8a1.3 1.3 0 1 1 0 2.6 1.3 1.3 0 0 1 0-2.6Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23000' d='M10.1 3h11.8A7.1 7.1 0 0 1 29 10.1v11.8a7.1 7.1 0 0 1-7.1 7.1H10.1A7.1 7.1 0 0 1 3 21.9V10.1A7.1 7.1 0 0 1 10.1 3Zm0 2.4a4.7 4.7 0 0 0-4.7 4.7v11.8a4.7 4.7 0 0 0 4.7 4.7h11.8a4.7 4.7 0 0 0 4.7-4.7V10.1a4.7 4.7 0 0 0-4.7-4.7H10.1Zm5.9 5.1a5.5 5.5 0 1 1 0 11 5.5 5.5 0 0 1 0-11Zm0 2.4a3.1 3.1 0 1 0 0 6.2 3.1 3.1 0 0 0 0-6.2Zm6.1-3.8a1.3 1.3 0 1 1 0 2.6 1.3 1.3 0 0 1 0-2.6Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.social-links a[href^="mailto"]::before,
.contact-card a[href^="mailto"] span::before {
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23000' d='M5.5 7h21A2.5 2.5 0 0 1 29 9.5v13a2.5 2.5 0 0 1-2.5 2.5h-21A2.5 2.5 0 0 1 3 22.5v-13A2.5 2.5 0 0 1 5.5 7Zm.32 2.4 9.26 7.15c.54.42 1.3.42 1.84 0l9.26-7.15H5.82ZM5.4 22.2h21.2V12.1l-8.22 6.35a3.9 3.9 0 0 1-4.76 0L5.4 12.1v10.1Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23000' d='M5.5 7h21A2.5 2.5 0 0 1 29 9.5v13a2.5 2.5 0 0 1-2.5 2.5h-21A2.5 2.5 0 0 1 3 22.5v-13A2.5 2.5 0 0 1 5.5 7Zm.32 2.4 9.26 7.15c.54.42 1.3.42 1.84 0l9.26-7.15H5.82ZM5.4 22.2h21.2V12.1l-8.22 6.35a3.9 3.9 0 0 1-4.76 0L5.4 12.1v10.1Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.modal {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0,0,0,.72);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}
.modal.open { opacity: 1; pointer-events: auto; }
.modal-panel {
  position: relative;
  width: min(720px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  border-radius: 12px;
  padding: clamp(20px, 4vw, 34px);
}
.modal-panel h2 { font-size: clamp(30px, 5vw, 52px); }
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  color: white;
  font-size: 24px;
  line-height: 1;
}

.site-footer {
  display: grid;
  grid-template-columns: 1.1fr .8fr 1fr;
  gap: 32px;
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 44px clamp(18px, 4vw, 48px);
}
.footer-brand p {
  max-width: 360px;
  margin: 18px 0;
}
.social-links {
  display: flex;
  gap: 10px;
}
.footer-menu, .footer-projects {
  display: grid;
  gap: 12px;
  align-content: start;
}
.footer-menu a, .footer-projects a {
  color: var(--muted);
  font: 700 11px var(--font-mono);
  letter-spacing: .12em;
  text-transform: uppercase;
}
.footer-menu a:hover, .footer-projects a:hover { color: white; }
.footer-projects h3 {
  margin: 0 0 8px;
  color: white;
  font: 700 12px var(--font-mono);
  letter-spacing: .16em;
  text-transform: uppercase;
}

@keyframes driftGrid { to { transform: translate3d(56px, 56px, 0); } }
@keyframes scan { to { transform: translateY(100%); } }
@keyframes pulseNode {
  0%, 100% { opacity: .82; transform: translate(-50%, -50%) scale(.94); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.08); }
}
@keyframes proposalIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1120px) {
  .top-nav, .desktop-cta { display: none; }
  .menu-toggle { display: block; }
  .hero-content, .pricing-layout, .split-section, .contact-layout {
    grid-template-columns: 1fr;
  }
  .cost-engine { position: static; }
  .site-footer { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .site-header { height: 64px; }
  .brand { gap: 9px; font-size: 12px; letter-spacing: .1em; }
  .brand img { width: 36px; height: 36px; }
  .hero {
    width: 100%;
    min-height: auto;
    overflow: hidden;
    padding: 96px 16px 56px;
  }
  .page-main { padding-top: 64px; }
  h1 {
    max-width: 100%;
    font-size: clamp(31px, 9.6vw, 43px);
    line-height: 1.05;
    overflow-wrap: anywhere;
  }
  h2 { font-size: clamp(30px, 10vw, 46px); }
  .hero-text, .section-heading > p, .page-hero > p, .split-section p { font-size: 16px; }
  .hero-actions, .section-actions, .contact-strip {
    flex-direction: column;
    align-items: stretch;
  }
  .button {
    width: 100%;
    max-width: 100%;
    min-height: 50px;
    padding-inline: 16px;
    white-space: normal;
  }
  .hero-content,
  .hero-copy,
  .section,
  .page-main,
  .site-footer,
  .modal-panel {
    width: 100%;
    max-width: 100%;
  }
  .hero-panel { min-height: 390px; padding: 16px; }
  .system-map { min-height: 280px; }
  .metric-grid, .feature-grid, .service-grid, .testimonial-grid, .project-preview-grid, .option-grid, .module-grid, .scale-options, .site-footer {
    grid-template-columns: 1fr;
  }
  .section { padding: 72px 18px; }
  .page-hero { padding-bottom: 32px; }
  .preview-shell { aspect-ratio: 4 / 3; }
  .config-panel, .cost-engine, .contact-form { padding: 18px; }
  .cost-line, .proposal-row, .proposal-top { align-items: flex-start; }
  .footer-menu, .footer-projects { gap: 14px; }
  .social-links a,
  .contact-card span {
    width: 42px;
    height: 42px;
  }
  .option-card:hover, .module-card:hover, .scale-pill:hover, .option-card.active, .module-card.active, .scale-pill.active { transform: none; }
}

@media (max-width: 420px) {
  .brand span { max-width: 148px; overflow: hidden; text-overflow: ellipsis; }
  .map-node { width: 42px; height: 42px; font-size: 8px; }
  .modal { padding: 12px; }
  .modal-panel { max-height: calc(100vh - 24px); }
}

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