/* NoFace marketing site */

/* ---------- nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 40;
  height: 68px;
  display: flex;
  align-items: center;
  transition: background var(--t-med) var(--ease), border-color var(--t-med) var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(10, 10, 14, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--smoke-40);
}
.nav-inner {
  width: 100%;
  max-width: var(--w-max);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 700; font-size: 18px; letter-spacing: 0.02em; }
.nav-brand img { width: 30px; height: 30px; border-radius: 7px; }
.nav-links { display: flex; gap: 24px; margin-left: auto; }
.nav-links a { color: var(--muted); font-size: 15px; font-weight: 500; transition: color var(--t-fast) var(--ease); }
.nav-links a:hover { color: var(--porcelain); }
.nav .btn { padding: 10px 20px; font-size: 15px; }
.nav-burger { display: none; margin-left: auto; width: 40px; height: 40px; border-radius: var(--r-ctl); border: 1px solid var(--smoke-40); align-items: center; justify-content: center; }
.nav-burger svg { width: 18px; }
.nav-menu { display: none; }

/* ---------- hero ---------- */
.hero-track { position: relative; height: 260vh; }
.hero-stage {
  position: sticky;
  top: 0;
  height: 100dvh;
  min-height: 100dvh;
  overflow: hidden;
}
#maskCanvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.redline {
  position: absolute;
  left: 0; right: 0;
  top: 50%;
  height: 2px;
  background: var(--vermilion);
  box-shadow: 0 0 24px rgba(255, 61, 46, 0.55);
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
}
.hero-grain {
  position: absolute; inset: 0;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.9'/%3E%3C/svg%3E");
}
.hero-copy {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  pointer-events: none;
}
.hero-copy-inner {
  width: 100%;
  max-width: var(--w-max);
  margin: 0 auto;
  padding: 0 24px;
}
.hero-panel { max-width: 560px; pointer-events: auto; will-change: transform, opacity; }
.hero-panel h1 { font-size: clamp(44px, 7vw, 88px); }
.hero-panel h1 em { font-style: normal; color: var(--vermilion); }
.hero-sub { margin: 22px 0 30px; font-size: 19px; color: var(--porcelain-70); max-width: 42ch; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-panel-2 {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  opacity: 0;
  pointer-events: none;
}
.hero-panel-2 .inner { max-width: 420px; margin-right: max(24px, calc((100vw - var(--w-max)) / 2 + 24px)); text-align: right; }
.hero-panel-2 h2 { font-size: clamp(30px, 4vw, 52px); }
.hero-panel-2 p { margin-top: 14px; color: var(--muted); font-size: 17px; }

/* ---------- shared section shell ---------- */
.section { padding: 120px 24px; }
.section-inner { max-width: var(--w-max); margin: 0 auto; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--vermilion);
  margin-bottom: 18px;
}
.section h2.title { font-size: clamp(32px, 4.6vw, 56px); max-width: 16ch; }
.section .lede { margin-top: 18px; font-size: 18px; color: var(--muted); max-width: 58ch; }

/* reveal on scroll */
.rv { opacity: 0; transform: translateY(26px); transition: opacity 600ms var(--ease), transform 600ms var(--ease); }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; } }

/* ---------- pipeline rail ---------- */
.rail { margin-top: 70px; position: relative; }
.rail-line {
  position: absolute;
  left: 19px; top: 8px; bottom: 8px;
  width: 2px;
  background: var(--smoke);
  overflow: hidden;
}
.rail-line i {
  position: absolute;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: var(--vermilion);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 120ms linear;
}
.stage { position: relative; padding: 26px 0 26px 64px; }
.stage-dot {
  position: absolute;
  left: 8px; top: 34px;
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 2px solid var(--smoke);
  background: var(--ink);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 11px; color: var(--muted);
  transition: border-color var(--t-med) var(--ease), color var(--t-med) var(--ease);
}
.stage.active .stage-dot { border-color: var(--vermilion); color: var(--porcelain); }
.stage h3 { font-size: 24px; }
.stage h3 span { color: var(--muted); font-weight: 600; }
.stage p { margin-top: 8px; color: var(--muted); max-width: 62ch; }
.stage .mono-note { margin-top: 10px; font-family: var(--font-mono); font-size: 12.5px; color: var(--porcelain-70); background: var(--ash); border: 1px solid var(--smoke-40); border-radius: var(--r-ctl); padding: 8px 12px; display: inline-block; }

/* ---------- niches bento ---------- */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--smoke-40);
  border-bottom: 1px solid var(--smoke-40);
  padding: 16px 0;
  margin: 64px 0;
}
.marquee-track {
  display: flex;
  gap: 44px;
  width: max-content;
  animation: marquee 36s linear infinite;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  color: var(--muted);
  white-space: nowrap;
}
.marquee-track b { color: var(--porcelain); font-weight: 600; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
  margin-top: 26px;
}
.tile {
  border: 1px solid var(--smoke-40);
  border-radius: var(--r-card);
  background: var(--ash);
  padding: 28px;
  position: relative;
  overflow: hidden;
}
.tile h3 { font-size: 22px; margin-bottom: 10px; }
.tile p { color: var(--muted); font-size: 15.5px; max-width: 46ch; }
.t-a { grid-column: span 7; min-height: 340px; display: flex; flex-direction: column; justify-content: flex-end; }
.t-a img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.5; }
.t-a > div { position: relative; }
.t-a::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(10,10,14,0.9)); }
.t-a > div { z-index: 1; }
.t-b { grid-column: span 5; background: linear-gradient(160deg, #1c1218, #15151C 60%); }
.persona-lines { margin-top: 16px; display: grid; gap: 8px; font-family: var(--font-mono); font-size: 12.5px; color: var(--porcelain-70); }
.persona-lines span b { color: var(--vermilion); font-weight: 500; }
.t-c { grid-column: span 5; }
.t-d { grid-column: span 7; display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center; }
.t-d img { width: 132px; height: 234px; object-fit: cover; border-radius: var(--r-ctl); border: 1px solid var(--smoke-40); }

/* ---------- mesh ---------- */
.mesh-panel {
  border: 1px solid var(--smoke-40);
  border-radius: var(--r-card);
  background: radial-gradient(120% 140% at 85% 0%, rgba(255, 61, 46, 0.09), transparent 55%), var(--ash);
  padding: 56px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
  margin-top: 70px;
}
.device-grid { display: grid; gap: 10px; }
.device-row {
  display: flex; align-items: center; gap: 14px;
  border: 1px solid var(--smoke-40);
  border-radius: var(--r-ctl);
  background: var(--ink);
  padding: 14px 18px;
  font-family: var(--font-mono);
  font-size: 13px;
}
.device-row .st { width: 8px; height: 8px; border-radius: 50%; background: var(--jade); }
.device-row .st.idle { background: var(--muted); }
.device-row .cap { margin-left: auto; color: var(--muted); }

/* ---------- loop (analytics) ---------- */
.loop-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; margin-top: 30px; }
.spark-card {
  border: 1px solid var(--smoke-40);
  border-radius: var(--r-card);
  background: var(--ash);
  padding: 28px;
}
.spark-card .head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 6px; }
.spark-card .head strong { font-family: var(--font-display); font-size: 30px; }
.spark-card .head .chip { color: var(--gold); border-color: rgba(232, 182, 90, 0.35); }
.spark-card p { color: var(--muted); font-size: 14.5px; margin-top: 12px; }
.spark-card svg { width: 100%; height: 90px; margin-top: 8px; }
.loop-points { display: grid; gap: 26px; }
.loop-points h3 { font-size: 21px; margin-bottom: 6px; }
.loop-points p { color: var(--muted); font-size: 15.5px; max-width: 52ch; }

/* ---------- noh ---------- */
.noh-sec { text-align: center; }
.noh-sec .stagebox { position: relative; width: min(340px, 78vw); margin: 60px auto 0; }
.noh-sec .stagebox img.bg { width: 100%; border-radius: var(--r-card); border: 1px solid var(--smoke-40); }
.noh-sprite {
  image-rendering: pixelated;
  width: 96px;
  height: 96px;
  margin: 26px auto 0;
}
@media (prefers-reduced-motion: no-preference) {
  .noh-sprite { animation: noh-bob 3.2s var(--ease) infinite; }
  @keyframes noh-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
}
.noh-sec .lede { margin: 22px auto 0; }

/* ---------- trust ---------- */
.trust-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 56px; margin-top: 56px; }
.trust-item { border-top: 1px solid var(--smoke-40); padding: 22px 0; }
.trust-item h3 { font-size: 19px; margin-bottom: 6px; }
.trust-item p { color: var(--muted); font-size: 15px; }

/* ---------- faq ---------- */
.faq { max-width: 760px; }
.faq details { border-bottom: 1px solid var(--smoke-40); }
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 22px 0;
  font-weight: 700;
  font-size: 17px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-mono); color: var(--vermilion); font-size: 20px; transition: transform var(--t-fast) var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; color: var(--muted); max-width: 62ch; }

/* ---------- final cta + footer ---------- */
.final {
  text-align: center;
  padding: 150px 24px 130px;
  position: relative;
  overflow: hidden;
}
.final::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 50%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--vermilion), transparent);
  opacity: 0.5;
}
.final h2 { font-size: clamp(36px, 5.4vw, 68px); position: relative; }
.final .btn { margin-top: 34px; position: relative; }
.footer { border-top: 1px solid var(--smoke-40); padding: 40px 24px; }
.footer-inner {
  max-width: var(--w-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--muted);
  font-size: 14px;
}
.footer-inner img { width: 24px; border-radius: 6px; }
.footer-inner nav { margin-left: auto; display: flex; gap: 22px; }
.footer-inner nav a:hover { color: var(--porcelain); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .nav-links, .nav .btn-primary { display: none; }
  .nav-burger { display: flex; }
  .nav-menu {
    position: fixed; inset: 68px 0 auto 0;
    background: rgba(10, 10, 14, 0.97);
    border-bottom: 1px solid var(--smoke-40);
    display: none;
    flex-direction: column;
    padding: 18px 24px 26px;
    gap: 16px;
    z-index: 39;
  }
  .nav-menu.open { display: flex; }
  .nav-menu a { font-size: 17px; color: var(--porcelain); }
  .hero-track { height: 220vh; }
  .hero-panel h1 { font-size: clamp(38px, 11vw, 56px); }
  .hero-panel-2 .inner { margin-right: 24px; text-align: left; }
  .section { padding: 84px 20px; }
  .bento { grid-template-columns: 1fr; }
  .t-a, .t-b, .t-c, .t-d { grid-column: auto; }
  .t-d { grid-template-columns: 1fr; }
  .t-d img { width: 100%; height: 200px; object-fit: cover; }
  .mesh-panel { grid-template-columns: 1fr; padding: 28px; gap: 30px; margin-top: 44px; }
  .loop-wrap { grid-template-columns: 1fr; gap: 34px; }
  .trust-grid { grid-template-columns: 1fr; gap: 0; }
}
