/* ============================================================
   NPG — design system
   Scandinavian minimalist: near-black, white, off-white,
   bold Inter type, generous whitespace, one electric accent.
   ============================================================ */
:root {
  --ink:      #0a0a0a;
  --ink-2:    #16161a;
  --paper:    #f5f4f1;
  --white:    #ffffff;
  --muted:    #8a8a92;
  --line:     rgba(255,255,255,.14);
  --accent:   #ff3b2f;   /* experiential energy */
  --accent-2: #2f6bff;
  --radius:   14px;
  --ease:     cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---------- Landing (dark) ---------- */
body.landing {
  background: var(--ink);
  color: var(--white);
  overflow-x: hidden;
}

.grain {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.cursor-glow {
  position: fixed; z-index: 0; width: 46vmax; height: 46vmax; left: 0; top: 0;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255,59,47,.16), transparent 60%);
  pointer-events: none; transition: opacity .4s; opacity: 0;
}

/* topbar */
.topbar {
  position: relative; z-index: 3;
  display: flex; align-items: center; justify-content: space-between;
  padding: 26px clamp(20px, 5vw, 64px);
}
.brand { text-decoration: none; color: var(--white); display: flex; flex-direction: column; line-height: 1; }
.brand-mark { font-weight: 900; font-size: 26px; letter-spacing: -.03em; }
.brand-mark.small { font-size: 20px; }
.brand-sub { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.topnav { display: flex; align-items: center; gap: clamp(14px, 3vw, 34px); }
.clock { font-variant-numeric: tabular-nums; font-size: 13px; color: var(--muted); letter-spacing: .08em; }

.btn-ghost {
  color: var(--white); text-decoration: none; font-size: 14px; font-weight: 600;
  padding: 10px 18px; border: 1px solid var(--line); border-radius: 100px;
  transition: .3s var(--ease);
}
.btn-ghost:hover { background: var(--white); color: var(--ink); }
.arrow { display: inline-block; transition: transform .3s var(--ease); }
.btn-ghost:hover .arrow, .btn-primary:hover .arrow { transform: translateX(4px); }

/* hero */
.hero {
  position: relative; z-index: 2;
  min-height: calc(100vh - 92px);
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 clamp(20px, 5vw, 64px) 40px;
  max-width: 1400px;
}
.eyebrow { font-size: 14px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); font-weight: 600; margin: 0 0 22px; }

.mega {
  margin: 0; font-weight: 900; letter-spacing: -.045em; line-height: .92;
  font-size: clamp(3rem, 12vw, 11rem);
}
.mega .line { display: block; }
.rotator {
  display: inline-grid; position: relative; vertical-align: baseline;
  color: var(--accent);
}
.rot-word {
  grid-area: 1 / 1; opacity: 0; transform: translateY(.4em) rotateX(-40deg);
  animation: rot 8s infinite; transform-origin: bottom;
}
.rot-word:nth-child(1) { animation-delay: 0s; }
.rot-word:nth-child(2) { animation-delay: 2s; }
.rot-word:nth-child(3) { animation-delay: 4s; }
.rot-word:nth-child(4) { animation-delay: 6s; }
@keyframes rot {
  0%   { opacity: 0; transform: translateY(.4em) rotateX(-40deg); }
  5%   { opacity: 1; transform: translateY(0) rotateX(0); }
  22%  { opacity: 1; transform: translateY(0) rotateX(0); }
  27%  { opacity: 0; transform: translateY(-.4em) rotateX(40deg); }
  100% { opacity: 0; transform: translateY(-.4em) rotateX(40deg); }
}

.lead { max-width: 620px; margin: 34px 0 0; font-size: clamp(1rem, 1.5vw, 1.25rem); line-height: 1.55; color: #cfcfd4; }
.lead code { color: var(--white); background: rgba(255,255,255,.08); padding: 1px 7px; border-radius: 6px; font-size: .9em; }

.cta-row { display: flex; align-items: center; gap: 18px; margin-top: 40px; flex-wrap: wrap; }
.btn-primary {
  background: var(--accent); color: #fff; text-decoration: none;
  font-weight: 700; font-size: 15px; padding: 16px 26px; border-radius: 100px;
  display: inline-flex; align-items: center; gap: 10px;
  box-shadow: 0 10px 40px rgba(255,59,47,.35); transition: .3s var(--ease);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 50px rgba(255,59,47,.5); }
.btn-line { color: var(--white); text-decoration: none; font-weight: 600; font-size: 15px; opacity: .7; }
.btn-line:hover { opacity: 1; }

.scroll-hint { margin-top: 64px; width: 26px; height: 42px; border: 2px solid var(--line); border-radius: 16px; position: relative; }
.scroll-hint span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; background: var(--white); border-radius: 4px; animation: scrolldot 1.8s infinite; }
@keyframes scrolldot { 0% { opacity: 0; transform: translateY(0);} 30%{opacity:1;} 60%{opacity:0; transform: translateY(12px);} 100%{opacity:0;} }

/* marquee */
.marquee { position: relative; z-index: 2; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; padding: 20px 0; background: var(--ink-2); }
.marquee-track { display: flex; white-space: nowrap; animation: slide 26s linear infinite; }
.marquee-track span { font-weight: 900; font-size: clamp(1.4rem, 4vw, 3rem); letter-spacing: -.02em; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.4); }
@keyframes slide { to { transform: translateX(-50%); } }

/* panel */
.panel { position: relative; z-index: 2; padding: clamp(60px, 12vh, 160px) clamp(20px, 5vw, 64px); background: var(--paper); color: var(--ink); }
.panel-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 90px); align-items: start; }
.panel h2 { font-size: clamp(2rem, 6vw, 5rem); font-weight: 900; letter-spacing: -.04em; line-height: .95; margin: 0; }
.panel-body p { font-size: 1.15rem; line-height: 1.6; color: #3a3a3f; margin: 0 0 28px; }
.panel-body code { background: #e7e6e1; padding: 1px 7px; border-radius: 6px; }
.stat-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.stat-list li { display: flex; align-items: center; gap: 12px; font-size: 1.05rem; border-bottom: 1px solid #e0dfda; padding-bottom: 14px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: #00c875; box-shadow: 0 0 0 4px rgba(0,200,117,.15); }

/* footer */
.foot { background: var(--ink); color: var(--muted); display: flex; align-items: center; justify-content: space-between; padding: 30px clamp(20px, 5vw, 64px); font-size: 14px; }
.foot a { color: var(--white); }
@media (max-width: 760px) { .panel-grid { grid-template-columns: 1fr; } .brand-sub { display: none; } }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .rot-word, .marquee-track, .scroll-hint span { animation: none; }
  .rot-word:nth-child(1){ opacity:1; }
}
