/* ═══════════════════════════════════════════════════════════════
   Floww — Website Styles
   ═══════════════════════════════════════════════════════════════ */

/* ─── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

/* ─── Variables ──────────────────────────────────────────────── */
:root {
  --bg-base: #0f0f0f;
  --bg-primary: #171717;
  --bg-secondary: #1f1f1f;
  --bg-tertiary: #262626;
  --text-normal: #eeeeee;
  --text-muted: #a3a3a3;
  --text-dim: #636363;

  --accent: #d97757;
  --accent-hover: #e8956f;
  --accent-muted: rgba(217, 119, 87, 0.12);

  --green: #34d399;
  --blue: #60a5fa;
  --purple: #a78bfa;
  --pink: #f472b6;
  --yellow: #fbbf24;
  --cyan: #22d3ee;
  --note: #c9a84c;

  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.15);

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  --shadow-md: 0 4px 16px rgba(0,0,0,0.4);

  --ease: cubic-bezier(0.4, 0, 0.2, 1);

  --container: 1200px;
  --nav-height: 72px;
}

/* ─── Base ────────────────────────────────────────────────────── */
html { scroll-behavior: smooth; }

body {
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-normal);
  background: var(--bg-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Grain texture overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="128" height="128"><filter id="n"><feTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="4" stitchTiles="stitch"/></filter><rect width="128" height="128" filter="url(%23n)" opacity="0.5"/></svg>') repeat;
  mix-blend-mode: screen;
  opacity: 0.015;
  pointer-events: none;
  z-index: 1;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black, transparent);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black, transparent);
}

::selection { background: rgba(217, 119, 87, 0.25); }

a { color: var(--accent); text-decoration: none; transition: color 0.3s var(--ease); }
a:hover { color: var(--accent-hover); }

img { max-width: 100%; height: auto; }

/* ─── Layout ─────────────────────────────────────────────────── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 40px;
}

/* ─── Animations ─────────────────────────────────────────────── */
.js .fade-in.will-animate {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--ease) var(--stagger, 0ms), transform 0.6s var(--ease) var(--stagger, 0ms);
}
.js .fade-in.will-animate.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* ─── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all 0.3s var(--ease);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--accent);
  color: white;
}
.btn-primary:hover {
  background: var(--accent-hover);
  color: white;
}

.btn:active,
.pricing-card-cta:active {
  transform: scale(0.97);
  transition-duration: 0.05s;
}

/* ═══════════════════════════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════════════════════════ */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}

.site-nav.scrolled {
  background: rgba(15, 15, 15, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
}

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 40px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  font-size: 18px;
}
.nav-logo:hover {
  color: var(--text-normal);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-links a {
  font-size: 14px;
  font-weight: 450;
  color: var(--text-muted);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: var(--radius-md);
  transition: all 0.3s var(--ease);
  position: relative;
}
.nav-links a:hover {
  color: var(--text-normal);
  background: var(--bg-tertiary);
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  right: 50%;
  height: 1px;
  background: var(--accent);
  transition: left 0.25s ease, right 0.25s ease;
  opacity: 0.5;
}
.nav-links a:hover::after {
  left: 14px;
  right: 14px;
}

.nav-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 8px;
}

/* ─── Brand wordmark (text logo) ─────────────────────────────── */
.brand-wordmark {
  font-family: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  font-weight: 600;
  font-style: italic;
  letter-spacing: -0.03em;
  text-decoration: none;
  color: var(--text-normal);
}

/* ═══════════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════════ */
.hero {
  padding-top: calc(var(--nav-height) + 80px);
  padding-bottom: 40px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(217, 119, 87, 0.08) 0%, transparent 70%);
  pointer-events: none;
  animation: heroBreathe 8s ease-in-out infinite;
}

@keyframes heroBreathe {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-content {
  text-align: center;
  max-width: 700px;
  margin-bottom: 64px;
}

.hero h1 {
  font-size: clamp(44px, 7vw, 72px);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero-find {
  font-weight: 600;
}

/* Blinking cursor during typewriter */
.hero-cursor {
  display: inline-block;
  width: 3px;
  height: 0.85em;
  background: var(--text-normal);
  margin-left: 2px;
  vertical-align: baseline;
  position: relative;
  top: 0.08em;
  animation: cursorBlink 0.6s step-end infinite;
}
.hero-cursor.hidden {
  display: none;
}
@keyframes cursorBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.hero-brand {
  font-family: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-weight: 600;
  letter-spacing: -0.03em;
  display: inline;
}
/* Font cycling animation state */
.hero-brand.cycling {
  transition: none;
}
.hero-brand.landed {
  animation: brandLand 0.4s var(--ease);
}
@keyframes brandLand {
  0% { transform: scale(1.06); opacity: 0.7; }
  100% { transform: scale(1); opacity: 1; }
}

/* Growth transition after "Find your" is deleted */
.hero-brand.hero-grown {
  display: inline-block;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Mouse cursor for text-selection animation */
.hero-select-cursor {
  position: absolute;
  width: 16px;
  height: 16px;
  z-index: 20;
  pointer-events: none;
  will-change: transform;
  opacity: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="none"><path d="M2 1L14 7.5L8 8.5L6 14.5L2 1Z" fill="%23eee" stroke="%23333" stroke-width="0.5"/></svg>') no-repeat center;
  background-size: contain;
}

/* Text selection highlight — sweeps left-to-right via --select-pct */
.hero-find.selecting {
  background: linear-gradient(
    to right,
    rgba(217, 119, 87, 0.35) var(--select-pct, 0%),
    transparent var(--select-pct, 0%)
  );
  border-radius: 2px;
}

.hero-sub {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 32px;
  opacity: 0;
  transform: translateY(-12px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.hero-sub.revealed {
  opacity: 1;
  transform: translateY(0);
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-link {
  font-size: 14px;
  color: var(--text-muted);
  transition: color 0.3s var(--ease);
}
.hero-link:hover {
  color: var(--text-normal);
}

/* ═══════════════════════════════════════════════════════════════
   HERO CANVAS MOCKUP
   ═══════════════════════════════════════════════════════════════ */
.hero-canvas {
  width: 100%;
  max-width: 1000px;
  position: relative;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.03), 0 40px 100px rgba(0,0,0,0.5);
  overflow: hidden;
  background: var(--bg-base);
}

/* Mouse-tracking shimmer overlay */
.hero-canvas::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(217,119,87,0.07), transparent 60%);
  pointer-events: none;
  z-index: 10;
}

/* Titlebar */
.hc-titlebar {
  height: 40px;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 14px;
}
.hc-dots {
  display: flex;
  gap: 6px;
}
.hc-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
}
.hc-dots span:nth-child(1) { background: rgba(255,95,87,0.45); }
.hc-dots span:nth-child(2) { background: rgba(255,189,46,0.45); }
.hc-dots span:nth-child(3) { background: rgba(39,201,63,0.45); }
.hc-toolbar {
  display: flex;
  gap: 4px;
  margin-left: auto;
}
.hc-tool {
  width: 24px;
  height: 24px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.04);
  display: flex;
  align-items: center;
  justify-content: center;
}
.hc-tool svg {
  width: 12px;
  height: 12px;
  color: var(--text-dim);
}

/* Body layout */
.hc-body {
  display: flex;
  min-height: 360px;
}

/* File tree sidebar */
.hc-filetree {
  width: 160px;
  background: var(--bg-primary);
  border-right: 1px solid var(--border);
  padding: 12px;
  flex-shrink: 0;
}

/* Canvas area */
.hc-canvas {
  flex: 1;
  position: relative;
  overflow: hidden;
}
.hc-canvas::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* Nodes */
.hc-node {
  position: absolute;
  background: var(--bg-primary);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
  z-index: 2;
  cursor: default;
  transition: border-color 0.2s var(--ease);
}
.hc-node:hover {
  border-color: rgba(255,255,255,0.15);
}
.hc-demo-executing {
  border-color: rgba(217,119,87,0.4) !important;
  box-shadow: 0 0 12px rgba(217,119,87,0.15), inset 0 0 0 1px rgba(217,119,87,0.1);
}
.hc-node-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-dim);
}
.hc-node-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c, rgba(255,255,255,0.12));
  flex-shrink: 0;
}
.hc-node-body {
  padding: 0 12px 10px;
  font-size: 11px;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color: var(--text-dim);
  line-height: 1.5;
  border-top: 1px solid rgba(255,255,255,0.04);
  padding-top: 8px;
}

/* Port handles */
.hc-port {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  border: 1.5px solid var(--text-dim);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  z-index: 3;
}
.hc-port.out { right: -4px; top: 50%; transform: translateY(-50%); }
.hc-port.in { left: -4px; top: 50%; transform: translateY(-50%); }
.hc-node:hover .hc-port { opacity: 1; }

/* SVG edges */
.hc-edges {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}
.hc-edge {
  fill: none;
  stroke: rgba(255,255,255,0.35);
  stroke-width: 1.5;
  marker-end: url(#arrowhead);
  transition: stroke 0.3s var(--ease);
}
/* ═══════════════════════════════════════════════════════════════
   HERO CANVAS DEMO — Animated classes
   ═══════════════════════════════════════════════════════════════ */

/* Animated cursor */
.hc-demo-cursor {
  position: absolute;
  width: 16px;
  height: 16px;
  z-index: 20;
  pointer-events: none;
  will-change: transform;
  opacity: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="none"><path d="M2 1L14 7.5L8 8.5L6 14.5L2 1Z" fill="%23eee" stroke="%23333" stroke-width="0.5"/></svg>') no-repeat center;
  background-size: contain;
}

/* Skeleton loading bars */
.hc-demo-skeleton {
  height: 8px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  margin-bottom: 6px;
}
.hc-demo-skeleton.active {
  background: rgba(255, 255, 255, 0.12);
}

/* File tree expand animation */
.hc-demo-file-enter {
  animation: demoFileEnter 0.3s var(--ease) both;
}
@keyframes demoFileEnter {
  from {
    opacity: 0;
    transform: translateX(-12px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* File tree exit animation */
.hc-demo-file-exit {
  animation: demoFileExit 0.2s var(--ease) both;
}
@keyframes demoFileExit {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(-12px);
  }
}

/* Allow cursor to appear over filetree during drag steps */
#demo-canvas {
  overflow: visible;
}

/* Node enter override — prevent .hc-node hover transitions from conflicting */
.hc-demo-node {
  transition: none !important;
}
.hc-demo-node:hover {
  transform: none;
}

/* Marching ants (active execution indicator) */
.hc-demo-active::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: var(--radius-lg);
  background-image:
    linear-gradient(90deg, var(--accent) 50%, transparent 50%),
    linear-gradient(90deg, var(--accent) 50%, transparent 50%),
    linear-gradient(0deg, var(--accent) 50%, transparent 50%),
    linear-gradient(0deg, var(--accent) 50%, transparent 50%);
  background-size: 8px 2px, 8px 2px, 2px 8px, 2px 8px;
  background-position: 0 0, 0 100%, 0 0, 100% 0;
  background-repeat: repeat-x, repeat-x, repeat-y, repeat-y;
  animation: marchingAnts 0.4s linear infinite;
  pointer-events: none;
  z-index: 4;
}
@keyframes marchingAnts {
  to { background-position: 8px 0, -8px 100%, 0 -8px, 100% 8px; }
}

/* Selection lasso */
.hc-demo-lasso {
  position: absolute;
  border: 1.5px solid var(--accent);
  background: rgba(217, 119, 87, 0.06);
  border-radius: 2px;
  z-index: 5;
  pointer-events: none;
}

/* Selected node highlight */
.hc-demo-selected {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 2px rgba(217, 119, 87, 0.2) !important;
}

/* Node picker dropdown */
.hc-demo-picker {
  position: absolute;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 4px;
  min-width: 160px;
  z-index: 15;
}
.hc-demo-picker-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  color: var(--text-dim);
}
.hc-demo-picker-item.highlighted {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-normal);
}
.hc-demo-picker-item.clicking {
  background: rgba(217, 119, 87, 0.15);
}

/* Icon container in headers/picker */
.hc-demo-icon {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.hc-demo-icon svg {
  width: 12px;
  height: 12px;
}

/* Blinking typewriter caret */
.hc-demo-caret {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--text-muted);
  margin-left: 1px;
  vertical-align: text-bottom;
  animation: cursorBlink 0.6s step-end infinite;
}

/* Terminal output lines */
.hc-demo-terminal-line {
  font-size: 11px;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color: var(--text-dim);
  line-height: 1.6;
  white-space: nowrap;
  overflow: hidden;
}
.hc-demo-terminal-line.cmd {
  color: var(--text-muted);
}
.hc-demo-terminal-line.success {
  color: var(--green);
}

/* Drag ghost */
.hc-demo-drag-ghost {
  position: absolute;
  pointer-events: none;
  z-index: 18;
}

/* Bookmark ribbon on Workfloww node */
.hc-demo-bookmark {
  position: absolute;
  top: 0;
  right: 8px;
  z-index: 5;
}
.hc-demo-bookmark svg {
  width: 12px;
  height: 16px;
}

/* Notification badge on Telegram node */
.hc-demo-notification {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  font-size: 10px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 6;
  box-shadow: 0 2px 6px rgba(217, 119, 87, 0.4);
  animation: notifPulse 1.5s ease-out infinite;
}
@keyframes notifPulse {
  0% { box-shadow: 0 2px 6px rgba(217,119,87,0.4), 0 0 0 0 rgba(217,119,87,0.35); }
  70% { box-shadow: 0 2px 6px rgba(217,119,87,0.4), 0 0 0 8px rgba(217,119,87,0); }
  100% { box-shadow: 0 2px 6px rgba(217,119,87,0.4), 0 0 0 0 rgba(217,119,87,0); }
}

/* Trash icon above node */
.hc-demo-trash {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  z-index: 15;
  cursor: pointer;
}

/* ═══════════════════════════════════════════════════════════════
   HERO CANVAS DEMO — Floww Terminal Nodes
   ═══════════════════════════════════════════════════════════════ */

/* Floww Terminal Node — dark chrome aesthetic */
.hc-demo-floww-terminal {
  background: var(--bg-secondary, #1a1a1a);
}
.hc-demo-floww-terminal .hc-node-header {
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 8px 10px;
  gap: 6px;
}
.hc-demo-floww-terminal .hc-node-body {
  border-top: none;
  padding-top: 8px;
}

/* Window dots (terminal header) */
.hc-demo-terminal-dots {
  display: flex;
  gap: 4px;
}
.hc-demo-terminal-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.hc-demo-terminal-dots span:nth-child(1) { background: rgba(255,95,87,0.6); }
.hc-demo-terminal-dots span:nth-child(2) { background: rgba(255,189,46,0.6); }
.hc-demo-terminal-dots span:nth-child(3) { background: rgba(39,201,63,0.6); }

/* Italic serif wordmark in terminal header */
.hc-demo-terminal-wordmark {
  font-family: 'Georgia', 'Times New Roman', serif;
  font-style: italic;
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  margin-left: 4px;
}

/* Terminal prompt line */
.hc-demo-terminal-prompt {
  display: flex;
  gap: 6px;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 11px;
  line-height: 1.6;
}
.hc-demo-terminal-prompt .prompt-symbol {
  color: var(--accent);
  flex-shrink: 0;
}

/* Stamp (archive) node — frozen dashed border */
.hc-demo-stamp {
  border-style: dashed !important;
  border-color: rgba(217,119,87,0.35) !important;
}
.hc-demo-stamp .hc-node-body {
  padding-top: 6px;
}

/* Emulator (app preview) node */
.hc-demo-emulator-wrap {
  padding: 0 !important;
  overflow: hidden;
}
.hc-demo-emulator-wrap .hc-node-header,
.hc-demo-emulator-wrap .hc-node-body {
  display: none;
}
.hc-demo-emulator-titlebar {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 8px;
  background: #2b2b3d;
  font-size: 9px;
  color: rgba(255,255,255,0.5);
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
.hc-demo-emulator-titlebar .hc-demo-terminal-dots span {
  width: 5px;
  height: 5px;
}
.hc-demo-emulator-body {
  display: flex;
  height: 95px;
}
.hc-demo-emulator-sidebar {
  width: 50px;
  background: #1e1e2e;
  border-right: 1px solid rgba(255,255,255,0.06);
  padding: 6px 5px;
}
.hc-demo-emulator-sidebar .emu-item {
  height: 5px;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
  margin-bottom: 4px;
}
.hc-demo-emulator-sidebar .emu-item.active {
  background: rgba(124,58,237,0.5);
}
.hc-demo-emulator-editor {
  flex: 1;
  background: #181825;
  padding: 6px 8px;
}
.hc-demo-emulator-editor .emu-line {
  height: 4px;
  background: rgba(255,255,255,0.06);
  border-radius: 2px;
  margin-bottom: 4px;
}
.hc-demo-emulator-editor .emu-line.heading {
  background: rgba(255,255,255,0.12);
  width: 60%;
}

/* Mini DAG research visualization */
.hc-demo-dag {
  position: absolute;
  pointer-events: none;
  z-index: 2;
}

/* Reduced motion: hide animated demo entirely, CSS-only fallback not needed
   because JS already bails out and the container stays empty */
@media (prefers-reduced-motion: reduce) {
  .hc-demo-cursor,
  .hc-demo-node,
  .hc-demo-picker,
  .hc-demo-lasso,
  .hc-demo-notification,
  .hm-node {
    animation: none !important;
    transition: none !important;
  }
}

/* ═══════════════════════════════════════════════════════════════
   FEATURES SECTION
   ═══════════════════════════════════════════════════════════════ */
.features {
  padding: 120px 0;
  background: var(--bg-primary);
}
.features .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.features-text h2 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 16px;
}
.features-text > p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 32px;
}

.features-bullets {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.features-bullet dt {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-normal);
  margin-bottom: 4px;
}
.features-bullet dd {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

.features-visual {
  align-self: start;
}

/* Node Picker mockup */
.np-picker {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 12px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.03), 0 12px 40px rgba(0,0,0,0.3);
  overflow: hidden;
}

.np-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--bg-base);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
}
.np-search-icon {
  color: var(--text-dim);
  flex-shrink: 0;
}
.np-search-input {
  border: none;
  background: transparent;
  outline: none;
  font-family: inherit;
  font-size: 13px;
  color: var(--text-normal);
  width: 100%;
}
.np-search-input::placeholder {
  color: var(--text-dim);
}

.np-category {
  margin-bottom: 8px;
}
.np-category:last-child {
  margin-bottom: 0;
}
.np-category-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  padding: 4px 8px 6px;
}

.np-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}

.np-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 450;
  color: var(--text-muted);
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.np-item:hover {
  background: rgba(255,255,255,0.04);
  color: var(--text-normal);
}
.np-item:active {
  opacity: 0.7;
}
.np-item:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}
.np-item[hidden] { display: none; }
.np-category[hidden] { display: none; }

.np-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* No results message */
.np-no-results {
  display: none;
  text-align: center;
  padding: 20px 0;
  font-size: 13px;
  color: var(--text-dim);
}
.np-no-results.visible { display: block; }

/* Detail panel */
.np-detail { animation: npSlideIn 0.2s var(--ease); }
.np-detail[hidden] { display: none; }
.np-detail-back {
  background: none;
  border: none;
  color: var(--accent);
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
  padding: 4px 0;
  margin-bottom: 16px;
  transition: color 0.2s var(--ease);
}
.np-detail-back:hover { color: var(--accent-hover); }
.np-detail-back:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.np-detail-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.np-detail-dot { width: 8px; height: 8px; }
.np-detail-name {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-normal);
}
.np-detail-category {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  margin-bottom: 12px;
}
.np-detail-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}
@keyframes npSlideIn {
  from { opacity: 0; transform: translateX(16px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ═══════════════════════════════════════════════════════════════
   GETTING STARTED SECTION
   ═══════════════════════════════════════════════════════════════ */
.getting-started {
  padding: 120px 0;
  border-top: 1px solid var(--border);
}
.getting-started h2 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.1;
  text-align: center;
  margin-bottom: 64px;
}
.gs-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 960px;
  margin: 0 auto;
}
.gs-step {
  text-align: center;
}
.gs-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 16px;
  font-weight: 500;
  color: var(--accent);
}
.gs-step h3 {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 8px;
}
.gs-step p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════════════
   CTA SECTION
   ═══════════════════════════════════════════════════════════════ */
.cta {
  padding: 120px 0;
  text-align: center;
}
.cta h2 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 24px;
}

.cta-community {
  margin-top: 20px;
  font-size: 14px;
  color: var(--text-dim);
}
.cta-community a {
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cta-community a:hover { color: var(--text-normal); }

/* ═══════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════ */
.site-footer {
  background: var(--bg-primary);
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  margin-bottom: 56px;
}

.footer-col {
  list-style: none;
}
.footer-heading {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-normal);
  margin-bottom: 16px;
}
.footer-col li {
  margin-bottom: 8px;
}
.footer-col a {
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s var(--ease);
}
.footer-col a:hover {
  color: var(--text-normal);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.footer-logo {
  display: flex;
  align-items: center;
  font-size: 16px;
  color: var(--text-dim);
  transition: color 0.3s var(--ease);
}
.footer-logo:hover {
  color: var(--text-muted);
}

.footer-copy {
  font-size: 13px;
  color: var(--text-dim);
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */

/* Tablet */
@media (max-width: 1024px) {
  .container { padding: 0 24px; }
  .nav-inner { padding: 0 24px; }

  .hc-filetree { width: 120px; }
}

/* ─── Mobile Hero Mockup ───────────────────────────────────── */
.hero-mobile {
  display: none;
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.03), 0 12px 40px rgba(0,0,0,0.4);
  overflow: hidden;
}
.hm-titlebar {
  height: 28px;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 10px;
  gap: 6px;
}
.hm-titlebar-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
}
.hm-titlebar-dot:nth-child(1) { background: rgba(255,95,87,0.45); }
.hm-titlebar-dot:nth-child(2) { background: rgba(255,189,46,0.45); }
.hm-titlebar-dot:nth-child(3) { background: rgba(39,201,63,0.45); }
.hm-canvas {
  position: relative;
  height: 80px;
  overflow: hidden;
  background-color: var(--bg-base);
  background-image: radial-gradient(circle, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 16px 16px;
}
.hm-edges {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.hm-edges path {
  fill: none;
  stroke: rgba(255,255,255,0.35);
  stroke-width: 1.5;
  marker-end: url(#arrowhead-mobile);
}
.hm-node {
  position: absolute;
  padding: 6px 10px;
  font-size: 10px;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-primary);
  border: 1.5px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-sm);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 5px;
}
.hm-node-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Subtle floating animation for mobile nodes */
.hm-node {
  animation: hmFloat 3s ease-in-out infinite;
}
.hm-node:nth-child(2) { animation-delay: -1s; }
.hm-node:nth-child(3) { animation-delay: -2s; }
@keyframes hmFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}

/* Mobile */
@media (max-width: 768px) {
  :root { --nav-height: 60px; }

  .hero { padding-top: calc(var(--nav-height) + 48px); }
  .hero h1 { font-size: 36px; }

  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-base);
    padding: 24px;
    gap: 4px;
    z-index: 99;
    border-top: 1px solid var(--border);
  }
  .nav-links.open a {
    font-size: 16px;
    padding: 12px 16px;
  }
  .nav-menu-btn { display: block; }

  .hero-canvas { display: none; }
  .hero-mobile { display: block; }

  .features { padding: 80px 0; }
  .features .container { grid-template-columns: 1fr; gap: 40px; }

  .np-grid { grid-template-columns: 1fr; }

  .getting-started { padding: 80px 0; }
  .gs-steps { grid-template-columns: 1fr; gap: 40px; max-width: 400px; }

  .cta { padding: 80px 0; }
  .cta h2 { font-size: 32px; letter-spacing: -0.02em; }

  .footer-columns { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
}

/* ─── Scrollbar ──────────────────────────────────────────────── */
* { scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.08) transparent; }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.15); }

/* ─── Skip link ─────────────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  padding: 8px 16px;
  background: var(--accent);
  color: white;
  border-radius: var(--radius-md);
  z-index: 200;
  font-size: 14px;
  font-weight: 500;
}
.skip-link:focus { top: 12px; }

/* ─── Focus ring ─────────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ─── Scroll margin for fixed nav ────────────────────────────── */
[id] {
  scroll-margin-top: calc(var(--nav-height) + 24px);
}

/* ═══════════════════════════════════════════════════════════════
   SHARED SUBPAGE COMPONENTS
   ═══════════════════════════════════════════════════════════════ */

/* ─── Back link ─────────────────────────────────────────────── */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 32px;
}
.back-link:hover { color: var(--text-normal); }

/* ─── Pricing card CTA ─────────────────────────────────────── */
.pricing-card-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all 0.15s var(--ease);
  text-align: center;
}
.pricing-card-cta.primary {
  background: var(--accent);
  color: white;
}
.pricing-card-cta.primary:hover {
  background: var(--accent-hover);
  color: white;
}
.pricing-card-cta.secondary {
  color: var(--accent);
  font-weight: 500;
}
.pricing-card-cta.secondary:hover {
  color: var(--accent-hover);
}
.pricing-card-cta:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ─── FAQ accordion ─────────────────────────────────────────── */
.faq-list {
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.faq-list details {
  border-bottom: 1px solid var(--border);
}
.faq-list details:first-child {
  border-top: 1px solid var(--border);
}
.faq-list summary {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-normal);
  padding: 20px 0;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: color 0.15s var(--ease);
}
.faq-list summary:hover {
  color: var(--accent);
}
.faq-list summary::-webkit-details-marker {
  display: none;
}
.faq-list summary::after {
  content: '+';
  font-size: 20px;
  font-weight: 300;
  color: var(--text-dim);
  flex-shrink: 0;
  transition: transform 0.2s;
}
.faq-list details[open] summary::after {
  content: '\2212';
}
.faq-list .faq-answer {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
  padding-bottom: 20px;
}
