/* ==========================================================================
   NetEngine — Practical AI for real businesses
   Design system & component styles — dark, premium reinterpretation
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Brand hues */
  --navy:   rgb(1,0,84);
  --navy-2: rgb(26, 24, 141);
  --blue:   #3a5bff;        /* brightened for contrast on dark */
  --blue-d: #1a3df5;
  --sky:    rgb(94,200,253);
  --sky-1:  rgb(142, 216, 252);
  --orange: rgb(245,67,23);
  --orange-d: rgb(211, 54, 15);

  /* Dark surfaces */
  --bg:        #04003a;          /* page base — deeper than brand navy */
  --bg-deep:   #02001f;          /* darkest wells */
  --panel:     rgba(255,255,255,0.045);
  --panel-2:   rgba(255,255,255,0.07);
  --panel-border: rgba(255,255,255,0.10);
  --bg-tint:   rgba(58,91,255,0.12);   /* faint blue wash */
  --bg-soft:   rgba(255,255,255,0.025);

  /* Text */
  --ink:    rgba(255,255,255,0.92);
  --muted:  rgba(255,255,255,0.60);
  --line:   rgba(255,255,255,0.10);
  --white:  #ffffff;

  --maxw: 1180px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.7);
  --shadow-sm: 0 12px 30px -16px rgba(0, 0, 0, 0.6);
  --glow: 0 0 0 1px rgba(58,91,255,0.4), 0 24px 60px -24px rgba(58,91,255,0.45);

  --ff-head: "Poppins", "Segoe UI", system-ui, -apple-system, sans-serif;
  --ff-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  --t: 0.25s ease;
  --reveal-dur: 0.7s;
  --reveal-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--ff-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
/* Ambient background glow */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 50% at 15% 0%, rgba(58,91,255,0.18) 0%, transparent 60%),
    radial-gradient(50% 45% at 100% 10%, rgba(94,200,253,0.10) 0%, transparent 55%),
    radial-gradient(55% 60% at 85% 100%, rgba(245,67,23,0.08) 0%, transparent 55%);
  pointer-events: none;
}
img { max-width: 100%; display: block; }
a { color: var(--sky); text-decoration: none; transition: color var(--t); }
a:hover { color: var(--orange); }
ul { padding: 0; list-style: none; }
::selection { background: var(--orange); color: #fff; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--ff-head);
  color: #fff;
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.02em;
  overflow-wrap: break-word;
}
h1 { font-size: clamp(2.6rem, 6.4vw, 4.6rem); font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); font-weight: 700; }
h3 { font-size: clamp(1.3rem, 2.1vw, 1.7rem); }
h4 { font-size: 1.1rem; }
p  { color: var(--muted); }
.accent { color: var(--orange); }
strong { color: #fff; font-weight: 600; }

.eyebrow {
  font-family: var(--ff-head);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sky);
  margin-bottom: 1.1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.eyebrow::before {
  content: "";
  width: 1.8rem;
  height: 2px;
  background: var(--orange);
  display: inline-block;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: clamp(4rem, 9vw, 7.5rem); position: relative; }
.section--tint { background: var(--bg-tint); }
.section--soft { background: var(--bg-soft); }
.section--navy { background: var(--navy); }

.lead { font-size: clamp(1.1rem, 1.7vw, 1.4rem); color: var(--muted); max-width: 60ch; line-height: 1.55; }
.measure { max-width: 65ch; }
.center { text-align: center; }
.center .lead, .center .measure { margin-inline: auto; }

.grid { display: grid; gap: clamp(1.25rem, 3vw, 2rem); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--ff-head);
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1;
  padding: 1rem 1.7rem;
  border-radius: 100px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--t), background var(--t), color var(--t), border-color var(--t), box-shadow var(--t);
}
.btn:hover { transform: translateY(-2px); }
.btn .arrow { transition: transform var(--t); }
.btn:hover .arrow { transform: translateX(4px); }

.btn-orange { background: var(--orange); color: #fff; box-shadow: 0 14px 40px -16px rgba(245,67,23,0.7); }
.btn-orange:hover { background: var(--orange-d); color: #fff; box-shadow: 0 18px 50px -16px rgba(245,67,23,0.85); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-2); color: #fff; }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-d); color: #fff; }
.btn-white { background: #fff; color: var(--navy); }
.btn-white:hover { background: var(--sky-1); color: var(--navy); }
.btn-outline { background: transparent; color: #fff; border-color: var(--sky); }
.btn-outline:hover { background: var(--sky); color: var(--navy); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.35); }
.btn-outline-light:hover { background: #fff; color: var(--navy); border-color: #fff; }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2.2rem; }
.center .btn-row { justify-content: center; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(4,0,58,0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background var(--t), border-color var(--t), padding var(--t);
}
.site-header.scrolled {
  background: rgba(4,0,58,0.9);
  border-bottom-color: var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.1rem;
  transition: padding var(--t);
}
.site-header.scrolled .nav { padding-block: 0.7rem; }
.brand { display: inline-flex; align-items: center; }
.brand img { display: inline-block; }
.brand .logo { height: 40px; width: auto; }
.brand .wordmark { height: 38px; width: auto; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.nav-links > li > a {
  font-family: var(--ff-head);
  font-weight: 500;
  font-size: 0.97rem;
  color: rgba(255,255,255,0.85);
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
}
.nav-links > li > a:hover,
.nav-links > li > a[aria-current="page"] { color: #fff; background: var(--panel-2); }

/* Dropdown (retained for future nav) */
.has-dropdown { position: relative; }
.dropdown-toggle {
  display: inline-flex; align-items: center; gap: 0.3rem;
  background: none; border: none; cursor: pointer;
  font-family: var(--ff-head); font-weight: 500; font-size: 0.97rem;
  color: rgba(255,255,255,0.85); padding: 0.5rem 0.85rem; border-radius: 8px;
}
.dropdown-toggle:hover { color: #fff; background: var(--panel-2); }
.dropdown-toggle .caret { transition: transform var(--t); font-size: 0.7em; }
.has-dropdown[data-open="true"] .dropdown-toggle .caret { transform: rotate(180deg); }
.dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 250px;
  background: #0a0850;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity var(--t), transform var(--t), visibility var(--t);
}
.has-dropdown:hover .dropdown,
.has-dropdown[data-open="true"] .dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.dropdown a {
  display: block;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  color: rgba(255,255,255,0.85);
  font-family: var(--ff-head);
  font-weight: 500;
  font-size: 0.95rem;
}
.dropdown a:hover { background: var(--panel-2); color: #fff; }
.dropdown a span { display: block; font-family: var(--ff-body); font-weight: 400; font-size: 0.82rem; color: var(--muted); margin-top: 0.1rem; }

.nav-cta { margin-left: 0.4rem; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(4rem, 9vw, 7rem); }
.hero--navy {
  background:
    radial-gradient(120% 120% at 80% -10%, rgba(58,91,255,0.30) 0%, transparent 55%),
    linear-gradient(165deg, #07015c 0%, #04003a 55%, #02001f 100%);
}
.hero--navy, .hero--navy h1 { color: #fff; }
.hero--navy p { color: rgba(255,255,255,0.78); }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero h1 { margin-bottom: 1.4rem; }
.hero .lead { color: rgba(255,255,255,0.82); }
.hero--light .lead { color: var(--muted); }

/* faint grid overlay on hero */
.hero--navy::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(75% 75% at 50% 30%, #000 0%, transparent 75%);
  mask-image: radial-gradient(75% 75% at 50% 30%, #000 0%, transparent 75%);
  pointer-events: none;
  z-index: 0;
}
.hero .container { position: relative; z-index: 1; }

/* scroll cue */
.scroll-cue {
  display: inline-flex; align-items: center; gap: 0.5rem;
  margin-top: 2.6rem;
  font-family: var(--ff-head); font-weight: 500; font-size: 0.78rem;
  letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,0.55);
}
.scroll-cue .dot {
  width: 26px; height: 42px; border-radius: 100px;
  border: 2px solid rgba(255,255,255,0.3); position: relative;
}
.scroll-cue .dot::after {
  content: ""; position: absolute; left: 50%; top: 8px;
  width: 4px; height: 8px; border-radius: 4px; background: var(--sky);
  transform: translateX(-50%);
  animation: scrollDot 1.8s ease-in-out infinite;
}
@keyframes scrollDot {
  0%, 100% { opacity: 0; transform: translate(-50%, 0); }
  35% { opacity: 1; }
  70% { opacity: 0; transform: translate(-50%, 14px); }
}

/* ---------- Marquee ---------- */
.marquee {
  border-block: 1px solid var(--line);
  background: var(--bg-deep);
  overflow: hidden;
  padding-block: 1.1rem;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  gap: 3rem;
  width: max-content;
  animation: marquee 28s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
  font-family: var(--ff-head); font-weight: 600;
  font-size: clamp(1rem, 1.6vw, 1.35rem);
  letter-spacing: 0.04em; color: rgba(255,255,255,0.8);
  display: inline-flex; align-items: center; gap: 3rem; white-space: nowrap;
}
.marquee-item::after { content: "✦"; color: var(--orange); font-size: 0.8em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Square motif (logo-inspired) ---------- */
.motif {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 440px;
  margin-inline: auto;
  will-change: transform;
}
.motif span {
  position: absolute;
  display: block;
  /* border-radius: 10px; */
  box-shadow: 0 24px 60px -20px rgba(0,0,0,0.6);
}
.motif .sq-sky   { width: 58%; height: 58%; top: 4%;  left: 2%;  background: var(--sky); animation: floatA 7s ease-in-out infinite; }
.motif .sq-orange{ width: 58%; height: 58%; bottom: 2%; right: 2%; background: var(--orange); animation: floatB 8s ease-in-out infinite; }
.motif .sq-navy  { width: 46%; height: 46%; top: 27%; left: 27%; background: linear-gradient(135deg, var(--blue), var(--navy-2)); z-index: 2; animation: floatA 6s ease-in-out infinite; }
.motif .sq-blue  { width: 22%; height: 22%; bottom: -6%; left: 14%; background: var(--blue); animation: floatB 9s ease-in-out infinite; }
@keyframes floatA { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes floatB { 0%,100% { transform: translateY(0); } 50% { transform: translateY(12px); } }

/* small decorative squares */
.deco-sq { position: absolute; border-radius: 6px; z-index: 0; }

/* ---------- Cards ---------- */
.card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 2.5vw, 2.1rem);
  height: 100%;
  backdrop-filter: blur(6px);
  transition: transform var(--t), box-shadow var(--t), border-color var(--t), background var(--t);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: rgba(58,91,255,0.5); background: var(--panel-2); }
.card .card-icon {
  width: 50px; height: 50px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--bg-tint); color: var(--sky);
  font-size: 1.4rem; margin-bottom: 1.1rem;
}
.card h3 { margin-bottom: 0.5rem; }
.card p { font-size: 0.98rem; }
.card .card-link {
  display: inline-flex; align-items: center; gap: 0.4rem;
  margin-top: 1rem; font-family: var(--ff-head); font-weight: 600; font-size: 0.92rem;
  color: var(--sky);
}

/* value card variant */
.value-card .card-title { color: var(--orange); font-family: var(--ff-head); font-weight: 700; font-size: 1.1rem; margin-bottom: 0.4rem; }

/* ---------- Section number (Moonward-style) ---------- */
.section-num {
  font-family: var(--ff-head);
  font-weight: 800;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255,255,255,0.28);
  letter-spacing: 0.02em;
}
.section-num .b { color: var(--orange); -webkit-text-stroke: 0; }

/* ---------- Steps / process ---------- */
.steps { display: grid; gap: 1.25rem; }
.step {
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 1.6rem;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 2.8vw, 2.2rem);
  align-items: center;
  transition: transform var(--t), border-color var(--t), background var(--t);
}
.step:hover { transform: translateX(6px); border-color: rgba(58,91,255,0.5); background: var(--panel-2); }
.step-num {
  font-family: var(--ff-head); font-weight: 800; font-size: 1.6rem;
  width: 62px; height: 62px; border-radius: 16px;
  display: grid; place-items: center;
  background: var(--navy); color: #fff;
  box-shadow: var(--shadow-sm);
}
.step:nth-child(1) .step-num { background: linear-gradient(135deg, var(--blue), var(--navy)); }
.step:nth-child(2) .step-num { background: linear-gradient(135deg, var(--sky), var(--blue)); color: var(--navy); }
.step:nth-child(3) .step-num { background: linear-gradient(135deg, var(--orange), #ff7a3d); }
.step:nth-child(4) .step-num { background: linear-gradient(135deg, var(--sky), #b9e8ff); color: var(--navy); }
.step .section-num { align-self: center; }
.step h3 { margin-bottom: 0.35rem; }
.step p { font-size: 0.98rem; }

/* ---------- Pathway (numbered services) ---------- */
.pathway { border-top: 1px solid var(--line); padding-block: clamp(2.2rem, 5vw, 3.5rem); }
.pathway-grid { display: grid; grid-template-columns: 0.4fr 1.6fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.pathway-num { font-family: var(--ff-head); font-weight: 800; font-size: clamp(3rem, 7vw, 5rem); line-height: 1; color: var(--sky); }
.pathway-num .accent { color: var(--orange); }
.bestfor {
  display: inline-block;
  font-family: var(--ff-head); font-weight: 600; font-size: 0.85rem;
  color: var(--sky); background: var(--bg-tint);
  padding: 0.35rem 0.8rem; border-radius: 100px; margin-bottom: 1rem;
}

/* ---------- Feature list ---------- */
.feature-list { display: grid; gap: 0.8rem; margin-top: 1.2rem; }
.feature-list li {
  position: relative; padding-left: 2rem; color: var(--ink); font-size: 1rem;
}
.feature-list li::before {
  content: ""; position: absolute; left: 0; top: 0.55em;
  width: 0.85rem; height: 0.85rem; border-radius: 4px;
  background: var(--orange);
}
.feature-list.alt li::before { background: var(--sky); }

/* ---------- Team ---------- */
.team-card { text-align: left; }
.avatar {
  width: 88px; height: 88px; border-radius: 20px;
  display: grid; place-items: center;
  font-family: var(--ff-head); font-weight: 800; font-size: 2rem; color: #fff;
  margin-bottom: 1.2rem;
  position: relative;
}
.avatar.av-navy { background: linear-gradient(135deg, var(--blue), var(--navy)); }
.avatar.av-blue { background: linear-gradient(135deg, var(--sky), var(--blue)); }
.avatar::after {
  content: ""; position: absolute; width: 38%; height: 38%; border-radius: 6px;
  bottom: -10px; right: -10px; background: var(--orange);
}
.team-card .role { color: var(--orange); font-family: var(--ff-head); font-weight: 600; font-size: 0.95rem; }

/* ---------- Quote ---------- */
.quote {
  border-left: 4px solid var(--orange);
  padding-left: clamp(1.25rem, 3vw, 2rem);
}
.quote blockquote {
  font-family: var(--ff-head); font-weight: 500;
  font-size: clamp(1.4rem, 2.8vw, 2.1rem); line-height: 1.3; color: #fff;
}
.quote cite { display: block; margin-top: 1.2rem; font-style: normal; font-weight: 600; color: var(--ink); }
.quote cite span { color: var(--muted); font-weight: 400; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; }
.cta-band .container { position: relative; z-index: 2; }

/* ---------- Contact methods ---------- */
.contact-card {
  background: var(--panel); border: 1px solid var(--panel-border); border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.2rem); display: grid; gap: 0.4rem;
}
.contact-card .label { font-family: var(--ff-head); font-weight: 600; color: #fff; }
.contact-card a { font-size: 1.15rem; font-weight: 600; }
.placeholder-note { font-size: 0.85rem; color: var(--muted); font-style: italic; }
.note-pill {
  display: inline-block; font-size: 0.78rem; font-weight: 600; font-family: var(--ff-head);
  color: var(--orange); background: rgba(245,67,23,0.15); padding: 0.2rem 0.6rem; border-radius: 100px;
  text-transform: uppercase; letter-spacing: 0.05em;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-deep); color: rgba(255,255,255,0.7); padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2.5rem; }
.site-footer img { height: 30px; margin-bottom: 1.1rem; }
.site-footer h4 { color: #fff; font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 1rem; }
.site-footer a { color: rgba(255,255,255,0.7); }
.site-footer a:hover { color: var(--sky); }
.footer-links li { margin-bottom: 0.6rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  margin-top: 2.5rem; padding-top: 1.5rem;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  font-size: 0.85rem;
}

/* ---------- Utilities ---------- */
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }
.text-light { color: rgba(255,255,255,0.82); }

/* ---------- Scroll-reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--reveal-dur) var(--reveal-ease), transform var(--reveal-dur) var(--reveal-ease);
  transition-delay: var(--reveal-delay, 0s);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero .motif { max-width: 320px; order: -1; }
  .cols-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .nav-cta { margin-left: 0; }
}

@media (max-width: 720px) {
  h1 { font-size: clamp(2.1rem, 9vw, 2.8rem); }
  .split { grid-template-columns: 1fr; }
  .cols-2, .cols-3 { grid-template-columns: 1fr; }
  .pathway-grid { grid-template-columns: 1fr; gap: 0.5rem; }
  .pathway-num { font-size: 3rem; }
  .step { grid-template-columns: auto 1fr; gap: 1rem 1.1rem; }
  .step .section-num { grid-column: 1 / -1; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}
