/* ============ HUD bar ============ */
.hud {
  background: var(--surface);
  border-bottom: 1px solid var(--stroke);
  font-size: var(--fs-xs);
  color: var(--ink-muted);
  font-family: var(--font-display);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.hud__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  height: 32px;
  overflow: hidden;
  white-space: nowrap;
}
.hud__dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 4px rgba(46, 230, 168, 0.18);
  margin-right: var(--sp-2);
  vertical-align: middle;
  animation: pulse 2.6s var(--ease-in-out-quart) infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(46, 230, 168, 0.18); }
  50% { box-shadow: 0 0 0 8px rgba(46, 230, 168, 0.0); }
}
.hud__right { color: var(--ink-dim); }
@media (max-width: 600px) { .hud__right { display: none; } }

/* ============ Header / Nav ============ */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 11, 13, 0.72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-base) var(--ease-out-quart), background var(--dur-base) var(--ease-out-quart);
}
.header.is-scrolled { border-bottom-color: var(--stroke); background: rgba(10, 11, 13, 0.92); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
  height: var(--header-h);
}
.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  font-size: 1.1rem;
}
.nav__brand:hover { color: var(--ink); }
.brand-mark {
  width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 9px;
  background: var(--grad-amber);
  color: #0A0B0D;
  font-weight: 700;
  box-shadow: var(--shadow-accent);
}
.nav__brand small {
  display: block;
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  color: var(--ink-dim);
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  list-style: none;
  margin: 0; padding: 0;
}
.nav__link {
  color: var(--ink-muted);
  font-size: var(--fs-sm);
  font-weight: 500;
  padding: var(--sp-2) 0;
  position: relative;
}
.nav__link:hover { color: var(--ink); }
.nav__link[aria-current="page"] { color: var(--ink); }
.nav__link[aria-current="page"]::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.nav__cta { display: inline-flex; align-items: center; gap: var(--sp-3); }

.nav__toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  background: transparent;
  border: 1px solid var(--stroke);
  border-radius: var(--r-md);
  color: var(--ink);
  cursor: pointer;
}
.nav__toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

@media (max-width: 880px) {
  .nav__list, .nav__cta .btn--ghost { display: none; }
  .nav__toggle { display: inline-flex; }
  .nav.is-open .nav__list {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; left: var(--sp-4); right: var(--sp-4); top: calc(var(--header-h) + 8px);
    background: var(--surface-2);
    border: 1px solid var(--stroke);
    border-radius: var(--r-lg);
    padding: var(--sp-5);
    box-shadow: var(--shadow-2);
  }
  .nav.is-open .nav__link { padding: var(--sp-3) 0; font-size: 1rem; }
}

/* ============ Buttons ============ */
.btn {
  --btn-bg: var(--surface-2);
  --btn-fg: var(--ink);
  --btn-bd: var(--stroke-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  min-height: 44px;
  padding: 10px 18px;
  border-radius: var(--r-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid var(--btn-bd);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-sm);
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-out-quart), background var(--dur-fast) var(--ease-out-quart), border-color var(--dur-fast) var(--ease-out-quart), box-shadow var(--dur-fast) var(--ease-out-quart);
  white-space: nowrap;
  text-decoration: none;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 3px; }

.btn--primary {
  --btn-bg: var(--accent);
  --btn-fg: #0A0B0D;
  --btn-bd: transparent;
  background: var(--grad-amber);
  box-shadow: var(--shadow-accent);
  font-weight: 600;
}
.btn--primary:hover { box-shadow: 0 12px 36px rgba(255, 138, 31, 0.45); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-bd: var(--stroke-strong);
  color: var(--ink);
}
.btn--ghost:hover { background: var(--surface-2); }

.btn--whatsapp {
  --btn-bg: #25D366;
  --btn-fg: #062911;
  --btn-bd: transparent;
  font-weight: 600;
}
.btn--whatsapp:hover { background: #1FBC59; }

.btn--lg { min-height: 52px; padding: 14px 22px; font-size: 1rem; }
.btn--block { width: 100%; }

/* ============ Cards ============ */
.card {
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid var(--stroke);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  box-shadow: var(--shadow-1);
  transition: transform var(--dur-base) var(--ease-out-quart), border-color var(--dur-base) var(--ease-out-quart);
  position: relative;
  overflow: hidden;
}
.card:hover { transform: translateY(-2px); border-color: var(--stroke-strong); }
.card__icon {
  width: 48px; height: 48px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: rgba(255, 138, 31, 0.10);
  color: var(--accent-hi);
  margin-bottom: var(--sp-4);
  border: 1px solid rgba(255, 138, 31, 0.22);
}
.card__title {
  font-size: 1.2rem;
  margin-bottom: var(--sp-3);
}
.card__cta {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  margin-top: var(--sp-4);
  color: var(--accent-hi);
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 500;
}
.card__cta svg { transition: transform var(--dur-fast) var(--ease-out-quart); }
.card:hover .card__cta svg { transform: translateX(4px); }

.card--service {
  display: flex;
  flex-direction: column;
}
.card--service::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: radial-gradient(60% 80% at 100% 0%, rgba(255, 138, 31, 0.18) 0%, rgba(10, 11, 13, 0) 50%);
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--dur-base) var(--ease-out-quart);
}
.card:hover.card--service::after { opacity: 1; }

/* ============ Hero ============ */
.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(48px, 10vw, 120px) 0 var(--sp-8);
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--grad-hero);
  pointer-events: none;
  z-index: -1;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 80%);
  pointer-events: none;
  opacity: 0.7;
  z-index: -1;
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: var(--sp-8);
  align-items: center;
}
@media (max-width: 880px) { .hero__inner { grid-template-columns: 1fr; gap: var(--sp-7); } }

.hero__copy { max-width: 38ch; }
.hero__copy h1 { font-size: var(--fs-display); }
.hero__actions { margin-top: var(--sp-6); display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.hero__meta { margin-top: var(--sp-6); display: flex; flex-wrap: wrap; gap: var(--sp-5); color: var(--ink-dim); font-size: var(--fs-sm); }
.hero__meta strong { display: block; font-family: var(--font-display); font-size: 1.5rem; color: var(--ink); }

.hero__visual {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--stroke);
  background: var(--surface);
  box-shadow: var(--shadow-2);
  aspect-ratio: 4 / 5;
}
.hero__visual::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10, 11, 13, 0) 40%, rgba(10, 11, 13, 0.7) 100%);
  pointer-events: none;
}
.hero__visual video, .hero__visual img {
  width: 100%; height: 100%; object-fit: cover;
}

.hero__overlay {
  position: absolute;
  left: var(--sp-5); right: var(--sp-5); bottom: var(--sp-5);
  display: flex; align-items: center; gap: var(--sp-3);
  padding: var(--sp-4);
  background: rgba(10, 11, 13, 0.6);
  border: 1px solid var(--stroke-strong);
  border-radius: var(--r-md);
  backdrop-filter: blur(10px);
  color: var(--ink);
}
.hero__overlay svg { color: var(--accent-2); flex-shrink: 0; }
.hero__overlay small { display: block; color: var(--ink-dim); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.12em; }
.hero__overlay strong { font-family: var(--font-display); font-size: 0.95rem; }

/* ============ Section heading ============ */
.section-head { max-width: 60ch; margin-bottom: var(--sp-7); }
.section-head--center { margin-inline: auto; text-align: center; }

/* ============ Trust strip ============ */
.trust {
  border-top: 1px solid var(--stroke);
  border-bottom: 1px solid var(--stroke);
  padding: var(--sp-5) 0;
  background: var(--surface);
}
.trust__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--sp-5);
  align-items: center;
  text-align: center;
}
.trust__item {
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  color: var(--ink-dim);
  letter-spacing: 0.04em;
}

/* ============ Stat row ============ */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--sp-5);
}
.stat {
  padding: var(--sp-5);
  border: 1px solid var(--stroke);
  border-radius: var(--r-lg);
  background: var(--surface);
}
.stat__num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 2vw + 1rem, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  background: var(--grad-amber);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  margin-bottom: var(--sp-2);
}
.stat__label { color: var(--ink-muted); font-size: var(--fs-sm); }

/* ============ Testimonial ============ */
.quote {
  padding: var(--sp-6);
  border: 1px solid var(--stroke);
  border-radius: var(--r-lg);
  background: var(--surface);
  position: relative;
}
.quote::before {
  content: "“";
  font-family: var(--font-display);
  font-size: 4rem;
  line-height: 1;
  color: var(--accent);
  position: absolute;
  top: 8px; left: 16px;
  opacity: 0.4;
}
.quote p { color: var(--ink); font-size: 1.05rem; padding-left: var(--sp-5); }
.quote__author {
  display: flex; align-items: center; gap: var(--sp-3);
  padding-left: var(--sp-5);
  margin-top: var(--sp-4);
  color: var(--ink-dim);
  font-size: var(--fs-sm);
}
.quote__avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--grad-cyber);
  display: inline-flex; align-items: center; justify-content: center;
  color: #062911;
  font-family: var(--font-display); font-weight: 600;
}

/* ============ CTA banner ============ */
.cta-banner {
  position: relative;
  border-radius: var(--r-xl);
  padding: clamp(32px, 5vw, 64px);
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(52, 229, 255, 0.15), transparent 60%),
    radial-gradient(120% 80% at 0% 100%, rgba(255, 138, 31, 0.18), transparent 60%),
    var(--surface-2);
  border: 1px solid var(--stroke-strong);
  overflow: hidden;
}
.cta-banner h2 { max-width: 22ch; }

/* ============ Footer ============ */
.footer {
  border-top: 1px solid var(--stroke);
  background: var(--surface);
  padding: var(--sp-8) 0 var(--sp-7);
  color: var(--ink-muted);
  font-size: var(--fs-sm);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: var(--sp-6);
  margin-bottom: var(--sp-7);
}
@media (max-width: 720px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer__grid { grid-template-columns: 1fr; } }
.footer h4 { font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: 0.14em; color: var(--ink); margin-bottom: var(--sp-4); }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: var(--sp-3); }
.footer a { color: var(--ink-muted); }
.footer a:hover { color: var(--ink); }
.footer__bottom {
  border-top: 1px solid var(--stroke);
  padding-top: var(--sp-5);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--sp-4);
  color: var(--ink-dim);
}

/* ============ Mobile action bar ============ */
.action-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 60;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-3) calc(var(--sp-3) + env(safe-area-inset-bottom));
  background: rgba(10, 11, 13, 0.95);
  border-top: 1px solid var(--stroke);
  backdrop-filter: blur(14px);
}
.action-bar .btn { min-height: 48px; font-size: var(--fs-sm); padding: 8px 10px; }
@media (min-width: 768px) { .action-bar { display: none; } }

/* ============ Forms ============ */
.field { display: flex; flex-direction: column; gap: var(--sp-2); margin-bottom: var(--sp-4); }
.field label { font-family: var(--font-display); font-size: var(--fs-sm); color: var(--ink); }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 12px 14px;
  background: var(--surface-2);
  border: 1px solid var(--stroke-strong);
  border-radius: var(--r-md);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  min-height: 44px;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-color: var(--accent);
}

/* ============ Chips ============ */
.chip {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  padding: 6px 12px;
  border-radius: var(--r-pill);
  background: var(--surface-2);
  border: 1px solid var(--stroke);
  font-size: var(--fs-xs);
  font-family: var(--font-display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.chip--accent { background: rgba(255, 138, 31, 0.12); border-color: rgba(255, 138, 31, 0.3); color: var(--accent-hi); }
.chip--cyan { background: rgba(52, 229, 255, 0.10); border-color: rgba(52, 229, 255, 0.3); color: var(--accent-2); }

/* ============ Service icon panel (parallax-ish) ============ */
.svc-art {
  position: relative;
  height: 180px;
  margin-bottom: var(--sp-4);
  border-radius: var(--r-md);
  background:
    radial-gradient(80% 60% at 30% 30%, rgba(255, 138, 31, 0.18), transparent 70%),
    var(--surface-3);
  overflow: hidden;
}
.svc-art svg { position: absolute; inset: 0; margin: auto; }

/* ============ Configurator wizard ============ */
.wizard {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--sp-7);
}
@media (max-width: 880px) { .wizard { grid-template-columns: 1fr; gap: var(--sp-5); } }
.wizard__steps { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--sp-3); }
@media (max-width: 880px) { .wizard__steps { flex-direction: row; overflow-x: auto; padding-bottom: var(--sp-2); } }
.wizard__step {
  display: flex; align-items: flex-start; gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  border: 1px solid var(--stroke);
  border-radius: var(--r-md);
  background: var(--surface);
  color: var(--ink-muted);
  font-size: var(--fs-sm);
  flex-shrink: 0;
}
.wizard__step[aria-current="step"] { border-color: var(--accent); background: rgba(255, 138, 31, 0.06); color: var(--ink); }
.wizard__step--done { color: var(--ok); border-color: rgba(46, 230, 168, 0.3); }
.wizard__step b { display: block; font-family: var(--font-display); color: inherit; font-size: 0.95rem; }
.wizard__panel {
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
}
.wizard__nav { display: flex; justify-content: space-between; margin-top: var(--sp-5); gap: var(--sp-3); }
.option-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: var(--sp-3); }
.option {
  cursor: pointer;
  padding: var(--sp-4);
  border: 1px solid var(--stroke);
  border-radius: var(--r-md);
  background: var(--surface-2);
  display: flex; flex-direction: column; gap: var(--sp-2);
  transition: border-color var(--dur-fast), background var(--dur-fast);
}
.option:hover { border-color: var(--stroke-strong); }
.option input { position: absolute; opacity: 0; pointer-events: none; }
.option:has(input:checked) { border-color: var(--accent); background: rgba(255, 138, 31, 0.08); }
.option b { font-family: var(--font-display); font-size: 1rem; color: var(--ink); }
.option span { font-size: var(--fs-sm); color: var(--ink-muted); }

/* ============ Coverage planner ============ */
.planner {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: var(--sp-4);
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: var(--r-lg);
  padding: var(--sp-4);
}
@media (max-width: 880px) { .planner { grid-template-columns: 1fr; } }
.planner__palette { display: flex; flex-direction: column; gap: var(--sp-3); }
@media (max-width: 880px) { .planner__palette { flex-direction: row; overflow-x: auto; } }
.palette-item {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: var(--sp-3);
  background: var(--surface-2);
  border: 1px solid var(--stroke);
  border-radius: var(--r-md);
  cursor: grab;
  user-select: none;
  flex-shrink: 0;
}
.palette-item:active { cursor: grabbing; }
.planner__stage {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--surface-3);
  border-radius: var(--r-md);
  overflow: hidden;
  touch-action: none;
}
.planner__stage canvas { width: 100%; height: 100%; display: block; }

/* ============ Page banner ============ */
.page-banner {
  padding: var(--sp-8) 0 var(--sp-6);
  border-bottom: 1px solid var(--stroke);
  background:
    radial-gradient(80% 60% at 80% 20%, rgba(52, 229, 255, 0.10), transparent 60%),
    radial-gradient(60% 60% at 10% 80%, rgba(255, 138, 31, 0.10), transparent 60%);
}

/* ============ Tag list ============ */
.tags { display: flex; flex-wrap: wrap; gap: var(--sp-2); }

/* ============ Insights ============ */
.insights {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: var(--sp-6);
  align-items: stretch;
}
@media (max-width: 880px) { .insights { grid-template-columns: 1fr; } }
.insights__chart {
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
  min-height: 340px;
}
