/* ============================================================
   nullnet.app — main marketing site
   Recreated from the Nullnet Design System nullnet-web UI kit.
   Tokens: ./tokens.css. Voice: engineer-spoken, retro-developer.
   ============================================================ */

:root {
  --ink: #0b0b0f;
  --ink-2: #16161c;
  --ink-3: #20202a;
  --paper: #fafafa;
  --paper-2: #f1f1f3;
  --line: rgba(255, 255, 255, 0.10);
  --line-dark: rgba(0, 0, 0, 0.10);
  --star: #f5c518;
  --doc: #6366f1;
  --bt: #3478f6;
  --bt-soft: #c7daff;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

html { scroll-behavior: smooth; }

a { color: inherit; text-decoration: none; }

img, svg { display: block; max-width: 100%; }

::selection { background: var(--star); color: var(--ink); }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--star); color: var(--ink);
  padding: 8px 14px; font-family: var(--font-mono); font-size: 13px;
  z-index: 1000; border-radius: 0 0 6px 0;
}
.skip:focus { left: 0; }

.mono { font-family: var(--font-mono); letter-spacing: -0.01em; }

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 32px;
}

.lt { color: rgba(250, 250, 250, 0.62); }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.03em;
  color: rgba(250, 250, 250, 0.7);
  border: 0.5px solid var(--line);
}

/* ── Header ─────────────────────────────────────────────── */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 32px;
  max-width: 1080px;
  margin: 0 auto;
  gap: 24px;
}

.nav .brand {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--paper);
}
.nav .brand .star {
  display: inline-block;
  width: 11px;
  height: 14px;
  background: var(--star);
  margin-left: 6px;
  animation: blink 1.1s steps(2) infinite;
}

@keyframes blink { 50% { opacity: 0; } }

.nav nav {
  display: flex;
  gap: 22px;
  font-family: var(--font-mono);
  font-size: 13px;
}
.nav nav a {
  color: rgba(250, 250, 250, 0.7);
  transition: color 0.15s ease;
}
.nav nav a:hover,
.nav nav a:focus-visible,
.nav nav a.active { color: var(--paper); }

.nav .right {
  display: flex;
  align-items: center;
  gap: 18px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: rgba(250, 250, 250, 0.5);
}
.nav .right a:hover { color: var(--paper); }

/* ── Hero ───────────────────────────────────────────────── */
.hero {
  padding: 80px 0 120px;
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.hero .scrim {
  position: absolute;
  right: -10%;
  top: -10%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.18) 0%, transparent 60%);
  pointer-events: none;
}

.hero .pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(48px, 9vw, 92px);
  line-height: 0.95;
  font-weight: 700;
  letter-spacing: -0.045em;
  margin: 0;
  max-width: 11ch;
  text-wrap: pretty;
}
.hero h1 em { font-style: normal; color: var(--star); }

.hero p.lede {
  font-size: 19px;
  line-height: 28px;
  color: rgba(250, 250, 250, 0.72);
  max-width: 56ch;
  text-wrap: pretty;
  margin-top: 28px;
}

.hero .terminal {
  margin-top: 36px;
  background: rgba(255, 255, 255, 0.04);
  border: 0.5px solid var(--line);
  border-radius: 14px;
  padding: 20px 24px;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 24px;
  max-width: 720px;
}
.hero .terminal .prompt { color: var(--star); }
.hero .terminal .out { color: rgba(250, 250, 250, 0.65); }
.hero .terminal .caret {
  display: inline-block;
  width: 8px;
  height: 16px;
  background: var(--paper);
  vertical-align: -2px;
  animation: blink 1.1s steps(2) infinite;
}

/* ── Apps section ───────────────────────────────────────── */
.apps { padding: 96px 0; }

.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  color: rgba(250, 250, 250, 0.45);
  margin-bottom: 28px;
}

.app {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
  padding: 80px 0;
  border-top: 1px solid var(--line);
}
.app:last-child { border-bottom: 1px solid var(--line); }

.app .num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(250, 250, 250, 0.4);
  letter-spacing: 0.08em;
}
.app h2 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 700;
  margin: 12px 0 16px;
}
.app .blurb {
  font-size: 17px;
  line-height: 26px;
  color: rgba(250, 250, 250, 0.7);
  max-width: 44ch;
  margin: 0;
}
.app .meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 22px 0 26px;
}
.app .ctas { display: flex; gap: 10px; flex-wrap: wrap; }
.app .cta {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 0.5px solid var(--line);
  transition: background 0.15s ease, transform 0.15s ease;
}
.app .cta:hover { background: rgba(255, 255, 255, 0.06); }
.app .cta:active { transform: scale(0.98); }
.app .cta.accent-doc { background: var(--doc); color: #fff; border-color: transparent; }
.app .cta.accent-doc:hover { background: #4f46e5; }
.app .cta.accent-bt { background: var(--bt); color: #fff; border-color: transparent; }
.app .cta.accent-bt:hover { background: #1d63d8; }

/* ── Mini iPhone device frames ──────────────────────────── */
.device {
  position: relative;
  aspect-ratio: 402 / 874;
  max-width: 360px;
  margin-left: auto;
  width: 100%;
}
.device .glow {
  position: absolute;
  inset: -40px;
  filter: blur(60px);
  border-radius: 60px;
  z-index: 0;
}
.device.doc .glow { background: radial-gradient(circle, rgba(99, 102, 241, 0.5) 0%, transparent 70%); }
.device.bt .glow { background: radial-gradient(circle, rgba(52, 120, 246, 0.5) 0%, transparent 70%); }

.iphone {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 42px;
  overflow: hidden;
  background: #f2f2f7;
  box-shadow:
    0 0 0 1.5px rgba(255, 255, 255, 0.18),
    0 40px 80px rgba(0, 0, 0, 0.5);
  z-index: 1;
}
.iphone .island {
  position: absolute;
  top: 11px; left: 50%; transform: translateX(-50%);
  width: 110px; height: 32px;
  border-radius: 999px;
  background: #000;
  z-index: 5;
}
.iphone .home {
  position: absolute;
  bottom: 8px; left: 50%; transform: translateX(-50%);
  width: 120px; height: 4px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.25);
  z-index: 5;
}

/* PassMint mini scene */
.doc-scene {
  width: 100%; height: 100%;
  padding: 60px 16px 24px;
  display: flex; flex-direction: column;
  gap: 14px;
  background: #f2f2f7;
}
.doc-scene .title { font-size: 28px; font-weight: 700; letter-spacing: -0.5px; color: #000; }
.doc-scene .hero-icon {
  width: 64px; height: 64px;
  border-radius: 16px;
  background: var(--doc);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  margin: 12px auto;
  box-shadow: 0 8px 22px rgba(99, 102, 241, 0.4);
}
.doc-scene .h2 { text-align: center; font-size: 17px; font-weight: 600; color: #000; }
.doc-scene .h3 {
  text-align: center;
  font-size: 12px;
  color: rgba(60, 60, 67, 0.6);
  padding: 0 24px;
  line-height: 16px;
}
.doc-scene .doc-cta {
  margin-top: 18px;
  align-self: center;
  padding: 11px 20px;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.18);
  color: var(--doc);
  font-size: 13px;
  font-weight: 600;
  backdrop-filter: blur(20px);
  border: 0.5px solid rgba(99, 102, 241, 0.3);
}
.doc-scene .pass-row {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  margin-top: auto;
}
.doc-scene .pass-row .ico {
  width: 28px; height: 28px;
  border-radius: 6px;
  background: var(--doc);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  flex-shrink: 0;
}
.doc-scene .pass-row .meta { flex: 1; min-width: 0; }
.doc-scene .pass-row .t { font-size: 12px; font-weight: 600; color: #000; }
.doc-scene .pass-row .s { font-size: 10px; color: rgba(60, 60, 67, 0.6); }
.doc-scene .pass-row .badge {
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.14);
  color: #4f46e5;
}

/* StoryMint mini scene */
.bt-scene { width: 100%; height: 100%; position: relative; overflow: hidden; }
.bt-scene .bg {
  position: absolute; inset: 0;
  background: linear-gradient(160deg, #1a1840 0%, #3b2670 60%, #7a4f8e 100%);
}
.bt-scene .moon {
  position: absolute; right: 26px; top: 70px;
  width: 90px; height: 90px;
  border-radius: 50%;
  background: radial-gradient(circle, #FFF8DC 30%, rgba(245, 197, 24, 0) 70%);
}
.bt-scene .stars span {
  position: absolute;
  width: 2px; height: 2px;
  background: #FFF8DC;
  border-radius: 50%;
  opacity: 0.7;
}
.bt-scene .ground {
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 50%;
  background: linear-gradient(0deg, #0e1f1a 0%, #264a3a 100%);
}
.bt-scene .stone {
  position: absolute;
  bottom: 145px; left: 47%;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: #F5C518;
  box-shadow: 0 0 24px 8px rgba(245, 197, 24, 0.5);
}
.bt-scene .text {
  position: absolute;
  left: 12px; right: 12px; bottom: 32px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(20px);
  font-family: var(--font-rounded);
  font-size: 14px; line-height: 21px;
  color: #000;
  font-weight: 500;
}
.bt-scene .text .read { color: #34C759; }
.bt-scene .text .now {
  background: #F5C518;
  color: #3a2c00;
  padding: 1px 5px;
  border-radius: 4px;
  font-weight: 700;
}
.bt-scene .text .diff { color: #FF3B30; font-weight: 600; }
.bt-scene .top-pill {
  position: absolute;
  top: 50px; left: 50%; transform: translateX(-50%);
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(16px);
  font-size: 11px;
  color: #1B1B22;
  font-weight: 600;
  border: 0.5px solid rgba(255, 255, 255, 0.5);
}

/* ── Manifesto ──────────────────────────────────────────── */
.manifesto {
  padding: 110px 0;
  border-top: 1px solid var(--line);
  background: var(--ink-2);
}
.manifesto h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.4vw, 32px);
  letter-spacing: -0.02em;
  max-width: 26ch;
  margin: 0 0 56px;
  line-height: 1.15;
  font-weight: 600;
}
.manifesto h2 em { font-style: normal; color: var(--star); }

.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.principle {
  padding: 24px 0;
  border-top: 1px solid var(--line);
}
.principle .num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(250, 250, 250, 0.45);
}
.principle h3 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 10px 0 8px;
}
.principle p {
  font-size: 14px;
  line-height: 21px;
  color: rgba(250, 250, 250, 0.65);
  margin: 0;
}

/* ── Journal ────────────────────────────────────────────── */
.journal { padding: 96px 0; border-top: 1px solid var(--line); }
.journal h2 {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.8vw, 28px);
  letter-spacing: -0.02em;
  margin: 0 0 28px;
  font-weight: 600;
}
.journal ul { list-style: none; margin: 0; padding: 0; }
.journal li {
  display: grid;
  grid-template-columns: 88px 1fr auto;
  gap: 24px;
  padding: 18px 0;
  border-top: 0.5px solid var(--line);
  align-items: center;
  transition: background 0.15s ease;
}
.journal li:last-child { border-bottom: 0.5px solid var(--line); }
.journal a.entry { display: contents; }
.journal .date {
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(250, 250, 250, 0.5);
}
.journal .title {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: color 0.15s ease;
}
.journal .arrow {
  font-family: var(--font-mono);
  color: rgba(250, 250, 250, 0.4);
  font-size: 14px;
  transition: color 0.15s ease, transform 0.15s ease;
}
.journal a.entry:hover .title,
.journal a.entry:focus-visible .title { color: var(--star); }
.journal a.entry:hover .arrow { color: var(--star); transform: translateX(4px); }

/* ── Footer ─────────────────────────────────────────────── */
footer { padding: 56px 0 40px; border-top: 1px solid var(--line); }
footer .row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
}
footer .wm {
  font-family: var(--font-mono);
  font-size: clamp(40px, 8vw, 64px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.9;
}
footer .wm .star {
  display: inline-block;
  width: clamp(10px, 1.6vw, 14px);
  height: clamp(24px, 5vw, 36px);
  background: var(--star);
  margin-left: 4px;
  transform: translateY(2px);
  animation: blink 1.1s steps(2) infinite;
}
footer .links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
  font-family: var(--font-mono);
  font-size: 13px;
  color: rgba(250, 250, 250, 0.6);
}
footer .links a:hover { color: var(--paper); }
footer .copy {
  margin-top: 28px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(250, 250, 250, 0.35);
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 880px) {
  .container { padding: 0 24px; }
  .nav { padding: 18px 24px; flex-wrap: wrap; }
  .nav .right { display: none; }
  .hero { padding: 56px 0 80px; }
  .hero p.lede { margin-top: 24px; }
  .app {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 56px 0;
  }
  .device { margin: 0 auto; max-width: 320px; }
  .principles { grid-template-columns: 1fr; gap: 8px; }
  .manifesto { padding: 80px 0; }
  .manifesto h2 { margin-bottom: 32px; }
  .journal li { grid-template-columns: 80px 1fr auto; gap: 12px; }
  footer .row { flex-direction: column; align-items: flex-start; }
  footer .links { align-items: flex-start; }
  footer .copy { flex-direction: column; gap: 8px; }
}

@media (max-width: 540px) {
  .nav nav { gap: 14px; font-size: 12px; }
  .hero .terminal { padding: 16px 18px; font-size: 13px; }
  .journal li { grid-template-columns: 1fr auto; }
  .journal .date { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .nav .brand .star,
  footer .wm .star,
  .hero .terminal .caret { animation: none; }
}
