/* ---------- LANDING PAGE ---------- */

/* the shared shell (dashboard.css) locks body to height:100vh with
   overflow:hidden, correct for the app pages, where the sidebar and
   a single internally-scrolling panel share one fixed-height screen.
   the landing page isn't that kind of layout: it's a normal scrolling
   document, so it needs real document-level scroll, not a second
   scroll container nested inside a viewport-height body. */
body{ height: auto; min-height: 100vh; overflow-x: hidden; overflow-y: visible; position: relative; }

/* a fixed, low-contrast node texture behind the whole scroll, not just
   the hero, same motif the auth pages already use (a fragment of a
   node network, echoing the logo) so the background language is
   consistent across the app rather than inventing a second one just
   for this page. fixed positioning means it reads as one ambient
   backdrop the whole page scrolls over, rather than scrolling away
   after the first screen. */
body::before{
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(circle at 8% 12%, var(--accent) 0, transparent 0.9%),
    radial-gradient(circle at 92% 8%, var(--accent) 0, transparent 0.9%),
    radial-gradient(circle at 15% 45%, var(--accent) 0, transparent 0.7%),
    radial-gradient(circle at 88% 55%, var(--accent) 0, transparent 0.9%),
    radial-gradient(circle at 6% 78%, var(--accent) 0, transparent 0.7%),
    radial-gradient(circle at 94% 88%, var(--accent) 0, transparent 0.9%),
    radial-gradient(circle at 50% 96%, var(--accent) 0, transparent 0.7%);
  opacity: 0.3;
  pointer-events: none;
  z-index: 0;
}

/* two extra ambient color blobs further down the page, so the
   background has some life past the hero instead of going flat for
   the rest of the scroll. both absolute (scroll with the content,
   unlike the fixed dot layer) and placed to sit behind the narrative
   rows rather than directly behind any one card. */
.narrative{ position: relative; }

.narrative::before{
  content: "";
  position: absolute;
  top: 8%;
  left: -8%;
  width: 46%;
  height: 40%;
  background: radial-gradient(ellipse 60% 60% at 50% 50%, rgba(108,99,255,0.10), transparent 72%);
  filter: blur(10px);
  z-index: 0;
  pointer-events: none;
}

.narrative::after{
  content: "";
  position: absolute;
  bottom: 4%;
  right: -8%;
  width: 46%;
  height: 40%;
  background: radial-gradient(ellipse 60% 60% at 50% 50%, rgba(46,216,167,0.08), transparent 72%);
  filter: blur(10px);
  z-index: 0;
  pointer-events: none;
}

.narrative-row{ position: relative; z-index: 1; }

/* ---------- NAV ---------- */
/* a plain full-bleed bar this time (not a floating pill), kept
   deliberately minimal: logo, one text link, one button. */

.landing-nav{
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 20px 48px;
  border-bottom: 1px solid transparent;
  background: rgba(10,11,16,0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.landing-nav.scrolled{
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-md);
}

.landing-nav-logo{
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.01em;
}

.landing-nav-logo .logo-badge{
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: linear-gradient(155deg, var(--accent-2) 0%, var(--accent) 55%);
  color: #12151C;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  box-shadow: var(--shadow-sm);
}

.landing-nav-actions{
  display: flex;
  align-items: center;
  gap: 20px;
}

.landing-nav-actions .btn{ white-space: nowrap; }

.landing-nav-link{
  white-space: nowrap;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s var(--ease);
}

.landing-nav-link:hover{ color: var(--text); }

/* ---------- SECTION KICKER ---------- */

.section-kicker{
  display: block;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 13px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}

/* ---------- HERO ---------- */

.hero-glow{
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1200px;
  max-width: 100vw;
  height: 600px;
  background:
    radial-gradient(ellipse 50% 52% at 50% -6%, rgba(108,99,255,0.26), transparent 68%),
    radial-gradient(ellipse 32% 36% at 20% 18%, rgba(46,216,167,0.10), transparent 72%),
    radial-gradient(ellipse 34% 38% at 80% 12%, rgba(157,149,255,0.16), transparent 72%);
  mask-image: radial-gradient(ellipse 60% 62% at 50% 0%, black 35%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 60% 62% at 50% 0%, black 35%, transparent 80%);
  pointer-events: none;
  z-index: 0;
}

.hero{
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  padding: 96px 24px 0;
}

.hero-eyebrow{
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 13px;
  color: var(--text);
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 6px 14px 6px 10px;
  border-radius: 20px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.hero-eyebrow::before{
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  flex-shrink: 0;
}

.hero h1{
  font-size: 52px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 20px;
}

.hero h1 span{
  background: linear-gradient(155deg, var(--accent-2) 0%, var(--accent) 60%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p{
  font-size: 17px;
  color: var(--muted);
  line-height: 1.6;
  max-width: 560px;
  margin: 0 auto 32px;
}

.hero-actions{
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-bottom: 40px;
}

.hero-actions .btn{ padding: 13px 26px; font-size: 15px; font-weight: 600; border-radius: 11px; }

.hero-actions .btn:not(.ghost){ position: relative; }

.hero-actions .btn:not(.ghost)::after{
  content: "";
  position: absolute;
  inset: -14px;
  background: radial-gradient(ellipse at center, rgba(108,99,255,0.45), transparent 72%);
  filter: blur(20px);
  z-index: -1;
  pointer-events: none;
}

/* the old separate "how it works" section folded into a single
   compact strip right under the fold. */
.hero-stepper{
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  padding: 10px 18px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
}

.hero-stepper-item{
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text);
  font-weight: 500;
  white-space: nowrap;
}

.hero-stepper-num{
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-dim);
  color: var(--accent-2);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  flex-shrink: 0;
}

.hero-stepper-arrow{
  width: 14px;
  height: 14px;
  color: var(--muted);
  flex-shrink: 0;
}

/* ---------- MINI WINDOW (shared by the narrative visuals) ---------- */

.mini-window{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.mini-window-chrome{
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--surface2);
}

.chrome-dot{
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--border);
}

.mini-window-title{
  margin-left: 6px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}

.mini-window-body{ padding: 18px; }

/* ---------- NARRATIVE (alternating rows) ---------- */

.narrative{
  max-width: 1080px;
  margin: 0 auto;
  padding: 110px 32px 20px;
  display: flex;
  flex-direction: column;
  gap: 110px;
}

.narrative-row{
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 56px;
  align-items: center;
}

.narrative-row.reverse .narrative-visual{ order: 2; }
.narrative-row.reverse .narrative-text{ order: 1; }

.narrative-text h2{
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 14px;
}

.narrative-text p{
  font-size: 15px;
  color: var(--muted);
  line-height: 1.65;
  max-width: 420px;
}

/* dashboard mini-window content */

.mini-stat{ display: flex; flex-direction: column; gap: 4px; }

.mini-window-body:not(.mini-editor):not(.mini-canvas){
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.mini-stat-label{
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.mini-stat-value{
  font-family: var(--mono);
  font-weight: 700;
  font-size: 19px;
  margin-top: 4px;
}

.mini-stat-value.accent{ color: var(--accent); }
.mini-stat-value.ok{ color: var(--ok); }

.mini-stat-bars{
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 60px;
  margin-top: 6px;
}

.mini-stat-bars span{
  flex: 1;
  background: linear-gradient(180deg, var(--accent-2) 0%, var(--accent) 100%);
  border-radius: 3px 3px 0 0;
  opacity: 0.85;
}

/* code editor mini-window content */

.mini-editor{ font-family: var(--mono); font-size: 13px; line-height: 2; }

.mini-editor-line{ white-space: pre; color: var(--text); }

.mini-editor-line.highlight{
  background: rgba(108,99,255,0.1);
  margin: 0 -18px;
  padding: 0 18px;
  border-left: 2px solid var(--accent);
}

.line-no{
  display: inline-block;
  width: 20px;
  color: var(--border);
  user-select: none;
}

.tok-kw{ color: var(--accent-2); }
.tok-var{ color: var(--text); }
.tok-op{ color: var(--muted); }
.tok-fn{ color: var(--ok); }
.tok-num{ color: var(--accent-2); }
.tok-comment{ color: var(--muted); font-style: italic; }

/* visual builder mini-canvas content */

.mini-canvas{
  position: relative;
  height: 160px;
}

.canvas-block{
  position: absolute;
  border-radius: 6px;
  background: var(--surface2);
  border: 1px solid var(--border);
}

.mini-canvas .block-1{ top: 0; left: 0; right: 0; height: 26px; }
.mini-canvas .block-2{ top: 42px; left: 0; width: 64px; height: 96px; background: rgba(108,99,255,0.14); border-color: var(--accent-dim); }
.mini-canvas .block-3{ top: 42px; left: 76px; right: 0; height: 44px; }
.mini-canvas .block-4{ top: 94px; left: 76px; right: 0; height: 44px; }

/* ---------- REASSURANCE STRIP ---------- */

.reassurance-row{
  max-width: 1080px;
  margin: 0 auto;
  padding: 60px 32px 90px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  border-top: 1px solid var(--border);
}

.reassurance-item{
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.reassurance-item svg{
  width: 22px;
  height: 22px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.reassurance-item h4{
  font-size: 15px;
  margin-bottom: 4px;
}

.reassurance-item p{
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

/* ---------- FOOTER ---------- */

.landing-footer{
  border-top: 1px solid var(--border);
  padding: 28px 48px;
}

.landing-footer-inner{
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1080px;
  margin: 0 auto;
  margin-bottom: 18px;
}

.landing-footer-brand{
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -0.01em;
}

.landing-footer-brand .logo-badge{
  width: 26px;
  height: 26px;
  border-radius: var(--radius-sm);
  font-size: 12px;
}

.landing-footer-links{
  display: flex;
  gap: 20px;
}

.landing-footer-links a{
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s var(--ease);
}

.landing-footer-links a:hover{ color: var(--accent); }

.landing-footer-bottom{
  text-align: center;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 12px;
  max-width: 1080px;
  margin: 0 auto;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

/* ---------- SCROLL REVEAL ---------- */

@media (prefers-reduced-motion: no-preference){
  [data-reveal]{
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
  }

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

  [data-reveal] .reassurance-item{
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
    transition-delay: var(--reveal-delay, 0s);
  }

  [data-reveal].in-view .reassurance-item{
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- RESPONSIVE ---------- */

@media (max-width: 900px){
  .narrative-row{ grid-template-columns: 1fr; gap: 28px; }
  .narrative-row.reverse .narrative-visual{ order: 1; }
  .narrative-row.reverse .narrative-text{ order: 2; }
  .narrative-text p{ max-width: none; }
  .narrative{ gap: 64px; padding: 70px 24px 10px; }
}

@media (max-width: 700px){
  .landing-nav{ padding: 16px 20px; }
  .landing-nav-actions{ gap: 14px; }

  .hero{ padding: 56px 20px 0; }
  .hero h1{ font-size: 32px; }
  .hero p{ font-size: 15px; }
  .hero-actions{ flex-direction: column; }
  .hero-actions .btn{ width: 100%; text-align: center; }
  .hero-stepper{ flex-direction: column; align-items: flex-start; gap: 8px; border-radius: var(--radius-md); }
  .hero-stepper-arrow{ display: none; }

  .reassurance-row{ grid-template-columns: 1fr; padding: 40px 20px; gap: 24px; }

  .landing-footer{ padding: 24px 20px; }
  .landing-footer-inner{ flex-direction: column; gap: 16px; text-align: center; }
}

/* a phone cannot fit the wordmark and four nav items on one line (DBT6:
   Log in and Sign up each broke onto two lines, and with five items Sign up
   left the screen). The badge stays; the word goes. font-size 0 hides the
   bare text node without touching the markup on every page. */
@media (max-width: 480px){
  .landing-nav-logo{ font-size: 0; gap: 0; }
}

@media (max-width: 420px){
  .landing-nav-actions{ gap: 12px; }
  .landing-nav-link{ font-size: 13px; }
  .landing-nav-actions .btn{ padding: 9px 14px; font-size: 13px; }
  .hero h1{ font-size: 26px; }
}
