/* NPC Labs rebrand — Space Grey technical surface, restrained legacy accents.
   Yeezy first, Apple second: radical subtraction, one idea per screen. */

:root {
  --grey: #212121;
  --grey-deep: #181818;
  --ink: #1b1b1b;
  --paper: #ffffff;
  --text-dark: #f4f4f4;
  --muted-dark: #a9a9a9;
  --text-light: #1c1c1c;
  --muted-light: #5c5c5c;
  --blue: #5e56f6;
  --orange: #ec662b;
  --hairline-dark: rgba(255, 255, 255, 0.09);
  --hairline-light: rgba(0, 0, 0, 0.1);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--grey);
  color: var(--text-dark);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.6;
}

::selection { background: var(--blue); color: #fff; }

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 8vw;
}

/* ---------- Nav ---------- */

#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem 8vw;
  transition: background 0.5s ease, border-color 0.5s ease;
  border-bottom: 1px solid transparent;
}

#nav.scrolled {
  background: rgba(24, 24, 24, 0.72);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--hairline-dark);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}

.brand .mark { width: 30px; height: 30px; }

.nav-cta {
  color: var(--text-dark);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.55rem 1.25rem;
  border: 1px solid var(--hairline-dark);
  border-radius: 999px;
  transition: border-color 0.4s ease, background 0.4s ease;
}

.nav-cta:hover { border-color: var(--text-dark); background: rgba(255,255,255,0.06); }

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

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--grey);
}

#cells {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.85;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 18vh 8vw 14vh;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted-dark);
  margin-bottom: 2.2rem;
}

.tick {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--orange);
  flex: none;
}

.hero h1 {
  font-size: clamp(3rem, 8vw, 6.8rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.02;
  color: var(--text-dark);
  margin-bottom: 2rem;
}

.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  color: var(--muted-dark);
  max-width: 34rem;
  line-height: 1.7;
  margin-bottom: 3rem;
}

.cta {
  display: inline-block;
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  padding: 0.9rem 2.2rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  font-family: var(--font);
  transition: background 0.45s ease, color 0.45s ease, border-color 0.45s ease;
}

.cta:hover {
  background: var(--text-dark);
  color: var(--grey);
  border-color: var(--text-dark);
}

.scroll-hint {
  position: absolute;
  bottom: 2.2rem;
  left: 8vw;
  z-index: 2;
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted-dark);
  animation: breathe 3.2s ease-in-out infinite;
}

@keyframes breathe { 0%, 100% { opacity: 0.35; } 50% { opacity: 0.9; } }

/* ---------- Sections ---------- */

section { padding: 22vh 0; }

.vision { background: var(--paper); color: var(--text-light); }
.benefits { background: var(--grey-deep); }
.contact { background: var(--grey); border-top: 1px solid var(--hairline-dark); }

.vision .eyebrow { color: var(--muted-light); }

.vision-line {
  font-size: clamp(2.4rem, 5.6vw, 5rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.12;
  color: var(--text-light);
}

.vision-line + .vision-line { margin-top: 0.4rem; }

.vision-note {
  margin-top: 3rem;
  font-size: 1.1rem;
  color: var(--muted-light);
  max-width: 32rem;
  line-height: 1.7;
}

/* ---------- Benefits ---------- */

.benefit-list {
  list-style: none;
  margin-top: 4rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3.5rem 4rem;
}

.benefit-list li { border-top: 1px solid var(--hairline-dark); padding-top: 1.8rem; }

.benefit-list h2 {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 0.7rem;
  color: var(--text-dark);
}

.benefit-list p {
  color: var(--muted-dark);
  font-size: 1rem;
  line-height: 1.7;
}

/* ---------- Contact ---------- */

.contact-title {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  margin-bottom: 1.2rem;
  color: var(--text-dark);
}

.contact-note {
  color: var(--muted-dark);
  font-size: 1.1rem;
  margin-bottom: 3.5rem;
}

#contact-form { max-width: 30rem; }

.field { margin-bottom: 2rem; }

.field label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-dark);
  margin-bottom: 0.6rem;
}

.field input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  color: var(--text-dark);
  font-family: var(--font);
  font-size: 1.15rem;
  padding: 0.6rem 0;
  outline: none;
  transition: border-color 0.4s ease;
}

.field input::placeholder { color: rgba(255, 255, 255, 0.28); }
.field input:focus { border-bottom-color: var(--blue); }

.field textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  color: var(--text-dark);
  font-family: var(--font);
  font-size: 1.15rem;
  padding: 0.6rem 0;
  outline: none;
  resize: vertical;
  min-height: 6rem;
  transition: border-color 0.4s ease;
}

.field textarea::placeholder { color: rgba(255, 255, 255, 0.28); }
.field textarea:focus { border-bottom-color: var(--blue); }

.form-error {
  color: var(--orange);
  font-size: 0.92rem;
  margin-bottom: 1.5rem;
}

.direct a, footer a { color: var(--blue); text-decoration: none; }
.direct a:hover, footer a:hover { text-decoration: underline; }

.direct {
  margin-top: 4rem;
  color: var(--muted-dark);
  font-size: 1.02rem;
}

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

footer {
  background: var(--grey-deep);
  border-top: 1px solid var(--hairline-dark);
  padding: 2.6rem 0;
}

footer p {
  font-size: 0.85rem;
  color: var(--muted-dark);
  letter-spacing: 0.02em;
}

/* ---------- Reveal motion: slow, eased, one at a time ---------- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 1.1s cubic-bezier(0.22, 1, 0.36, 1), transform 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.in { opacity: 1; transform: none; }

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

/* ---------- Responsive ---------- */

@media (max-width: 720px) {
  section { padding: 14vh 0; }
  .hero-inner { padding-top: 16vh; }
}
