/* ============ Pointers Guardian — custom layer over Tailwind ============ */

:root {
  --primary: #3dffb0;
  --fg: #e8fdf5;
  --muted: #7ab8a8;
}

html { scroll-behavior: smooth; }
body { background: #040a14; }

::selection { background: rgba(61, 255, 176, .25); color: #fff; }

.text-primary { color: var(--primary) !important; }
.text-primary-soft { color: #7cffd4 !important; }
.bg-primary { background-color: var(--primary) !important; }
.bg-gradient-to-r.from-primary-soft.via-primary.to-primary {
  background-image: linear-gradient(to right, #7cffd4, var(--primary), var(--primary)) !important;
}
.bg-clip-text {
  -webkit-background-clip: text !important;
  background-clip: text !important;
}
.text-transparent {
  color: transparent !important;
}
.border-primary\/10 { border-color: rgba(61, 255, 176, .1) !important; }
.border-primary\/20 { border-color: rgba(61, 255, 176, .2) !important; }
.border-primary\/30 { border-color: rgba(61, 255, 176, .3) !important; }
.border-primary\/40 { border-color: rgba(61, 255, 176, .4) !important; }

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #071120; }
::-webkit-scrollbar-thumb { background: #0f2440; border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: #0e7490; }

/* ---------- Navbar ---------- */
#navbar.scrolled {
  background: rgba(4, 10, 20, .85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.nav-link { position: relative; transition: color .25s; padding: 4px 0; }
.nav-link:hover { color: #7cffd4; }
.nav-link::after {
  content: ''; position: absolute; left: 0; bottom: -2px; width: 0; height: 1px;
  background: var(--primary); transition: width .3s;
}
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-link.active { color: #7cffd4; }

/* ---------- Hamburger menu ---------- */
#mobileToggle[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
#mobileToggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
#mobileToggle[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ---------- Buttons ---------- */
.btn-primary {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .8rem 1.6rem; border-radius: .5rem;
  font-weight: 600; font-size: .875rem; letter-spacing: .05em;
  color: #040a14; background: linear-gradient(135deg, #7cffd4, #3dffb0 50%, #2ab87a);
  background-size: 180% 180%;
  box-shadow: 0 0 24px rgba(61, 255, 176, .35);
  transition: box-shadow .3s, transform .2s, background-position .5s;
}
.btn-primary:hover { box-shadow: 0 0 40px rgba(61, 255, 176, .55); transform: translateY(-1px); background-position: 100% 100%; }
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .8rem 1.6rem; border-radius: .5rem;
  font-weight: 500; font-size: .875rem; letter-spacing: .05em;
  color: #e2e8f0; border: 1px solid rgba(61, 255, 176, .35);
  background: rgba(61, 255, 176, .05);
  transition: border-color .3s, background .3s, box-shadow .3s;
}
.btn-ghost:hover { border-color: rgba(61, 255, 176, .7); background: rgba(61, 255, 176, .1); box-shadow: 0 0 24px rgba(61, 255, 176, .15); }

/* ---------- Section helpers ---------- */
.section-kicker {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: #3dffb0;
}
.section-kicker::before { content: ''; width: 2rem; height: 1px; background: linear-gradient(90deg, transparent, #3dffb0); }

.section-title {
  margin-top: .9rem;
  font-family: 'Space Grotesk', sans-serif; font-weight: 700;
  font-size: clamp(1.75rem, 4vw, 2.75rem); line-height: 1.15; color: #fff;
}

.text-glow { text-shadow: 0 0 40px rgba(61, 255, 176, .45); }

/* ---------- Grid overlay & particles ---------- */
.grid-overlay {
  background-image:
    linear-gradient(rgba(61, 255, 176, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(61, 255, 176, .045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 30%, transparent 100%);
  pointer-events: none;
}

/* ---------- Glass cards ---------- */
.glass-card {
  position: relative; padding: 1.6rem;
  border-radius: .9rem;
  background: rgba(10, 26, 47, .45);
  border: 1px solid rgba(255, 255, 255, .06);
  backdrop-filter: blur(10px);
  transition: transform .35s, border-color .35s, box-shadow .35s;
}
.glass-card:hover {
  transform: translateY(-4px);
  border-color: rgba(61, 255, 176, .35);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .4), 0 0 30px rgba(61, 255, 176, .08);
}
.glass-card h3 { color: #fff; font-family: 'Space Grotesk', sans-serif; font-size: 0.97rem; font-weight: 600; margin-bottom: .45rem; }
.glass-card p { font-size: .875rem; color: #94a3b8; line-height: 1.6; }

.card-icon {
  width: 2.75rem; height: 2.75rem; margin-bottom: 1.1rem;
  display: grid; place-items: center;
  border-radius: .6rem; color: #3dffb0;
  background: rgba(61, 255, 176, .08);
  border: 1px solid rgba(61, 255, 176, .25);
  box-shadow: 0 0 18px rgba(61, 255, 176, .12);
}
.card-icon svg { width: 1.4rem; height: 1.4rem; }

/* ---------- Feature lists ---------- */
.feature-list { display: grid; gap: .65rem; font-size: .875rem; color: #94a3b8; }
.feature-list li { position: relative; padding-left: 1.3rem; line-height: 1.55; }
.feature-list li::before {
  content: ''; position: absolute; left: 0; top: .48em;
  width: .45rem; height: .45rem; border-radius: 2px;
  background: #3dffb0; box-shadow: 0 0 8px rgba(61, 255, 176, .7);
}

/* ---------- HUD chips (hero stats) ---------- */
.hud-chip {
  display: flex; flex-direction: column; gap: .15rem;
  padding: .8rem .5rem; border-radius: .6rem;
  border: 1px solid rgba(61, 255, 176, .15);
  background: rgba(10, 26, 47, .4); backdrop-filter: blur(8px);
  font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: #64748b;
}

/* ---------- Lovable hero scene ---------- */
#hero { --flow-speed: 5s; }

#ambient-fog {
  background:
    radial-gradient(50% 45% at 70% 55%, rgba(20, 90, 70, .35), transparent 70%),
    radial-gradient(40% 30% at 85% 20%, rgba(0, 180, 160, .14), transparent 70%),
    radial-gradient(45% 40% at 20% 45%, rgba(61, 255, 176, .07), transparent 70%);
}

#hud-layer {
  pointer-events: none; position: absolute; inset: 0; z-index: 5;
  font-family: 'Courier New', monospace; font-size: 10px;
  letter-spacing: .15em; color: rgba(61, 255, 176, .7);
}
.hud-item { position: absolute; line-height: 1.7; }
.hud-item .dim { color: rgba(232, 253, 245, .7); margin-top: 4px; }
.hud-fade { animation: hudFade 7s ease-in-out infinite; }
@keyframes hudFade { 0%, 100% { opacity: .25; } 50% { opacity: .85; } }

.hud-compass {
  position: absolute; right: 7%; bottom: 16%; width: 96px; height: 96px; border-radius: 50%;
  border: 1px solid rgba(61, 255, 176, .4); animation: hudRotate 40s linear infinite;
}
.hud-compass-inner { position: absolute; inset: 8px; border-radius: 50%; border: 1px solid rgba(61, 255, 176, .2); }
.hud-compass-needle {
  position: absolute; left: 50%; top: 0; width: 1px; height: 50%;
  background: rgba(61, 255, 176, .6); transform-origin: bottom center; margin-left: -.5px;
}
@keyframes hudRotate { to { transform: rotate(360deg); } }

#hero-particles .particle {
  position: absolute; border-radius: 999px; background: #7cffd4;
  box-shadow: 0 0 8px rgba(124, 255, 212, .7);
  animation-name: drift; animation-timing-function: linear; animation-iteration-count: infinite;
}
@keyframes drift {
  0% { transform: translate3d(0, 0, 0); opacity: 0; }
  20% { opacity: .8; }
  100% { transform: translate3d(40px, -120px, 0); opacity: 0; }
}

#soldier-wrapper { aspect-ratio: 1168 / 1414; transition: transform 200ms ease-out; }
#soldier-wrapper img {
  pointer-events: none; position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; user-select: none; -webkit-user-select: none;
  filter: drop-shadow(0 0 40px rgba(61, 255, 176, .12));
}
#wf-svg { pointer-events: none; position: absolute; inset: 0; width: 100%; height: 100%; }

@keyframes wireFlow { to { stroke-dashoffset: 0; } }
.wire-flow { animation: wireFlow var(--flow-speed, 5s) linear infinite; }
@keyframes wirePulse { 0%, 100% { stroke-opacity: .35; } 50% { stroke-opacity: .85; } }
.wire-pulse { animation: wirePulse 4.5s ease-in-out infinite; }
@keyframes nodePulse { 0%, 100% { r: 4px; opacity: .5; } 50% { r: 10px; opacity: .95; } }
.node-pulse { animation: nodePulse 3.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes spark {
  0%, 92%, 100% { opacity: 0; transform: scale(.4); }
  94% { opacity: 1; transform: scale(2.2); }
  98% { opacity: 0; transform: scale(.6); }
}
.spark { transform-origin: center; transform-box: fill-box; animation: spark 6s ease-in-out infinite; }

@keyframes pulseDot { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* ---------- 3D Model Viewer ---------- */
model-viewer {
  filter: brightness(0.5) contrast(4.1)
}

/* ---------- 3D Scroll Showcase ---------- */
#showcase-3d { height: 400vh; }
#showcase-model { position: absolute; inset: 0; pointer-events: none; }

.showcase-stage {
  position: absolute; z-index: 10;
  left: 50%; top: 12%; transform: translateX(-50%) translateY(24px);
  text-align: center; max-width: 90%;
  opacity: 0; pointer-events: none;
  transition: opacity .6s cubic-bezier(.22,.61,.36,1), transform .6s cubic-bezier(.22,.61,.36,1);
}
.showcase-stage .section-kicker { justify-content: center; }
.showcase-stage.active { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (min-width: 1024px) {
  .showcase-stage-left {
    left: 8%; top: 50%; transform: translateX(0) translateY(calc(-50% + 24px));
    text-align: left; max-width: 420px;
  }
  .showcase-stage-left .section-kicker { justify-content: flex-start; }
  .showcase-stage-left.active { transform: translateX(0) translateY(-50%); }

  .showcase-stage-right {
    left: auto; right: 8%; top: 50%; transform: translateX(0) translateY(calc(-50% + 24px));
    text-align: right; max-width: 420px;
  }
  .showcase-stage-right .section-kicker { justify-content: flex-end; }
  .showcase-stage-right .section-kicker::before { order: 2; }
  .showcase-stage-right.active { transform: translateX(0) translateY(-50%); }
}

.showcase-progress {
  position: absolute; right: 2rem; top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; gap: .7rem; z-index: 11;
}
.showcase-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(61, 255, 176, .2);
  border: 1px solid rgba(61, 255, 176, .4);
  transition: background .3s, box-shadow .3s, transform .3s;
}
.showcase-dot.active {
  background: #3dffb0;
  box-shadow: 0 0 10px rgba(61, 255, 176, .8);
  transform: scale(1.25);
}

/* ---------- Product cards ---------- */
.product-card { display: flex; flex-direction: column; }
.product-badge {
  position: absolute; top: 1rem; left: 1rem;
  padding: .35rem .8rem; border-radius: 99px;
  font-size: 10px; letter-spacing: .2em; text-transform: uppercase;
  color: #7cffd4; border: 1px solid rgba(61, 255, 176, .35);
  background: rgba(4, 10, 20, .8); backdrop-filter: blur(6px);
}

/* ---------- Ecosystem node chips ---------- */
.node-chip {
  position: relative;
  padding: 1rem .75rem; border-radius: .7rem;
  border: 1px solid rgba(61, 255, 176, .2);
  background: rgba(10, 26, 47, .5);
  color: #cbd5e1; letter-spacing: .08em; text-transform: uppercase;
  font-family: 'Space Grotesk', sans-serif; font-size: .72rem;
  display: grid; place-items: center;
}
@media (min-width: 768px) {
  .node-chip:not(:last-child)::after {
    content: ''; position: absolute; right: -0.75rem; top: 50%; width: .75rem; height: 1px;
    background: linear-gradient(90deg, rgba(61,255,176,.6), rgba(61,255,176,.1));
  }
}

/* ---------- Stat cards ---------- */
.stat-card {
  padding: 2rem 1.75rem; border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, .06);
  background: linear-gradient(160deg, rgba(10, 26, 47, .7), rgba(4, 10, 20, .5));
  transition: border-color .35s, transform .35s;
}
.stat-card:hover { border-color: rgba(61, 255, 176, .35); transform: translateY(-4px); }
.stat-number {
  display: block; font-family: 'Space Grotesk', sans-serif; font-weight: 700;
  font-size: 2.6rem; line-height: 1;
  background: linear-gradient(135deg, #7cffd4, #2ab87a);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat-card h3 { margin-top: .9rem; color: #fff; font-family: 'Space Grotesk', sans-serif; font-weight: 600; }
.stat-card p { margin-top: .5rem; font-size: .875rem; color: #94a3b8; line-height: 1.6; }

/* ---------- Sector pills ---------- */
.sector-pill {
  padding: .45rem 1rem; border-radius: 99px;
  border: 1px solid rgba(255, 255, 255, .08); color: #94a3b8;
  background: rgba(10, 26, 47, .4);
  transition: border-color .3s, color .3s;
}
.sector-pill:hover { border-color: rgba(61, 255, 176, .5); color: #7cffd4; }

/* ---------- Why rows ---------- */
.why-row { display: flex; gap: 1.1rem; align-items: flex-start; }
.why-num {
  flex: none; font-family: 'Space Grotesk', sans-serif; font-weight: 600;
  font-size: .8rem; letter-spacing: .1em; color: #3dffb0;
  width: 2.6rem; height: 2.6rem; display: grid; place-items: center;
  border: 1px solid rgba(61, 255, 176, .3); border-radius: .55rem;
  background: rgba(61, 255, 176, .06);
}
.why-row h3 { color: #fff; font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 1rem; }
.why-row p { margin-top: .25rem; font-size: .875rem; color: #94a3b8; line-height: 1.6; }

/* ---------- Contact ---------- */
.contact-icon {
  flex: none; width: 2.5rem; height: 2.5rem; display: grid; place-items: center;
  border-radius: .55rem; color: #3dffb0;
  border: 1px solid rgba(61, 255, 176, .25); background: rgba(61, 255, 176, .06);
}
.contact-icon svg { width: 1.2rem; height: 1.2rem; }

.form-label { display: block; margin-bottom: .4rem; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: #64748b; }
.form-input {
  width: 100%; padding: .75rem 1rem; border-radius: .5rem;
  font-size: .9rem; color: #e2e8f0;
  background: rgba(10, 26, 47, .6);
  border: 1px solid rgba(255, 255, 255, .08);
  transition: border-color .25s, box-shadow .25s;
}
.form-input::placeholder { color: #475569; }
.form-input:focus {
  outline: none; border-color: rgba(61, 255, 176, .6);
  box-shadow: 0 0 0 3px rgba(61, 255, 176, .12);
}
select.form-input option { background: #0a1a2f; }

.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 60;
  max-width: 980px;
  margin: 0 auto;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid rgba(61, 255, 176, .22);
  border-radius: 1rem;
  background: rgba(4, 10, 20, .94);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .45);
}
.cookie-banner.hidden { display: none; }

span.hsfc-PhoneInput__FlagAndCaret__Flag {
    color: #fff !important;
}

.fotrem {
    font-size: 14px;
    text-align: center;
    margin: 0;
    color: rgb(100 116 139 / var(--tw-text-opacity, 1));
}

.fotrem a {
  text-decoration: none;
}

/* ---------- Animations ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.22,.61,.36,1), transform .8s cubic-bezier(.22,.61,.36,1); }
.reveal.in { opacity: 1; transform: none; }

.float-slow { animation: floatY 7s ease-in-out infinite; }
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .float-slow, .hud-fade, .hud-compass, .wire-flow, .wire-pulse, .node-pulse, .spark,
  #hero-particles .particle { animation: none; }
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

@media(max-width: 760px) {
  .hud-chip .text-lg {
      font-size: 0.9rem;
  }
}
@media (max-width: 760px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
  }
}

