/* ============================================================
   NexLeaf Networks — Design System
   Navy #0A0F1E · Emerald #2BDE8C · Teal #00D4C8
   Display: Space Grotesk · Body: Inter
   ============================================================ */

:root {
  --navy:        #0A0F1E;
  --navy-2:      #0D1426;
  --surface:     #111A2E;
  --surface-2:   #16223C;
  --line:        #1E2C49;
  --emerald:     #2BDE8C;
  --teal:        #00D4C8;
  --text:        #E8F0FE;
  --muted:       #8197B8;
  --muted-2:     #5B7290;
  --radius:      16px;
  --radius-sm:   10px;
  --maxw:        1180px;
  --ease:        cubic-bezier(.22,.61,.36,1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--navy);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, .display {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 24px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 15px; cursor: pointer;
  border: 1px solid transparent; transition: all .25s var(--ease);
  font-family: 'Space Grotesk', sans-serif;
}
.btn-primary {
  background: linear-gradient(135deg, var(--emerald), var(--teal));
  color: #042417;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -8px rgba(43,222,140,.5); }
.btn-ghost { border-color: var(--line); color: var(--text); background: rgba(255,255,255,.02); }
.btn-ghost:hover { border-color: var(--emerald); color: var(--emerald); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  backdrop-filter: blur(14px); background: rgba(10,15,30,.72);
  border-bottom: 1px solid transparent; transition: border-color .3s, background .3s;
}
.nav.scrolled { border-bottom-color: var(--line); background: rgba(10,15,30,.9); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: 'Space Grotesk'; font-weight: 700; font-size: 19px; }
.logo-mark { width: 30px; height: 30px; }
.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; }
.nav-links a { font-size: 15px; color: var(--muted); transition: color .2s; font-weight: 500; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; background: none; border: none; color: var(--text); cursor: pointer; padding: 8px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 150px 0 90px; overflow: hidden; }
#node-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: .55; }
.hero-inner { position: relative; z-index: 2; max-width: 820px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600;
  color: var(--emerald); letter-spacing: .08em; text-transform: uppercase;
  padding: 7px 14px; border: 1px solid var(--line); border-radius: 100px;
  background: rgba(43,222,140,.05); margin-bottom: 26px;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--emerald); box-shadow: 0 0 10px var(--emerald); }
.hero h1 { font-size: clamp(38px, 6vw, 68px); margin-bottom: 22px; }
.hero h1 .grad { background: linear-gradient(120deg, var(--emerald), var(--teal)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: clamp(17px, 2vw, 20px); color: var(--muted); max-width: 600px; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Sections ---------- */
.section { padding: 90px 0; position: relative; }
.section-head { max-width: 640px; margin-bottom: 54px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-label { font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--teal); margin-bottom: 14px; }
.section-head h2 { font-size: clamp(28px, 4vw, 42px); margin-bottom: 16px; }
.section-head p { color: var(--muted); font-size: 17px; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.stat { padding: 30px 26px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); position: relative; overflow: hidden; }
.stat::before { content:''; position: absolute; top:0; left:0; width: 100%; height: 2px; background: linear-gradient(90deg, var(--emerald), var(--teal)); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.stat:hover::before { transform: scaleX(1); }
.stat .num { font-family: 'Space Grotesk'; font-size: 42px; font-weight: 700; background: linear-gradient(120deg, var(--emerald), var(--teal)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat .lbl { color: var(--muted); font-size: 14px; margin-top: 6px; }

/* ---------- Cards grid ---------- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
  position: relative; overflow: hidden;
}
.card:hover { transform: translateY(-4px); border-color: rgba(43,222,140,.4); box-shadow: 0 20px 50px -20px rgba(0,0,0,.6); }
.card-ico { width: 50px; height: 50px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(43,222,140,.16), rgba(0,212,200,.1)); border: 1px solid var(--line); }
.card-ico svg { width: 24px; height: 24px; stroke: var(--emerald); }
.card h3 { font-size: 20px; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 15px; }
.card .more { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; color: var(--emerald); font-weight: 600; font-size: 14px; }
.card .more svg { width: 16px; height: 16px; flex-shrink: 0; }
.card-ico svg { width: 24px; height: 24px; stroke: var(--emerald); }

/* ---------- Product cards ---------- */
.product-card { display: flex; flex-direction: column; }
.product-logo { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; font-size: 28px; margin-bottom: 18px; background: linear-gradient(135deg, var(--surface-2), var(--navy-2)); border: 1px solid var(--line); }
.product-card .tag { display: inline-block; font-size: 12px; color: var(--teal); border: 1px solid var(--line); padding: 3px 10px; border-radius: 100px; margin-bottom: 14px; align-self: flex-start; }
.badge-live { color: var(--emerald); border-color: rgba(43,222,140,.4); }
.badge-soon { color: var(--muted); }

/* ---------- Testimonials ---------- */
.quote { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.quote p { font-size: 16px; color: var(--text); margin-bottom: 20px; font-style: italic; }
.quote .who { display: flex; align-items: center; gap: 12px; }
.quote .avatar { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--emerald), var(--teal)); display: grid; place-items: center; color: #042417; font-weight: 700; font-family: 'Space Grotesk'; }
.quote .who .n { font-weight: 600; font-size: 15px; }
.quote .who .r { color: var(--muted); font-size: 13px; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(135deg, var(--surface-2), var(--navy-2)); border: 1px solid var(--line); border-radius: 24px; padding: 60px; text-align: center; position: relative; overflow: hidden; }
.cta-band::after { content:''; position: absolute; inset: 0; background: radial-gradient(circle at 50% 0%, rgba(43,222,140,.12), transparent 60%); }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { font-size: clamp(26px, 4vw, 40px); margin-bottom: 16px; }
.cta-band p { color: var(--muted); max-width: 500px; margin: 0 auto 28px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 60px 0 30px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer p.desc { color: var(--muted); font-size: 14px; max-width: 280px; margin-top: 14px; }
.footer h4 { font-size: 14px; margin-bottom: 16px; color: var(--text); }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 10px; }
.footer ul a { color: var(--muted); font-size: 14px; transition: color .2s; }
.footer ul a:hover { color: var(--emerald); }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; color: var(--muted-2); font-size: 13px; flex-wrap: wrap; gap: 12px; }

/* ---------- Forms ---------- */
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 8px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 15px; background: var(--navy-2); border: 1px solid var(--line);
  border-radius: var(--radius-sm); color: var(--text); font-size: 15px; font-family: inherit; transition: border-color .2s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--emerald); }
.field textarea { resize: vertical; min-height: 120px; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Page header ---------- */
.page-hero { padding: 140px 0 50px; position: relative; }
.page-hero h1 { font-size: clamp(34px, 5vw, 54px); margin-bottom: 16px; }
.page-hero p { color: var(--muted); font-size: 18px; max-width: 600px; }

/* ---------- Breadcrumb ---------- */
.crumb { display: flex; gap: 8px; color: var(--muted-2); font-size: 14px; margin-bottom: 30px; }
.crumb a:hover { color: var(--emerald); }

/* ---------- Detail layouts ---------- */
.detail-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 50px; align-items: start; }
.feature-list { list-style: none; }
.feature-list li { display: flex; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.feature-list li svg { width: 20px; height: 20px; stroke: var(--emerald); flex-shrink: 0; margin-top: 2px; }

.shot { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }

.price-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.price-card.featured { border-color: var(--emerald); }
.price-card .amt { font-family: 'Space Grotesk'; font-size: 38px; font-weight: 700; }
.price-card .per { color: var(--muted); font-size: 14px; }

.faq-item { border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 12px; overflow: hidden; background: var(--surface); }
.faq-q { padding: 18px 22px; font-weight: 600; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.faq-a { padding: 0 22px; max-height: 0; overflow: hidden; color: var(--muted); transition: max-height .3s var(--ease), padding .3s; }
.faq-item.open .faq-a { padding: 0 22px 18px; max-height: 300px; }
.faq-item.open .faq-q svg { transform: rotate(45deg); }
.faq-q svg { transition: transform .3s; stroke: var(--emerald); }

/* ---------- Filter pills ---------- */
.pills { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 36px; }
.pill { padding: 8px 18px; border: 1px solid var(--line); border-radius: 100px; font-size: 14px; cursor: pointer; transition: all .2s; color: var(--muted); background: none; font-family: inherit; }
.pill:hover { color: var(--text); }
.pill.active { background: var(--emerald); color: #042417; border-color: var(--emerald); font-weight: 600; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2,1fr); }
  .stats { grid-template-columns: repeat(2,1fr); }
  .detail-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .nav-links { position: fixed; inset: 68px 0 auto 0; flex-direction: column; background: var(--navy-2); padding: 24px; gap: 18px; border-bottom: 1px solid var(--line); transform: translateY(-120%); transition: transform .3s var(--ease); }
  .nav-links.open { transform: none; }
  .nav-toggle { display: block; }
  .nav .desktop-cta { display: none; }
  .grid-3, .grid-2, .stats { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 40px 24px; }
  .section { padding: 60px 0; }
}
