/* ===========================================================
   Nodebrook — coming soon page
   =========================================================== */

:root {
  --forest-dark: #132a22;
  --forest-dark2: #16261f;
  --forest-darker: #0c1e18;
  --mint: #5cc79a;
  --mint-light: #8fe0bd;
  --mint-dim: #3d9c76;
  --off-white: #faf8f3;
  --paper: #ffffff;
  --pale-mint: #eef7f2;
  --ink: #16261f;
  --ink-soft: rgba(22, 38, 31, 0.66);
  --ink-softer: rgba(22, 38, 31, 0.46);

  --font: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Fraunces", Georgia, serif;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  --wrap: 1160px;
  --wrap-narrow: 680px;
  --header-h: 88px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--off-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.1;
}

p { margin: 0; }

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

em.accent {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  color: var(--mint-light);
  letter-spacing: 0;
}

em.accent-dark { color: var(--mint-dim); }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 1;
}

.wrap-narrow {
  max-width: var(--wrap-narrow);
  margin: 0 auto;
  padding: 0 32px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.section { padding: 150px 0; position: relative; scroll-margin-top: var(--header-h); }

.center { text-align: center; }

#hero, #problem, #solution, #usecases, #closing { scroll-margin-top: var(--header-h); }

/* ===================== AMBIENT BACKGROUNDS + PARALLAX ===================== */

.section-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

[data-parallax] { will-change: transform; }

.mesh-bg {
  position: absolute;
  inset: -15%;
  background-repeat: no-repeat;
  filter: blur(70px);
  animation: mesh-drift 34s ease-in-out infinite alternate;
  will-change: transform;
}

.mesh-dark {
  background-image:
    radial-gradient(circle at 22% 28%, rgba(92, 199, 154, 0.30), transparent 42%),
    radial-gradient(circle at 78% 24%, rgba(143, 224, 189, 0.20), transparent 46%),
    radial-gradient(circle at 50% 84%, rgba(61, 156, 118, 0.26), transparent 48%);
}

.mesh-light {
  background-image:
    radial-gradient(circle at 22% 26%, rgba(92, 199, 154, 0.12), transparent 42%),
    radial-gradient(circle at 80% 22%, rgba(143, 224, 189, 0.10), transparent 46%),
    radial-gradient(circle at 50% 86%, rgba(61, 156, 118, 0.09), transparent 48%);
}

@keyframes mesh-drift {
  0% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(-2.5%, 3%) rotate(3deg); }
  100% { transform: translate(3%, -2%) rotate(-2.5deg); }
}

.node-canvas.ambient { opacity: 0.9; }

@media (prefers-reduced-motion: reduce) {
  .mesh-bg { animation: none; }
  [data-parallax] { transform: none !important; }
}

/* ===================== GRAIN + PROGRESS ===================== */

.grain {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 2.5px;
  z-index: 210;
  pointer-events: none;
  background: transparent;
}

.scroll-progress span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--mint-dim), var(--mint-light));
}

/* ===================== CUSTOM CURSOR ===================== */

html.has-cursor, html.has-cursor * { cursor: none !important; }

.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0; left: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 300;
  opacity: 0;
  transition: opacity 0.25s ease, width 0.2s var(--ease), height 0.2s var(--ease);
  will-change: transform;
}

.cursor-dot {
  width: 6px; height: 6px;
  background: var(--mint);
  mix-blend-mode: difference;
}

.cursor-ring {
  width: 34px; height: 34px;
  margin: -17px 0 0 -17px;
  border: 1px solid rgba(92, 199, 154, 0.55);
  mix-blend-mode: difference;
}

html.has-cursor .cursor-dot,
html.has-cursor .cursor-ring { opacity: 1; }

.cursor-ring.is-hover {
  width: 54px; height: 54px;
  margin: -27px 0 0 -27px;
  background: rgba(92, 199, 154, 0.12);
}

/* ===================== REVEAL ===================== */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--d, 0s);
}

.reveal.in-view { opacity: 1; transform: translateY(0); }

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

/* ===================== HEADER ===================== */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 22px 0;
  background: linear-gradient(to bottom, rgba(19,42,34,0.55), rgba(19,42,34,0));
  transition: background 0.4s ease, backdrop-filter 0.4s ease, border-color 0.4s ease, padding 0.4s ease;
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  padding: 14px 0;
  background: rgba(19, 42, 34, 0.78);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid rgba(143, 224, 189, 0.12);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.logo-mark { display: block; margin-right: 6px; }

.logo-text {
  font-size: 1.32rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--off-white);
}

.header-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--mint-light);
  border: 1px solid rgba(143, 224, 189, 0.28);
  padding: 7px 14px 7px 12px;
  border-radius: 999px;
  background: rgba(143, 224, 189, 0.05);
}

.pulse-dot {
  position: relative;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--mint);
  flex: 0 0 auto;
}

.pulse-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--mint);
  animation: pulse-ring 2.4s var(--ease) infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.6); opacity: 0.9; }
  100% { transform: scale(2.1); opacity: 0; }
}

/* ===================== HERO ===================== */

.hero {
  position: relative;
  background: var(--forest-dark);
  overflow: hidden;
  padding-bottom: 64px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-image: radial-gradient(rgba(143, 224, 189, 0.09) 1px, transparent 1px);
  background-size: 30px 30px;
  background-position: center;
}

.node-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
}

.hero-glow-a {
  width: 560px; height: 560px;
  top: -180px; left: -140px;
  background: radial-gradient(circle, rgba(92, 199, 154, 0.28), transparent 70%);
  animation: drift-a 22s ease-in-out infinite;
}

.hero-glow-b {
  width: 480px; height: 480px;
  bottom: -200px; right: -120px;
  background: radial-gradient(circle, rgba(143, 224, 189, 0.2), transparent 70%);
  animation: drift-b 26s ease-in-out infinite;
}

.hero-glow-c {
  width: 500px; height: 500px;
  top: 10%; right: -160px;
  background: radial-gradient(circle, rgba(92, 199, 154, 0.16), transparent 70%);
  filter: blur(100px);
  position: absolute;
  z-index: 0;
}

.hero-glow-d {
  width: 460px; height: 460px;
  bottom: -160px; left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(92, 199, 154, 0.18), transparent 70%);
  filter: blur(110px);
  position: absolute;
  z-index: 0;
}

@keyframes drift-a {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(40px, 50px); }
}

@keyframes drift-b {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-30px, -40px); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-glow-a, .hero-glow-b { animation: none; }
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding-top: var(--header-h);
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mint-light);
  margin-bottom: 28px;
}

.eyebrow-dark { color: var(--mint-dim); }
.eyebrow.center { width: 100%; }

.hero-headline {
  color: var(--off-white);
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  max-width: 900px;
  margin: 0 auto;
  font-weight: 800;
}

.hero-sub {
  margin: 32px auto 0;
  max-width: 600px;
  color: rgba(250, 248, 243, 0.7);
  font-size: 1.18rem;
  line-height: 1.65;
}

/* ===================== SIGNUP FORM ===================== */

.signup-form {
  margin: 46px auto 0;
  display: flex;
  justify-content: center;
  gap: 10px;
  max-width: 460px;
  flex-wrap: wrap;
}

.signup-form input[type="email"] {
  flex: 1 1 260px;
  min-width: 0;
  padding: 16px 22px;
  border-radius: 999px;
  border: 1px solid rgba(250, 248, 243, 0.2);
  background: rgba(250, 248, 243, 0.05);
  color: var(--off-white);
  font-family: var(--font);
  font-size: 0.98rem;
  outline: none;
  transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.signup-form input[type="email"]::placeholder { color: rgba(250, 248, 243, 0.4); }

.signup-form input[type="email"]:focus {
  border-color: var(--mint);
  background: rgba(250, 248, 243, 0.08);
  box-shadow: 0 0 0 4px rgba(92, 199, 154, 0.16);
}

.signup-form button {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 24px;
  border-radius: 999px;
  border: none;
  background: var(--mint);
  color: var(--forest-dark);
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.98rem;
  cursor: pointer;
  transition: background 0.25s ease, box-shadow 0.25s ease, transform 0.3s var(--ease);
}

.signup-form button svg { transition: transform 0.3s var(--ease); }

.signup-form button:hover {
  background: var(--mint-light);
  box-shadow: 0 8px 30px -8px rgba(92, 199, 154, 0.55);
}

.signup-form button:hover svg { transform: translateX(3px); }

.form-note {
  margin-top: 16px;
  font-size: 0.85rem;
  color: rgba(250, 248, 243, 0.42);
}

.form-success {
  margin: 46px auto 0;
  max-width: 460px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--mint-light);
  font-size: 1.02rem;
  font-weight: 600;
  animation: success-in 0.6s var(--ease);
}

.form-success svg { flex: 0 0 auto; }

@keyframes success-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===================== SCROLL CUE ===================== */

.scroll-cue {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(250, 248, 243, 0.45);
  transition: color 0.25s ease, transform 0.25s ease;
}

.scroll-cue:hover { color: rgba(250, 248, 243, 0.8); }

.scroll-cue span {
  width: 1px;
  height: 34px;
  background: linear-gradient(to bottom, var(--mint), transparent);
  animation: scroll-cue-move 2s ease-in-out infinite;
}

@keyframes scroll-cue-move {
  0%, 100% { transform: scaleY(1); transform-origin: top; opacity: 0.6; }
  50% { transform: scaleY(0.5); transform-origin: top; opacity: 1; }
}

/* ===================== PROBLEM ===================== */

.problem { background: var(--off-white); }

.problem-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  align-items: start;
}

.problem-index {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 8rem;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(22, 38, 31, 0.14);
}

.problem-content h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.5rem);
  color: var(--ink);
  max-width: 640px;
}

.problem-quote {
  margin-top: 30px;
  padding-left: 24px;
  border-left: 2px solid var(--mint);
  max-width: 620px;
}

.problem-quote p {
  font-size: 1.14rem;
  line-height: 1.75;
  color: var(--ink-soft);
}

.problem .emphasis {
  margin-top: 26px;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--forest-dark);
  font-family: var(--font-display);
  font-style: italic;
}

/* ===================== SOLUTION ===================== */

.solution { background: var(--paper); }

.solution h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.5rem);
  margin-top: 8px;
}

.solution .lead {
  margin: 22px auto 0;
  max-width: 560px;
  font-size: 1.14rem;
  line-height: 1.7;
  color: var(--ink-soft);
}

/* ---- data sources it will read ---- */

.sources {
  margin: 48px auto 0;
  max-width: 620px;
  text-align: center;
}

.sources-lead {
  font-size: 0.96rem;
  line-height: 1.6;
  color: var(--ink-softer);
  margin: 0 auto 22px;
  max-width: 520px;
}

.sources-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.sources-list li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 15px 8px 11px;
  border-radius: 999px;
  background: var(--pale-mint);
  border: 1px solid rgba(92, 199, 154, 0.16);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--forest-dark);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.sources-list li:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -14px rgba(19, 42, 34, 0.25);
  border-color: rgba(92, 199, 154, 0.35);
  background: #ffffff;
}

.sources-icon {
  display: inline-flex;
  flex: 0 0 auto;
  color: var(--mint-dim);
}

.sources-icon svg { width: 14px; height: 14px; display: block; }

.card-grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  position: relative;
}

.card {
  position: relative;
  background: var(--pale-mint);
  border-radius: 20px;
  padding: 38px 32px;
  border: 1px solid rgba(92, 199, 154, 0.14);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease), background 0.4s var(--ease);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 50px -20px rgba(19, 42, 34, 0.22);
  border-color: rgba(92, 199, 154, 0.35);
  background: #ffffff;
}

.card-index {
  position: absolute;
  top: 30px;
  right: 32px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--mint-dim);
  opacity: 0.55;
  font-variant-numeric: tabular-nums;
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(92, 199, 154, 0.14);
  color: var(--forest-dark);
  margin-bottom: 26px;
  transition: background 0.35s ease, color 0.35s ease, transform 0.35s var(--ease);
}

.card-icon svg { width: 24px; height: 24px; }

.card:hover .card-icon {
  background: var(--mint);
  color: var(--forest-dark);
  transform: scale(1.08) rotate(-4deg);
}

.card h3 {
  font-size: 1.14rem;
  margin-bottom: 12px;
  color: var(--forest-dark);
}

.card p {
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--ink-soft);
}

/* ===================== DARK BAND (usecases + closing share one continuous, interactive background) ===================== */

.dark-band {
  position: relative;
  background: var(--forest-dark);
  overflow: hidden;
}

/* ===================== USE CASES ===================== */

.usecases {
  background: transparent;
}

.light-heading {
  color: var(--off-white);
  font-size: clamp(1.9rem, 3.4vw, 2.5rem);
  margin-bottom: 64px;
  margin-top: 8px;
}

.usecase-list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 760px;
  position: relative;
}

.usecase-list::before {
  content: "";
  position: absolute;
  left: 26px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: linear-gradient(to bottom, rgba(92, 199, 154, 0.5), rgba(92, 199, 154, 0.05));
}

.usecase-list li {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 28px;
  padding: 26px 16px 26px 0;
  border-bottom: 1px solid rgba(250, 248, 243, 0.08);
  transition: padding-left 0.35s var(--ease);
}

.usecase-list li:hover { padding-left: 10px; }

.usecase-list li:last-of-type { border-bottom: none; }

.uc-num {
  position: relative;
  flex: 0 0 52px;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 1.5rem;
  color: var(--mint-dim);
  opacity: 0.6;
  transition: color 0.3s ease, opacity 0.3s ease;
}

.uc-num::after {
  content: "";
  position: absolute;
  left: -24px;
  top: 50%;
  width: 7px; height: 7px;
  margin-top: -3.5px;
  border-radius: 50%;
  background: var(--mint);
}

.usecase-list li:hover .uc-num { color: var(--mint-light); opacity: 1; }

.uc-text {
  font-size: 1.06rem;
  line-height: 1.6;
  color: rgba(250, 248, 243, 0.82);
}

.uc-longterm {
  margin-top: 6px;
  padding-top: 30px;
  padding-bottom: 30px;
  background: rgba(92, 199, 154, 0.05);
  border-radius: 16px;
  border-bottom: none !important;
  padding-left: 16px;
}

.uc-longterm:hover { padding-left: 24px; }

.uc-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--forest-dark);
  background: var(--mint-light);
  padding: 3px 10px;
  border-radius: 999px;
  margin-right: 10px;
  transform: translateY(-2px);
}

/* ===================== CLOSING ===================== */

.closing {
  background: transparent;
  padding-bottom: 80px;
}

.closing h2 {
  color: var(--off-white);
  font-size: clamp(2.1rem, 3.8vw, 2.9rem);
}

.closing p {
  margin-top: 24px;
  font-size: 1.14rem;
  line-height: 1.7;
  color: rgba(250, 248, 243, 0.7);
}

/* ===================== FOOTER ===================== */

.site-footer {
  position: relative;
  background: var(--forest-darker);
  padding: 48px 0 36px;
  border-top: 1px solid rgba(250, 248, 243, 0.06);
  overflow: hidden;
}

.footer-billboard {
  position: absolute;
  left: 50%;
  bottom: -0.1em;
  transform: translateX(-50%);
  width: 100%;
  text-align: center;
  font-size: clamp(1.8rem, 6vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(250, 248, 243, 0.09);
  pointer-events: none;
  z-index: 0;
}

.footer-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-meta {
  font-size: 0.85rem;
  color: rgba(250, 248, 243, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-meta a { color: rgba(250, 248, 243, 0.7); transition: color 0.2s ease; }
.footer-meta a:hover { color: var(--mint-light); }

.footer-dot { opacity: 0.4; }

/* ===================== FOCUS STATES ===================== */

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ===================== RESPONSIVE ===================== */

@media (max-width: 900px) {
  .section { padding: 104px 0; }
  .problem-grid { grid-template-columns: 1fr; }
  .problem-index { font-size: 5rem; }
  .card-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .wrap, .wrap-narrow { padding: 0 22px; }
  :root { --header-h: 76px; }
  .hero { min-height: unset; padding-top: 20px; }
  .hero-inner { padding-top: 96px; }
  .hero { padding-bottom: 90px; }
  .section { padding: 76px 0; }
  .signup-form { flex-direction: column; }
  .signup-form input[type="email"],
  .signup-form button { width: 100%; flex: 1 1 auto; }
  .signup-form button { justify-content: center; }
  .footer-inner { flex-direction: column; align-items: flex-start; text-align: left; }
  .uc-num { flex-basis: 40px; font-size: 1.25rem; }
  .usecase-list li { gap: 18px; }
  .usecase-list::before { left: 20px; }
  .uc-num::after { left: -18px; }
  .scroll-cue { display: none; }
}

@media (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none; }
}
