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

:root {
  --glass-bg: rgba(255, 255, 255, 0.55);
  --glass-bg-hover: rgba(255, 255, 255, 0.88);
  --glass-border: rgba(0, 0, 0, 0.08);
  --glass-blur: blur(4px) saturate(180%);
  --glass-shadow: 0 4px 24px rgba(0, 0, 0, 0.08), 0 1px 4px rgba(0,0,0,0.06);
  --glass-radius: 20px;
  --glass-radius-sm: 14px;

  --bg-canvas: #dbdbe7;
  --text-primary: rgba(0, 0, 0, 0.82);
  --text-secondary: rgba(0, 0, 0, 0.42);
  --accent: #1a1a1a;
  --accent-glow: rgba(0, 0, 0, 0.08);

  --status-none: rgba(0, 0, 0, 0.1);
  --status-burning: rgba(239, 68, 68, 0.55);
  --status-in-progress: rgba(234, 179, 8, 0.55);
  --status-done: rgba(34, 197, 94, 0.55);
}

html, body, #root {
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
  background: var(--bg-canvas);
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* ── Glass base ─────────────────────────────────────────── */
.glass {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--glass-radius);
  box-shadow: var(--glass-shadow);
}

.glass-sm {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--glass-radius-sm);
  box-shadow: var(--glass-shadow);
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn-glass {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, box-shadow 0.15s, opacity 0.15s;
  outline: none;
  user-select: none;
}

.btn-glass:hover {
  background: rgba(0, 0, 0, 0.04);
}

.btn-glass:active {
  background: rgba(0, 0, 0, 0.08);
}

.btn-glass:disabled {
  opacity: 0.3;
  cursor: default;
  pointer-events: none;
}

/* ── Inputs ─────────────────────────────────────────────────── */
.input-glass {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.input-glass::placeholder {
  color: var(--text-secondary);
}

.input-glass:focus {
  border-color: rgba(0, 0, 0, 0.3);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06);
}

/* ── Scrollbar ──────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.12); border-radius: 3px; }

/* ── Mobile: prevent auto-zoom on input focus ──────────────── */
@media (max-width: 768px) {
  input, textarea, select { font-size: 16px !important; }
}
/* everysphere — landing styles */

:root {
  --bg: oklch(0.985 0.004 80);
  --bg-soft: oklch(0.97 0.006 80);
  --ink: oklch(0.18 0.015 270);
  --ink-soft: oklch(0.45 0.015 270);
  --ink-faint: oklch(0.65 0.012 270);
  --line: oklch(0.9 0.01 270);

  /* pastel rainbow — matched chroma ~0.09, lightness ~0.85 */
  --c-peach:   oklch(0.88 0.09 45);
  --c-rose:    oklch(0.86 0.09 10);
  --c-lilac:   oklch(0.85 0.09 310);
  --c-sky:     oklch(0.87 0.08 230);
  --c-mint:    oklch(0.9 0.08 165);
  --c-lemon:   oklch(0.93 0.09 95);

  --glass-white: rgba(255,255,255,0.55);
  --glass-border: rgba(255,255,255,0.9);
  --glass-shadow: 0 30px 60px -20px rgba(40, 40, 80, 0.18),
                  0 12px 24px -12px rgba(40, 40, 80, 0.12),
                  inset 0 1px 0 rgba(255,255,255,0.9),
                  inset 0 -6px 14px rgba(255,255,255,0.45);
}

* { box-sizing: border-box; }
html, body, #root {
  overflow: visible !important;
  height: auto !important;
}
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden !important;
  color: var(--ink);
  font-family: 'Inter', -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.custom-cursor { display: none; }

.display { font-family: 'Unbounded', sans-serif; letter-spacing: -0.03em; font-weight: 500; }
.mono { font-family: 'JetBrains Mono', monospace; }

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

/* --- Global rainbow aura (very soft) --- */
.aura {
  position: fixed; inset: -20vmax; z-index: -2; pointer-events: none; display: none;
}

/* ====== Liquid glass card primitives ====== */
.glass {
  background: linear-gradient(135deg, rgba(255,255,255,0.7), rgba(255,255,255,0.35));
  backdrop-filter: blur(30px) saturate(1.4);
  -webkit-backdrop-filter: blur(30px) saturate(1.4);
  border: 1px solid rgba(255,255,255,0.8);
  border-radius: 28px;
  box-shadow: var(--glass-shadow);
  position: relative;
  overflow: hidden;
}
.glass::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,0.6), rgba(255,255,255,0) 40%);
  pointer-events: none;
}
.glass::after {
  content: ''; position: absolute; left: 10%; right: 10%; bottom: 4%;
  height: 30%; border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(255,255,255,0.5), transparent 70%);
  filter: blur(8px); pointer-events: none;
}

.glass-frosted {
  background: rgba(255,255,255,0.5);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  border: 1px solid rgba(255,255,255,0.7);
  border-radius: 32px;
  box-shadow: 0 20px 50px -20px rgba(40,40,80,0.15);
}

.glass-glossy {
  background:
    linear-gradient(160deg, rgba(255,255,255,0.85) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0.7) 100%);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border: 1.5px solid rgba(255,255,255,0.95);
  border-radius: 24px;
  box-shadow:
    0 20px 50px -15px rgba(40,40,80,0.2),
    inset 0 2px 2px rgba(255,255,255,0.95),
    inset 0 -10px 20px rgba(255,255,255,0.35),
    inset 3px 0 8px rgba(255,255,255,0.4),
    inset -3px 0 8px rgba(255,255,255,0.4);
}

/* ====== Containers ====== */
section { position: relative; padding: 140px 40px; z-index: 1; }
.wrap { max-width: 1280px; margin: 0 auto; width: 100%; }

/* ====== Mobile adaptations ====== */
@media (max-width: 860px) {
  section { padding: 80px 18px; }
  h1.hero-word { font-size: clamp(44px, 13vw, 88px); }
  .section-title { font-size: clamp(30px, 9vw, 52px); line-height: 1.05; }
  .lede { font-size: 16px; }
  .eyebrow { font-size: 11px; letter-spacing: 0.14em; }
  .nav {
    top: 10px; padding: 6px 6px 6px 14px; gap: 10px; font-size: 12px;
    max-width: calc(100vw - 20px);
  }
  .nav a:not(.cta-pill):not(.brand) { display: none; }
  .nav .cta-pill { padding: 7px 13px; font-size: 12px; white-space: nowrap; }
  .feature { padding: 22px; border-radius: 22px; }
  .feature h3 { font-size: 20px; margin: 14px 0 8px; }
  .feature p { font-size: 14px; }
  .btn {
    padding: 13px 20px; font-size: 13.5px;
    white-space: nowrap; line-height: 1;
  }
  .tweaks-panel {
    right: 10px; bottom: 10px; width: calc(100vw - 20px); max-width: 320px;
    max-height: 68vh; overflow-y: auto; padding: 16px;
  }
  /* grids → single column */
  section [style*="grid-template-columns: repeat(3"] {
    grid-template-columns: 1fr !important;
  }
  section [style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
  /* CTA / glass card padding */
  section .glass { padding: 44px 22px !important; border-radius: 22px; }
  section .glass-glossy { padding: 14px !important; min-height: auto !important; }
  section .glass-glossy > div[style*="height: 280"] { height: 220px !important; }
  footer {
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 14px !important;
    font-size: 12px !important;
  }
  footer > div:last-child {
    flex-direction: row !important;
    align-items: center !important;
    gap: 16px !important;
    font-size: 12px !important;
  }
  footer > div:last-child a {
    font-size: 12px !important;
  }
  /* hero specific */
  section > div[style*="minHeight"],
  section > div[style*="min-height: 100vh"] {
    padding-top: 70px !important;
  }
  /* hide "Открыть доску" label in nav, keep arrow / shorter */
  .nav .cta-pill .nav-cta-label { display: none; }
  .nav .cta-pill::before {
    content: 'Открыть';
  }
}

@media (max-width: 480px) {
  section { padding: 60px 14px; }
  .section-title { font-size: clamp(26px, 9vw, 42px); }
  h1.hero-word { font-size: clamp(36px, 12vw, 64px) !important; }
  .btn { padding: 12px 16px; font-size: 12.5px; gap: 6px; }
  .nav { font-size: 11px; padding: 5px 5px 5px 12px; gap: 8px; }
  /* hero buttons: full-width stacked */
  section > div[style*="minHeight"] .btn,
  section > div[style*="min-height: 100vh"] .btn {
    flex: 1 1 auto;
  }
  /* hero CTA row wraps */
  section > div[style*="minHeight"] > div[style*="display: flex"][style*="gap: 14"],
  section > div[style*="min-height: 100vh"] > div[style*="display: flex"][style*="gap: 14"] {
    width: 100%;
    padding: 0 10px;
    justify-content: center;
    flex-wrap: nowrap;
  }
  /* shrink hero paragraph */
  section > div[style*="minHeight"] p,
  section > div[style*="min-height: 100vh"] p {
    font-size: 16px !important;
    padding: 0 8px;
  }
  section > div[style*="minHeight"] p br,
  section > div[style*="min-height: 100vh"] p br {
    display: none;
  }
}

/* ====== Nav ====== */
.nav {
  position: fixed; top: 24px; left: 50%; transform: translateX(-50%);
  z-index: 100;
  padding: 10px 14px 10px 22px;
  display: flex; align-items: center; gap: 18px;
  border-radius: 100px;
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border: 1px solid rgba(255,255,255,0.8);
  box-shadow: 0 10px 30px -10px rgba(40,40,80,0.15), inset 0 1px 0 rgba(255,255,255,0.9);
  font-size: 13px;
}
.nav .brand { display: flex; align-items: center; gap: 8px; font-weight: 600; letter-spacing: -0.01em; }
.nav .brand .dot {
  width: 18px; height: 18px; border-radius: 50%;
  background: conic-gradient(from 0deg, var(--c-peach), var(--c-lilac), var(--c-sky), var(--c-mint), var(--c-lemon), var(--c-peach));
  filter: blur(0.3px);
  box-shadow: inset 0 0 4px rgba(255,255,255,0.8), 0 0 10px rgba(200,200,255,0.4);
}
.nav a { color: var(--ink-soft); text-decoration: none; transition: color .2s; }
.nav a:hover { color: var(--ink); }
.nav .cta-pill {
  background: var(--ink); color: white; padding: 8px 16px; border-radius: 100px;
  font-weight: 500; transition: transform .2s;
}
.nav .cta-pill:hover { color: white; background: oklch(0.28 0.02 270); }

/* ====== Type ====== */
h1.hero-word {
  font-family: 'Unbounded', sans-serif;
  font-weight: 500;
  font-size: clamp(80px, 14vw, 220px);
  line-height: 0.95;
  letter-spacing: -0.05em;
  margin: 0;
  text-align: center;
}

.eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-faint);
}

.section-title {
  font-family: 'Unbounded', sans-serif;
  font-weight: 400;
  font-size: clamp(44px, 6vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  margin: 0 0 24px;
}

.lede { font-size: 20px; line-height: 1.5; color: var(--ink-soft); max-width: 640px; }

/* ====== Buttons ====== */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 18px 28px;
  border-radius: 100px;
  font-family: 'Inter', sans-serif; font-size: 15px; font-weight: 500;
  text-decoration: none;
  transition: transform .2s, box-shadow .2s;
  cursor: pointer; border: none;
}
.btn-primary {
  background: var(--ink); color: white;
  box-shadow: 0 8px 20px -8px rgba(40,40,80,0.4);
}
.btn-primary:hover { box-shadow: 0 12px 26px -10px rgba(40,40,80,0.5); }
.btn-ghost {
  background: rgba(255,255,255,0.7); color: var(--ink);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(0,0,0,0.06);
}
.btn-ghost:hover { background: rgba(255,255,255,0.9); }

/* ====== Tweaks Panel ====== */
.tweaks-panel {
  position: fixed; right: 24px; bottom: 24px; z-index: 500;
  padding: 20px; border-radius: 20px; width: 280px;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(30px) saturate(1.3);
  border: 1px solid rgba(255,255,255,0.9);
  box-shadow: 0 20px 50px -15px rgba(40,40,80,0.25);
  display: none;
}
.tweaks-panel.open { display: block; }
.tweaks-panel h4 { margin: 0 0 14px; font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-soft); }
.tweaks-panel .opt {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 12px; cursor: pointer;
  transition: background .2s; font-size: 14px;
}
.tweaks-panel .opt:hover { background: rgba(0,0,0,0.03); }
.tweaks-panel .opt.active { background: var(--ink); color: white; }
.tweaks-panel .opt .n { font-family: 'JetBrains Mono', monospace; font-size: 11px; opacity: 0.5; }

/* ====== Utility ====== */
.row { display: flex; }
.col { display: flex; flex-direction: column; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }
.gap-8 { gap: 32px; }
.center { justify-content: center; align-items: center; }

/* ====== Liquid rainbow text (for WWDC hero) ====== */
.rainbow-text {
  background: linear-gradient(
    100deg,
    oklch(0.75 0.15 25) 0%,
    oklch(0.8 0.12 60) 15%,
    oklch(0.85 0.13 110) 30%,
    oklch(0.75 0.13 160) 45%,
    oklch(0.7 0.14 220) 60%,
    oklch(0.7 0.16 280) 78%,
    oklch(0.72 0.15 340) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: saturate(0.85);
}

/* ====== Liquid glass nodes — sphere + task ====== */
/* color tokens mapped to hex for --node-color variable */
.n-peach { --node-color: #ffd6a5; }
.n-rose  { --node-color: #ffc3d4; }
.n-lilac { --node-color: #d4c5ff; }
.n-sky   { --node-color: #a8d8ea; }
.n-mint  { --node-color: #b8e6c5; }
.n-lemon { --node-color: #ffeaa8; }
.n-ink   { --node-color: #c8c8d4; }

/* Sphere node — larger */
.sphere {
  min-width: 140px;
  min-height: 64px;
  padding: 0;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.1),
    inset 2px 2px 6px rgba(255, 255, 255, 0.95),
    inset -1px -1px 2px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  display: inline-flex;
  align-items: stretch;
  position: relative;
  overflow: visible;
  isolation: isolate;
  color: rgba(0,0,0,0.75);
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', sans-serif;
}
.sphere::before {
  content: ""; position: absolute; inset: -1px;
  border-radius: 23.5px;
  background: linear-gradient(135deg, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0.4) 30%, rgba(255,255,255,0) 50%, rgba(0,0,0,0.04) 80%, rgba(0,0,0,0.1) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  padding: 1.5px;
  pointer-events: none;
  z-index: 1;
}
.sphere::after {
  content: ""; position: absolute; inset: 0;
  border-radius: 22px;
  background: var(--node-color, #a8d8ea);
  opacity: 0.45;
  box-shadow:
    inset 2px 2px 8px rgba(255,255,255,0.9),
    inset -1px -1px 6px rgba(0,0,0,0.15);
  pointer-events: none;
  z-index: 0;
}
.sphere.selected {
  box-shadow:
    0 0 0 2.5px rgba(59,130,246,0.55),
    0 10px 28px rgba(0,0,0,0.13),
    inset 2px 2px 8px rgba(255,255,255,0.45),
    inset -1px -1px 5px rgba(0,0,0,0.08);
}
.sphere-inner {
  display: flex; align-items: center; justify-content: center;
  gap: 6px;
  padding: 14px 22px; flex: 1;
  position: relative; z-index: 3;
  font-size: 15px; font-weight: 600;
  letter-spacing: -0.2px;
  white-space: nowrap;
}
.sphere.sm .sphere-inner { padding: 10px 16px; font-size: 13px; font-weight: 600; }
.sphere.lg .sphere-inner { padding: 20px 30px; font-size: 18px; }

/* Task node — smaller pill */
.task {
  min-width: 100px;
  min-height: 40px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  box-shadow:
    0 4px 20px rgba(0,0,0,0.1),
    inset 2px 2px 6px rgba(255,255,255,0.35),
    inset -1px -1px 4px rgba(0,0,0,0.1);
  cursor: pointer;
  display: inline-flex;
  align-items: stretch;
  position: relative;
  overflow: visible;
  isolation: isolate;
  color: rgba(0,0,0,0.72);
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', sans-serif;
}
.task::before {
  content: ""; position: absolute; inset: -0.5px;
  border-radius: 15.5px;
  background: linear-gradient(135deg, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0.3) 30%, rgba(255,255,255,0) 50%, rgba(0,0,0,0.04) 80%, rgba(0,0,0,0.08) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  padding: 1.5px;
  pointer-events: none;
  z-index: 1;
}
.task::after {
  content: ""; position: absolute; inset: 0;
  border-radius: 14px;
  background: var(--node-color, #e0e0e8);
  opacity: 0.45;
  box-shadow:
    inset 2px 2px 8px rgba(255,255,255,0.9),
    inset -1px -1px 6px rgba(0,0,0,0.15);
  pointer-events: none;
  z-index: 0;
}
.task.selected {
  box-shadow:
    0 0 0 2.5px rgba(59,130,246,0.55),
    0 6px 22px rgba(0,0,0,0.13),
    inset 2px 2px 8px rgba(255,255,255,0.45),
    inset -1px -1px 5px rgba(0,0,0,0.08);
}
.task-inner {
  display: flex; align-items: center; justify-content: center;
  gap: 5px;
  padding: 10px 16px; flex: 1;
  position: relative; z-index: 3;
  font-size: 13px; font-weight: 500;
  white-space: nowrap;
}
.task.sm .task-inner { padding: 7px 12px; font-size: 12px; }

/* ====== Animation helpers ====== */
@keyframes float { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-10px) } }
@keyframes drift { 0%,100% { transform: translate(0,0) scale(1) } 50% { transform: translate(20px,-15px) scale(1.05) } }
@keyframes spinSlow { to { transform: rotate(360deg) } }
@keyframes pulse { 0%,100% { opacity: 0.7 } 50% { opacity: 1 } }
.float { animation: float 6s ease-in-out infinite; }
.drift { animation: drift 14s ease-in-out infinite; }

/* ====== Feature cards ====== */
.feature {
  padding: 36px;
  border-radius: 28px;
  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border: 1px solid rgba(255,255,255,0.8);
  box-shadow: 0 20px 40px -20px rgba(40,40,80,0.15), inset 0 1px 0 rgba(255,255,255,0.9);
  transition: transform .3s, box-shadow .3s;
  position: relative; overflow: hidden;
}
.feature:hover { box-shadow: 0 28px 48px -18px rgba(40,40,80,0.22); }
.feature .num { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--ink-faint); letter-spacing: 0.1em; }
.feature h3 { font-family: 'Unbounded', sans-serif; font-weight: 400; font-size: 28px; letter-spacing: -0.02em; margin: 18px 0 12px; line-height: 1.1; }
.feature p { color: var(--ink-soft); line-height: 1.5; margin: 0; font-size: 15px; }

/* blob */
.blob {
  position: absolute; border-radius: 50%;
  filter: blur(40px);
  pointer-events: none;
}

/* grid bg */
.dotgrid {
  background-image: radial-gradient(circle, oklch(0.85 0.005 270) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* --- Dark mode text boost (for vivid/night/duotone bgs) --- */
body.dark-mode {
  color: #f4f1ff;
}
body.dark-mode .eyebrow { color: rgba(255,255,255,0.55); }
body.dark-mode .lede { color: rgba(255,255,255,0.75); }
body.dark-mode .section-title,
body.dark-mode h1.hero-word { color: #fafafa; }
body.dark-mode .feature {
  background: rgba(20,15,30,0.55);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 20px 40px -20px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.08);
}
body.dark-mode .feature h3 { color: #fafafa; }
body.dark-mode .feature p { color: rgba(255,255,255,0.7); }
body.dark-mode .feature .num { color: rgba(255,255,255,0.45); }
body.dark-mode .nav {
  background: rgba(20,15,30,0.5);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fafafa;
  box-shadow: 0 10px 30px -10px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.1);
}
body.dark-mode .nav a { color: rgba(255,255,255,0.7); }
body.dark-mode .nav a:hover { color: #fff; }
body.dark-mode .nav .cta-pill { background: #fff; color: #0e0b14; }
body.dark-mode .btn-primary { background: #fff; color: #0e0b14; }
body.dark-mode .btn-ghost { background: rgba(255,255,255,0.1); color: #fff; border: 1px solid rgba(255,255,255,0.2); }
body.dark-mode .glass,
body.dark-mode .glass-frosted,
body.dark-mode .glass-glossy {
  background: rgba(30,22,48,0.55);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fafafa;
}
body.dark-mode .tweaks-panel {
  background: rgba(20,15,30,0.85);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fafafa;
}
body.dark-mode .tweaks-panel h4 { color: rgba(255,255,255,0.7); }
body.dark-mode .tweaks-panel .opt:hover { background: rgba(255,255,255,0.08); }
body.dark-mode .tweaks-panel .opt.active { background: #fff; color: #0e0b14; }
body.dark-mode .sphere { color: rgba(255,255,255,0.9); }
body.dark-mode .task { color: rgba(255,255,255,0.85); }
body.dark-mode .dotgrid {
  background-image: radial-gradient(circle, rgba(255,255,255,0.12) 1px, transparent 1px);
}
body.dark-mode .rainbow-text {
  filter: saturate(1.3) brightness(1.3);
}

.scroll-reveal { opacity: 0; transform: translateY(30px); transition: opacity .9s, transform .9s; }
.scroll-reveal.in { opacity: 1; transform: none; }
/* ── Sphere Node ─────────────────────────────────── */
._sphere_iqfvj_2 {
  min-width: 160px;
  min-height: 80px;
  padding: 0;
  border-radius: 24px;
  background: rgba(255,255,255,0.08);
  border: none;
  box-shadow:
    0 8px 24px rgba(0,0,0,0.1),
    inset 2px 2px 6px rgba(255,255,255,0.95),
    inset -1px -1px 2px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: box-shadow 0.2s;
  display: flex;
  align-items: stretch;
  position: relative;
  overflow: visible;
}

/* gradient border — liquid glass stroke */
._sphere_iqfvj_2::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 25.5px;
  background: linear-gradient(
    135deg,
    rgba(255,255,255,0.8) 0%,
    rgba(255,255,255,0.4) 30%,
    rgba(255,255,255,0.0) 50%,
    rgba(0,0,0,0.04) 80%,
    rgba(0,0,0,0.10) 100%
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  padding: 1.5px;
  pointer-events: none;
  z-index: 1;
}

/* color tint layer + inner glow */
._sphere_iqfvj_2::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 24px;
  background: var(--node-color, #a8d8ea);
  opacity: 0.45;
  box-shadow:
    inset 2px 2px 8px rgba(255,255,255,0.9),
    inset -1px -1px 6px rgba(0,0,0,0.15);
  pointer-events: none;
  z-index: 0;
}

._sphere_iqfvj_2:hover {
  box-shadow:
    0 10px 28px rgba(0,0,0,0.13),
    inset 2px 2px 8px rgba(255,255,255,0.45),
    inset -1px -1px 5px rgba(0,0,0,0.08);
}

._sphere_iqfvj_2._selected_iqfvj_70 {
  box-shadow:
    0 0 0 2.5px rgba(59, 130, 246, 0.55),
    0 10px 28px rgba(0,0,0,0.13),
    inset 2px 2px 8px rgba(255,255,255,0.45),
    inset -1px -1px 5px rgba(0,0,0,0.08);
}

._sphereInner_iqfvj_78 {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 24px;
  flex: 1;
  position: relative;
  z-index: 3;
}

._sphereLabel_iqfvj_88 {
  font-size: 16px;
  font-weight: 600;
  color: rgba(0,0,0,0.75);
  letter-spacing: -0.3px;
  text-align: center;
  word-break: break-word;
}

/* gradient blur — strong in center, fades to edges */
._blurLayer_iqfvj_98 {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  backdrop-filter: blur(4px) saturate(300%);
  -webkit-backdrop-filter: blur(4px) saturate(300%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
  pointer-events: none;
  z-index: -1;
}


._nodeEmoji_iqfvj_111 {
  font-size: 18px;
  margin-right: 6px;
  line-height: 1;
}

/* ── Task Node ───────────────────────────────────── */
._task_iqfvj_118 {
  min-width: 130px;
  min-height: 48px;
  border-radius: 16px;
  background: rgba(255,255,255,0.08);
  border: none;
  box-shadow:
    0 4px 20px rgba(0,0,0,0.1),
    inset 2px 2px 6px rgba(255,255,255,0.35),
    inset -1px -1px 4px rgba(0,0,0,0.1);
  cursor: pointer;
  transition: box-shadow 0.2s;
  display: flex;
  align-items: stretch;
  position: relative;
  overflow: visible;
}

/* gradient border — liquid glass stroke */
._task_iqfvj_118::before {
  content: "";
  position: absolute;
  inset: -0.5px;
  border-radius: 17.5px;
  background: linear-gradient(
    135deg,
    rgba(255,255,255,0.8) 0%,
    rgba(255,255,255,0.3) 30%,
    rgba(255,255,255,0.0) 50%,
    rgba(0,0,0,0.04) 80%,
    rgba(0,0,0,0.08) 100%
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  padding: 1.5px;
  pointer-events: none;
  z-index: 1;
}

/* color tint layer + inner glow */
._task_iqfvj_118::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: var(--node-color, #e0e0e8);
  opacity: 0.45;
  box-shadow:
    inset 2px 2px 8px rgba(255,255,255,0.9),
    inset -1px -1px 6px rgba(0,0,0,0.15);
  pointer-events: none;
  z-index: 0;
}

._task_iqfvj_118:hover {
  box-shadow:
    0 6px 22px rgba(0,0,0,0.13),
    inset 2px 2px 8px rgba(255,255,255,0.45),
    inset -1px -1px 5px rgba(0,0,0,0.08);
}

._task_iqfvj_118._selected_iqfvj_70 {
  box-shadow:
    0 0 0 2.5px rgba(59, 130, 246, 0.55),
    0 6px 22px rgba(0,0,0,0.13),
    inset 2px 2px 8px rgba(255,255,255,0.45),
    inset -1px -1px 5px rgba(0,0,0,0.08);
}

._taskInner_iqfvj_193 {
  display: flex;
  align-items: center;
  padding: 12px 18px;
  flex: 1;
  justify-content: center;
  position: relative;
  z-index: 3;
}

._taskLabel_iqfvj_203 {
  font-size: 14px;
  font-weight: 500;
  color: rgba(0,0,0,0.72);
  text-align: center;
  word-break: break-word;
}

/* ── Badge pills — circles on card edge ── */
._voicePill_iqfvj_212 {
  position: absolute;
  top: -14px;
  left: -14px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.3) 0%, transparent 50%, rgba(0,0,0,0.1) 100%),
    var(--pill-color, rgba(200,220,220,0.9));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: none;
  box-shadow:
    inset 1.5px 1.5px 3px rgba(255,255,255,0.7),
    inset -1px -1px 2px rgba(0,0,0,0.12),
    1px 1px 3px rgba(0,0,0,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

._notePill_iqfvj_235 {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.3) 0%, transparent 50%, rgba(0,0,0,0.1) 100%),
    var(--pill-color, rgba(200,220,220,0.9));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: none;
  box-shadow:
    inset 1.5px 1.5px 3px rgba(255,255,255,0.7),
    inset -1px -1px 3px rgba(0,0,0,0.1),
    -0.5px 2px 3px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

/* ── Inline rename input ─────────────────────────── */
._inlineRenameInput_iqfvj_259 {
  background: transparent;
  border: none;
  outline: none;
  font-size: inherit;
  font-weight: inherit;
  font-family: inherit;
  color: inherit;
  text-align: center;
  width: 100%;
  padding: 0;
  margin: 0;
}

/* ── Pending node floating UI ────────────────────── */
._pendingUI_iqfvj_274 {
  position: absolute;
  left: 0;
  right: 0;
  display: flex;
  gap: 6px;
  pointer-events: all;
  z-index: 100;
}

._pendingAbove_iqfvj_284 {
  bottom: calc(100% + 8px);
}

._pendingBelow_iqfvj_288 {
  top: calc(100% + 8px);
}

._pendingBtn_iqfvj_292 {
  flex: 1;
  padding: 7px 0;
  font-size: 13px;
  font-weight: 500;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.1);
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  cursor: pointer;
  text-align: center;
  color: rgba(0,0,0,0.75);
  font-family: inherit;
}

._pendingBtnActive_iqfvj_309 {
  background: rgba(0,0,0,0.08);
  font-weight: 600;
}

._pendingBtnConfirm_iqfvj_314 {
  background: rgba(0,0,0,0.85);
  color: #fff;
  border-color: transparent;
}

/* ── React Flow handle override ──────────────────── */
.react-flow__handle {
  opacity: 0;
  transition: opacity 0.2s;
  z-index: 5 !important;
  position: absolute;
}

.react-flow__handle::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
}

.react-flow__node:hover .react-flow__handle,
.react-flow__node.selected .react-flow__handle {
  opacity: 1;
}

@media (max-width: 768px) {
  .react-flow__handle::after {
    inset: -4px;
  }
}