/* ==========================================================================
   nexocomercialrf.com — design system
   Palette taken from the reference board: near-black ground, acid green,
   deep green, white. Light is the main structural device.
   ========================================================================== */

:root{
  /* ---- palette ---- */
  --ink:        #050607;   /* page ground */
  --ink-2:      #0a0c0d;   /* raised surface */
  --surface:    #101314;   /* cards */
  --surface-2:  #171b1c;   /* card hover / inputs */
  --line:       rgba(255,255,255,.09);
  --line-2:     rgba(184,227,81,.28);

  --acid:       #b8e351;   /* the brand accent */
  --acid-hot:   #cdf76a;   /* hover / highlight */
  --forest:     #23430c;   /* deep green, for fills behind acid */
  --glow:       rgba(184,227,81,.55);

  --txt:        #ffffff;
  --muted:      #9aa39b;
  --muted-2:    #666e68;

  /* ---- type ---- */
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* ---- rhythm ---- */
  --pad: clamp(20px, 5vw, 72px);
  --maxw: 1280px;
  --r: 16px;
  --r-lg: 26px;

  --ease: cubic-bezier(.22,.61,.36,1);
}

*,*::before,*::after{ box-sizing:border-box; }

html{ scroll-behavior:smooth; scroll-padding-top:88px; -webkit-text-size-adjust:100%; }

body{
  margin:0;
  background:var(--ink);
  color:var(--txt);
  font-family:var(--font);
  font-size:16px;
  line-height:1.65;
  letter-spacing:-.005em;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}

img,video,canvas,svg{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
button{ font:inherit; color:inherit; }
::selection{ background:var(--acid); color:var(--ink); }
:focus-visible{ outline:2px solid var(--acid); outline-offset:3px; border-radius:4px; }

/* --------------------------------------------------------------------------
   Ambient light — the thing that makes the references feel three-dimensional
   -------------------------------------------------------------------------- */

.glow-field{
  position:absolute;
  inset:0;
  z-index:0;
  pointer-events:none;
  overflow:hidden;
}
.glow-field::before,
.glow-field::after{
  content:"";
  position:absolute;
  border-radius:50%;
  filter:blur(90px);
  opacity:.5;
}
.glow-field::before{
  width:min(58vw,720px); aspect-ratio:1;
  right:-12%; top:-18%;
  background:radial-gradient(circle, rgba(184,227,81,.42) 0%, rgba(184,227,81,.10) 45%, transparent 70%);
}
.glow-field::after{
  width:min(46vw,560px); aspect-ratio:1;
  left:-14%; bottom:-22%;
  background:radial-gradient(circle, rgba(35,67,12,.85) 0%, rgba(35,67,12,.25) 50%, transparent 72%);
}

/* faint technical grid, straight from the crypto reference */
.grid-bg{
  position:absolute; inset:0; z-index:0; pointer-events:none;
  background-image:
    linear-gradient(rgba(255,255,255,.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px);
  background-size:64px 64px;
  mask-image:radial-gradient(ellipse 80% 60% at 50% 40%, #000 40%, transparent 100%);
  -webkit-mask-image:radial-gradient(ellipse 80% 60% at 50% 40%, #000 40%, transparent 100%);
}

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */

.wrap{ width:100%; max-width:var(--maxw); margin-inline:auto; padding-inline:var(--pad); position:relative; z-index:1; }
.section{ position:relative; padding-block:clamp(72px,10vw,140px); }
.section--tight{ padding-block:clamp(52px,7vw,92px); }

h1,h2,h3{ margin:0 0 .5em; line-height:1.05; letter-spacing:-.035em; font-weight:800; }
h1{ font-size:clamp(40px,6.4vw,82px); }
h2{ font-size:clamp(30px,4.4vw,54px); }
h3{ font-size:clamp(19px,2.2vw,25px); letter-spacing:-.02em; }
p{ margin:0 0 1.1em; } p:last-child{ margin-bottom:0; }

.accent{ color:var(--acid); }
.lead{ font-size:clamp(16.5px,1.6vw,19px); color:var(--muted); max-width:60ch; }
.muted{ color:var(--muted); }

.eyebrow{
  display:flex; align-items:center; gap:12px;
  font-size:12px; font-weight:700; letter-spacing:.18em; text-transform:uppercase;
  color:var(--acid); margin:0 0 18px;
}
.eyebrow::before{ content:""; width:26px; height:2px; background:var(--acid); flex:none; }

/* oversized ghost word behind a heading — the techgear device */
.ghost-head{ position:relative; margin-bottom:52px; }
.ghost-head .ghost{
  position:absolute;
  left:50%; top:50%;
  transform:translate(-50%,-70%);
  font-size:clamp(58px,12vw,168px);
  font-weight:800;
  letter-spacing:-.05em;
  line-height:1;
  color:transparent;
  -webkit-text-stroke:1px rgba(184,227,81,.11);
  white-space:nowrap;
  pointer-events:none;
  user-select:none;
  z-index:0;
}
.ghost-head > :not(.ghost){ position:relative; z-index:1; }
/* Below tablet the watermark just collides with the heading — drop it. */
@media (max-width:760px){ .ghost-head .ghost{ display:none; } }
.ghost-head.is-center{ text-align:center; }
.ghost-head.is-center .eyebrow{ justify-content:center; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  padding:14px 28px;
  border:1px solid var(--line);
  border-radius:999px;
  background:transparent;
  color:var(--txt);
  font-size:14.5px; font-weight:600;
  cursor:pointer;
  transition:transform .25s var(--ease), background .25s var(--ease),
             border-color .25s var(--ease), box-shadow .3s var(--ease), color .25s var(--ease);
}
.btn:hover{ transform:translateY(-2px); border-color:rgba(255,255,255,.3); background:rgba(255,255,255,.05); }
.btn svg{ width:17px; height:17px; flex:none; }

.btn--acid{
  background:var(--acid);
  border-color:var(--acid);
  color:var(--ink);
  font-weight:700;
  box-shadow:0 10px 34px -12px var(--glow);
}
.btn--acid:hover{
  background:var(--acid-hot); border-color:var(--acid-hot);
  box-shadow:0 16px 44px -12px var(--glow);
}
.btn--ghost{ backdrop-filter:blur(10px); background:rgba(255,255,255,.04); }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header{
  position:fixed; inset:0 0 auto 0; z-index:80;
  border-bottom:1px solid transparent;
  transition:background .3s var(--ease), border-color .3s var(--ease);
}
.site-header.is-stuck{
  background:rgba(5,6,7,.82);
  backdrop-filter:blur(16px) saturate(150%);
  border-bottom-color:var(--line);
}
.nav{ display:flex; align-items:center; gap:20px; height:74px; }
.brand{ display:flex; align-items:center; gap:11px; margin-right:auto; }
/* NX_Horizontal_Black.svg is black artwork; this renders it white without
   needing a second file. Swap in a white export and delete the filter. */
.brand img{
  height:38px; width:auto;
  filter:brightness(0) invert(1);
  transition:opacity .25s var(--ease);
}
.brand:hover img{ opacity:.82; }
@media (max-width:520px){ .brand img{ height:32px; } }
.brand-txt{ font-weight:800; letter-spacing:-.02em; font-size:15.5px; line-height:1.05; }
.brand-txt small{
  display:block; font-size:9.5px; font-weight:600; letter-spacing:.2em;
  color:var(--muted-2); margin-top:1px;
}

.nav-links{ display:flex; align-items:center; gap:2px; list-style:none; margin:0; padding:0; }
.nav-links a{
  display:block; padding:9px 15px; border-radius:999px;
  font-size:14px; font-weight:500; color:var(--muted);
  transition:color .2s var(--ease), background .2s var(--ease);
}
.nav-links a:hover{ color:var(--txt); background:rgba(255,255,255,.06); }
.nav-links a[aria-current="page"]{ color:var(--acid); }

.nav-toggle{
  display:none; width:42px; height:42px;
  border:1px solid var(--line); border-radius:12px;
  background:rgba(255,255,255,.04); cursor:pointer; place-items:center;
}
.nav-toggle span{ display:block; width:16px; height:1.5px; background:var(--txt); position:relative; transition:.25s var(--ease); }
.nav-toggle span::before,.nav-toggle span::after{
  content:""; position:absolute; left:0; width:16px; height:1.5px; background:var(--txt); transition:.25s var(--ease);
}
.nav-toggle span::before{ top:-5px; } .nav-toggle span::after{ top:5px; }
.nav-toggle[aria-expanded="true"] span{ background:transparent; }
.nav-toggle[aria-expanded="true"] span::before{ top:0; transform:rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after{ top:0; transform:rotate(-45deg); }

@media (max-width:880px){
  .nav-toggle{ display:grid; }
  .nav .btn--acid{ padding:11px 18px; font-size:13.5px; }
  .nav-links{
    position:fixed; inset:74px 0 auto 0;
    flex-direction:column; align-items:stretch; gap:2px;
    padding:14px var(--pad) 26px;
    background:rgba(5,6,7,.97); backdrop-filter:blur(18px);
    border-bottom:1px solid var(--line);
    transform:translateY(-12px); opacity:0; pointer-events:none;
    transition:.28s var(--ease);
  }
  .nav-links.is-open{ transform:none; opacity:1; pointer-events:auto; }
  .nav-links a{ padding:14px 16px; font-size:16px; }
}
@media (max-width:420px){ .nav .btn--acid{ display:none; } }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero{ position:relative; min-height:100svh; display:flex; align-items:center; overflow:hidden; }
.hero-grid{
  display:grid;
  grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);
  gap:clamp(24px,4vw,56px);
  align-items:center;
  width:100%;
  padding-block:clamp(110px,14vh,150px) clamp(56px,8vh,90px);
}
@media (max-width:940px){
  .hero-grid{ grid-template-columns:1fr; gap:8px; }
  .hero{ min-height:auto; }
}

.hero h1{ margin:0; font-size:clamp(36px,5.2vw,68px); }
.hero h1 .line{ display:block; }
.hero-copy{ margin-top:24px; max-width:46ch; color:var(--muted); font-size:clamp(15.5px,1.6vw,18px); }
.hero-actions{ display:flex; flex-wrap:wrap; gap:12px; margin-top:34px; }

.hero-meta{
  display:flex; flex-wrap:wrap; gap:10px 26px;
  margin-top:40px; padding-top:22px;
  border-top:1px solid var(--line);
  font-size:13px; color:var(--muted-2);
}
.hero-meta b{ color:var(--acid); font-weight:700; }

/* the 3D stage */
.stage{
  position:relative;
  aspect-ratio:1/1;
  width:100%;
  max-width:720px;
  margin-inline:auto;
  display:grid;
  place-items:center;
}
.stage canvas{ width:100% !important; height:100% !important; display:block; }
/* fallback shown until (or instead of) the 3D */
.stage__fallback{
  position:absolute; inset:0;
  display:grid; place-items:center;
  padding:12%;
  transition:opacity .8s var(--ease);
}
.stage__fallback img,.stage__fallback svg{
  width:82%; height:auto; margin-inline:auto;
  filter:drop-shadow(0 0 70px rgba(184,227,81,.55)) drop-shadow(0 0 22px rgba(184,227,81,.35));
  animation:float 7s ease-in-out infinite;
}
.stage.is-3d .stage__fallback{ opacity:0; pointer-events:none; }
@keyframes float{ 0%,100%{ transform:translateY(-8px); } 50%{ transform:translateY(8px); } }

@media (max-width:620px){
  .stage{ max-width:340px; opacity:.9; }
  .stage__fallback img{ width:70%; animation:float 9s ease-in-out infinite; }
}

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */

.cards{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(min(280px,100%),1fr));
  gap:clamp(14px,1.8vw,20px);
}

/* Explicit counts beat auto-fit here: auto-fit was dropping the fourth
   service onto its own row. */
.cards--4{ grid-template-columns:repeat(4,minmax(0,1fr)); }
.cards--3{ grid-template-columns:repeat(3,minmax(0,1fr)); }
.cards--2{ grid-template-columns:repeat(2,minmax(0,1fr)); }
@media (max-width:1080px){
  .cards--4,.cards--3{ grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:620px){
  .cards--4,.cards--3,.cards--2{ grid-template-columns:1fr; }
}

/* tighter service cards so four fit comfortably */
.cards--4 .card{ padding:24px 22px 26px; }
.cards--4 .card h3{ font-size:clamp(17px,1.5vw,19.5px); }
.cards--4 .card p{ font-size:13.8px; }
.cards--4 .card__icon{ width:62px; margin-bottom:14px; }

.card{
  position:relative;
  padding:30px 28px;
  border:1px solid var(--line);
  border-radius:var(--r-lg);
  background:linear-gradient(180deg, var(--surface) 0%, var(--ink-2) 100%);
  overflow:hidden;
  transition:transform .4s var(--ease), border-color .3s var(--ease), box-shadow .4s var(--ease);
}
.card::after{
  content:""; position:absolute; inset:0; pointer-events:none;
  background:radial-gradient(120% 90% at 50% -20%, rgba(184,227,81,.10), transparent 60%);
  opacity:0; transition:opacity .4s var(--ease);
}
.card:hover{
  transform:translateY(-4px);
  border-color:var(--line-2);
  box-shadow:0 28px 60px -34px rgba(0,0,0,.95), 0 0 0 1px rgba(184,227,81,.06);
}
.card:hover::after{ opacity:1; }
.card__icon{ width:76px; height:auto; margin-bottom:18px; filter:drop-shadow(0 12px 26px rgba(184,227,81,.28)); }
.card h3{ margin:0 0 6px; }
.card p{ font-size:14.5px; color:var(--muted); margin:0; }

/* the one filled card, straight from the crypto reference */
.card--filled{
  background:var(--acid);
  border-color:var(--acid);
  color:var(--ink);
  box-shadow:0 24px 60px -28px var(--glow);
}
.card--filled p{ color:rgba(5,6,7,.72); }
.card--filled .card__num{ color:rgba(5,6,7,.55); }
.card__num{
  display:block; font-size:13px; font-weight:800; letter-spacing:.1em;
  color:var(--acid); margin-bottom:14px;
}

/* --------------------------------------------------------------------------
   Product blocks
   -------------------------------------------------------------------------- */

.product{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(min(340px,100%),1fr));
  gap:clamp(24px,4vw,64px);
  align-items:center;
}
.product__media{
  position:relative;
  border-radius:var(--r-lg);
  overflow:hidden;
  background:radial-gradient(90% 80% at 50% 30%, #161a16 0%, var(--ink-2) 70%);
  border:1px solid var(--line);
  padding:clamp(20px,4vw,48px);
  display:grid; place-items:center;
}
.product__media::before{
  content:""; position:absolute; inset:0; pointer-events:none;
  background:radial-gradient(60% 50% at 50% 0%, rgba(184,227,81,.18), transparent 65%);
}
.product__media img{ width:100%; height:auto; position:relative; filter:drop-shadow(0 30px 50px rgba(0,0,0,.6)); }

.price{
  display:flex; align-items:baseline; gap:10px;
  margin:22px 0 6px;
}
.price b{ font-size:clamp(34px,4.5vw,50px); font-weight:800; letter-spacing:-.04em; color:var(--acid); line-height:1; }
.price span{ font-size:13.5px; color:var(--muted); }

.ticks{ list-style:none; margin:20px 0 0; padding:0; display:grid; gap:11px; }
.ticks li{ display:flex; gap:11px; align-items:flex-start; font-size:15px; color:var(--muted); }
.ticks li::before{
  content:""; flex:none; margin-top:7px;
  width:7px; height:7px; border-radius:50%;
  background:var(--acid); box-shadow:0 0 12px var(--glow);
}

/* --------------------------------------------------------------------------
   Form
   -------------------------------------------------------------------------- */

.form{ display:grid; gap:14px; max-width:560px; }
.field{ display:grid; gap:7px; }
.field label{ font-size:11.5px; font-weight:700; letter-spacing:.14em; text-transform:uppercase; color:var(--muted); }
.field input,.field textarea{
  width:100%; padding:14px 16px;
  border:1px solid var(--line); border-radius:13px;
  background:var(--surface-2); color:var(--txt);
  font:inherit; font-size:15px;
  transition:.2s var(--ease);
}
.field input:focus,.field textarea:focus{
  outline:none; border-color:var(--acid);
  background:rgba(184,227,81,.06);
  box-shadow:0 0 0 4px rgba(184,227,81,.09);
}
.field textarea{ min-height:130px; resize:vertical; }
.field--row{ display:grid; grid-template-columns:1fr 1fr; gap:14px; }
@media (max-width:560px){ .field--row{ grid-template-columns:1fr; } }

.hp{ position:absolute !important; left:-9999px !important; width:1px; height:1px; opacity:0; }

.form-status{ font-size:14px; padding:12px 15px; border-radius:12px; display:none; }
.form-status.is-ok{ display:block; background:rgba(184,227,81,.12); border:1px solid var(--line-2); color:var(--acid); }
.form-status.is-err{ display:block; background:rgba(224,79,79,.12); border:1px solid rgba(224,79,79,.35); color:#f0a3a3; }

/* --------------------------------------------------------------------------
   Floating WhatsApp
   -------------------------------------------------------------------------- */

.wa-float{
  position:fixed; right:clamp(14px,3vw,26px); bottom:clamp(14px,3vw,26px); z-index:90;
  display:inline-flex; align-items:center; gap:10px;
  padding:13px 20px 13px 15px; border-radius:999px;
  background:#25d366; color:#04240f; font-size:14.5px; font-weight:700;
  box-shadow:0 12px 34px -12px rgba(37,211,102,.75);
  transition:transform .28s var(--ease), box-shadow .28s var(--ease);
}
.wa-float:hover{ transform:translateY(-3px); box-shadow:0 18px 44px -12px rgba(37,211,102,.9); }
.wa-float svg{ width:22px; height:22px; fill:currentColor; flex:none; }
@media (max-width:560px){ .wa-float{ padding:14px; } .wa-float span{ display:none; } }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer{ position:relative; border-top:1px solid var(--line); background:var(--ink-2); padding-block:clamp(48px,7vw,80px) 28px; }
.footer-top{
  display:flex; flex-wrap:wrap; gap:26px; justify-content:space-between; align-items:flex-end;
  padding-bottom:32px; border-bottom:1px solid var(--line);
}
.footer-top h2{ margin:0; max-width:16ch; }
.socials{ display:flex; gap:10px; }
.socials a{
  width:44px; height:44px; display:grid; place-items:center;
  border:1px solid var(--line); border-radius:13px; color:var(--muted);
  transition:.24s var(--ease);
}
.socials a:hover{ color:var(--acid); border-color:var(--line-2); background:rgba(184,227,81,.07); transform:translateY(-2px); }
.socials svg{ width:19px; height:19px; fill:currentColor; }
.footer-bottom{
  display:flex; flex-wrap:wrap; gap:10px 26px; justify-content:space-between;
  padding-top:24px; font-size:13px; color:var(--muted-2);
}

/* --------------------------------------------------------------------------
   Reveal
   -------------------------------------------------------------------------- */

[data-reveal]{ opacity:0; transform:translateY(24px); transition:opacity .8s var(--ease), transform .8s var(--ease); }
[data-reveal].is-in{ opacity:1; transform:none; }

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